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 use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
40 --with-tls with TLS/SSL support (auto)"
44 --enable-ldapd enable building ldapd (no)"
48 --enable-slapd enable building slapd (yes)"
50 --enable-aclgroups enable ACL group support (auto)"
52 --enable-cleartext enable cleartext passwords (yes)"
54 --enable-crypt enable crypt(3) passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-bdb2 enable bdb2 backend (no)"
64 --enable-ldbm enable ldbm backend (yes)"
66 --with-ldbm-api use LDBM API (auto)"
68 --with-ldbm-type use LDBM type (auto)"
70 --enable-passwd enable passwd backend (no)"
72 --enable-perl enable perl backend (no)"
74 --enable-shell enable shell backend (no)"
76 --enable-tcl enable tcl backend (no)"
80 --enable-slurpd enable building slurpd (auto)"
82 Library Generation & Linking Options"
84 --enable-static build static libraries [default=yes]
85 --enable-static=PKGS only build shared libraries if the current package
86 appears as an element in the PKGS list"
88 --enable-shared build shared libraries [default=yes]
89 --enable-shared=PKGS only build shared libraries if the current package
90 appears as an element in the PKGS list"
92 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file=./config.cache
107 program_transform_name=s,x,x,
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host | --host | --hos | --ho)
270 -host=* | --host=* | --hos=* | --ho=*)
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
391 -site=* | --site=* | --sit=*)
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=include/ldap.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='\c' ac_t=
603 for ac_dir in build $srcdir/build; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 # Find a good install program. We prefer a C program (faster),
621 # so one script is as good as another. But avoid the broken or
622 # incompatible versions:
623 # SysV /etc/install, /usr/sbin/install
624 # SunOS /usr/etc/install
627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
630 # ./install, which can be erroneously created by make from ./install.sh.
631 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
632 echo "configure:633: checking for a BSD compatible install" >&5
633 if test -z "$INSTALL"; then
634 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
638 for ac_dir in $PATH; do
639 # Account for people who put trailing slashes in PATH elements.
641 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
643 # OSF1 and SCO ODT 3.0 have their own names for install.
644 # Don't use installbsd from OSF since it installs stuff as root
646 for ac_prog in ginstall scoinst install; do
647 if test -f $ac_dir/$ac_prog; then
648 if test $ac_prog = install &&
649 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
650 # AIX install. It has an incompatible calling convention.
653 ac_cv_path_install="$ac_dir/$ac_prog -c"
664 if test "${ac_cv_path_install+set}" = set; then
665 INSTALL="$ac_cv_path_install"
667 # As a last resort, use the slow shell script. We don't cache a
668 # path for INSTALL within a source directory, because that will
669 # break other packages using the cache if that directory is
670 # removed, or if the path is relative.
671 INSTALL="$ac_install_sh"
674 echo "$ac_t""$INSTALL" 1>&6
676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
677 # It thinks the first close brace ends the variable substitution.
678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
684 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
685 echo "configure:686: checking whether build environment is sane" >&5
688 echo timestamp > conftestfile
689 # Do `set' in a subshell so we don't clobber the current shell's
690 # arguments. Must try -L first in case configure is actually a
691 # symlink; some systems play weird games with the mod time of symlinks
692 # (eg FreeBSD returns the mod time of the symlink's containing
695 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
696 if test "$*" = "X"; then
698 set X `ls -t $srcdir/configure conftestfile`
700 if test "$*" != "X $srcdir/configure conftestfile" \
701 && test "$*" != "X conftestfile $srcdir/configure"; then
703 # If neither matched, then we have a broken ls. This can happen
704 # if, for instance, CONFIG_SHELL is bash and it inherits a
705 # broken ls alias from the environment. This has actually
706 # happened. Such a system could not be considered "sane".
707 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
708 alias in your environment" 1>&2; exit 1; }
711 test "$2" = conftestfile
717 { echo "configure: error: newly created file is older than distributed files!
718 Check your system clock" 1>&2; exit 1; }
721 echo "$ac_t""yes" 1>&6
722 if test "$program_transform_name" = s,x,x,; then
723 program_transform_name=
725 # Double any \ or $. echo might interpret backslashes.
726 cat <<\EOF_SED > conftestsed
727 s,\\,\\\\,g; s,\$,$$,g
729 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
732 test "$program_prefix" != NONE &&
733 program_transform_name="s,^,${program_prefix},; $program_transform_name"
734 # Use a double $ so make ignores it.
735 test "$program_suffix" != NONE &&
736 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
738 # sed with no file args requires a program.
739 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
741 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
742 echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
743 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
744 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 cat > conftestmake <<\EOF
749 @echo 'ac_maketemp="${MAKE}"'
751 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
752 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
753 if test -n "$ac_maketemp"; then
754 eval ac_cv_prog_make_${ac_make}_set=yes
756 eval ac_cv_prog_make_${ac_make}_set=no
760 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
764 echo "$ac_t""no" 1>&6
765 SET_MAKE="MAKE=${MAKE-make}"
773 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
774 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
779 missing_dir=`cd $ac_aux_dir && pwd`
780 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
781 echo "configure:782: checking for working aclocal" >&5
782 # Run test in a subshell; some versions of sh will print an error if
783 # an executable is not found, even if stderr is redirected.
784 # Redirect stdin to placate older versions of autoconf. Sigh.
785 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
787 echo "$ac_t""found" 1>&6
789 ACLOCAL="$missing_dir/missing aclocal"
790 echo "$ac_t""missing" 1>&6
793 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
794 echo "configure:795: checking for working autoconf" >&5
795 # Run test in a subshell; some versions of sh will print an error if
796 # an executable is not found, even if stderr is redirected.
797 # Redirect stdin to placate older versions of autoconf. Sigh.
798 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
800 echo "$ac_t""found" 1>&6
802 AUTOCONF="$missing_dir/missing autoconf"
803 echo "$ac_t""missing" 1>&6
806 echo $ac_n "checking for working automake""... $ac_c" 1>&6
807 echo "configure:808: checking for working automake" >&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf. Sigh.
811 if (automake --version) < /dev/null > /dev/null 2>&1; then
813 echo "$ac_t""found" 1>&6
815 AUTOMAKE="$missing_dir/missing automake"
816 echo "$ac_t""missing" 1>&6
819 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
820 echo "configure:821: checking for working autoheader" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
825 AUTOHEADER=autoheader
826 echo "$ac_t""found" 1>&6
828 AUTOHEADER="$missing_dir/missing autoheader"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
833 echo "configure:834: checking for working makeinfo" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
839 echo "$ac_t""found" 1>&6
841 MAKEINFO="$missing_dir/missing makeinfo"
842 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
849 echo "configure:850: checking configure arguments" >&5
854 ldap_subdir="openldap"
856 # Check whether --with-subdir or --without-subdir was given.
857 if test "${with_subdir+set}" = set; then
858 withval="$with_subdir"
860 if test "$withval" = "no"; then
862 elif test "$withval" != "yes"; then
863 ldap_subdir="$withval"
869 # OpenLDAP --enable-debug
870 # Check whether --enable-debug or --disable-debug was given.
871 if test "${enable_debug+set}" = set; then
872 enableval="$enable_debug"
875 for ol_val in auto yes no ; do
876 if test "$enableval" = "$ol_val" ; then
880 if test "$ol_arg" = "invalid" ; then
881 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
883 ol_enable_debug="$ol_arg"
886 ol_enable_debug="yes"
890 # OpenLDAP --enable-proctitle
891 # Check whether --enable-proctitle or --disable-proctitle was given.
892 if test "${enable_proctitle+set}" = set; then
893 enableval="$enable_proctitle"
896 for ol_val in auto yes no ; do
897 if test "$enableval" = "$ol_val" ; then
901 if test "$ol_arg" = "invalid" ; then
902 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
904 ol_enable_proctitle="$ol_arg"
907 ol_enable_proctitle="yes"
909 # end --enable-proctitle
910 # OpenLDAP --enable-cache
911 # Check whether --enable-cache or --disable-cache was given.
912 if test "${enable_cache+set}" = set; then
913 enableval="$enable_cache"
916 for ol_val in auto yes no ; do
917 if test "$enableval" = "$ol_val" ; then
921 if test "$ol_arg" = "invalid" ; then
922 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
924 ol_enable_cache="$ol_arg"
927 ol_enable_cache="yes"
930 # OpenLDAP --enable-dns
931 # Check whether --enable-dns or --disable-dns was given.
932 if test "${enable_dns+set}" = set; then
933 enableval="$enable_dns"
936 for ol_val in auto yes no ; do
937 if test "$enableval" = "$ol_val" ; then
941 if test "$ol_arg" = "invalid" ; then
942 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
944 ol_enable_dns="$ol_arg"
950 # OpenLDAP --enable-referrals
951 # Check whether --enable-referrals or --disable-referrals was given.
952 if test "${enable_referrals+set}" = set; then
953 enableval="$enable_referrals"
956 for ol_val in auto yes no ; do
957 if test "$enableval" = "$ol_val" ; then
961 if test "$ol_arg" = "invalid" ; then
962 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
964 ol_enable_referrals="$ol_arg"
967 ol_enable_referrals="yes"
969 # end --enable-referrals
970 # OpenLDAP --enable-cldap
971 # Check whether --enable-cldap or --disable-cldap was given.
972 if test "${enable_cldap+set}" = set; then
973 enableval="$enable_cldap"
976 for ol_val in auto yes no ; do
977 if test "$enableval" = "$ol_val" ; then
981 if test "$ol_arg" = "invalid" ; then
982 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
984 ol_enable_cldap="$ol_arg"
990 # OpenLDAP --enable-x_compile
991 # Check whether --enable-x_compile or --disable-x_compile was given.
992 if test "${enable_x_compile+set}" = set; then
993 enableval="$enable_x_compile"
996 for ol_val in yes no ; do
997 if test "$enableval" = "$ol_val" ; then
1001 if test "$ol_arg" = "invalid" ; then
1002 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1004 ol_enable_x_compile="$ol_arg"
1007 ol_enable_x_compile="no"
1009 # end --enable-x_compile
1011 # OpenLDAP --enable-dmalloc
1012 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1013 if test "${enable_dmalloc+set}" = set; then
1014 enableval="$enable_dmalloc"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1025 ol_enable_dmalloc="$ol_arg"
1028 ol_enable_dmalloc="no"
1030 # end --enable-dmalloc
1032 # OpenLDAP --with-kerberos
1033 # Check whether --with-kerberos or --without-kerberos was given.
1034 if test "${with_kerberos+set}" = set; then
1035 withval="$with_kerberos"
1038 for ol_val in auto k5 k4 afs yes no ; do
1039 if test "$withval" = "$ol_val" ; then
1043 if test "$ol_arg" = "invalid" ; then
1044 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1046 ol_with_kerberos="$ol_arg"
1049 ol_with_kerberos="auto"
1051 # end --with-kerberos
1053 # OpenLDAP --with-threads
1054 # Check whether --with-threads or --without-threads was given.
1055 if test "${with_threads+set}" = set; then
1056 withval="$with_threads"
1059 for ol_val in auto posix mach lwp yes no manual ; do
1060 if test "$withval" = "$ol_val" ; then
1064 if test "$ol_arg" = "invalid" ; then
1065 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1067 ol_with_threads="$ol_arg"
1070 ol_with_threads="auto"
1072 # end --with-threads
1074 # OpenLDAP --with-yielding_select
1075 # Check whether --with-yielding_select or --without-yielding_select was given.
1076 if test "${with_yielding_select+set}" = set; then
1077 withval="$with_yielding_select"
1080 for ol_val in auto yes no manual ; do
1081 if test "$withval" = "$ol_val" ; then
1085 if test "$ol_arg" = "invalid" ; then
1086 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1088 ol_with_yielding_select="$ol_arg"
1091 ol_with_yielding_select="auto"
1093 # end --with-yielding_select
1095 # OpenLDAP --with-tls
1096 # Check whether --with-tls or --without-tls was given.
1097 if test "${with_tls+set}" = set; then
1101 for ol_val in auto ssleay openssl yes no ; do
1102 if test "$withval" = "$ol_val" ; then
1106 if test "$ol_arg" = "invalid" ; then
1107 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1109 ol_with_tls="$ol_arg"
1118 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1119 if test "${with_xxldapdoptions+set}" = set; then
1120 withval="$with_xxldapdoptions"
1124 # OpenLDAP --enable-ldapd
1125 # Check whether --enable-ldapd or --disable-ldapd was given.
1126 if test "${enable_ldapd+set}" = set; then
1127 enableval="$enable_ldapd"
1130 for ol_val in auto yes no ; do
1131 if test "$enableval" = "$ol_val" ; then
1135 if test "$ol_arg" = "invalid" ; then
1136 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1138 ol_enable_ldapd="$ol_arg"
1141 ol_enable_ldapd="no"
1143 # end --enable-ldapd
1145 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1146 if test "${with_xxslapdoptions+set}" = set; then
1147 withval="$with_xxslapdoptions"
1151 # OpenLDAP --enable-slapd
1152 # Check whether --enable-slapd or --disable-slapd was given.
1153 if test "${enable_slapd+set}" = set; then
1154 enableval="$enable_slapd"
1157 for ol_val in auto yes no ; do
1158 if test "$enableval" = "$ol_val" ; then
1162 if test "$ol_arg" = "invalid" ; then
1163 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1165 ol_enable_slapd="$ol_arg"
1168 ol_enable_slapd="yes"
1170 # end --enable-slapd
1171 # OpenLDAP --enable-aclgroups
1172 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1173 if test "${enable_aclgroups+set}" = set; then
1174 enableval="$enable_aclgroups"
1177 for ol_val in auto yes no ; do
1178 if test "$enableval" = "$ol_val" ; then
1182 if test "$ol_arg" = "invalid" ; then
1183 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1185 ol_enable_aclgroups="$ol_arg"
1188 ol_enable_aclgroups="auto"
1190 # end --enable-aclgroups
1191 # OpenLDAP --enable-cleartext
1192 # Check whether --enable-cleartext or --disable-cleartext was given.
1193 if test "${enable_cleartext+set}" = set; then
1194 enableval="$enable_cleartext"
1197 for ol_val in auto yes no ; do
1198 if test "$enableval" = "$ol_val" ; then
1202 if test "$ol_arg" = "invalid" ; then
1203 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1205 ol_enable_cleartext="$ol_arg"
1208 ol_enable_cleartext="yes"
1210 # end --enable-cleartext
1211 # OpenLDAP --enable-crypt
1212 # Check whether --enable-crypt or --disable-crypt was given.
1213 if test "${enable_crypt+set}" = set; then
1214 enableval="$enable_crypt"
1217 for ol_val in auto yes no ; do
1218 if test "$enableval" = "$ol_val" ; then
1222 if test "$ol_arg" = "invalid" ; then
1223 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1225 ol_enable_crypt="$ol_arg"
1228 ol_enable_crypt="auto"
1230 # end --enable-crypt
1231 # OpenLDAP --enable-wrappers
1232 # Check whether --enable-wrappers or --disable-wrappers was given.
1233 if test "${enable_wrappers+set}" = set; then
1234 enableval="$enable_wrappers"
1237 for ol_val in auto yes no ; do
1238 if test "$enableval" = "$ol_val" ; then
1242 if test "$ol_arg" = "invalid" ; then
1243 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1245 ol_enable_wrappers="$ol_arg"
1248 ol_enable_wrappers="no"
1250 # end --enable-wrappers
1251 # OpenLDAP --enable-phonetic
1252 # Check whether --enable-phonetic or --disable-phonetic was given.
1253 if test "${enable_phonetic+set}" = set; then
1254 enableval="$enable_phonetic"
1257 for ol_val in auto yes no ; do
1258 if test "$enableval" = "$ol_val" ; then
1262 if test "$ol_arg" = "invalid" ; then
1263 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1265 ol_enable_phonetic="$ol_arg"
1268 ol_enable_phonetic="no"
1270 # end --enable-phonetic
1271 # OpenLDAP --enable-rlookups
1272 # Check whether --enable-rlookups or --disable-rlookups was given.
1273 if test "${enable_rlookups+set}" = set; then
1274 enableval="$enable_rlookups"
1277 for ol_val in auto yes no ; do
1278 if test "$enableval" = "$ol_val" ; then
1282 if test "$ol_arg" = "invalid" ; then
1283 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1285 ol_enable_rlookups="$ol_arg"
1288 ol_enable_rlookups="auto"
1290 # end --enable-rlookups
1292 # OpenLDAP --enable-bdb2
1293 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1294 if test "${enable_bdb2+set}" = set; then
1295 enableval="$enable_bdb2"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1306 ol_enable_bdb2="$ol_arg"
1312 # OpenLDAP --enable-ldbm
1313 # Check whether --enable-ldbm or --disable-ldbm was given.
1314 if test "${enable_ldbm+set}" = set; then
1315 enableval="$enable_ldbm"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1326 ol_enable_ldbm="$ol_arg"
1329 ol_enable_ldbm="yes"
1332 # OpenLDAP --with-ldbm_api
1333 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1334 if test "${with_ldbm_api+set}" = set; then
1335 withval="$with_ldbm_api"
1338 for ol_val in auto db2 db gdbm ndbm manual ; do
1339 if test "$withval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1346 ol_with_ldbm_api="$ol_arg"
1349 ol_with_ldbm_api="auto"
1351 # end --with-ldbm_api
1353 # OpenLDAP --with-ldbm_type
1354 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1355 if test "${with_ldbm_type+set}" = set; then
1356 withval="$with_ldbm_type"
1359 for ol_val in auto btree hash ; do
1360 if test "$withval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1367 ol_with_ldbm_type="$ol_arg"
1370 ol_with_ldbm_type="auto"
1372 # end --with-ldbm_type
1375 # OpenLDAP --enable-passwd
1376 # Check whether --enable-passwd or --disable-passwd was given.
1377 if test "${enable_passwd+set}" = set; then
1378 enableval="$enable_passwd"
1381 for ol_val in auto yes no ; do
1382 if test "$enableval" = "$ol_val" ; then
1386 if test "$ol_arg" = "invalid" ; then
1387 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1389 ol_enable_passwd="$ol_arg"
1392 ol_enable_passwd="no"
1394 # end --enable-passwd
1395 # OpenLDAP --enable-perl
1396 # Check whether --enable-perl or --disable-perl was given.
1397 if test "${enable_perl+set}" = set; then
1398 enableval="$enable_perl"
1401 for ol_val in auto yes no ; do
1402 if test "$enableval" = "$ol_val" ; then
1406 if test "$ol_arg" = "invalid" ; then
1407 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1409 ol_enable_perl="$ol_arg"
1415 # OpenLDAP --enable-shell
1416 # Check whether --enable-shell or --disable-shell was given.
1417 if test "${enable_shell+set}" = set; then
1418 enableval="$enable_shell"
1421 for ol_val in auto yes no ; do
1422 if test "$enableval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1429 ol_enable_shell="$ol_arg"
1432 ol_enable_shell="no"
1434 # end --enable-shell
1435 # OpenLDAP --enable-tcl
1436 # Check whether --enable-tcl or --disable-tcl was given.
1437 if test "${enable_tcl+set}" = set; then
1438 enableval="$enable_tcl"
1441 for ol_val in auto yes no ; do
1442 if test "$enableval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1449 ol_enable_tcl="$ol_arg"
1456 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1457 if test "${with_xxslurpdoptions+set}" = set; then
1458 withval="$with_xxslurpdoptions"
1462 # OpenLDAP --enable-slurpd
1463 # Check whether --enable-slurpd or --disable-slurpd was given.
1464 if test "${enable_slurpd+set}" = set; then
1465 enableval="$enable_slurpd"
1468 for ol_val in auto yes no ; do
1469 if test "$enableval" = "$ol_val" ; then
1473 if test "$ol_arg" = "invalid" ; then
1474 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1476 ol_enable_slurpd="$ol_arg"
1479 ol_enable_slurpd="auto"
1481 # end --enable-slurpd
1483 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1484 if test "${with_xxliboptions+set}" = set; then
1485 withval="$with_xxliboptions"
1489 # Check whether --enable-static or --disable-static was given.
1490 if test "${enable_static+set}" = set; then
1491 enableval="$enable_static"
1492 p=${PACKAGE-default}
1493 case "$enableval" in
1494 yes) enable_static=yes ;;
1495 no) enable_static=no ;;
1498 # Look at the argument we got. We use all the common list separators.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1500 for pkg in $enableval; do
1501 if test "X$pkg" = "X$p"; then
1512 # Check whether --enable-shared or --disable-shared was given.
1513 if test "${enable_shared+set}" = set; then
1514 enableval="$enable_shared"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_shared=yes ;;
1518 no) enable_shared=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
1537 if test $ol_enable_dns = yes ; then
1538 if test $ol_enable_referrals = no ; then
1539 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1541 if test $ol_enable_referrals = auto ; then
1542 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1543 ol_enable_referrals=yes
1547 if test $ol_enable_slapd = no ; then
1548 if test $ol_enable_bdb2 = yes ; then
1549 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1551 if test $ol_enable_ldbm = yes ; then
1552 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1554 if test $ol_enable_passwd = yes ; then
1555 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1557 if test $ol_enable_perl = yes ; then
1558 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1560 if test $ol_enable_shell = yes ; then
1561 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1563 if test $ol_enable_tcl = yes ; then
1564 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1566 if test $ol_enable_aclgroups = yes ; then
1567 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1569 if test $ol_enable_wrappers = yes ; then
1570 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1572 if test $ol_enable_phonetic = yes ; then
1573 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1575 if test $ol_enable_rlookups = yes ; then
1576 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1578 if test $ol_with_ldbm_api != auto ; then
1579 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1581 if test $ol_with_ldbm_type != auto ; then
1582 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1584 if test $ol_enable_slurpd = yes ; then
1585 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1588 # force settings to no
1595 ol_enable_aclgroups=no
1596 ol_enable_wrappers=no
1597 ol_enable_phonetic=no
1598 ol_enable_rlookups=no
1600 ol_with_ldbm_type=no
1603 elif test $ol_enable_ldbm = no ; then
1605 if test $ol_with_ldbm_api != auto ; then
1606 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1609 if test $ol_with_ldbm_type != auto ; then
1610 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1613 if test $ol_enable_bdb2 = yes ; then
1614 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1617 if test $ol_enable_passwd = no -a \
1618 $ol_enable_perl = no -a \
1619 $ol_enable_shell = no -a \
1620 $ol_enable_tcl = no ; then
1621 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1625 ol_with_ldbm_type=no
1627 elif test $ol_enable_bdb2 = yes ; then
1629 if test $ol_with_ldbm_api != auto -a \
1630 $ol_with_ldbm_api != db2 ; then
1631 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1634 ol_with_ldbm_api=db2
1638 if test $ol_enable_bdb2 != no ; then
1639 if test $ol_with_ldbm_api != auto -a \
1640 $ol_with_ldbm_api != db2 ; then
1641 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1646 if test $ol_with_ldbm_api = gdbm -a \
1647 $ol_with_ldbm_type = btree ; then
1648 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1650 if test $ol_with_ldbm_api = ndbm -a \
1651 $ol_with_ldbm_type = btree ; then
1652 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1656 if test $ol_enable_slurpd = yes ; then
1657 if test $ol_with_threads = no ; then
1658 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1662 echo "$ac_t""done" 1>&6
1665 # Make sure we can run config.sub.
1666 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1667 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1670 echo $ac_n "checking host system type""... $ac_c" 1>&6
1671 echo "configure:1672: checking host system type" >&5
1674 case "$host_alias" in
1678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1679 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1681 *) host_alias=$nonopt ;;
1685 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1686 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689 echo "$ac_t""$host" 1>&6
1715 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'
1788 # Extract the first word of "ranlib", so it can be a program name with args.
1789 set dummy ranlib; ac_word=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$RANLIB"; then
1796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_RANLIB="ranlib"
1808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1811 RANLIB="$ac_cv_prog_RANLIB"
1812 if test -n "$RANLIB"; then
1813 echo "$ac_t""$RANLIB" 1>&6
1815 echo "$ac_t""no" 1>&6
1818 # Extract the first word of "gcc", so it can be a program name with args.
1819 set dummy gcc; ac_word=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1830 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f $ac_dir/$ac_word; then
1841 if test -n "$CC"; then
1842 echo "$ac_t""$CC" 1>&6
1844 echo "$ac_t""no" 1>&6
1847 if test -z "$CC"; then
1848 # Extract the first word of "cc", so it can be a program name with args.
1849 set dummy cc; ac_word=$2
1850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_word" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 for ac_dir in $ac_dummy; do
1862 test -z "$ac_dir" && ac_dir=.
1863 if test -f $ac_dir/$ac_word; then
1864 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1865 ac_prog_rejected=yes
1873 if test $ac_prog_rejected = yes; then
1874 # We found a bogon in the path, so make sure we never use it.
1875 set dummy $ac_cv_prog_CC
1877 if test $# -gt 0; then
1878 # We chose a different compiler from the bogus one.
1879 # However, it has the same basename, so the bogon will be chosen
1880 # first if we set CC to just the basename; use the full file name.
1882 set dummy "$ac_dir/$ac_word" "$@"
1890 if test -n "$CC"; then
1891 echo "$ac_t""$CC" 1>&6
1893 echo "$ac_t""no" 1>&6
1896 if test -z "$CC"; then
1897 case "`uname -s`" in
1899 # Extract the first word of "cl", so it can be a program name with args.
1900 set dummy cl; ac_word=$2
1901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1902 echo "configure:1903: checking for $ac_word" >&5
1903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 if test -n "$CC"; then
1907 ac_cv_prog_CC="$CC" # Let the user override the test.
1909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1911 for ac_dir in $ac_dummy; do
1912 test -z "$ac_dir" && ac_dir=.
1913 if test -f $ac_dir/$ac_word; then
1922 if test -n "$CC"; then
1923 echo "$ac_t""$CC" 1>&6
1925 echo "$ac_t""no" 1>&6
1930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1934 echo "configure:1935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1941 cross_compiling=$ac_cv_prog_cc_cross
1943 cat > conftest.$ac_ext << EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1950 if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1951 ac_cv_prog_cc_works=yes
1952 # If we can't run a trivial program, we are probably using a cross compiler.
1953 if (./conftest; exit) 2>/dev/null; then
1954 ac_cv_prog_cc_cross=no
1956 ac_cv_prog_cc_cross=yes
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 ac_cv_prog_cc_works=no
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 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1972 if test $ac_cv_prog_cc_works = no; then
1973 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1977 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1978 cross_compiling=$ac_cv_prog_cc_cross
1980 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether we are using GNU C" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.c <<EOF
1990 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1997 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1999 if test $ac_cv_prog_gcc = yes; then
2005 ac_test_CFLAGS="${CFLAGS+set}"
2006 ac_save_CFLAGS="$CFLAGS"
2008 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether ${CC-cc} accepts -g" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 echo 'void f(){}' > conftest.c
2014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2024 if test "$ac_test_CFLAGS" = set; then
2025 CFLAGS="$ac_save_CFLAGS"
2026 elif test $ac_cv_prog_cc_g = yes; then
2027 if test "$GCC" = yes; then
2033 if test "$GCC" = yes; then
2040 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2041 if test "${with_gnu_ld+set}" = set; then
2042 withval="$with_gnu_ld"
2043 test "$withval" = no || with_gnu_ld=yes
2050 if test "$ac_cv_prog_gcc" = yes; then
2051 # Check if gcc -print-prog-name=ld gives a path.
2052 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2053 echo "configure:2054: checking for ld used by GCC" >&5
2054 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2056 # Accept absolute paths.
2058 test -z "$LD" && LD="$ac_prog"
2061 # If it fails, then pretend we aren't using GCC.
2065 # If it is relative, then search for the first ld in PATH.
2069 elif test "$with_gnu_ld" = yes; then
2070 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2071 echo "configure:2072: checking for GNU ld" >&5
2073 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2074 echo "configure:2075: checking for non-GNU ld" >&5
2076 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 if test -z "$LD"; then
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2081 for ac_dir in $PATH; do
2082 test -z "$ac_dir" && ac_dir=.
2083 if test -f "$ac_dir/$ac_prog"; then
2084 ac_cv_path_LD="$ac_dir/$ac_prog"
2085 # Check to see if the program is GNU ld. I'd rather use --version,
2086 # but apparently some GNU ld's only accept -v.
2087 # Break only if it was the GNU/non-GNU ld that we prefer.
2088 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2089 test "$with_gnu_ld" != no && break
2091 test "$with_gnu_ld" != yes && break
2097 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2102 if test -n "$LD"; then
2103 echo "$ac_t""$LD" 1>&6
2105 echo "$ac_t""no" 1>&6
2107 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2109 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2110 echo "configure:2111: checking if the linker ($LD) is GNU ld" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2115 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2116 ac_cv_prog_gnu_ld=yes
2118 ac_cv_prog_gnu_ld=no
2122 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2125 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2126 echo "configure:2127: checking for BSD-compatible nm" >&5
2127 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2132 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2136 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/nm; then
2139 # Check to see if the nm accepts a BSD-compat flag.
2140 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2141 # nm: unknown option "B" ignored
2142 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2143 ac_cv_path_NM="$ac_dir/nm -B"
2144 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2145 ac_cv_path_NM="$ac_dir/nm -p"
2147 ac_cv_path_NM="$ac_dir/nm"
2153 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2159 echo "$ac_t""$NM" 1>&6
2162 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2163 echo "configure:2164: checking whether ln -s works" >&5
2164 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2168 if ln -s X conftestdata 2>/dev/null
2171 ac_cv_prog_LN_S="ln -s"
2176 LN_S="$ac_cv_prog_LN_S"
2177 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2178 echo "$ac_t""yes" 1>&6
2180 echo "$ac_t""no" 1>&6
2183 # Always use our own libtool.
2184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2186 # Check for any special flags to pass to ltconfig.
2188 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2189 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2190 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2191 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2192 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2194 # Some flags need to be propagated to the compiler or linker for good
2198 # Find out which ABI we are using.
2199 echo '#line 2200 "configure"' > conftest.$ac_ext
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 case "`/usr/bin/file conftest.o`" in
2217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2218 CFLAGS="$CFLAGS -belf"
2222 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2223 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2224 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2225 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2226 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2227 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2230 for ac_prog in mawk gawk nawk awk
2232 # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_word" >&5
2236 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 if test -n "$AWK"; then
2240 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2244 for ac_dir in $ac_dummy; do
2245 test -z "$ac_dir" && ac_dir=.
2246 if test -f $ac_dir/$ac_word; then
2247 ac_cv_prog_AWK="$ac_prog"
2254 AWK="$ac_cv_prog_AWK"
2255 if test -n "$AWK"; then
2256 echo "$ac_t""$AWK" 1>&6
2258 echo "$ac_t""no" 1>&6
2261 test -n "$AWK" && break
2264 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2265 echo "configure:2266: checking whether ln -s works" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2270 if ln -s X conftestdata 2>/dev/null
2273 ac_cv_prog_LN_S="ln -s"
2278 LN_S="$ac_cv_prog_LN_S"
2279 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2280 echo "$ac_t""yes" 1>&6
2282 echo "$ac_t""no" 1>&6
2286 # Extract the first word of "sendmail", so it can be a program name with args.
2287 set dummy sendmail; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2295 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2298 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2302 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2303 for ac_dir in $ac_dummy; do
2304 test -z "$ac_dir" && ac_dir=.
2305 if test -f $ac_dir/$ac_word; then
2306 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2311 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2315 SENDMAIL="$ac_cv_path_SENDMAIL"
2316 if test -n "$SENDMAIL"; then
2317 echo "$ac_t""$SENDMAIL" 1>&6
2319 echo "$ac_t""no" 1>&6
2322 # Extract the first word of "vi", so it can be a program name with args.
2323 set dummy vi; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2331 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2334 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="$PATH:/usr/ucb"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2347 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2351 EDITOR="$ac_cv_path_EDITOR"
2352 if test -n "$EDITOR"; then
2353 echo "$ac_t""$EDITOR" 1>&6
2355 echo "$ac_t""no" 1>&6
2358 # Extract the first word of "finger", so it can be a program name with args.
2359 set dummy finger; ac_word=$2
2360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_word" >&5
2362 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2367 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2370 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2374 ac_dummy="$PATH:/usr/ucb"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_path_FINGER="$ac_dir/$ac_word"
2383 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2387 FINGER="$ac_cv_path_FINGER"
2388 if test -n "$FINGER"; then
2389 echo "$ac_t""$FINGER" 1>&6
2391 echo "$ac_t""no" 1>&6
2395 if test $ol_enable_perl = yes ; then
2396 # Extract the first word of "perl", so it can be a program name with args.
2397 set dummy perl; ac_word=$2
2398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2399 echo "configure:2400: checking for $ac_word" >&5
2400 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2405 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2408 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2413 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2416 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2421 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2425 PERLBIN="$ac_cv_path_PERLBIN"
2426 if test -n "$PERLBIN"; then
2427 echo "$ac_t""$PERLBIN" 1>&6
2429 echo "$ac_t""no" 1>&6
2433 if test "no$PERLBIN" = "no" ; then
2437 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2438 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2441 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2442 echo "configure:2443: checking how to run the C preprocessor" >&5
2443 # On Suns, sometimes $CPP names a directory.
2444 if test -n "$CPP" && test -d "$CPP"; then
2447 if test -z "$CPP"; then
2448 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 # This must be in double quotes, not single quotes, because CPP may get
2452 # substituted into the Makefile and "${CC-cc}" will confuse make.
2454 # On the NeXT, cc -E runs the code through the compiler's parser,
2455 # not just through cpp.
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2463 { (eval echo configure:2464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2465 if test -z "$ac_err"; then
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 CPP="${CC-cc} -E -traditional-cpp"
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 CPP="${CC-cc} -nologo -E"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2497 { (eval echo configure:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2499 if test -z "$ac_err"; then
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2513 ac_cv_prog_CPP="$CPP"
2515 CPP="$ac_cv_prog_CPP"
2517 ac_cv_prog_CPP="$CPP"
2519 echo "$ac_t""$CPP" 1>&6
2522 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2523 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2525 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2526 echo "configure: warning: programs compiled here do run here..." 1>&2
2527 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2529 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2530 echo "configure: warning: programs compiled here do not run here..." 1>&2
2531 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2534 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2535 echo "configure:2536: checking for AIX" >&5
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "yes" >/dev/null 2>&1; then
2547 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2548 #define _ALL_SOURCE 1
2553 echo "$ac_t""no" 1>&6
2558 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2559 echo "configure:2560: checking for POSIXized ISC" >&5
2560 if test -d /etc/conf/kconfig.d &&
2561 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2563 echo "$ac_t""yes" 1>&6
2564 ISC=yes # If later tests want to check for ISC.
2565 cat >> confdefs.h <<\EOF
2566 #define _POSIX_SOURCE 1
2569 if test "$GCC" = yes; then
2575 echo "$ac_t""no" 1>&6
2579 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2581 echo "configure:2582: checking for minix/config.h" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <minix/config.h>
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2609 echo "$ac_t""no" 1>&6
2613 if test "$MINIX" = yes; then
2614 cat >> confdefs.h <<\EOF
2615 #define _POSIX_SOURCE 1
2618 cat >> confdefs.h <<\EOF
2619 #define _POSIX_1_SOURCE 2
2622 cat >> confdefs.h <<\EOF
2629 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2630 echo "configure:2631: checking for Cygwin environment" >&5
2631 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2641 #define __CYGWIN__ __CYGWIN32__
2646 if { (eval echo configure:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2659 echo "$ac_t""$ac_cv_cygwin" 1>&6
2661 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2662 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2663 echo "configure:2664: checking for mingw32 environment" >&5
2664 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2675 if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2688 echo "$ac_t""$ac_cv_mingw32" 1>&6
2690 test "$ac_cv_mingw32" = yes && MINGW32=yes
2693 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2694 echo "configure:2695: checking for executable suffix" >&5
2695 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2702 echo 'int main () { return 0; }' > conftest.$ac_ext
2704 if { (eval echo configure:2705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2705 for file in conftest.*; do
2707 *.c | *.o | *.obj) ;;
2708 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2712 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2715 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2720 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2721 echo "$ac_t""${ac_cv_exeext}" 1>&6
2724 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2725 echo "configure:2726: checking for object suffix" >&5
2726 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2730 echo 'int i = 1;' > conftest.$ac_ext
2731 if { (eval echo configure:2732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 for ac_file in conftest.*; do
2735 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2739 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2744 echo "$ac_t""$ac_cv_objext" 1>&6
2745 OBJEXT=$ac_cv_objext
2746 ac_objext=$ac_cv_objext
2752 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2753 echo "configure:2754: checking for ${CC-cc} option to accept ANSI C" >&5
2754 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 am_cv_prog_cc_stdc=no
2759 # Don't try gcc -ansi; that turns off useful extensions and
2760 # breaks some systems' header files.
2761 # AIX -qlanglvl=ansi
2762 # Ultrix and OSF/1 -std1
2763 # HP-UX -Aa -D_HPUX_SOURCE
2764 # SVR4 -Xc -D__EXTENSIONS__
2765 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2767 CC="$ac_save_CC $ac_arg"
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2773 #include <sys/types.h>
2774 #include <sys/stat.h>
2775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2776 struct buf { int x; };
2777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2778 static char *e (p, i)
2784 static char *f (char * (*g) (char **, int), char **p, ...)
2789 s = g (p, va_arg (v,int));
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2808 am_cv_prog_cc_stdc="$ac_arg"; break
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2819 if test -z "$am_cv_prog_cc_stdc"; then
2820 echo "$ac_t""none needed" 1>&6
2822 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2824 case "x$am_cv_prog_cc_stdc" in
2826 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2829 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2830 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2836 echo $ac_n "checking for socket""... $ac_c" 1>&6
2837 echo "configure:2838: checking for socket" >&5
2838 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2844 /* System header to define __stub macros and hopefully few prototypes,
2845 which can conflict with char socket(); below. */
2847 /* Override any gcc2 internal prototype to avoid an error. */
2848 /* We use char because int might match the return type of a gcc2
2849 builtin and then its argument prototype would still apply. */
2854 /* The GNU C library defines this for functions which it implements
2855 to always fail with ENOSYS. Some functions are actually named
2856 something starting with __ and the normal name is an alias. */
2857 #if defined (__stub_socket) || defined (__stub___socket)
2865 if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 eval "ac_cv_func_socket=yes"
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 eval "ac_cv_func_socket=no"
2877 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2881 echo "$ac_t""no" 1>&6
2883 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2884 echo "configure:2885: checking for main in -lsocket" >&5
2885 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 ac_save_LIBS="$LIBS"
2890 LIBS="-lsocket $LIBS"
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2901 eval "ac_cv_lib_$ac_lib_var=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 eval "ac_cv_lib_$ac_lib_var=no"
2909 LIBS="$ac_save_LIBS"
2912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2916 cat >> confdefs.h <<EOF
2917 #define $ac_tr_lib 1
2920 LIBS="-lsocket $LIBS"
2923 echo "$ac_t""no" 1>&6
2926 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2927 echo "configure:2928: checking for main in -lnet" >&5
2928 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 ac_save_LIBS="$LIBS"
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2944 eval "ac_cv_lib_$ac_lib_var=yes"
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 eval "ac_cv_lib_$ac_lib_var=no"
2952 LIBS="$ac_save_LIBS"
2955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2956 echo "$ac_t""yes" 1>&6
2957 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2959 cat >> confdefs.h <<EOF
2960 #define $ac_tr_lib 1
2966 echo "$ac_t""no" 1>&6
2969 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2970 echo "configure:2971: checking for main in -lnsl_s" >&5
2971 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 ac_save_LIBS="$LIBS"
2976 LIBS="-lnsl_s $LIBS"
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2985 if { (eval echo configure:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2987 eval "ac_cv_lib_$ac_lib_var=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 eval "ac_cv_lib_$ac_lib_var=no"
2995 LIBS="$ac_save_LIBS"
2998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3000 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3002 cat >> confdefs.h <<EOF
3003 #define $ac_tr_lib 1
3006 LIBS="-lnsl_s $LIBS"
3009 echo "$ac_t""no" 1>&6
3012 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3013 echo "configure:3014: checking for main in -lnsl" >&5
3014 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 ac_save_LIBS="$LIBS"
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3030 eval "ac_cv_lib_$ac_lib_var=yes"
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 eval "ac_cv_lib_$ac_lib_var=no"
3038 LIBS="$ac_save_LIBS"
3041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3045 cat >> confdefs.h <<EOF
3046 #define $ac_tr_lib 1
3052 echo "$ac_t""no" 1>&6
3055 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3056 echo "configure:3057: checking for socket in -linet" >&5
3057 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 ac_save_LIBS="$LIBS"
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 /* Override any gcc2 internal prototype to avoid an error. */
3067 /* We use char because int might match the return type of a gcc2
3068 builtin and then its argument prototype would still apply. */
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 eval "ac_cv_lib_$ac_lib_var=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 eval "ac_cv_lib_$ac_lib_var=no"
3085 LIBS="$ac_save_LIBS"
3088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3092 cat >> confdefs.h <<EOF
3093 #define $ac_tr_lib 1
3099 echo "$ac_t""no" 1>&6
3102 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3103 echo "configure:3104: checking for main in -lgen" >&5
3104 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 ac_save_LIBS="$LIBS"
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120 eval "ac_cv_lib_$ac_lib_var=yes"
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3125 eval "ac_cv_lib_$ac_lib_var=no"
3128 LIBS="$ac_save_LIBS"
3131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3132 echo "$ac_t""yes" 1>&6
3133 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3135 cat >> confdefs.h <<EOF
3136 #define $ac_tr_lib 1
3142 echo "$ac_t""no" 1>&6
3149 for ac_func in res_search
3151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3152 echo "configure:3153: checking for $ac_func" >&5
3153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 /* System header to define __stub macros and hopefully few prototypes,
3160 which can conflict with char $ac_func(); below. */
3162 /* Override any gcc2 internal prototype to avoid an error. */
3163 /* We use char because int might match the return type of a gcc2
3164 builtin and then its argument prototype would still apply. */
3169 /* The GNU C library defines this for functions which it implements
3170 to always fail with ENOSYS. Some functions are actually named
3171 something starting with __ and the normal name is an alias. */
3172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182 eval "ac_cv_func_$ac_func=yes"
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3187 eval "ac_cv_func_$ac_func=no"
3192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
3194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3195 cat >> confdefs.h <<EOF
3196 #define $ac_tr_func 1
3200 echo "$ac_t""no" 1>&6
3204 if test $ac_cv_func_res_search = "no" ; then
3205 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3206 echo "configure:3207: checking for res_search in -lbind" >&5
3207 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 ac_save_LIBS="$LIBS"
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* Override any gcc2 internal prototype to avoid an error. */
3217 /* We use char because int might match the return type of a gcc2
3218 builtin and then its argument prototype would still apply. */
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_lib_$ac_lib_var=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_lib_$ac_lib_var=no"
3235 LIBS="$ac_save_LIBS"
3238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_lib 1
3249 echo "$ac_t""no" 1>&6
3252 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3253 cat >> confdefs.h <<\EOF
3254 #define HAVE_RES_SEARCH 1
3258 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3259 echo "configure:3260: checking for res_search in -lresolv" >&5
3260 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 ac_save_LIBS="$LIBS"
3265 LIBS="-lresolv $LIBS"
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_lib_$ac_lib_var=no"
3288 LIBS="$ac_save_LIBS"
3291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3295 cat >> confdefs.h <<EOF
3296 #define $ac_tr_lib 1
3299 LIBS="-lresolv $LIBS"
3302 echo "$ac_t""no" 1>&6
3305 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3306 cat >> confdefs.h <<\EOF
3307 #define HAVE_RES_SEARCH 1
3314 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3315 echo "configure:3316: checking for sigset in -lV3" >&5
3316 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_save_LIBS="$LIBS"
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 eval "ac_cv_lib_$ac_lib_var=no"
3344 LIBS="$ac_save_LIBS"
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3351 cat >> confdefs.h <<EOF
3352 #define $ac_tr_lib 1
3358 echo "$ac_t""no" 1>&6
3364 if test $ol_enable_ldapd != no ; then
3365 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3366 echo "configure:3367: checking for main in -lxtpp" >&5
3367 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 ac_save_LIBS="$LIBS"
3372 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3383 eval "ac_cv_lib_$ac_lib_var=yes"
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3388 eval "ac_cv_lib_$ac_lib_var=no"
3391 LIBS="$ac_save_LIBS"
3394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3398 cat >> confdefs.h <<\EOF
3402 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3405 echo "$ac_t""no" 1>&6
3409 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3410 echo "configure:3411: checking for main in -ldsap" >&5
3411 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 ac_save_LIBS="$LIBS"
3416 LIBS="-ldsap -lisode $LIBS"
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3425 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3427 eval "ac_cv_lib_$ac_lib_var=yes"
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3432 eval "ac_cv_lib_$ac_lib_var=no"
3435 LIBS="$ac_save_LIBS"
3438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3439 echo "$ac_t""yes" 1>&6
3442 cat >> confdefs.h <<\EOF
3446 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3449 echo "$ac_t""no" 1>&6
3453 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3454 echo "configure:3455: checking for main in -lisode" >&5
3455 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 ac_save_LIBS="$LIBS"
3460 LIBS="-lisode $LIBS"
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3471 eval "ac_cv_lib_$ac_lib_var=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3476 eval "ac_cv_lib_$ac_lib_var=no"
3479 LIBS="$ac_save_LIBS"
3482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3486 cat >> confdefs.h <<\EOF
3487 #define HAVE_ISODE 1
3490 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3493 echo "$ac_t""no" 1>&6
3499 if test $ol_link_isode != no; then
3500 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3501 echo "configure:3502: checking for main in -lpp" >&5
3502 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 ac_save_LIBS="$LIBS"
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3516 if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3518 eval "ac_cv_lib_$ac_lib_var=yes"
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 eval "ac_cv_lib_$ac_lib_var=no"
3526 LIBS="$ac_save_LIBS"
3529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3530 echo "$ac_t""yes" 1>&6
3532 cat >> confdefs.h <<\EOF
3536 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3539 echo "$ac_t""no" 1>&6
3544 # Extract the first word of "pepsy", so it can be a program name with args.
3545 set dummy pepsy; ac_word=$2
3546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3547 echo "configure:3548: checking for $ac_word" >&5
3548 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3556 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3561 for ac_dir in $ac_dummy; do
3562 test -z "$ac_dir" && ac_dir=.
3563 if test -f $ac_dir/$ac_word; then
3564 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3572 PEPSY="$ac_cv_path_PEPSY"
3573 if test -n "$PEPSY"; then
3574 echo "$ac_t""$PEPSY" 1>&6
3576 echo "$ac_t""no" 1>&6
3583 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3584 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_hdr" >&5
3589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3598 { (eval echo configure:3599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3600 if test -z "$ac_err"; then
3602 eval "ac_cv_header_$ac_safe=yes"
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 eval "ac_cv_header_$ac_safe=no"
3612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3613 echo "$ac_t""yes" 1>&6
3614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3615 cat >> confdefs.h <<EOF
3616 #define $ac_tr_hdr 1
3620 echo "$ac_t""no" 1>&6
3625 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3626 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3627 echo "configure:3628: checking for main in -lkrb4" >&5
3628 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 ac_save_LIBS="$LIBS"
3633 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3644 eval "ac_cv_lib_$ac_lib_var=yes"
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 eval "ac_cv_lib_$ac_lib_var=no"
3652 LIBS="$ac_save_LIBS"
3655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3659 echo "$ac_t""no" 1>&6
3664 if test $have_k5 = yes ; then
3665 ol_with_kerberos=found
3666 ol_link_kerberos=yes
3668 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3670 LIBS="$KRB_LIBS $LIBS"
3672 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3673 echo "configure:3674: checking for des_debug in Kerberos libraries" >&5
3674 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3679 LIBS="$KRB_LIBS $LIBS"
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3684 #include <kerberosIV/krb.h>
3685 #include <kerberosIV/des.h>
3686 extern int des_debug;
3694 if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3696 ol_cv_var_des_debug=yes
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3701 ol_cv_var_des_debug=no
3708 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3710 if test $ol_cv_var_des_debug= yes ; then
3711 cat >> confdefs.h <<\EOF
3712 #define HAVE_DES_DEBUG 1
3722 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3723 for ac_hdr in krb.h des.h
3725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3727 echo "configure:3728: checking for $ac_hdr" >&5
3728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3737 { (eval echo configure:3738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3739 if test -z "$ac_err"; then
3741 eval "ac_cv_header_$ac_safe=yes"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 eval "ac_cv_header_$ac_safe=no"
3751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3754 cat >> confdefs.h <<EOF
3755 #define $ac_tr_hdr 1
3759 echo "$ac_t""no" 1>&6
3764 if test $ac_cv_header_krb_h = yes ; then
3765 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3766 echo "configure:3767: checking for main in -lkrb" >&5
3767 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_save_LIBS="$LIBS"
3772 LIBS="-lkrb -ldes $LIBS"
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 eval "ac_cv_lib_$ac_lib_var=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_lib_$ac_lib_var=no"
3791 LIBS="$ac_save_LIBS"
3794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3798 echo "$ac_t""no" 1>&6
3803 if test $have_k4 = yes ; then
3804 ol_with_kerberos=found
3805 ol_link_kerberos=yes
3807 KRB_LIBS="-lkrb -ldes"
3812 if test $ol_link_kerberos = yes ; then
3813 cat >> confdefs.h <<\EOF
3814 #define HAVE_KERBEROS 1
3820 if test $ol_with_tls != no ; then
3824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_hdr" >&5
3827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3840 eval "ac_cv_header_$ac_safe=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_header_$ac_safe=no"
3850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_hdr 1
3858 echo "$ac_t""no" 1>&6
3863 if test $ac_cv_header_ssl_h = yes ; then
3864 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3865 echo "configure:3866: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3866 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3871 LIBS="-lssl -lcrypto $LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3878 char SSLeay_add_ssl_algorithms();
3881 SSLeay_add_ssl_algorithms()
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3902 echo "$ac_t""no" 1>&6
3907 if test $have_ssleay = no ; then
3908 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
3909 echo "configure:3910: checking for ssl3_accept in -lssl" >&5
3910 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
3911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 ac_save_LIBS="$LIBS"
3915 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3928 if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3930 eval "ac_cv_lib_$ac_lib_var=yes"
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3935 eval "ac_cv_lib_$ac_lib_var=no"
3938 LIBS="$ac_save_LIBS"
3941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3946 echo "$ac_t""no" 1>&6
3952 if test $have_ssleay = yes ; then
3956 cat >> confdefs.h <<\EOF
3957 #define HAVE_SSLEAY 1
3961 if test $need_rsaref = yes; then
3962 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
3964 TLS_LIBS="-lssl -lcrypto"
3970 if test $ol_link_tls = yes ; then
3971 cat >> confdefs.h <<\EOF
3978 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3979 -o $ol_with_threads = posix ; then
3981 for ac_hdr in pthread.h sched.h
3983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_hdr" >&5
3986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3995 { (eval echo configure:3996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3997 if test -z "$ac_err"; then
3999 eval "ac_cv_header_$ac_safe=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_header_$ac_safe=no"
4009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_hdr 1
4017 echo "$ac_t""no" 1>&6
4022 if test $ac_cv_header_pthread_h = yes ; then
4023 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4024 echo "configure:4025: checking POSIX thread version" >&5
4025 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4033 # include <pthread.h>
4034 /* this check could be improved */
4035 # ifdef PTHREAD_ONCE_INIT
4036 pthread_version_final
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 egrep "pthread_version_final" >/dev/null 2>&1; then
4043 ol_pthread_final=yes
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4055 # include <pthread.h>
4056 /* this check could be improved */
4057 # ifdef pthread_once_init
4058 pthread_version_draft4
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4065 ol_pthread_draft4=yes
4068 ol_pthread_draft4=no
4073 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4074 ol_cv_pthread_version=final
4075 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4076 ol_cv_pthread_version=draft4
4078 ol_cv_pthread_version=unknown
4083 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4086 if test $ol_cv_pthread_version = final ; then
4087 cat >> confdefs.h <<\EOF
4088 #define HAVE_PTHREADS_FINAL 1
4091 elif test $ol_cv_pthread_version = draft4 ; then
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_PTHREADS_D4 1
4097 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4100 # consider threads found
4101 ol_with_threads=found
4104 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4105 echo "configure:4106: checking for LinuxThreads" >&5
4106 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4110 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4111 if test "$res" -gt 0 ; then
4112 ol_cv_linux_threads=yes
4114 ol_cv_linux_threads=no
4119 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4122 if test $ol_cv_linux_threads = yes ; then
4123 cat >> confdefs.h <<\EOF
4124 #define HAVE_LINUX_THREADS 1
4130 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4131 echo "configure:4132: checking for pthread_create" >&5
4132 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 /* System header to define __stub macros and hopefully few prototypes,
4139 which can conflict with char pthread_create(); below. */
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144 char pthread_create();
4148 /* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 eval "ac_cv_func_pthread_create=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 eval "ac_cv_func_pthread_create=no"
4171 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4175 echo "$ac_t""no" 1>&6
4179 if test $ol_link_threads = no ; then
4180 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4181 echo "configure:4182: checking for pthread_create with -kthread" >&5
4182 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4187 LIBS="-kthread $LIBS"
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 #include <pthread.h>
4194 #if HAVE_PTHREADS_D4
4195 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4197 pthread_create(NULL,NULL,NULL,NULL);
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4204 ol_cv_kthread_flag=yes
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 ol_cv_kthread_flag=no
4216 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4218 if test $ol_cv_kthread_flag = yes ; then
4219 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4220 ol_link_threads=posix
4224 if test $ol_link_threads = no ; then
4225 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4226 echo "configure:4227: checking for pthread_create with -pthread" >&5
4227 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4232 LIBS="-pthread $LIBS"
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #include <pthread.h>
4239 #if HAVE_PTHREADS_D4
4240 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4242 pthread_create(NULL,NULL,NULL,NULL);
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 ol_cv_pthread_flag=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 ol_cv_pthread_flag=no
4261 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4263 if test $ol_cv_pthread_flag = yes ; then
4264 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4265 ol_link_threads=posix
4269 if test $ol_link_threads = no ; then
4270 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4271 echo "configure:4272: checking for pthread_create with -pthreads" >&5
4272 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4277 LIBS="-pthreads $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <pthread.h>
4284 #if HAVE_PTHREADS_D4
4285 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4287 pthread_create(NULL,NULL,NULL,NULL);
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4294 ol_cv_pthreads_flag=yes
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 ol_cv_pthreads_flag=no
4306 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4308 if test $ol_cv_pthreads_flag = yes ; then
4309 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4310 ol_link_threads=posix
4314 if test $ol_link_threads = no ; then
4315 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4316 echo "configure:4317: checking for pthread_create with -thread" >&5
4317 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4322 LIBS="-thread $LIBS"
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 char pthread_create();
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4333 ol_cv_thread_flag=yes
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4338 ol_cv_thread_flag=no
4345 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4347 if test $ol_cv_thread_flag = yes ; then
4348 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4349 ol_link_threads=posix
4353 if test $ol_link_threads = no ; then
4354 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4355 echo "configure:4356: checking for pthread_create with -mt" >&5
4356 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 char pthread_create();
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4372 ol_cv_thread_flag=yes
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 ol_cv_thread_flag=no
4384 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4386 if test $ol_cv_thread_flag = yes ; then
4387 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4388 ol_link_threads=posix
4392 if test $ol_link_threads = no ; then
4394 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4395 echo "configure:4396: checking for pthread_mutex_unlock in -lpthread" >&5
4396 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 ac_save_LIBS="$LIBS"
4401 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4408 char pthread_mutex_unlock();
4411 pthread_mutex_unlock()
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 eval "ac_cv_lib_$ac_lib_var=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 eval "ac_cv_lib_$ac_lib_var=no"
4424 LIBS="$ac_save_LIBS"
4427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4430 ol_link_threads=posix
4431 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4432 if test $ol_with_yielding_select = auto ; then
4433 ol_with_yielding_select=yes
4437 echo "$ac_t""no" 1>&6
4444 if test $ol_link_threads = no ; then
4446 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4447 echo "configure:4448: checking for pthread_mutex_lock in -lpthread" >&5
4448 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 ac_save_LIBS="$LIBS"
4453 LIBS="-lpthread -lmach -lexc $LIBS"
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char pthread_mutex_lock();
4463 pthread_mutex_lock()
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4482 ol_link_threads=posix
4483 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4484 if test $ol_with_yielding_select = auto ; then
4485 ol_with_yielding_select=yes
4489 echo "$ac_t""no" 1>&6
4496 if test $ol_link_threads = no ; then
4498 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4499 echo "configure:4500: checking for pthread_mutex_trylock in -lpthread" >&5
4500 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 ac_save_LIBS="$LIBS"
4505 LIBS="-lpthread -lexc $LIBS"
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 /* Override any gcc2 internal prototype to avoid an error. */
4510 /* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4512 char pthread_mutex_trylock();
4515 pthread_mutex_trylock()
4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4520 eval "ac_cv_lib_$ac_lib_var=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4525 eval "ac_cv_lib_$ac_lib_var=no"
4528 LIBS="$ac_save_LIBS"
4531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4532 echo "$ac_t""yes" 1>&6
4534 ol_link_threads=posix
4535 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4536 if test $ol_with_yielding_select = auto ; then
4537 ol_with_yielding_select=yes
4541 echo "$ac_t""no" 1>&6
4548 if test $ol_link_threads = no ; then
4550 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4551 echo "configure:4552: checking for pthread_create in -lpthread" >&5
4552 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 ac_save_LIBS="$LIBS"
4557 LIBS="-lpthread $LIBS"
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* Override any gcc2 internal prototype to avoid an error. */
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4564 char pthread_create();
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4572 eval "ac_cv_lib_$ac_lib_var=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 eval "ac_cv_lib_$ac_lib_var=no"
4580 LIBS="$ac_save_LIBS"
4583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4586 ol_link_threads=posix
4587 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4589 echo "$ac_t""no" 1>&6
4596 if test $ol_link_threads = no ; then
4598 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4599 echo "configure:4600: checking for pthread_create in -lc_r" >&5
4600 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 ac_save_LIBS="$LIBS"
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4612 char pthread_create();
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 eval "ac_cv_lib_$ac_lib_var=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4625 eval "ac_cv_lib_$ac_lib_var=no"
4628 LIBS="$ac_save_LIBS"
4631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4634 ol_link_threads=posix
4635 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4637 echo "$ac_t""no" 1>&6
4644 if test $ol_link_threads = no ; then
4646 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4647 echo "configure:4648: checking for pthread_create in -lpthreads" >&5
4648 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 ac_save_LIBS="$LIBS"
4653 LIBS="-lpthreads $LIBS"
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4660 char pthread_create();
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4668 eval "ac_cv_lib_$ac_lib_var=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_lib_$ac_lib_var=no"
4676 LIBS="$ac_save_LIBS"
4679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4682 ol_link_threads=posix
4683 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4685 echo "$ac_t""no" 1>&6
4692 if test $ol_link_threads = no ; then
4694 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4695 echo "configure:4696: checking for pthread_join in -lpthreads" >&5
4696 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 ac_save_LIBS="$LIBS"
4701 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4708 char pthread_join();
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 eval "ac_cv_lib_$ac_lib_var=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_lib_$ac_lib_var=no"
4724 LIBS="$ac_save_LIBS"
4727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4730 ol_link_threads=posix
4731 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4734 echo "$ac_t""no" 1>&6
4741 if test $ol_link_threads = no ; then
4742 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4743 echo "configure:4744: checking for pthread_create with -threads" >&5
4744 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4749 LIBS="-threads $LIBS"
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 char pthread_create();
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4762 ol_cv_thread_flag=yes
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4767 ol_cv_thread_flag=no
4774 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4776 if test $ol_cv_thread_flag = yes ; then
4777 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4778 ol_link_threads=posix
4782 if test $ol_link_threads = no ; then
4784 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4785 echo "configure:4786: checking for pthread_mutex_unlock in -lpthreads" >&5
4786 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 ac_save_LIBS="$LIBS"
4791 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4798 char pthread_mutex_unlock();
4801 pthread_mutex_unlock()
4804 if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4806 eval "ac_cv_lib_$ac_lib_var=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 eval "ac_cv_lib_$ac_lib_var=no"
4814 LIBS="$ac_save_LIBS"
4817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4820 ol_link_threads=posix
4821 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4822 if test $ol_with_yielding_select = auto ; then
4823 ol_with_yielding_select=yes
4827 echo "$ac_t""no" 1>&6
4834 if test $ol_link_threads = no ; then
4836 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4837 echo "configure:4838: checking for pthread_mutex_lock in -lpthreads" >&5
4838 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 ac_save_LIBS="$LIBS"
4843 LIBS="-lpthreads -lmach -lexc $LIBS"
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4850 char pthread_mutex_lock();
4853 pthread_mutex_lock()
4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858 eval "ac_cv_lib_$ac_lib_var=yes"
4860 echo "configure: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4863 eval "ac_cv_lib_$ac_lib_var=no"
4866 LIBS="$ac_save_LIBS"
4869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4872 ol_link_threads=posix
4873 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4874 if test $ol_with_yielding_select = auto ; then
4875 ol_with_yielding_select=yes
4879 echo "$ac_t""no" 1>&6
4886 if test $ol_link_threads = no ; then
4888 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4889 echo "configure:4890: checking for pthread_mutex_trylock in -lpthreads" >&5
4890 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 ac_save_LIBS="$LIBS"
4895 LIBS="-lpthreads -lexc $LIBS"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char pthread_mutex_trylock();
4905 pthread_mutex_trylock()
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4915 eval "ac_cv_lib_$ac_lib_var=no"
4918 LIBS="$ac_save_LIBS"
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4924 ol_link_threads=posix
4925 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4926 if test $ol_with_yielding_select = auto ; then
4927 ol_with_yielding_select=yes
4931 echo "$ac_t""no" 1>&6
4938 if test $ol_link_threads != no ; then
4939 cat >> confdefs.h <<\EOF
4940 #define HAVE_PTHREADS 1
4944 save_CPPFLAGS="$CPPFLAGS"
4946 LIBS="$LTHREAD_LIBS $LIBS"
4948 for ac_func in sched_yield pthread_yield
4950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4951 echo "configure:4952: checking for $ac_func" >&5
4952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 /* System header to define __stub macros and hopefully few prototypes,
4959 which can conflict with char $ac_func(); below. */
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4968 /* The GNU C library defines this for functions which it implements
4969 to always fail with ENOSYS. Some functions are actually named
4970 something starting with __ and the normal name is an alias. */
4971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981 eval "ac_cv_func_$ac_func=yes"
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 eval "ac_cv_func_$ac_func=no"
4991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4994 cat >> confdefs.h <<EOF
4995 #define $ac_tr_func 1
4999 echo "$ac_t""no" 1>&6
5004 if test $ac_cv_func_sched_yield = no -a \
5005 $ac_cv_func_pthread_yield = no ; then
5006 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5007 echo "configure:5008: checking for sched_yield in -lrt" >&5
5008 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 ac_save_LIBS="$LIBS"
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 eval "ac_cv_lib_$ac_lib_var=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 eval "ac_cv_lib_$ac_lib_var=no"
5036 LIBS="$ac_save_LIBS"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5042 cat >> confdefs.h <<\EOF
5043 #define HAVE_SCHED_YIELD 1
5046 ac_cv_func_sched_yield=yes
5048 echo "$ac_t""no" 1>&6
5049 ac_cv_func_sched_yield=no
5053 if test $ac_cv_func_sched_yield = no -a \
5054 $ac_cv_func_pthread_yield = no ; then
5055 for ac_func in thr_yield
5057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5058 echo "configure:5059: checking for $ac_func" >&5
5059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5065 /* System header to define __stub macros and hopefully few prototypes,
5066 which can conflict with char $ac_func(); below. */
5068 /* Override any gcc2 internal prototype to avoid an error. */
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5075 /* The GNU C library defines this for functions which it implements
5076 to always fail with ENOSYS. Some functions are actually named
5077 something starting with __ and the normal name is an alias. */
5078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 eval "ac_cv_func_$ac_func=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 eval "ac_cv_func_$ac_func=no"
5098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5101 cat >> confdefs.h <<EOF
5102 #define $ac_tr_func 1
5106 echo "$ac_t""no" 1>&6
5111 if test $ac_cv_func_sched_yield = no -a \
5112 $ac_cv_func_pthread_yield = no -a \
5113 "$ac_cv_func_thr_yield" = no ; then
5114 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5117 for ac_func in pthread_kill
5119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_func" >&5
5121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char $ac_func(); below. */
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 eval "ac_cv_func_$ac_func=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_func_$ac_func=no"
5160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5163 cat >> confdefs.h <<EOF
5164 #define $ac_tr_func 1
5168 echo "$ac_t""no" 1>&6
5173 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5174 echo "configure:5175: checking for pthread_detach with <pthread.h>" >&5
5175 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5182 #include <pthread.h>
5184 pthread_detach(NULL);
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5189 ol_cv_func_pthread_detach=yes
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 ol_cv_func_pthread_detach=no
5200 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5202 if test $ol_cv_func_pthread_detach = no ; then
5203 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5206 cat >> confdefs.h <<\EOF
5207 #define HAVE_PTHREAD_DETACH 1
5212 pthread_setconcurrency \
5213 pthread_getconcurrency \
5214 thr_setconcurrency \
5215 thr_getconcurrency \
5218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5219 echo "configure:5220: checking for $ac_func" >&5
5220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 /* System header to define __stub macros and hopefully few prototypes,
5227 which can conflict with char $ac_func(); below. */
5229 /* Override any gcc2 internal prototype to avoid an error. */
5230 /* We use char because int might match the return type of a gcc2
5231 builtin and then its argument prototype would still apply. */
5236 /* The GNU C library defines this for functions which it implements
5237 to always fail with ENOSYS. Some functions are actually named
5238 something starting with __ and the normal name is an alias. */
5239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 eval "ac_cv_func_$ac_func=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 eval "ac_cv_func_$ac_func=no"
5259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5260 echo "$ac_t""yes" 1>&6
5261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5262 cat >> confdefs.h <<EOF
5263 #define $ac_tr_func 1
5267 echo "$ac_t""no" 1>&6
5272 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5273 echo "configure:5274: checking if pthread_create() works" >&5
5274 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5278 if test "$cross_compiling" = yes; then
5279 ol_cv_pthread_create_works=yes
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5285 #include <pthread.h>
5287 #define NULL (void*)0
5290 static void *task(p)
5293 return (void *) (p == NULL);
5296 int main(argc, argv)
5301 #if HAVE_PTHREADS_D4
5302 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5304 exit(pthread_create(&t, NULL, task, NULL));
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5311 ol_cv_pthread_create_works=yes
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5316 ol_cv_pthread_create_works=no
5323 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5325 if test $ol_cv_pthread_create_works = no ; then
5326 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5329 if test $ol_with_yielding_select = auto ; then
5330 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5331 echo "configure:5332: checking if select yields when using pthreads" >&5
5332 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5336 if test "$cross_compiling" = yes; then
5338 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5344 #include <sys/types.h>
5345 #include <sys/time.h>
5347 #include <pthread.h>
5349 #define NULL (void*) 0
5352 static int fildes[2];
5354 static void *task(p)
5366 FD_SET(fildes[0], &rfds);
5368 /* we're not interested in any fds */
5369 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5376 exit(0); /* if we exit here, the select blocked the whole process */
5379 int main(argc, argv)
5385 /* create a pipe to select */
5386 if(pipe(&fildes[0])) {
5391 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5392 (void) pthread_setconcurrency(2);
5394 #ifdef HAVE_THR_SETCONCURRENCY
5395 /* Set Solaris LWP concurrency to 2 */
5396 thr_setconcurrency(2);
5400 #if HAVE_PTHREADS_D4
5401 pthread_create(&t, pthread_attr_default, task, NULL);
5403 pthread_create(&t, NULL, task, NULL);
5406 #if HAVE_SCHED_YIELD
5407 sched_yield(); /* make sure task runs first */
5409 #ifdef HAVE_PTHREAD_YIELD
5410 pthread_yield(); /* make sure task runs first */
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5419 ol_cv_pthread_select_yields=no
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5424 ol_cv_pthread_select_yields=yes
5431 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5433 if test $ol_cv_pthread_select_yields = yes ; then
5434 ol_with_yielding_select=yes
5438 CPPFLAGS="$save_CPPFLAGS"
5441 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5445 if test $ol_with_threads = posix ; then
5446 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5450 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5451 -o $ol_with_threads = mach ; then
5453 for ac_hdr in mach/cthreads.h
5455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_hdr" >&5
5458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5467 { (eval echo configure:5468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5469 if test -z "$ac_err"; then
5471 eval "ac_cv_header_$ac_safe=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_header_$ac_safe=no"
5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5484 cat >> confdefs.h <<EOF
5485 #define $ac_tr_hdr 1
5489 echo "$ac_t""no" 1>&6
5493 if test $ac_cv_header_mach_cthreads_h = yes ; then
5494 ol_with_threads=found
5496 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5497 echo "configure:5498: checking for cthread_fork" >&5
5498 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 /* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char cthread_fork(); below. */
5507 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5510 char cthread_fork();
5514 /* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 eval "ac_cv_func_cthread_fork=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_func_cthread_fork=no"
5537 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5541 echo "$ac_t""no" 1>&6
5545 if test $ol_link_threads = no ; then
5546 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5547 echo "configure:5548: checking for cthread_fork with -all_load" >&5
5548 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
5553 LIBS="-all_load $LIBS"
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 #include <mach/cthreads.h>
5560 cthread_fork((void *)0, (void *)0);
5564 if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566 ol_cv_cthread_all_load=yes
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 ol_cv_cthread_all_load=no
5578 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5580 if test $ol_cv_cthread_all_load = yes ; then
5581 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5582 ol_link_threads=mach
5586 if test $ol_link_threads != no ; then
5587 : check for cthread specific functionality here
5588 cat >> confdefs.h <<\EOF
5589 #define HAVE_MACH_CTHREADS 1
5593 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5597 if test $ol_with_threads = mach ; then
5598 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5602 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5603 -o $ol_with_threads = lwp ; then
5605 for ac_hdr in thread.h synch.h
5607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5609 echo "configure:5610: checking for $ac_hdr" >&5
5610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5619 { (eval echo configure:5620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5621 if test -z "$ac_err"; then
5623 eval "ac_cv_header_$ac_safe=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_header_$ac_safe=no"
5633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5636 cat >> confdefs.h <<EOF
5637 #define $ac_tr_hdr 1
5641 echo "$ac_t""no" 1>&6
5645 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5646 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5647 echo "configure:5648: checking for thr_create in -lthread" >&5
5648 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 ac_save_LIBS="$LIBS"
5653 LIBS="-lthread $LIBS"
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5668 eval "ac_cv_lib_$ac_lib_var=yes"
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 eval "ac_cv_lib_$ac_lib_var=no"
5676 LIBS="$ac_save_LIBS"
5679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5680 echo "$ac_t""yes" 1>&6
5683 echo "$ac_t""no" 1>&6
5688 if test $have_thr = yes ; then
5689 cat >> confdefs.h <<\EOF
5693 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5696 if test $ol_with_yielding_select = auto ; then
5697 ol_with_yielding_select=yes
5701 thr_setconcurrency \
5702 thr_getconcurrency \
5705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5706 echo "configure:5707: checking for $ac_func" >&5
5707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char $ac_func(); below. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5723 /* The GNU C library defines this for functions which it implements
5724 to always fail with ENOSYS. Some functions are actually named
5725 something starting with __ and the normal name is an alias. */
5726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 eval "ac_cv_func_$ac_func=yes"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 eval "ac_cv_func_$ac_func=no"
5746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5749 cat >> confdefs.h <<EOF
5750 #define $ac_tr_func 1
5754 echo "$ac_t""no" 1>&6
5761 for ac_hdr in lwp/lwp.h
5763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5765 echo "configure:5766: checking for $ac_hdr" >&5
5766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5775 { (eval echo configure:5776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5777 if test -z "$ac_err"; then
5779 eval "ac_cv_header_$ac_safe=yes"
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5785 eval "ac_cv_header_$ac_safe=no"
5789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5790 echo "$ac_t""yes" 1>&6
5791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5792 cat >> confdefs.h <<EOF
5793 #define $ac_tr_hdr 1
5797 echo "$ac_t""no" 1>&6
5801 if test $ac_cv_header_lwp_lwp_h = yes ; then
5802 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5803 echo "configure:5804: checking for lwp_create in -llwp" >&5
5804 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5808 ac_save_LIBS="$LIBS"
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 /* Override any gcc2 internal prototype to avoid an error. */
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5822 if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5824 eval "ac_cv_lib_$ac_lib_var=yes"
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5829 eval "ac_cv_lib_$ac_lib_var=no"
5832 LIBS="$ac_save_LIBS"
5835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5836 echo "$ac_t""yes" 1>&6
5839 echo "$ac_t""no" 1>&6
5844 if test $have_lwp = yes ; then
5845 cat >> confdefs.h <<\EOF
5849 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5852 if test $ol_with_yielding_select = auto ; then
5853 ol_with_yielding_select=no
5859 if test $ol_with_yielding_select = yes ; then
5860 cat >> confdefs.h <<\EOF
5861 #define HAVE_YIELDING_SELECT 1
5866 if test $ol_with_threads = manual ; then
5869 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5871 for ac_hdr in pthread.h sched.h
5873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5875 echo "configure:5876: checking for $ac_hdr" >&5
5876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5885 { (eval echo configure:5886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5887 if test -z "$ac_err"; then
5889 eval "ac_cv_header_$ac_safe=yes"
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 eval "ac_cv_header_$ac_safe=no"
5899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5900 echo "$ac_t""yes" 1>&6
5901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5902 cat >> confdefs.h <<EOF
5903 #define $ac_tr_hdr 1
5907 echo "$ac_t""no" 1>&6
5911 for ac_func in sched_yield pthread_yield
5913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5914 echo "configure:5915: checking for $ac_func" >&5
5915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5921 /* System header to define __stub macros and hopefully few prototypes,
5922 which can conflict with char $ac_func(); below. */
5924 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5931 /* The GNU C library defines this for functions which it implements
5932 to always fail with ENOSYS. Some functions are actually named
5933 something starting with __ and the normal name is an alias. */
5934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5944 eval "ac_cv_func_$ac_func=yes"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 eval "ac_cv_func_$ac_func=no"
5954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5955 echo "$ac_t""yes" 1>&6
5956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5957 cat >> confdefs.h <<EOF
5958 #define $ac_tr_func 1
5962 echo "$ac_t""no" 1>&6
5967 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5968 echo "configure:5969: checking for LinuxThreads" >&5
5969 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5973 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5974 if test "$res" -gt 0 ; then
5975 ol_cv_linux_threads=yes
5977 ol_cv_linux_threads=no
5982 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5985 for ac_hdr in mach/cthreads.h
5987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_hdr" >&5
5990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5999 { (eval echo configure:6000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6001 if test -z "$ac_err"; then
6003 eval "ac_cv_header_$ac_safe=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_header_$ac_safe=no"
6013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6016 cat >> confdefs.h <<EOF
6017 #define $ac_tr_hdr 1
6021 echo "$ac_t""no" 1>&6
6025 for ac_hdr in lwp/lwp.h
6027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6029 echo "configure:6030: checking for $ac_hdr" >&5
6030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6039 { (eval echo configure:6040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6041 if test -z "$ac_err"; then
6043 eval "ac_cv_header_$ac_safe=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_header_$ac_safe=no"
6053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6056 cat >> confdefs.h <<EOF
6057 #define $ac_tr_hdr 1
6061 echo "$ac_t""no" 1>&6
6065 for ac_hdr in thread.h synch.h
6067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6069 echo "configure:6070: checking for $ac_hdr" >&5
6070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6079 { (eval echo configure:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6081 if test -z "$ac_err"; then
6083 eval "ac_cv_header_$ac_safe=yes"
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6089 eval "ac_cv_header_$ac_safe=no"
6093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6096 cat >> confdefs.h <<EOF
6097 #define $ac_tr_hdr 1
6101 echo "$ac_t""no" 1>&6
6107 if test $ol_link_threads != no ; then
6108 cat >> confdefs.h <<\EOF
6112 cat >> confdefs.h <<\EOF
6113 #define _REENTRANT 1
6116 cat >> confdefs.h <<\EOF
6117 #define THREAD_SAFE 1
6120 cat >> confdefs.h <<\EOF
6121 #define _THREAD_SAFE 1
6124 cat >> confdefs.h <<\EOF
6125 #define THREADSAFE 1
6128 cat >> confdefs.h <<\EOF
6129 #define _THREADSAFE 1
6133 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6134 echo "configure:6135: checking for thread specific errno" >&5
6135 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6149 ol_cv_errno_thread_specific=yes
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 ol_cv_errno_thread_specific=no
6160 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6162 if test $ol_cv_errno_thread_specific != yes ; then
6163 LIBS="$LTHREAD_LIBS $LIBS"
6170 if test $ol_link_threads = no ; then
6171 if test $ol_with_threads = yes ; then
6172 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6175 if test $ol_with_threads = auto ; then
6176 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6180 cat >> confdefs.h <<\EOF
6181 #define NO_THREADS 1
6188 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6189 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6190 echo "configure:6191: checking for DB2 library" >&5
6191 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6195 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6196 echo "configure:6197: checking for db_open in -ldb" >&5
6197 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 ac_save_LIBS="$LIBS"
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6215 if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6217 eval "ac_cv_lib_$ac_lib_var=yes"
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6222 eval "ac_cv_lib_$ac_lib_var=no"
6225 LIBS="$ac_save_LIBS"
6228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6232 echo "$ac_t""no" 1>&6
6240 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_hdr" >&5
6247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6256 { (eval echo configure:6257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6258 if test -z "$ac_err"; then
6260 eval "ac_cv_header_$ac_safe=yes"
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6266 eval "ac_cv_header_$ac_safe=no"
6270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6271 echo "$ac_t""yes" 1>&6
6272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6273 cat >> confdefs.h <<EOF
6274 #define $ac_tr_hdr 1
6278 echo "$ac_t""no" 1>&6
6282 if test $ac_cv_header_db_h = yes ; then
6283 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6284 echo "configure:6285: checking if db.h is DB2" >&5
6285 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6294 /* this check could be improved */
6295 # ifdef DB_VERSION_MAJOR
6296 # if DB_VERSION_MAJOR == 2
6302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6303 egrep "__db_version_2" >/dev/null 2>&1; then
6305 ol_cv_header_db2=yes
6314 echo "$ac_t""$ol_cv_header_db2" 1>&6
6321 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6322 echo "configure:6323: checking for Berkeley DB2" >&5
6323 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6327 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6328 ol_cv_berkeley_db2=no
6330 ol_cv_berkeley_db2=yes
6335 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6336 if test $ol_cv_berkeley_db2 = yes ; then
6337 cat >> confdefs.h <<\EOF
6338 #define HAVE_BERKELEY_DB2 1
6344 if test $ol_cv_berkeley_db2 = yes ; then
6346 ol_with_ldbm_api=db2
6348 if test $ol_with_ldbm_type = hash ; then
6349 cat >> confdefs.h <<\EOF
6350 #define LDBM_USE_DBHASH 1
6354 cat >> confdefs.h <<\EOF
6355 #define LDBM_USE_DBBTREE 1
6360 if test $ol_cv_lib_db2 != yes ; then
6361 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6367 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6371 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6372 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6373 echo "configure:6374: checking for Berkeley DB library" >&5
6374 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6378 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6379 echo "configure:6380: checking for dbopen" >&5
6380 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 /* System header to define __stub macros and hopefully few prototypes,
6387 which can conflict with char dbopen(); below. */
6389 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6396 /* The GNU C library defines this for functions which it implements
6397 to always fail with ENOSYS. Some functions are actually named
6398 something starting with __ and the normal name is an alias. */
6399 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6409 eval "ac_cv_func_dbopen=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_func_dbopen=no"
6419 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6420 echo "$ac_t""yes" 1>&6
6423 echo "$ac_t""no" 1>&6
6425 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6426 echo "configure:6427: checking for dbopen in -ldb" >&5
6427 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6431 ac_save_LIBS="$LIBS"
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6447 eval "ac_cv_lib_$ac_lib_var=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6452 eval "ac_cv_lib_$ac_lib_var=no"
6455 LIBS="$ac_save_LIBS"
6458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6459 echo "$ac_t""yes" 1>&6
6462 echo "$ac_t""no" 1>&6
6473 echo "$ac_t""$ol_cv_lib_db" 1>&6
6476 for ac_hdr in db_185.h
6478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_hdr" >&5
6481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6490 { (eval echo configure:6491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6492 if test -z "$ac_err"; then
6494 eval "ac_cv_header_$ac_safe=yes"
6497 echo "configure: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6500 eval "ac_cv_header_$ac_safe=no"
6504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6507 cat >> confdefs.h <<EOF
6508 #define $ac_tr_hdr 1
6512 echo "$ac_t""no" 1>&6
6516 if test "$ol_cv_header_db2" = yes ; then
6518 ol_cv_header_db=$ac_cv_header_db_185_h
6520 ol_cv_header_db=$ac_cv_header_db_h
6525 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6526 echo "configure:6527: checking for Berkeley DB" >&5
6527 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6531 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6532 ol_cv_berkeley_db=no
6534 ol_cv_berkeley_db=yes
6539 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6540 if test $ol_cv_berkeley_db = yes ; then
6541 cat >> confdefs.h <<\EOF
6542 #define HAVE_BERKELEY_DB 1
6548 if test $ol_cv_berkeley_db = yes ; then
6552 if test $ol_with_ldbm_type = hash ; then
6553 cat >> confdefs.h <<\EOF
6554 #define LDBM_USE_DBHASH 1
6558 cat >> confdefs.h <<\EOF
6559 #define LDBM_USE_DBBTREE 1
6564 if test $ol_cv_lib_db != yes ; then
6565 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6570 if test $ol_with_ldbm_api = manual ; then
6573 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6575 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_hdr" >&5
6580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6589 { (eval echo configure:6590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6591 if test -z "$ac_err"; then
6593 eval "ac_cv_header_$ac_safe=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 eval "ac_cv_header_$ac_safe=no"
6603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6604 echo "$ac_t""yes" 1>&6
6605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6606 cat >> confdefs.h <<EOF
6607 #define $ac_tr_hdr 1
6611 echo "$ac_t""no" 1>&6
6617 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6618 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6619 ol_with_ldbm_api=none
6622 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6623 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6624 echo "configure:6625: checking for GDBM library" >&5
6625 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6629 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6630 echo "configure:6631: checking for gdbm_open" >&5
6631 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* System header to define __stub macros and hopefully few prototypes,
6638 which can conflict with char gdbm_open(); below. */
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6647 /* The GNU C library defines this for functions which it implements
6648 to always fail with ENOSYS. Some functions are actually named
6649 something starting with __ and the normal name is an alias. */
6650 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6660 eval "ac_cv_func_gdbm_open=yes"
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6665 eval "ac_cv_func_gdbm_open=no"
6670 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6674 echo "$ac_t""no" 1>&6
6676 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6677 echo "configure:6678: checking for gdbm_open in -lgdbm" >&5
6678 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6682 ac_save_LIBS="$LIBS"
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 eval "ac_cv_lib_$ac_lib_var=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 eval "ac_cv_lib_$ac_lib_var=no"
6706 LIBS="$ac_save_LIBS"
6709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ol_cv_lib_gdbm=-lgdbm
6713 echo "$ac_t""no" 1>&6
6724 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6727 for ac_hdr in gdbm.h
6729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6731 echo "configure:6732: checking for $ac_hdr" >&5
6732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6741 { (eval echo configure:6742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6743 if test -z "$ac_err"; then
6745 eval "ac_cv_header_$ac_safe=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_header_$ac_safe=no"
6755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_hdr 1
6763 echo "$ac_t""no" 1>&6
6767 echo $ac_n "checking for db""... $ac_c" 1>&6
6768 echo "configure:6769: checking for db" >&5
6769 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6773 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6781 echo "$ac_t""$ol_cv_gdbm" 1>&6
6782 if test $ol_cv_gdbm = yes ; then
6783 cat >> confdefs.h <<\EOF
6790 if test $ol_cv_gdbm = yes ; then
6792 ol_with_ldbm_api=gdbm
6794 if test $ol_cv_lib_gdbm != yes ; then
6795 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6800 if test $ol_with_ldbm_api = auto ; then
6801 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6802 elif test $ol_with_ldbm_api = ndbm ; then
6803 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6804 echo "configure:6805: checking for NDBM library" >&5
6805 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6809 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6810 echo "configure:6811: checking for dbm_open" >&5
6811 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6812 echo $ac_n "(cached) $ac_c" 1>&6
6814 cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 /* System header to define __stub macros and hopefully few prototypes,
6818 which can conflict with char dbm_open(); below. */
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6827 /* The GNU C library defines this for functions which it implements
6828 to always fail with ENOSYS. Some functions are actually named
6829 something starting with __ and the normal name is an alias. */
6830 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6840 eval "ac_cv_func_dbm_open=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_func_dbm_open=no"
6850 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6851 echo "$ac_t""yes" 1>&6
6854 echo "$ac_t""no" 1>&6
6856 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6857 echo "configure:6858: checking for dbm_open in -lndbm" >&5
6858 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 ac_save_LIBS="$LIBS"
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6878 eval "ac_cv_lib_$ac_lib_var=yes"
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6883 eval "ac_cv_lib_$ac_lib_var=no"
6886 LIBS="$ac_save_LIBS"
6889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6890 echo "$ac_t""yes" 1>&6
6891 ol_cv_lib_ndbm=-lndbm
6893 echo "$ac_t""no" 1>&6
6895 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6896 echo "configure:6897: checking for dbm_open in -ldbm" >&5
6897 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 ac_save_LIBS="$LIBS"
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6915 if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6917 eval "ac_cv_lib_$ac_lib_var=yes"
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 eval "ac_cv_lib_$ac_lib_var=no"
6925 LIBS="$ac_save_LIBS"
6928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ol_cv_lib_ndbm=-ldbm
6932 echo "$ac_t""no" 1>&6
6945 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6948 for ac_hdr in ndbm.h
6950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6952 echo "configure:6953: checking for $ac_hdr" >&5
6953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6962 { (eval echo configure:6963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6964 if test -z "$ac_err"; then
6966 eval "ac_cv_header_$ac_safe=yes"
6969 echo "configure: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6972 eval "ac_cv_header_$ac_safe=no"
6976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6977 echo "$ac_t""yes" 1>&6
6978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6979 cat >> confdefs.h <<EOF
6980 #define $ac_tr_hdr 1
6984 echo "$ac_t""no" 1>&6
6988 echo $ac_n "checking for db""... $ac_c" 1>&6
6989 echo "configure:6990: checking for db" >&5
6990 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6994 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7002 echo "$ac_t""$ol_cv_ndbm" 1>&6
7003 if test $ol_cv_ndbm = yes ; then
7004 cat >> confdefs.h <<\EOF
7011 if test $ol_cv_ndbm = yes ; then
7013 ol_with_ldbm_api=ndbm
7015 if test $ol_cv_lib_ndbm != yes ; then
7016 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7021 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7022 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7023 if test $ol_enable_ldbm = yes ; then
7024 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7027 echo "configure: warning: disabling LDBM" 1>&2
7031 if test $ol_enable_wrappers != no ; then
7032 for ac_hdr in tcpd.h
7034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7036 echo "configure:7037: checking for $ac_hdr" >&5
7037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7046 { (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7048 if test -z "$ac_err"; then
7050 eval "ac_cv_header_$ac_safe=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7056 eval "ac_cv_header_$ac_safe=no"
7060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7063 cat >> confdefs.h <<EOF
7064 #define $ac_tr_hdr 1
7068 echo "$ac_t""no" 1>&6
7073 if test $ac_cv_header_tcpd_h != yes ; then
7076 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7077 echo "configure:7078: checking for main in -lwrap" >&5
7078 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7082 ac_save_LIBS="$LIBS"
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 eval "ac_cv_lib_$ac_lib_var=yes"
7096 echo "configure: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 eval "ac_cv_lib_$ac_lib_var=no"
7102 LIBS="$ac_save_LIBS"
7105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7109 echo "$ac_t""no" 1>&6
7115 if test $have_wrappers = yes ; then
7116 cat >> confdefs.h <<\EOF
7120 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7122 echo "configure: warning: could not find -lwrap" 1>&2
7123 if test $ol_enable_wrappers = yes ; then
7124 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7127 echo "configure: warning: disabling wrappers support" 1>&2
7128 ol_enable_wrappers=no
7132 if test $ol_enable_syslog != no ; then
7133 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7134 echo "configure:7135: checking for openlog" >&5
7135 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7141 /* System header to define __stub macros and hopefully few prototypes,
7142 which can conflict with char openlog(); below. */
7144 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7151 /* The GNU C library defines this for functions which it implements
7152 to always fail with ENOSYS. Some functions are actually named
7153 something starting with __ and the normal name is an alias. */
7154 #if defined (__stub_openlog) || defined (__stub___openlog)
7162 if { (eval echo configure:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 eval "ac_cv_func_openlog=yes"
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 eval "ac_cv_func_openlog=no"
7174 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7175 echo "$ac_t""yes" 1>&6
7178 echo "$ac_t""no" 1>&6
7181 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7182 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7184 ol_enable_syslog=$ac_cv_func_openlog
7187 if test $ol_enable_dmalloc != no ; then
7188 for ac_hdr in dmalloc.h
7190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7192 echo "configure:7193: checking for $ac_hdr" >&5
7193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7202 { (eval echo configure:7203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7204 if test -z "$ac_err"; then
7206 eval "ac_cv_header_$ac_safe=yes"
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7212 eval "ac_cv_header_$ac_safe=no"
7216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7219 cat >> confdefs.h <<EOF
7220 #define $ac_tr_hdr 1
7224 echo "$ac_t""no" 1>&6
7228 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7229 echo "configure:7230: checking for dmalloc_shutdown in -ldmalloc" >&5
7230 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7234 ac_save_LIBS="$LIBS"
7235 LIBS="-ldmalloc $LIBS"
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7242 char dmalloc_shutdown();
7248 if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7250 eval "ac_cv_lib_$ac_lib_var=yes"
7252 echo "configure: failed program was:" >&5
7253 cat conftest.$ac_ext >&5
7255 eval "ac_cv_lib_$ac_lib_var=no"
7258 LIBS="$ac_save_LIBS"
7261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7262 echo "$ac_t""yes" 1>&6
7263 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7265 cat >> confdefs.h <<EOF
7266 #define $ac_tr_lib 1
7269 LIBS="-ldmalloc $LIBS"
7272 echo "$ac_t""no" 1>&6
7277 if test $ol_enable_tcl != no ; then
7280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7282 echo "configure:7283: checking for $ac_hdr" >&5
7283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7292 { (eval echo configure:7293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7294 if test -z "$ac_err"; then
7296 eval "ac_cv_header_$ac_safe=yes"
7299 echo "configure: failed program was:" >&5
7300 cat conftest.$ac_ext >&5
7302 eval "ac_cv_header_$ac_safe=no"
7306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7307 echo "$ac_t""yes" 1>&6
7308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7309 cat >> confdefs.h <<EOF
7310 #define $ac_tr_hdr 1
7314 echo "$ac_t""no" 1>&6
7319 if test $ac_cv_header_tcl_h != yes ; then
7322 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7323 echo "configure:7324: checking for main in -ltcl" >&5
7324 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7326 echo $ac_n "(cached) $ac_c" 1>&6
7328 ac_save_LIBS="$LIBS"
7330 cat > conftest.$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7340 eval "ac_cv_lib_$ac_lib_var=yes"
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7345 eval "ac_cv_lib_$ac_lib_var=no"
7348 LIBS="$ac_save_LIBS"
7351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7352 echo "$ac_t""yes" 1>&6
7353 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7355 echo "$ac_t""no" 1>&6
7360 if test $have_tcl != yes; then
7361 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7362 echo "configure:7363: checking for main in -ltcl7.6" >&5
7363 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 ac_save_LIBS="$LIBS"
7368 LIBS="-ltcl7.6 $LIBS"
7369 cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7377 if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7379 eval "ac_cv_lib_$ac_lib_var=yes"
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7384 eval "ac_cv_lib_$ac_lib_var=no"
7387 LIBS="$ac_save_LIBS"
7390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7391 echo "$ac_t""yes" 1>&6
7392 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7394 echo "$ac_t""no" 1>&6
7400 if test $have_tcl != yes; then
7401 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7402 echo "configure:7403: checking for main in -ltcl8.0" >&5
7403 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 ac_save_LIBS="$LIBS"
7408 LIBS="-ltcl8.0 $LIBS"
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7417 if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7419 eval "ac_cv_lib_$ac_lib_var=yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 eval "ac_cv_lib_$ac_lib_var=no"
7427 LIBS="$ac_save_LIBS"
7430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7431 echo "$ac_t""yes" 1>&6
7432 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7434 echo "$ac_t""no" 1>&6
7441 if test $have_tcl != yes ; then
7442 echo "configure: warning: could not find -ltcl" 1>&2
7443 if test $ol_enable_tcl = yes ; then
7444 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7451 # ud needs termcap (should insert check here)
7453 for ac_hdr in termcap.h ncurses.h
7455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7457 echo "configure:7458: checking for $ac_hdr" >&5
7458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7467 { (eval echo configure:7468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7469 if test -z "$ac_err"; then
7471 eval "ac_cv_header_$ac_safe=yes"
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7477 eval "ac_cv_header_$ac_safe=no"
7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7482 echo "$ac_t""yes" 1>&6
7483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7484 cat >> confdefs.h <<EOF
7485 #define $ac_tr_hdr 1
7489 echo "$ac_t""no" 1>&6
7494 if test $ol_link_termcap = no ; then
7495 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7496 echo "configure:7497: checking for tputs in -ltermcap" >&5
7497 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7501 ac_save_LIBS="$LIBS"
7502 LIBS="-ltermcap $LIBS"
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 /* Override any gcc2 internal prototype to avoid an error. */
7507 /* We use char because int might match the return type of a gcc2
7508 builtin and then its argument prototype would still apply. */
7515 if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7517 eval "ac_cv_lib_$ac_lib_var=yes"
7519 echo "configure: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7522 eval "ac_cv_lib_$ac_lib_var=no"
7525 LIBS="$ac_save_LIBS"
7528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7529 echo "$ac_t""yes" 1>&6
7532 echo "$ac_t""no" 1>&6
7536 if test $have_termcap = yes ; then
7537 cat >> confdefs.h <<\EOF
7538 #define HAVE_TERMCAP 1
7542 TERMCAP_LIBS=-ltermcap
7546 if test $ol_link_termcap = no ; then
7547 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7548 echo "configure:7549: checking for initscr in -lncurses" >&5
7549 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 ac_save_LIBS="$LIBS"
7554 LIBS="-lncurses $LIBS"
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7569 eval "ac_cv_lib_$ac_lib_var=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_lib_$ac_lib_var=no"
7577 LIBS="$ac_save_LIBS"
7580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7584 echo "$ac_t""no" 1>&6
7588 if test $have_ncurses = yes ; then
7589 cat >> confdefs.h <<\EOF
7590 #define HAVE_NCURSES 1
7594 TERMCAP_LIBS=-lncurses
7598 if test $ol_link_termcap = no ; then
7599 cat >> confdefs.h <<\EOF
7600 #define NO_TERMCAP 1
7606 # FreeBSD (and others) have crypt(3) in -lcrypt
7607 if test $ol_enable_crypt != no ; then
7608 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7609 echo "configure:7610: checking for crypt" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char crypt(); below. */
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_crypt) || defined (__stub___crypt)
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639 eval "ac_cv_func_crypt=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 eval "ac_cv_func_crypt=no"
7649 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7653 echo "$ac_t""no" 1>&6
7655 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7656 echo "configure:7657: checking for crypt in -lcrypt" >&5
7657 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7661 ac_save_LIBS="$LIBS"
7662 LIBS="-lcrypt $LIBS"
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677 eval "ac_cv_lib_$ac_lib_var=yes"
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7682 eval "ac_cv_lib_$ac_lib_var=no"
7685 LIBS="$ac_save_LIBS"
7688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7689 echo "$ac_t""yes" 1>&6
7690 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7693 echo "$ac_t""no" 1>&6
7700 if test $have_crypt = yes ; then
7701 cat >> confdefs.h <<\EOF
7702 #define HAVE_CRYPT 1
7706 echo "configure: warning: could not find crypt" 1>&2
7707 if test $ol_enable_crypt = yes ; then
7708 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7711 echo "configure: warning: disabling crypt support" 1>&2
7716 # FreeBSD (and others) have setproctitle(3) in -lutil
7717 if test $ol_enable_proctitle != no ; then
7718 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7719 echo "configure:7720: checking for setproctitle" >&5
7720 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char setproctitle(); below. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732 char setproctitle();
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 eval "ac_cv_func_setproctitle=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7754 eval "ac_cv_func_setproctitle=no"
7759 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 have_setproctitle=yes
7763 echo "$ac_t""no" 1>&6
7765 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7766 echo "configure:7767: checking for setproctitle in -lutil" >&5
7767 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7771 ac_save_LIBS="$LIBS"
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* Override any gcc2 internal prototype to avoid an error. */
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7779 char setproctitle();
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787 eval "ac_cv_lib_$ac_lib_var=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_lib_$ac_lib_var=no"
7795 LIBS="$ac_save_LIBS"
7798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 have_setproctitle=yes
7801 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7803 echo "$ac_t""no" 1>&6
7804 have_setproctitle=no
7805 LIBOBJS="$LIBOBJS setproctitle.o"
7811 if test $have_setproctitle = yes ; then
7812 cat >> confdefs.h <<\EOF
7813 #define HAVE_SETPROCTITLE 1
7819 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7820 echo "configure:7821: checking for ANSI C header files" >&5
7821 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7833 { (eval echo configure:7834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7835 if test -z "$ac_err"; then
7837 ac_cv_header_stdc=yes
7840 echo "configure: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7843 ac_cv_header_stdc=no
7847 if test $ac_cv_header_stdc = yes; then
7848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7849 cat > conftest.$ac_ext <<EOF
7850 #line 7851 "configure"
7851 #include "confdefs.h"
7854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7855 egrep "memchr" >/dev/null 2>&1; then
7859 ac_cv_header_stdc=no
7865 if test $ac_cv_header_stdc = yes; then
7866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7867 cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7873 egrep "free" >/dev/null 2>&1; then
7877 ac_cv_header_stdc=no
7883 if test $ac_cv_header_stdc = yes; then
7884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7885 if test "$cross_compiling" = yes; then
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7892 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7893 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7895 int main () { int i; for (i = 0; i < 256; i++)
7896 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7907 ac_cv_header_stdc=no
7915 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7916 if test $ac_cv_header_stdc = yes; then
7917 cat >> confdefs.h <<\EOF
7918 #define STDC_HEADERS 1
7924 if test $ac_cv_header_stdc != yes; then
7925 echo "configure: warning: could not Standard C compliant headers" 1>&2
7929 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7932 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7933 echo "configure:7934: checking for $ac_hdr that defines DIR" >&5
7934 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7935 echo $ac_n "(cached) $ac_c" 1>&6
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 #include <sys/types.h>
7946 if { (eval echo configure:7947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7948 eval "ac_cv_header_dirent_$ac_safe=yes"
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 eval "ac_cv_header_dirent_$ac_safe=no"
7957 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7960 cat >> confdefs.h <<EOF
7961 #define $ac_tr_hdr 1
7963 ac_header_dirent=$ac_hdr; break
7965 echo "$ac_t""no" 1>&6
7968 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7969 if test $ac_header_dirent = dirent.h; then
7970 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7971 echo "configure:7972: checking for opendir in -ldir" >&5
7972 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7976 ac_save_LIBS="$LIBS"
7978 cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 /* Override any gcc2 internal prototype to avoid an error. */
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7990 if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992 eval "ac_cv_lib_$ac_lib_var=yes"
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 eval "ac_cv_lib_$ac_lib_var=no"
8000 LIBS="$ac_save_LIBS"
8003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8004 echo "$ac_t""yes" 1>&6
8007 echo "$ac_t""no" 1>&6
8011 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8012 echo "configure:8013: checking for opendir in -lx" >&5
8013 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 ac_save_LIBS="$LIBS"
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8031 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8033 eval "ac_cv_lib_$ac_lib_var=yes"
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8038 eval "ac_cv_lib_$ac_lib_var=no"
8041 LIBS="$ac_save_LIBS"
8044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8045 echo "$ac_t""yes" 1>&6
8048 echo "$ac_t""no" 1>&6
8053 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8054 echo "configure:8055: checking for sys/wait.h that is POSIX.1 compatible" >&5
8055 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 #include <sys/types.h>
8062 #include <sys/wait.h>
8064 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8067 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8072 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8075 if { (eval echo configure:8076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8077 ac_cv_header_sys_wait_h=yes
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8082 ac_cv_header_sys_wait_h=no
8087 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8088 if test $ac_cv_header_sys_wait_h = yes; then
8089 cat >> confdefs.h <<\EOF
8090 #define HAVE_SYS_WAIT_H 1
8095 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8096 echo "configure:8097: checking POSIX termios" >&5
8097 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 #include <sys/types.h>
8105 #include <termios.h>
8107 /* SunOS 4.0.3 has termios.h but not the library calls. */
8111 if { (eval echo configure:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8113 am_cv_sys_posix_termios=yes
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8118 am_cv_sys_posix_termios=no
8123 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8126 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8127 echo "configure:8128: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8128 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6
8131 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8133 gwinsz_in_termios_h=no
8134 if test $am_cv_sys_posix_termios = yes; then
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8138 #include <sys/types.h>
8139 # include <termios.h>
8145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8146 egrep "yes" >/dev/null 2>&1; then
8148 gwinsz_in_termios_h=yes
8154 if test $gwinsz_in_termios_h = no; then
8155 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure"
8157 #include "confdefs.h"
8158 #include <sys/types.h>
8159 # include <sys/ioctl.h>
8165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8166 egrep "yes" >/dev/null 2>&1; then
8168 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8176 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8177 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8178 cat >> confdefs.h <<\EOF
8179 #define GWINSZ_IN_SYS_IOCTL 1
8184 if test $am_cv_sys_posix_termios = yes ; then
8185 cat >> confdefs.h <<\EOF
8186 #define HAVE_POSIX_TERMIOS 1
8228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8230 echo "configure:8231: checking for $ac_hdr" >&5
8231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8240 { (eval echo configure:8241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8242 if test -z "$ac_err"; then
8244 eval "ac_cv_header_$ac_safe=yes"
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 eval "ac_cv_header_$ac_safe=no"
8254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8257 cat >> confdefs.h <<EOF
8258 #define $ac_tr_hdr 1
8262 echo "$ac_t""no" 1>&6
8267 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8268 echo "configure:8269: checking for uid_t in sys/types.h" >&5
8269 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8272 cat > conftest.$ac_ext <<EOF
8273 #line 8274 "configure"
8274 #include "confdefs.h"
8275 #include <sys/types.h>
8277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8278 egrep "uid_t" >/dev/null 2>&1; then
8280 ac_cv_type_uid_t=yes
8289 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8290 if test $ac_cv_type_uid_t = no; then
8291 cat >> confdefs.h <<\EOF
8295 cat >> confdefs.h <<\EOF
8301 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8302 echo "configure:8303: checking type of array argument to getgroups" >&5
8303 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8306 if test "$cross_compiling" = yes; then
8307 ac_cv_type_getgroups=cross
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8313 /* Thanks to Mike Rendell for this test. */
8314 #include <sys/types.h>
8317 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8322 union { gid_t gval; long lval; } val;
8325 for (i = 0; i < NGID; i++)
8326 gidset[i] = val.gval;
8327 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8329 /* Exit non-zero if getgroups seems to require an array of ints. This
8330 happens when gid_t is short but getgroups modifies an array of ints. */
8331 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8337 ac_cv_type_getgroups=gid_t
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 ac_cv_type_getgroups=int
8347 if test $ac_cv_type_getgroups = cross; then
8348 cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8354 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8356 ac_cv_type_getgroups=gid_t
8359 ac_cv_type_getgroups=int
8366 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8367 cat >> confdefs.h <<EOF
8368 #define GETGROUPS_T $ac_cv_type_getgroups
8371 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8372 echo "configure:8373: checking for mode_t" >&5
8373 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8379 #include <sys/types.h>
8385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8386 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8388 ac_cv_type_mode_t=yes
8391 ac_cv_type_mode_t=no
8396 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8397 if test $ac_cv_type_mode_t = no; then
8398 cat >> confdefs.h <<\EOF
8404 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8405 echo "configure:8406: checking for off_t" >&5
8406 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8409 cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8412 #include <sys/types.h>
8418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8419 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8421 ac_cv_type_off_t=yes
8429 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8430 if test $ac_cv_type_off_t = no; then
8431 cat >> confdefs.h <<\EOF
8437 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8438 echo "configure:8439: checking for pid_t" >&5
8439 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 #include <sys/types.h>
8451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8452 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8454 ac_cv_type_pid_t=yes
8462 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8463 if test $ac_cv_type_pid_t = no; then
8464 cat >> confdefs.h <<\EOF
8470 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8471 echo "configure:8472: checking for ptrdiff_t" >&5
8472 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8483 if { (eval echo configure:8484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8485 am_cv_type_ptrdiff_t=yes
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8490 am_cv_type_ptrdiff_t=no
8495 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8496 if test $am_cv_type_ptrdiff_t = yes; then
8497 cat >> confdefs.h <<\EOF
8498 #define HAVE_PTRDIFF_T 1
8503 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8504 echo "configure:8505: checking return type of signal handlers" >&5
8505 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 #include <sys/types.h>
8517 extern "C" void (*signal (int, void (*)(int)))(int);
8519 void (*signal ()) ();
8526 if { (eval echo configure:8527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8528 ac_cv_type_signal=void
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8533 ac_cv_type_signal=int
8538 echo "$ac_t""$ac_cv_type_signal" 1>&6
8539 cat >> confdefs.h <<EOF
8540 #define RETSIGTYPE $ac_cv_type_signal
8544 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8545 echo "configure:8546: checking for sig_atomic_t" >&5
8546 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8554 sig_atomic_t atomic;
8557 if { (eval echo configure:8558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8559 ol_cv_type_sig_atomic_t=yes
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 ol_cv_type_sig_atomic_t=no
8569 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8570 if test $ol_cv_type_sig_atomic_t = no; then
8571 cat >> confdefs.h <<\EOF
8572 #define sig_atomic_t int
8577 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8578 echo "configure:8579: checking for size_t" >&5
8579 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 #include <sys/types.h>
8591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8592 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8594 ac_cv_type_size_t=yes
8597 ac_cv_type_size_t=no
8602 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8603 if test $ac_cv_type_size_t = no; then
8604 cat >> confdefs.h <<\EOF
8605 #define size_t unsigned
8610 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8611 echo "configure:8612: checking for st_blksize in struct stat" >&5
8612 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 #include <sys/types.h>
8619 #include <sys/stat.h>
8621 struct stat s; s.st_blksize;
8624 if { (eval echo configure:8625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8626 ac_cv_struct_st_blksize=yes
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8631 ac_cv_struct_st_blksize=no
8636 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8637 if test $ac_cv_struct_st_blksize = yes; then
8638 cat >> confdefs.h <<\EOF
8639 #define HAVE_ST_BLKSIZE 1
8644 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8645 echo "configure:8646: checking whether time.h and sys/time.h may both be included" >&5
8646 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 #include <sys/types.h>
8653 #include <sys/time.h>
8659 if { (eval echo configure:8660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8661 ac_cv_header_time=yes
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8666 ac_cv_header_time=no
8671 echo "$ac_t""$ac_cv_header_time" 1>&6
8672 if test $ac_cv_header_time = yes; then
8673 cat >> confdefs.h <<\EOF
8674 #define TIME_WITH_SYS_TIME 1
8679 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8680 echo "configure:8681: checking whether struct tm is in sys/time.h or time.h" >&5
8681 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <sys/types.h>
8690 struct tm *tp; tp->tm_sec;
8693 if { (eval echo configure:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8695 ac_cv_struct_tm=time.h
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 ac_cv_struct_tm=sys/time.h
8705 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8706 if test $ac_cv_struct_tm = sys/time.h; then
8707 cat >> confdefs.h <<\EOF
8708 #define TM_IN_SYS_TIME 1
8715 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8716 echo "configure:8717: checking if toupper() requires islower()" >&5
8717 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
8718 echo $ac_n "(cached) $ac_c" 1>&6
8721 if test "$cross_compiling" = yes; then
8722 ol_cv_c_upper_lower=safe
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8731 if ('C' == toupper('C'))
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8739 ol_cv_c_upper_lower=no
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8744 ol_cv_c_upper_lower=yes
8751 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8752 if test $ol_cv_c_upper_lower != no ; then
8753 cat >> confdefs.h <<\EOF
8754 #define C_UPPER_LOWER 1
8759 echo $ac_n "checking for working const""... $ac_c" 1>&6
8760 echo "configure:8761: checking for working const" >&5
8761 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8770 /* Ultrix mips cc rejects this. */
8771 typedef int charset[2]; const charset x;
8772 /* SunOS 4.1.1 cc rejects this. */
8773 char const *const *ccp;
8775 /* NEC SVR4.0.2 mips cc rejects this. */
8776 struct point {int x, y;};
8777 static struct point const zero = {0,0};
8778 /* AIX XL C 1.02.0.0 rejects this.
8779 It does not let you subtract one const X* pointer from another in an arm
8780 of an if-expression whose if-part is not a constant expression */
8781 const char *g = "string";
8782 ccp = &g + (g ? g-g : 0);
8783 /* HPUX 7.0 cc rejects these. */
8786 ccp = (char const *const *) p;
8787 { /* SCO 3.2v4 cc rejects this. */
8789 char const *s = 0 ? (char *) 0 : (char const *) 0;
8793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8795 const int *foo = &x[0];
8798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8799 typedef const int *iptr;
8803 { /* AIX XL C 1.02.0.0 rejects this saying
8804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8805 struct s { int j; const int *ap[3]; };
8806 struct s *b; b->j = 5;
8808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8814 if { (eval echo configure:8815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8826 echo "$ac_t""$ac_cv_c_const" 1>&6
8827 if test $ac_cv_c_const = no; then
8828 cat >> confdefs.h <<\EOF
8834 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8835 echo "configure:8836: checking if compiler understands volatile" >&5
8836 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8839 cat > conftest.$ac_ext <<EOF
8840 #line 8841 "configure"
8841 #include "confdefs.h"
8844 volatile int a; int * volatile b = x ? &y : &z;
8845 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8849 if { (eval echo configure:8850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8851 ol_cv_c_volatile=yes
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8861 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8862 if test $ol_cv_c_volatile = yes; then
8865 cat >> confdefs.h <<\EOF
8872 if test $cross_compiling = yes ; then
8873 cat >> confdefs.h <<\EOF
8874 #define CROSS_COMPILING 1
8878 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8879 echo "configure:8880: checking whether byte ordering is bigendian" >&5
8880 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8883 ac_cv_c_bigendian=unknown
8884 # See if sys/param.h defines the BYTE_ORDER macro.
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 #include <sys/types.h>
8889 #include <sys/param.h>
8892 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8897 if { (eval echo configure:8898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8899 # It does; now see whether it defined to BIG_ENDIAN or not.
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8903 #include <sys/types.h>
8904 #include <sys/param.h>
8907 #if BYTE_ORDER != BIG_ENDIAN
8912 if { (eval echo configure:8913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8914 ac_cv_c_bigendian=yes
8916 echo "configure: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8919 ac_cv_c_bigendian=no
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8927 if test $ac_cv_c_bigendian = unknown; then
8928 if test "$cross_compiling" = yes; then
8929 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8935 /* Are we little or big endian? From Harbison&Steele. */
8939 char c[sizeof (long)];
8942 exit (u.c[sizeof (long) - 1] == 1);
8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8947 ac_cv_c_bigendian=no
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8952 ac_cv_c_bigendian=yes
8960 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8961 if test $ac_cv_c_bigendian = yes; then
8962 cat >> confdefs.h <<\EOF
8963 #define WORDS_BIGENDIAN 1
8968 echo $ac_n "checking size of short""... $ac_c" 1>&6
8969 echo "configure:8970: checking size of short" >&5
8970 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
8973 if test "$cross_compiling" = yes; then
8974 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8982 FILE *f=fopen("conftestval", "w");
8984 fprintf(f, "%d\n", sizeof(short));
8988 if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8990 ac_cv_sizeof_short=`cat conftestval`
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8995 ac_cv_sizeof_short=0
9001 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9002 cat >> confdefs.h <<EOF
9003 #define SIZEOF_SHORT $ac_cv_sizeof_short
9007 echo $ac_n "checking size of int""... $ac_c" 1>&6
9008 echo "configure:9009: checking size of int" >&5
9009 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9012 if test "$cross_compiling" = yes; then
9013 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9021 FILE *f=fopen("conftestval", "w");
9023 fprintf(f, "%d\n", sizeof(int));
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9029 ac_cv_sizeof_int=`cat conftestval`
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9040 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9041 cat >> confdefs.h <<EOF
9042 #define SIZEOF_INT $ac_cv_sizeof_int
9046 echo $ac_n "checking size of long""... $ac_c" 1>&6
9047 echo "configure:9048: checking size of long" >&5
9048 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9051 if test "$cross_compiling" = yes; then
9052 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9060 FILE *f=fopen("conftestval", "w");
9062 fprintf(f, "%d\n", sizeof(long));
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9068 ac_cv_sizeof_long=`cat conftestval`
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9079 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9080 cat >> confdefs.h <<EOF
9081 #define SIZEOF_LONG $ac_cv_sizeof_long
9087 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9088 echo "configure:9089: checking for 8-bit clean memcmp" >&5
9089 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9092 if test "$cross_compiling" = yes; then
9093 ac_cv_func_memcmp_clean=no
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9101 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9102 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9108 ac_cv_func_memcmp_clean=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 ac_cv_func_memcmp_clean=no
9120 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9121 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9123 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9124 echo "configure:9125: checking for strftime" >&5
9125 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9126 echo $ac_n "(cached) $ac_c" 1>&6
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9131 /* System header to define __stub macros and hopefully few prototypes,
9132 which can conflict with char strftime(); below. */
9134 /* Override any gcc2 internal prototype to avoid an error. */
9135 /* We use char because int might match the return type of a gcc2
9136 builtin and then its argument prototype would still apply. */
9141 /* The GNU C library defines this for functions which it implements
9142 to always fail with ENOSYS. Some functions are actually named
9143 something starting with __ and the normal name is an alias. */
9144 #if defined (__stub_strftime) || defined (__stub___strftime)
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9154 eval "ac_cv_func_strftime=yes"
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 eval "ac_cv_func_strftime=no"
9164 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9165 echo "$ac_t""yes" 1>&6
9166 cat >> confdefs.h <<\EOF
9167 #define HAVE_STRFTIME 1
9171 echo "$ac_t""no" 1>&6
9172 # strftime is in -lintl on SCO UNIX.
9173 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9174 echo "configure:9175: checking for strftime in -lintl" >&5
9175 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9179 ac_save_LIBS="$LIBS"
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 /* Override any gcc2 internal prototype to avoid an error. */
9185 /* We use char because int might match the return type of a gcc2
9186 builtin and then its argument prototype would still apply. */
9193 if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9195 eval "ac_cv_lib_$ac_lib_var=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_lib_$ac_lib_var=no"
9203 LIBS="$ac_save_LIBS"
9206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9207 echo "$ac_t""yes" 1>&6
9208 cat >> confdefs.h <<\EOF
9209 #define HAVE_STRFTIME 1
9214 echo "$ac_t""no" 1>&6
9219 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9220 echo "configure:9221: checking for vprintf" >&5
9221 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9224 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure"
9226 #include "confdefs.h"
9227 /* System header to define __stub macros and hopefully few prototypes,
9228 which can conflict with char vprintf(); below. */
9230 /* Override any gcc2 internal prototype to avoid an error. */
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9237 /* The GNU C library defines this for functions which it implements
9238 to always fail with ENOSYS. Some functions are actually named
9239 something starting with __ and the normal name is an alias. */
9240 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9248 if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9250 eval "ac_cv_func_vprintf=yes"
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9255 eval "ac_cv_func_vprintf=no"
9260 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9261 echo "$ac_t""yes" 1>&6
9262 cat >> confdefs.h <<\EOF
9263 #define HAVE_VPRINTF 1
9267 echo "$ac_t""no" 1>&6
9270 if test "$ac_cv_func_vprintf" != yes; then
9271 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9272 echo "configure:9273: checking for _doprnt" >&5
9273 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 /* System header to define __stub macros and hopefully few prototypes,
9280 which can conflict with char _doprnt(); below. */
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9289 /* The GNU C library defines this for functions which it implements
9290 to always fail with ENOSYS. Some functions are actually named
9291 something starting with __ and the normal name is an alias. */
9292 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9302 eval "ac_cv_func__doprnt=yes"
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9307 eval "ac_cv_func__doprnt=no"
9312 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9313 echo "$ac_t""yes" 1>&6
9314 cat >> confdefs.h <<\EOF
9315 #define HAVE_DOPRNT 1
9319 echo "$ac_t""no" 1>&6
9325 if test $ac_cv_func_vprintf = yes ; then
9326 for ac_func in vsnprintf vsprintf
9328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9329 echo "configure:9330: checking for $ac_func" >&5
9330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9336 /* System header to define __stub macros and hopefully few prototypes,
9337 which can conflict with char $ac_func(); below. */
9339 /* Override any gcc2 internal prototype to avoid an error. */
9340 /* We use char because int might match the return type of a gcc2
9341 builtin and then its argument prototype would still apply. */
9346 /* The GNU C library defines this for functions which it implements
9347 to always fail with ENOSYS. Some functions are actually named
9348 something starting with __ and the normal name is an alias. */
9349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9359 eval "ac_cv_func_$ac_func=yes"
9361 echo "configure: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9364 eval "ac_cv_func_$ac_func=no"
9369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9370 echo "$ac_t""yes" 1>&6
9371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9372 cat >> confdefs.h <<EOF
9373 #define $ac_tr_func 1
9377 echo "$ac_t""no" 1>&6
9414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9415 echo "configure:9416: checking for $ac_func" >&5
9416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9417 echo $ac_n "(cached) $ac_c" 1>&6
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 /* System header to define __stub macros and hopefully few prototypes,
9423 which can conflict with char $ac_func(); below. */
9425 /* Override any gcc2 internal prototype to avoid an error. */
9426 /* We use char because int might match the return type of a gcc2
9427 builtin and then its argument prototype would still apply. */
9432 /* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9443 if { (eval echo configure:9444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 eval "ac_cv_func_$ac_func=yes"
9447 echo "configure: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9450 eval "ac_cv_func_$ac_func=no"
9455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9456 echo "$ac_t""yes" 1>&6
9457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9458 cat >> confdefs.h <<EOF
9459 #define $ac_tr_func 1
9463 echo "$ac_t""no" 1>&6
9468 # these functions are required to build a thread_safe -lldap
9475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9476 echo "configure:9477: checking for $ac_func" >&5
9477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char $ac_func(); below. */
9486 /* Override any gcc2 internal prototype to avoid an error. */
9487 /* We use char because int might match the return type of a gcc2
9488 builtin and then its argument prototype would still apply. */
9493 /* The GNU C library defines this for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9506 eval "ac_cv_func_$ac_func=yes"
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 eval "ac_cv_func_$ac_func=no"
9516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9519 cat >> confdefs.h <<EOF
9520 #define $ac_tr_func 1
9524 echo "$ac_t""no" 1>&6
9529 if test "$ac_cv_func_ctime_r" = yes ; then
9530 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
9531 echo "configure:9532: checking number of arguments of ctime_r" >&5
9532 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9540 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
9543 if { (eval echo configure:9544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9545 ol_cv_func_ctime_r_nargs=3
9547 echo "configure: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9550 ol_cv_func_ctime_r_nargs=0
9553 if test $ol_cv_func_ctime_r_nargs = 0 ; then
9554 cat > conftest.$ac_ext <<EOF
9555 #line 9556 "configure"
9556 #include "confdefs.h"
9559 time_t ti; char *buffer;
9560 ctime_r(&ti,buffer);
9563 if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9565 ol_cv_func_ctime_r_nargs=2
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9570 ol_cv_func_ctime_r_nargs=0
9577 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
9578 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
9579 cat >> confdefs.h <<EOF
9580 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
9585 echo $ac_n "checking return type of ctime_r""... $ac_c" 1>&6
9586 echo "configure:9587: checking return type of ctime_r" >&5
9587 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_type'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9598 if { (eval echo configure:9599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9600 ol_cv_func_ctime_r_type="int"
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9605 ol_cv_func_ctime_r_type="charp"
9611 echo "$ac_t""$ol_cv_func_ctime_r_type" 1>&6
9612 if test $ol_cv_func_ctime_r_type = "int" ; then
9613 cat >> confdefs.h <<\EOF
9614 #define CTIME_R_RETURNS_INT 1
9620 ol_cv_func_ctime_r_nargs=0
9623 if test "$ac_cv_func_gethostbyname_r" = yes ; then
9624 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
9625 echo "configure:9626: checking number of arguments of gethostbyname_r" >&5
9626 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 #include <sys/types.h>
9633 #include <sys/socket.h>
9634 #include <netinet/in.h>
9636 #define BUFSIZE (sizeof(struct hostent)+10)
9638 struct hostent hent; char buffer[BUFSIZE];
9639 int bufsize=BUFSIZE;int h_errno;
9640 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &h_errno);
9644 if { (eval echo configure:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9646 ol_cv_func_gethostbyname_r_nargs=5
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9651 ol_cv_func_gethostbyname_r_nargs=0
9654 if test $ol_cv_func_gethostbyname_r_nargs = 0 ; then
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <sys/types.h>
9659 #include <sys/socket.h>
9660 #include <netinet/in.h>
9662 #define BUFSIZE (sizeof(struct hostent)+10)
9664 struct hostent hent;struct hostent *rhent;
9665 char buffer[BUFSIZE];
9666 int bufsize=BUFSIZE;int h_errno;
9667 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &rhent, &h_errno);
9671 if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 ol_cv_func_gethostbyname_r_nargs=6
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9678 ol_cv_func_gethostbyname_r_nargs=0
9685 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
9686 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
9687 cat >> confdefs.h <<EOF
9688 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
9694 ol_cv_func_gethostbyname_r_nargs=0
9697 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
9698 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
9699 echo "configure:9700: checking number of arguments of gethostbyaddr_r" >&5
9700 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9703 cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9706 #include <sys/types.h>
9707 #include <sys/socket.h>
9708 #include <netinet/in.h>
9710 #define BUFSIZE (sizeof(struct hostent)+10)
9712 struct hostent hent; char buffer[BUFSIZE];
9713 struct in_addr add={0x70707070};
9714 size_t alen=sizeof(struct in_addr);
9715 int bufsize=BUFSIZE;int h_errno;
9716 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9717 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
9721 if { (eval echo configure:9722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9723 ol_cv_func_gethostbyaddr_r_nargs=7
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9728 ol_cv_func_gethostbyaddr_r_nargs=0
9731 if test $ol_cv_func_gethostbyaddr_r_nargs = 0 ; then
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 #include <sys/types.h>
9736 #include <sys/socket.h>
9737 #include <netinet/in.h>
9739 #define BUFSIZE (sizeof(struct hostent)+10)
9741 struct hostent hent; struct hostent *rhent; char buffer[BUFSIZE];
9742 struct in_addr add={0x70707070};
9743 size_t alen=sizeof(struct in_addr);
9744 int bufsize=BUFSIZE;int h_errno;
9745 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9746 alen, AF_INET, &hent, buffer, bufsize,
9751 if { (eval echo configure:9752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9753 ol_cv_func_gethostbyaddr_r_nargs=8
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9758 ol_cv_func_gethostbyaddr_r_nargs=0
9765 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
9766 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
9767 cat >> confdefs.h <<EOF
9768 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
9774 ol_cv_func_gethostbyaddr_r_nargs=0
9777 if test "$ac_cv_func_ctime_r" = yes \
9778 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
9779 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
9780 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
9781 -a "$ac_cv_func_gethostbyaddr_r" = yes \
9782 -a "$ac_cv_func_gethostbyname_r" = yes \
9785 cat >> confdefs.h <<\EOF
9786 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
9791 if test $ol_link_threads != no ; then
9792 cat >> confdefs.h <<\EOF
9793 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9798 for ac_func in getopt tempnam
9800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9801 echo "configure:9802: checking for $ac_func" >&5
9802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func(); below. */
9811 /* Override any gcc2 internal prototype to avoid an error. */
9812 /* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 eval "ac_cv_func_$ac_func=yes"
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9836 eval "ac_cv_func_$ac_func=no"
9841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9842 echo "$ac_t""yes" 1>&6
9843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9844 cat >> confdefs.h <<EOF
9845 #define $ac_tr_func 1
9849 echo "$ac_t""no" 1>&6
9850 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9856 # Check Configuration
9858 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9859 echo "configure:9860: checking declaration of sys_errlist" >&5
9860 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9869 #include <sys/types.h>
9872 char *c = (char *) *sys_errlist
9875 if { (eval echo configure:9876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9877 ol_cv_dcl_sys_errlist=yes
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9882 ol_cv_dcl_sys_errlist=no
9887 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9889 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9890 if test $ol_cv_dcl_sys_errlist = no ; then
9891 cat >> confdefs.h <<\EOF
9892 #define DECL_SYS_ERRLIST 1
9895 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9896 echo "configure:9897: checking existence of sys_errlist" >&5
9897 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9898 echo $ac_n "(cached) $ac_c" 1>&6
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9906 char *c = (char *) *sys_errlist
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9911 ol_cv_have_sys_errlist=yes
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9916 ol_cv_have_sys_errlist=no
9921 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9926 if test "$ol_enable_debug" != no ; then
9927 cat >> confdefs.h <<\EOF
9928 #define LDAP_DEBUG 1
9932 if test "$ol_enable_syslog" = yes ; then
9933 cat >> confdefs.h <<\EOF
9934 #define LDAP_SYSLOG 1
9938 if test "$ol_enable_libui" = yes ; then
9939 cat >> confdefs.h <<\EOF
9940 #define LDAP_LIBUI 1
9944 if test "$ol_enable_cache" = no ; then
9945 cat >> confdefs.h <<\EOF
9946 #define LDAP_NOCACHE 1
9950 if test "$ol_enable_dns" != no ; then
9951 cat >> confdefs.h <<\EOF
9952 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9956 if test "$ol_enable_proctitle" != no ; then
9957 cat >> confdefs.h <<\EOF
9958 #define LDAP_PROCTITLE 1
9962 if test "$ol_enable_referrals" != no ; then
9963 cat >> confdefs.h <<\EOF
9964 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9968 if test "$ol_enable_cldap" != no ; then
9969 cat >> confdefs.h <<\EOF
9970 #define LDAP_CONNECTIONLESS 1
9975 if test "$ol_enable_aclgroups" != no ; then
9976 cat >> confdefs.h <<\EOF
9977 #define SLAPD_ACLGROUPS 1
9981 if test "$ol_enable_crypt" != no ; then
9982 cat >> confdefs.h <<\EOF
9983 #define SLAPD_CRYPT 1
9987 if test "$ol_enable_cleartext" != no ; then
9988 cat >> confdefs.h <<\EOF
9989 #define SLAPD_CLEARTEXT 1
9993 if test "$ol_enable_phonetic" != no ; then
9994 cat >> confdefs.h <<\EOF
9995 #define SLAPD_PHONETIC 1
9999 if test "$ol_enable_rlookups" != no ; then
10000 cat >> confdefs.h <<\EOF
10001 #define SLAPD_RLOOKUPS 1
10006 if test "$ol_link_bdb2" != no ; then
10007 cat >> confdefs.h <<\EOF
10008 #define SLAPD_BDB2 1
10015 if test "$ol_link_ldbm" != no ; then
10016 cat >> confdefs.h <<\EOF
10017 #define SLAPD_LDBM 1
10024 if test "$ol_enable_passwd" != no ; then
10025 cat >> confdefs.h <<\EOF
10026 #define SLAPD_PASSWD 1
10033 if test "$ol_enable_perl" != no ; then
10034 cat >> confdefs.h <<\EOF
10035 #define SLAPD_PERL 1
10042 if test "$ol_enable_shell" != no ; then
10043 cat >> confdefs.h <<\EOF
10044 #define SLAPD_SHELL 1
10051 if test "$ol_enable_tcl" != no ; then
10052 cat >> confdefs.h <<\EOF
10053 #define SLAPD_TCL 1
10060 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10061 $BUILD_SLAPD = yes ; then
10065 if test "$ol_link_isode" != no ; then
10097 cat > confcache <<\EOF
10098 # This file is a shell script that caches the results of configure
10099 # tests run on this system so they can be shared between configure
10100 # scripts and configure runs. It is not useful on other systems.
10101 # If it contains results you don't want to keep, you may remove or edit it.
10103 # By default, configure uses ./config.cache as the cache file,
10104 # creating it if it does not exist already. You can give configure
10105 # the --cache-file=FILE option to use a different cache file; that is
10106 # what configure does when it calls configure scripts in
10107 # subdirectories, so they share the cache.
10108 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10109 # config.status only pays attention to the cache file if you give it the
10110 # --recheck option to rerun configure.
10113 # The following way of writing the cache mishandles newlines in values,
10114 # but we know of no workaround that is simple, portable, and efficient.
10115 # So, don't put newlines in cache variables' values.
10116 # Ultrix sh set writes to stderr and can't be redirected directly,
10117 # and sets the high bit in the cache file unless we assign to the vars.
10119 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10121 # `set' does not quote correctly, so add quotes (double-quote substitution
10122 # turns \\\\ into \\, and sed turns \\ into \).
10124 -e "s/'/'\\\\''/g" \
10125 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10128 # `set' quotes correctly as required by POSIX, so do not add quotes.
10129 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10132 if cmp -s $cache_file confcache; then
10135 if test -w $cache_file; then
10136 echo "updating cache $cache_file"
10137 cat confcache > $cache_file
10139 echo "not updating unwritable cache $cache_file"
10144 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10147 # Let make expand exec_prefix.
10148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10150 # Any assignment to VPATH causes Sun make to only execute
10151 # the first set of double-colon rules, so remove it if not needed.
10152 # If there is a colon in the path, we need to keep it.
10153 if test "x$srcdir" = x.; then
10154 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10157 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10159 DEFS=-DHAVE_CONFIG_H
10161 # Without the "./", some shells look in PATH for config.status.
10162 : ${CONFIG_STATUS=./config.status}
10164 echo creating $CONFIG_STATUS
10165 rm -f $CONFIG_STATUS
10166 cat > $CONFIG_STATUS <<EOF
10168 # Generated automatically by configure.
10169 # Run this file to recreate the current configuration.
10170 # This directory was configured as follows,
10171 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10173 # $0 $ac_configure_args
10175 # Compiler output produced by configure, useful for debugging
10176 # configure, is in ./config.log if it exists.
10178 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10181 case "\$ac_option" in
10182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10183 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10184 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10185 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10186 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10188 -help | --help | --hel | --he | --h)
10189 echo "\$ac_cs_usage"; exit 0 ;;
10190 *) echo "\$ac_cs_usage"; exit 1 ;;
10194 ac_given_srcdir=$srcdir
10195 ac_given_INSTALL="$INSTALL"
10197 trap 'rm -fr `echo "\
10198 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10199 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10200 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10201 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10202 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10203 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10204 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10205 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10206 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10207 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10208 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10209 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10210 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10211 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10212 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10213 include/Makefile:build/top.mk:include/Makefile.in \
10214 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10215 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10216 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10217 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10218 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10219 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10220 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10221 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10222 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10223 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10224 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10225 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10226 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10227 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10228 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10229 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10230 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10231 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10232 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10233 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10234 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10235 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10236 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10238 cat >> $CONFIG_STATUS <<EOF
10240 # Protect against being on the right side of a sed subst in config.status.
10241 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10246 s%@CFLAGS@%$CFLAGS%g
10247 s%@CPPFLAGS@%$CPPFLAGS%g
10248 s%@CXXFLAGS@%$CXXFLAGS%g
10249 s%@FFLAGS@%$FFLAGS%g
10251 s%@LDFLAGS@%$LDFLAGS%g
10253 s%@exec_prefix@%$exec_prefix%g
10254 s%@prefix@%$prefix%g
10255 s%@program_transform_name@%$program_transform_name%g
10256 s%@bindir@%$bindir%g
10257 s%@sbindir@%$sbindir%g
10258 s%@libexecdir@%$libexecdir%g
10259 s%@datadir@%$datadir%g
10260 s%@sysconfdir@%$sysconfdir%g
10261 s%@sharedstatedir@%$sharedstatedir%g
10262 s%@localstatedir@%$localstatedir%g
10263 s%@libdir@%$libdir%g
10264 s%@includedir@%$includedir%g
10265 s%@oldincludedir@%$oldincludedir%g
10266 s%@infodir@%$infodir%g
10267 s%@mandir@%$mandir%g
10268 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10269 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10270 s%@INSTALL_DATA@%$INSTALL_DATA%g
10271 s%@PACKAGE@%$PACKAGE%g
10272 s%@VERSION@%$VERSION%g
10273 s%@ACLOCAL@%$ACLOCAL%g
10274 s%@AUTOCONF@%$AUTOCONF%g
10275 s%@AUTOMAKE@%$AUTOMAKE%g
10276 s%@AUTOHEADER@%$AUTOHEADER%g
10277 s%@MAKEINFO@%$MAKEINFO%g
10278 s%@SET_MAKE@%$SET_MAKE%g
10279 s%@top_builddir@%$top_builddir%g
10280 s%@ldap_subdir@%$ldap_subdir%g
10282 s%@host_alias@%$host_alias%g
10283 s%@host_cpu@%$host_cpu%g
10284 s%@host_vendor@%$host_vendor%g
10285 s%@host_os@%$host_os%g
10286 s%@RANLIB@%$RANLIB%g
10291 s%@LIBTOOL@%$LIBTOOL%g
10293 s%@SENDMAIL@%$SENDMAIL%g
10294 s%@EDITOR@%$EDITOR%g
10295 s%@FINGER@%$FINGER%g
10296 s%@PERLBIN@%$PERLBIN%g
10298 s%@EXEEXT@%$EXEEXT%g
10299 s%@OBJEXT@%$OBJEXT%g
10301 s%@LIBOBJS@%$LIBOBJS%g
10302 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10303 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10304 s%@BUILD_BDB2@%$BUILD_BDB2%g
10305 s%@BUILD_LDBM@%$BUILD_LDBM%g
10306 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10307 s%@BUILD_PERL@%$BUILD_PERL%g
10308 s%@BUILD_SHELL@%$BUILD_SHELL%g
10309 s%@BUILD_TCL@%$BUILD_TCL%g
10310 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10311 s%@LDAP_LIBS@%$LDAP_LIBS%g
10312 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10313 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10314 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10315 s%@LDBM_LIBS@%$LDBM_LIBS%g
10316 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10317 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10318 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10319 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10320 s%@KRB_LIBS@%$KRB_LIBS%g
10321 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10322 s%@TLS_LIBS@%$TLS_LIBS%g
10327 cat >> $CONFIG_STATUS <<\EOF
10329 # Split the substitutions into bite-sized pieces for seds with
10330 # small command number limits, like on Digital OSF/1 and HP-UX.
10331 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10332 ac_file=1 # Number of current file.
10333 ac_beg=1 # First line for current file.
10334 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10337 while $ac_more_lines; do
10338 if test $ac_beg -gt 1; then
10339 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10341 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10343 if test ! -s conftest.s$ac_file; then
10344 ac_more_lines=false
10345 rm -f conftest.s$ac_file
10347 if test -z "$ac_sed_cmds"; then
10348 ac_sed_cmds="sed -f conftest.s$ac_file"
10350 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10352 ac_file=`expr $ac_file + 1`
10354 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10357 if test -z "$ac_sed_cmds"; then
10362 cat >> $CONFIG_STATUS <<EOF
10364 CONFIG_FILES=\${CONFIG_FILES-"\
10365 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10366 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10367 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10368 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10369 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10370 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10371 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10372 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10373 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10374 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10375 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10376 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10377 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10378 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10379 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10380 include/Makefile:build/top.mk:include/Makefile.in \
10381 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10382 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10383 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10384 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10385 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10386 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10387 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10388 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10389 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10390 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10391 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10392 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10393 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10394 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10395 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10396 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10397 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10398 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10399 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10400 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10401 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10402 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10405 cat >> $CONFIG_STATUS <<\EOF
10406 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10407 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10409 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10410 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10411 *) ac_file_in="${ac_file}.in" ;;
10414 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10416 # Remove last slash and all that follows it. Not all systems have dirname.
10417 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10418 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10419 # The file is in a subdirectory.
10420 test ! -d "$ac_dir" && mkdir "$ac_dir"
10421 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10422 # A "../" for each directory in $ac_dir_suffix.
10423 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10425 ac_dir_suffix= ac_dots=
10428 case "$ac_given_srcdir" in
10430 if test -z "$ac_dots"; then top_srcdir=.
10431 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10432 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10433 *) # Relative path.
10434 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10435 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10438 case "$ac_given_INSTALL" in
10439 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10440 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10443 echo creating "$ac_file"
10445 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10447 *Makefile*) ac_comsub="1i\\
10448 # $configure_input" ;;
10452 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10454 s%@configure_input@%$configure_input%g
10455 s%@srcdir@%$srcdir%g
10456 s%@top_srcdir@%$top_srcdir%g
10457 s%@INSTALL@%$INSTALL%g
10458 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10462 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10463 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10465 # ac_d sets the value in "#define NAME VALUE" lines.
10466 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10467 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10470 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10471 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10472 ac_uB='\([ ]\)%\1#\2define\3'
10475 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10476 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10477 ac_eB='$%\1#\2define\3'
10481 if test "${CONFIG_HEADERS+set}" != set; then
10483 cat >> $CONFIG_STATUS <<EOF
10484 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10486 cat >> $CONFIG_STATUS <<\EOF
10488 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10491 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10492 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10493 *) ac_file_in="${ac_file}.in" ;;
10496 echo creating $ac_file
10498 rm -f conftest.frag conftest.in conftest.out
10499 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10500 cat $ac_file_inputs > conftest.in
10504 # Transform confdefs.h into a sed script conftest.vals that substitutes
10505 # the proper values into config.h.in to produce config.h. And first:
10506 # Protect against being on the right side of a sed subst in config.status.
10507 # Protect against being in an unquoted here document in config.status.
10508 rm -f conftest.vals
10509 cat > conftest.hdr <<\EOF
10512 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10516 sed -n -f conftest.hdr confdefs.h > conftest.vals
10519 # This sed command replaces #undef with comments. This is necessary, for
10520 # example, in the case of _POSIX_SOURCE, which is predefined and required
10521 # on some systems where configure will not decide to define it.
10522 cat >> conftest.vals <<\EOF
10523 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10526 # Break up conftest.vals because some shells have a limit on
10527 # the size of here documents, and old seds have small limits too.
10529 rm -f conftest.tail
10532 ac_lines=`grep -c . conftest.vals`
10533 # grep -c gives empty output for an empty file on some AIX systems.
10534 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10535 # Write a limited-size here document to conftest.frag.
10536 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10537 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10539 sed -f conftest.frag conftest.in > conftest.out
10541 mv conftest.out conftest.in
10542 ' >> $CONFIG_STATUS
10543 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10544 rm -f conftest.vals
10545 mv conftest.tail conftest.vals
10547 rm -f conftest.vals
10549 cat >> $CONFIG_STATUS <<\EOF
10550 rm -f conftest.frag conftest.h
10551 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10552 cat conftest.in >> conftest.h
10554 if cmp -s $ac_file conftest.h 2>/dev/null; then
10555 echo "$ac_file is unchanged"
10558 # Remove last slash and all that follows it. Not all systems have dirname.
10559 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10560 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10561 # The file is in a subdirectory.
10562 test ! -d "$ac_dir" && mkdir "$ac_dir"
10565 mv conftest.h $ac_file
10570 cat >> $CONFIG_STATUS <<EOF
10573 cat >> $CONFIG_STATUS <<\EOF
10576 echo Please \"make depend\" to build dependencies
10580 chmod +x $CONFIG_STATUS
10581 rm -fr confdefs* $ac_clean_files
10582 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1