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'
1786 # Extract the first word of "ranlib", so it can be a program name with args.
1787 set dummy ranlib; ac_word=$2
1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_word" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 if test -n "$RANLIB"; then
1794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1798 for ac_dir in $ac_dummy; do
1799 test -z "$ac_dir" && ac_dir=.
1800 if test -f $ac_dir/$ac_word; then
1801 ac_cv_prog_RANLIB="ranlib"
1806 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1809 RANLIB="$ac_cv_prog_RANLIB"
1810 if test -n "$RANLIB"; then
1811 echo "$ac_t""$RANLIB" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 # Extract the first word of "gcc", so it can be a program name with args.
1817 set dummy gcc; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/$ac_word; then
1839 if test -n "$CC"; then
1840 echo "$ac_t""$CC" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 if test -z "$CC"; then
1846 # Extract the first word of "cc", so it can be a program name with args.
1847 set dummy cc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1859 for ac_dir in $ac_dummy; do
1860 test -z "$ac_dir" && ac_dir=.
1861 if test -f $ac_dir/$ac_word; then
1862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1863 ac_prog_rejected=yes
1871 if test $ac_prog_rejected = yes; then
1872 # We found a bogon in the path, so make sure we never use it.
1873 set dummy $ac_cv_prog_CC
1875 if test $# -gt 0; then
1876 # We chose a different compiler from the bogus one.
1877 # However, it has the same basename, so the bogon will be chosen
1878 # first if we set CC to just the basename; use the full file name.
1880 set dummy "$ac_dir/$ac_word" "$@"
1888 if test -n "$CC"; then
1889 echo "$ac_t""$CC" 1>&6
1891 echo "$ac_t""no" 1>&6
1894 if test -z "$CC"; then
1895 case "`uname -s`" in
1897 # Extract the first word of "cl", so it can be a program name with args.
1898 set dummy cl; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1920 if test -n "$CC"; then
1921 echo "$ac_t""$CC" 1>&6
1923 echo "$ac_t""no" 1>&6
1928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1932 echo "configure:1933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1939 cross_compiling=$ac_cv_prog_cc_cross
1941 cat > conftest.$ac_ext << EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 ac_cv_prog_cc_works=yes
1950 # If we can't run a trivial program, we are probably using a cross compiler.
1951 if (./conftest; exit) 2>/dev/null; then
1952 ac_cv_prog_cc_cross=no
1954 ac_cv_prog_cc_cross=yes
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 ac_cv_prog_cc_works=no
1963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1967 cross_compiling=$ac_cv_prog_cc_cross
1969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1970 if test $ac_cv_prog_cc_works = no; then
1971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1976 cross_compiling=$ac_cv_prog_cc_cross
1978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether we are using GNU C" >&5
1980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 cat > conftest.c <<EOF
1988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1997 if test $ac_cv_prog_gcc = yes; then
2003 ac_test_CFLAGS="${CFLAGS+set}"
2004 ac_save_CFLAGS="$CFLAGS"
2006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether ${CC-cc} accepts -g" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 echo 'void f(){}' > conftest.c
2012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2022 if test "$ac_test_CFLAGS" = set; then
2023 CFLAGS="$ac_save_CFLAGS"
2024 elif test $ac_cv_prog_cc_g = yes; then
2025 if test "$GCC" = yes; then
2031 if test "$GCC" = yes; then
2038 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2039 if test "${with_gnu_ld+set}" = set; then
2040 withval="$with_gnu_ld"
2041 test "$withval" = no || with_gnu_ld=yes
2048 if test "$ac_cv_prog_gcc" = yes; then
2049 # Check if gcc -print-prog-name=ld gives a path.
2050 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2051 echo "configure:2052: checking for ld used by GCC" >&5
2052 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2054 # Accept absolute paths.
2056 test -z "$LD" && LD="$ac_prog"
2059 # If it fails, then pretend we aren't using GCC.
2063 # If it is relative, then search for the first ld in PATH.
2067 elif test "$with_gnu_ld" = yes; then
2068 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2069 echo "configure:2070: checking for GNU ld" >&5
2071 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2072 echo "configure:2073: checking for non-GNU ld" >&5
2074 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 if test -z "$LD"; then
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2079 for ac_dir in $PATH; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f "$ac_dir/$ac_prog"; then
2082 ac_cv_path_LD="$ac_dir/$ac_prog"
2083 # Check to see if the program is GNU ld. I'd rather use --version,
2084 # but apparently some GNU ld's only accept -v.
2085 # Break only if it was the GNU/non-GNU ld that we prefer.
2086 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2087 test "$with_gnu_ld" != no && break
2089 test "$with_gnu_ld" != yes && break
2095 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2100 if test -n "$LD"; then
2101 echo "$ac_t""$LD" 1>&6
2103 echo "$ac_t""no" 1>&6
2105 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2107 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2108 echo "configure:2109: checking if the linker ($LD) is GNU ld" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2113 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2114 ac_cv_prog_gnu_ld=yes
2116 ac_cv_prog_gnu_ld=no
2120 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2123 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2124 echo "configure:2125: checking for BSD-compatible nm" >&5
2125 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2130 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2134 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/nm; then
2137 # Check to see if the nm accepts a BSD-compat flag.
2138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2139 # nm: unknown option "B" ignored
2140 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2141 ac_cv_path_NM="$ac_dir/nm -B"
2142 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2143 ac_cv_path_NM="$ac_dir/nm -p"
2145 ac_cv_path_NM="$ac_dir/nm"
2151 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2157 echo "$ac_t""$NM" 1>&6
2160 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2161 echo "configure:2162: checking whether ln -s works" >&5
2162 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2166 if ln -s X conftestdata 2>/dev/null
2169 ac_cv_prog_LN_S="ln -s"
2174 LN_S="$ac_cv_prog_LN_S"
2175 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2176 echo "$ac_t""yes" 1>&6
2178 echo "$ac_t""no" 1>&6
2181 # Always use our own libtool.
2182 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2184 # Check for any special flags to pass to ltconfig.
2186 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2187 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2188 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2189 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2190 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2192 # Some flags need to be propagated to the compiler or linker for good
2196 # Find out which ABI we are using.
2197 echo '#line 2198 "configure"' > conftest.$ac_ext
2198 if { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2199 case "`/usr/bin/file conftest.o`" in
2215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2216 CFLAGS="$CFLAGS -belf"
2220 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2221 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2222 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2223 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2224 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2225 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2228 for ac_prog in mawk gawk nawk awk
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 if test -n "$AWK"; then
2238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2242 for ac_dir in $ac_dummy; do
2243 test -z "$ac_dir" && ac_dir=.
2244 if test -f $ac_dir/$ac_word; then
2245 ac_cv_prog_AWK="$ac_prog"
2252 AWK="$ac_cv_prog_AWK"
2253 if test -n "$AWK"; then
2254 echo "$ac_t""$AWK" 1>&6
2256 echo "$ac_t""no" 1>&6
2259 test -n "$AWK" && break
2262 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether ln -s works" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2268 if ln -s X conftestdata 2>/dev/null
2271 ac_cv_prog_LN_S="ln -s"
2276 LN_S="$ac_cv_prog_LN_S"
2277 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2278 echo "$ac_t""yes" 1>&6
2280 echo "$ac_t""no" 1>&6
2284 # Extract the first word of "sendmail", so it can be a program name with args.
2285 set dummy sendmail; ac_word=$2
2286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2287 echo "configure:2288: checking for $ac_word" >&5
2288 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2293 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2296 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2300 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2309 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2313 SENDMAIL="$ac_cv_path_SENDMAIL"
2314 if test -n "$SENDMAIL"; then
2315 echo "$ac_t""$SENDMAIL" 1>&6
2317 echo "$ac_t""no" 1>&6
2320 # Extract the first word of "vi", so it can be a program name with args.
2321 set dummy vi; ac_word=$2
2322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_word" >&5
2324 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2329 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2332 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 ac_dummy="$PATH:/usr/ucb"
2337 for ac_dir in $ac_dummy; do
2338 test -z "$ac_dir" && ac_dir=.
2339 if test -f $ac_dir/$ac_word; then
2340 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2345 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2349 EDITOR="$ac_cv_path_EDITOR"
2350 if test -n "$EDITOR"; then
2351 echo "$ac_t""$EDITOR" 1>&6
2353 echo "$ac_t""no" 1>&6
2356 # Extract the first word of "finger", so it can be a program name with args.
2357 set dummy finger; ac_word=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2368 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2372 ac_dummy="$PATH:/usr/ucb"
2373 for ac_dir in $ac_dummy; do
2374 test -z "$ac_dir" && ac_dir=.
2375 if test -f $ac_dir/$ac_word; then
2376 ac_cv_path_FINGER="$ac_dir/$ac_word"
2381 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2385 FINGER="$ac_cv_path_FINGER"
2386 if test -n "$FINGER"; then
2387 echo "$ac_t""$FINGER" 1>&6
2389 echo "$ac_t""no" 1>&6
2393 if test $ol_enable_perl = yes ; then
2394 # Extract the first word of "perl", so it can be a program name with args.
2395 set dummy perl; ac_word=$2
2396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2397 echo "configure:2398: checking for $ac_word" >&5
2398 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2403 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2406 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2411 for ac_dir in $ac_dummy; do
2412 test -z "$ac_dir" && ac_dir=.
2413 if test -f $ac_dir/$ac_word; then
2414 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2419 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2423 PERLBIN="$ac_cv_path_PERLBIN"
2424 if test -n "$PERLBIN"; then
2425 echo "$ac_t""$PERLBIN" 1>&6
2427 echo "$ac_t""no" 1>&6
2431 if test "no$PERLBIN" = "no" ; then
2435 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2436 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2439 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2440 echo "configure:2441: checking how to run the C preprocessor" >&5
2441 # On Suns, sometimes $CPP names a directory.
2442 if test -n "$CPP" && test -d "$CPP"; then
2445 if test -z "$CPP"; then
2446 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 # This must be in double quotes, not single quotes, because CPP may get
2450 # substituted into the Makefile and "${CC-cc}" will confuse make.
2452 # On the NeXT, cc -E runs the code through the compiler's parser,
2453 # not just through cpp.
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2461 { (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2463 if test -z "$ac_err"; then
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 CPP="${CC-cc} -E -traditional-cpp"
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 CPP="${CC-cc} -nologo -E"
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2495 { (eval echo configure:2496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2497 if test -z "$ac_err"; then
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2511 ac_cv_prog_CPP="$CPP"
2513 CPP="$ac_cv_prog_CPP"
2515 ac_cv_prog_CPP="$CPP"
2517 echo "$ac_t""$CPP" 1>&6
2520 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2521 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2523 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2524 echo "configure: warning: programs compiled here do run here..." 1>&2
2525 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2527 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2528 echo "configure: warning: programs compiled here do not run here..." 1>&2
2529 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2532 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2533 echo "configure:2534: checking for AIX" >&5
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543 egrep "yes" >/dev/null 2>&1; then
2545 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2546 #define _ALL_SOURCE 1
2551 echo "$ac_t""no" 1>&6
2556 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2557 echo "configure:2558: checking for POSIXized ISC" >&5
2558 if test -d /etc/conf/kconfig.d &&
2559 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2561 echo "$ac_t""yes" 1>&6
2562 ISC=yes # If later tests want to check for ISC.
2563 cat >> confdefs.h <<\EOF
2564 #define _POSIX_SOURCE 1
2567 if test "$GCC" = yes; then
2573 echo "$ac_t""no" 1>&6
2577 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2579 echo "configure:2580: checking for minix/config.h" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <minix/config.h>
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2593 eval "ac_cv_header_$ac_safe=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2599 eval "ac_cv_header_$ac_safe=no"
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2607 echo "$ac_t""no" 1>&6
2611 if test "$MINIX" = yes; then
2612 cat >> confdefs.h <<\EOF
2613 #define _POSIX_SOURCE 1
2616 cat >> confdefs.h <<\EOF
2617 #define _POSIX_1_SOURCE 2
2620 cat >> confdefs.h <<\EOF
2627 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2628 echo "configure:2629: checking for Cygwin environment" >&5
2629 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2639 #define __CYGWIN__ __CYGWIN32__
2644 if { (eval echo configure:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2657 echo "$ac_t""$ac_cv_cygwin" 1>&6
2659 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2660 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2661 echo "configure:2662: checking for mingw32 environment" >&5
2662 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2686 echo "$ac_t""$ac_cv_mingw32" 1>&6
2688 test "$ac_cv_mingw32" = yes && MINGW32=yes
2691 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2692 echo "configure:2693: checking for executable suffix" >&5
2693 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2700 echo 'int main () { return 0; }' > conftest.$ac_ext
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2703 for file in conftest.*; do
2705 *.c | *.o | *.obj) ;;
2706 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2710 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2713 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2718 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2719 echo "$ac_t""${ac_cv_exeext}" 1>&6
2722 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2723 echo "configure:2724: checking for object suffix" >&5
2724 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2728 echo 'int i = 1;' > conftest.$ac_ext
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 for ac_file in conftest.*; do
2733 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2737 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2742 echo "$ac_t""$ac_cv_objext" 1>&6
2743 OBJEXT=$ac_cv_objext
2744 ac_objext=$ac_cv_objext
2750 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2751 echo "configure:2752: checking for ${CC-cc} option to accept ANSI C" >&5
2752 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 am_cv_prog_cc_stdc=no
2757 # Don't try gcc -ansi; that turns off useful extensions and
2758 # breaks some systems' header files.
2759 # AIX -qlanglvl=ansi
2760 # Ultrix and OSF/1 -std1
2761 # HP-UX -Aa -D_HPUX_SOURCE
2762 # SVR4 -Xc -D__EXTENSIONS__
2763 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2765 CC="$ac_save_CC $ac_arg"
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2771 #include <sys/types.h>
2772 #include <sys/stat.h>
2773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2774 struct buf { int x; };
2775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2776 static char *e (p, i)
2782 static char *f (char * (*g) (char **, int), char **p, ...)
2787 s = g (p, va_arg (v,int));
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2804 if { (eval echo configure:2805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2806 am_cv_prog_cc_stdc="$ac_arg"; break
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2817 if test -z "$am_cv_prog_cc_stdc"; then
2818 echo "$ac_t""none needed" 1>&6
2820 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2822 case "x$am_cv_prog_cc_stdc" in
2824 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2827 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2828 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2834 echo $ac_n "checking for socket""... $ac_c" 1>&6
2835 echo "configure:2836: checking for socket" >&5
2836 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 /* System header to define __stub macros and hopefully few prototypes,
2843 which can conflict with char socket(); below. */
2845 /* Override any gcc2 internal prototype to avoid an error. */
2846 /* We use char because int might match the return type of a gcc2
2847 builtin and then its argument prototype would still apply. */
2852 /* The GNU C library defines this for functions which it implements
2853 to always fail with ENOSYS. Some functions are actually named
2854 something starting with __ and the normal name is an alias. */
2855 #if defined (__stub_socket) || defined (__stub___socket)
2863 if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2865 eval "ac_cv_func_socket=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2870 eval "ac_cv_func_socket=no"
2875 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2876 echo "$ac_t""yes" 1>&6
2879 echo "$ac_t""no" 1>&6
2881 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2882 echo "configure:2883: checking for main in -lsocket" >&5
2883 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 ac_save_LIBS="$LIBS"
2888 LIBS="-lsocket $LIBS"
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2899 eval "ac_cv_lib_$ac_lib_var=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 eval "ac_cv_lib_$ac_lib_var=no"
2907 LIBS="$ac_save_LIBS"
2910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2914 cat >> confdefs.h <<EOF
2915 #define $ac_tr_lib 1
2918 LIBS="-lsocket $LIBS"
2921 echo "$ac_t""no" 1>&6
2924 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2925 echo "configure:2926: checking for main in -lnet" >&5
2926 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 ac_save_LIBS="$LIBS"
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 eval "ac_cv_lib_$ac_lib_var=no"
2950 LIBS="$ac_save_LIBS"
2953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2955 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2957 cat >> confdefs.h <<EOF
2958 #define $ac_tr_lib 1
2964 echo "$ac_t""no" 1>&6
2967 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2968 echo "configure:2969: checking for main in -lnsl_s" >&5
2969 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 ac_save_LIBS="$LIBS"
2974 LIBS="-lnsl_s $LIBS"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985 eval "ac_cv_lib_$ac_lib_var=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 eval "ac_cv_lib_$ac_lib_var=no"
2993 LIBS="$ac_save_LIBS"
2996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2998 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3000 cat >> confdefs.h <<EOF
3001 #define $ac_tr_lib 1
3004 LIBS="-lnsl_s $LIBS"
3007 echo "$ac_t""no" 1>&6
3010 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3011 echo "configure:3012: checking for main in -lnsl" >&5
3012 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_save_LIBS="$LIBS"
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3026 if { (eval echo configure:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3028 eval "ac_cv_lib_$ac_lib_var=yes"
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3033 eval "ac_cv_lib_$ac_lib_var=no"
3036 LIBS="$ac_save_LIBS"
3039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3040 echo "$ac_t""yes" 1>&6
3041 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3043 cat >> confdefs.h <<EOF
3044 #define $ac_tr_lib 1
3050 echo "$ac_t""no" 1>&6
3053 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3054 echo "configure:3055: checking for socket in -linet" >&5
3055 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 ac_save_LIBS="$LIBS"
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* Override any gcc2 internal prototype to avoid an error. */
3065 /* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3075 eval "ac_cv_lib_$ac_lib_var=yes"
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 eval "ac_cv_lib_$ac_lib_var=no"
3083 LIBS="$ac_save_LIBS"
3086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_lib 1
3097 echo "$ac_t""no" 1>&6
3100 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3101 echo "configure:3102: checking for main in -lgen" >&5
3102 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 ac_save_LIBS="$LIBS"
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3118 eval "ac_cv_lib_$ac_lib_var=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 eval "ac_cv_lib_$ac_lib_var=no"
3126 LIBS="$ac_save_LIBS"
3129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3133 cat >> confdefs.h <<EOF
3134 #define $ac_tr_lib 1
3140 echo "$ac_t""no" 1>&6
3147 for ac_func in res_search
3149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_func" >&5
3151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char $ac_func(); below. */
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180 eval "ac_cv_func_$ac_func=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 eval "ac_cv_func_$ac_func=no"
3190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3193 cat >> confdefs.h <<EOF
3194 #define $ac_tr_func 1
3198 echo "$ac_t""no" 1>&6
3202 if test $ac_cv_func_res_search = "no" ; then
3203 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3204 echo "configure:3205: checking for res_search in -lbind" >&5
3205 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 ac_save_LIBS="$LIBS"
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3225 eval "ac_cv_lib_$ac_lib_var=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 eval "ac_cv_lib_$ac_lib_var=no"
3233 LIBS="$ac_save_LIBS"
3236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_lib 1
3247 echo "$ac_t""no" 1>&6
3250 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3251 cat >> confdefs.h <<\EOF
3252 #define HAVE_RES_SEARCH 1
3256 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3257 echo "configure:3258: checking for res_search in -lresolv" >&5
3258 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 ac_save_LIBS="$LIBS"
3263 LIBS="-lresolv $LIBS"
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_lib_$ac_lib_var=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_lib_$ac_lib_var=no"
3286 LIBS="$ac_save_LIBS"
3289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_lib 1
3297 LIBS="-lresolv $LIBS"
3300 echo "$ac_t""no" 1>&6
3303 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_RES_SEARCH 1
3312 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3313 echo "configure:3314: checking for sigset in -lV3" >&5
3314 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_save_LIBS="$LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3339 eval "ac_cv_lib_$ac_lib_var=no"
3342 LIBS="$ac_save_LIBS"
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3349 cat >> confdefs.h <<EOF
3350 #define $ac_tr_lib 1
3356 echo "$ac_t""no" 1>&6
3362 if test $ol_enable_ldapd != no ; then
3363 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3364 echo "configure:3365: checking for main in -lxtpp" >&5
3365 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 ac_save_LIBS="$LIBS"
3370 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_lib_$ac_lib_var=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_lib_$ac_lib_var=no"
3389 LIBS="$ac_save_LIBS"
3392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3396 cat >> confdefs.h <<\EOF
3400 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3403 echo "$ac_t""no" 1>&6
3407 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3408 echo "configure:3409: checking for main in -ldsap" >&5
3409 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 ac_save_LIBS="$LIBS"
3414 LIBS="-ldsap -lisode $LIBS"
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3425 eval "ac_cv_lib_$ac_lib_var=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 eval "ac_cv_lib_$ac_lib_var=no"
3433 LIBS="$ac_save_LIBS"
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3440 cat >> confdefs.h <<\EOF
3444 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3447 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3452 echo "configure:3453: checking for main in -lisode" >&5
3453 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 ac_save_LIBS="$LIBS"
3458 LIBS="-lisode $LIBS"
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_lib_$ac_lib_var=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_lib_$ac_lib_var=no"
3477 LIBS="$ac_save_LIBS"
3480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_ISODE 1
3488 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3491 echo "$ac_t""no" 1>&6
3497 if test $ol_link_isode != no; then
3498 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3499 echo "configure:3500: checking for main in -lpp" >&5
3500 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3530 cat >> confdefs.h <<\EOF
3534 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3537 echo "$ac_t""no" 1>&6
3542 # Extract the first word of "pepsy", so it can be a program name with args.
3543 set dummy pepsy; ac_word=$2
3544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3545 echo "configure:3546: checking for $ac_word" >&5
3546 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3554 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/$ac_word; then
3562 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3570 PEPSY="$ac_cv_path_PEPSY"
3571 if test -n "$PEPSY"; then
3572 echo "$ac_t""$PEPSY" 1>&6
3574 echo "$ac_t""no" 1>&6
3581 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3582 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3586 echo "configure:3587: checking for $ac_hdr" >&5
3587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3596 { (eval echo configure:3597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3598 if test -z "$ac_err"; then
3600 eval "ac_cv_header_$ac_safe=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_header_$ac_safe=no"
3610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3613 cat >> confdefs.h <<EOF
3614 #define $ac_tr_hdr 1
3618 echo "$ac_t""no" 1>&6
3623 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3624 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3625 echo "configure:3626: checking for main in -lkrb4" >&5
3626 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 ac_save_LIBS="$LIBS"
3631 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3642 eval "ac_cv_lib_$ac_lib_var=yes"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 eval "ac_cv_lib_$ac_lib_var=no"
3650 LIBS="$ac_save_LIBS"
3653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3654 echo "$ac_t""yes" 1>&6
3657 echo "$ac_t""no" 1>&6
3662 if test $have_k5 = yes ; then
3663 ol_with_kerberos=found
3664 ol_link_kerberos=yes
3666 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3668 LIBS="$KRB_LIBS $LIBS"
3670 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3671 echo "configure:3672: checking for des_debug in Kerberos libraries" >&5
3672 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3677 LIBS="$KRB_LIBS $LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3682 #include <kerberosIV/krb.h>
3683 #include <kerberosIV/des.h>
3684 extern int des_debug;
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 ol_cv_var_des_debug=yes
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 ol_cv_var_des_debug=no
3706 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3708 if test $ol_cv_var_des_debug= yes ; then
3709 cat >> confdefs.h <<\EOF
3710 #define HAVE_DES_DEBUG 1
3720 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3721 for ac_hdr in krb.h des.h
3723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_hdr" >&5
3726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3735 { (eval echo configure:3736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3737 if test -z "$ac_err"; then
3739 eval "ac_cv_header_$ac_safe=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3745 eval "ac_cv_header_$ac_safe=no"
3749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3752 cat >> confdefs.h <<EOF
3753 #define $ac_tr_hdr 1
3757 echo "$ac_t""no" 1>&6
3762 if test $ac_cv_header_krb_h = yes ; then
3763 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3764 echo "configure:3765: checking for main in -lkrb" >&5
3765 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 ac_save_LIBS="$LIBS"
3770 LIBS="-lkrb -ldes $LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_lib_$ac_lib_var=no"
3789 LIBS="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3796 echo "$ac_t""no" 1>&6
3801 if test $have_k4 = yes ; then
3802 ol_with_kerberos=found
3803 ol_link_kerberos=yes
3805 KRB_LIBS="-lkrb -ldes"
3810 if test $ol_link_kerberos = yes ; then
3811 cat >> confdefs.h <<\EOF
3812 #define HAVE_KERBEROS 1
3818 if test $ol_with_tls != no ; then
3822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_hdr" >&5
3825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3834 { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836 if test -z "$ac_err"; then
3838 eval "ac_cv_header_$ac_safe=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 eval "ac_cv_header_$ac_safe=no"
3848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3851 cat >> confdefs.h <<EOF
3852 #define $ac_tr_hdr 1
3856 echo "$ac_t""no" 1>&6
3861 if test $ac_cv_header_ssl_h = yes ; then
3862 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3863 echo "configure:3864: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3864 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3869 LIBS="-lssl -lcrypto $LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char SSLeay_add_ssl_algorithms();
3879 SSLeay_add_ssl_algorithms()
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3900 echo "$ac_t""no" 1>&6
3905 if test $have_ssleay = no ; then
3906 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
3907 echo "configure:3908: checking for ssl3_accept in -lssl" >&5
3908 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_save_LIBS="$LIBS"
3913 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 eval "ac_cv_lib_$ac_lib_var=no"
3936 LIBS="$ac_save_LIBS"
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3944 echo "$ac_t""no" 1>&6
3950 if test $have_ssleay = yes ; then
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_SSLEAY 1
3959 if test $need_rsaref = yes; then
3960 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
3962 TLS_LIBS="-lssl -lcrypto"
3968 if test $ol_link_tls = yes ; then
3969 cat >> confdefs.h <<\EOF
3976 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3977 -o $ol_with_threads = posix ; then
3979 for ac_hdr in pthread.h sched.h
3981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3983 echo "configure:3984: checking for $ac_hdr" >&5
3984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3993 { (eval echo configure:3994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3995 if test -z "$ac_err"; then
3997 eval "ac_cv_header_$ac_safe=yes"
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 eval "ac_cv_header_$ac_safe=no"
4007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4010 cat >> confdefs.h <<EOF
4011 #define $ac_tr_hdr 1
4015 echo "$ac_t""no" 1>&6
4020 if test $ac_cv_header_pthread_h = yes ; then
4021 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4022 echo "configure:4023: checking POSIX thread version" >&5
4023 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4031 # include <pthread.h>
4032 /* this check could be improved */
4033 # ifdef PTHREAD_ONCE_INIT
4034 pthread_version_final
4038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039 egrep "pthread_version_final" >/dev/null 2>&1; then
4041 ol_pthread_final=yes
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4053 # include <pthread.h>
4054 /* this check could be improved */
4055 # ifdef pthread_once_init
4056 pthread_version_draft4
4060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4063 ol_pthread_draft4=yes
4066 ol_pthread_draft4=no
4071 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4072 ol_cv_pthread_version=final
4073 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4074 ol_cv_pthread_version=draft4
4076 ol_cv_pthread_version=unknown
4081 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4084 if test $ol_cv_pthread_version = final ; then
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_PTHREADS_FINAL 1
4089 elif test $ol_cv_pthread_version = draft4 ; then
4090 cat >> confdefs.h <<\EOF
4091 #define HAVE_PTHREADS_D4 1
4095 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4098 # consider threads found
4099 ol_with_threads=found
4102 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4103 echo "configure:4104: checking for LinuxThreads" >&5
4104 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4108 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4109 if test "$res" -gt 0 ; then
4110 ol_cv_linux_threads=yes
4112 ol_cv_linux_threads=no
4117 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4120 if test $ol_cv_linux_threads = yes ; then
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_LINUX_THREADS 1
4128 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4129 echo "configure:4130: checking for pthread_create" >&5
4130 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* System header to define __stub macros and hopefully few prototypes,
4137 which can conflict with char pthread_create(); below. */
4139 /* Override any gcc2 internal prototype to avoid an error. */
4140 /* We use char because int might match the return type of a gcc2
4141 builtin and then its argument prototype would still apply. */
4142 char pthread_create();
4146 /* The GNU C library defines this for functions which it implements
4147 to always fail with ENOSYS. Some functions are actually named
4148 something starting with __ and the normal name is an alias. */
4149 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 eval "ac_cv_func_pthread_create=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 eval "ac_cv_func_pthread_create=no"
4169 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4173 echo "$ac_t""no" 1>&6
4177 if test $ol_link_threads = no ; then
4178 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4179 echo "configure:4180: checking for pthread_create with -kthread" >&5
4180 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4185 LIBS="-kthread $LIBS"
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <pthread.h>
4192 #if HAVE_PTHREADS_D4
4193 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4195 pthread_create(NULL,NULL,NULL,NULL);
4200 if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4202 ol_cv_kthread_flag=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 ol_cv_kthread_flag=no
4214 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4216 if test $ol_cv_kthread_flag = yes ; then
4217 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4218 ol_link_threads=posix
4222 if test $ol_link_threads = no ; then
4223 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4224 echo "configure:4225: checking for pthread_create with -pthread" >&5
4225 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4230 LIBS="-pthread $LIBS"
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4234 #include <pthread.h>
4237 #if HAVE_PTHREADS_D4
4238 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4240 pthread_create(NULL,NULL,NULL,NULL);
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 ol_cv_pthread_flag=yes
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 ol_cv_pthread_flag=no
4259 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4261 if test $ol_cv_pthread_flag = yes ; then
4262 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4263 ol_link_threads=posix
4267 if test $ol_link_threads = no ; then
4268 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4269 echo "configure:4270: checking for pthread_create with -pthreads" >&5
4270 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4275 LIBS="-pthreads $LIBS"
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 #include <pthread.h>
4282 #if HAVE_PTHREADS_D4
4283 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4285 pthread_create(NULL,NULL,NULL,NULL);
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 ol_cv_pthreads_flag=yes
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 ol_cv_pthreads_flag=no
4304 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4306 if test $ol_cv_pthreads_flag = yes ; then
4307 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4308 ol_link_threads=posix
4312 if test $ol_link_threads = no ; then
4313 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4314 echo "configure:4315: checking for pthread_create with -thread" >&5
4315 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4320 LIBS="-thread $LIBS"
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 char pthread_create();
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331 ol_cv_thread_flag=yes
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4336 ol_cv_thread_flag=no
4343 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4345 if test $ol_cv_thread_flag = yes ; then
4346 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4347 ol_link_threads=posix
4351 if test $ol_link_threads = no ; then
4352 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4353 echo "configure:4354: checking for pthread_create with -mt" >&5
4354 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 char pthread_create();
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370 ol_cv_thread_flag=yes
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4375 ol_cv_thread_flag=no
4382 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4384 if test $ol_cv_thread_flag = yes ; then
4385 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4386 ol_link_threads=posix
4390 if test $ol_link_threads = no ; then
4392 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4393 echo "configure:4394: checking for pthread_mutex_unlock in -lpthread" >&5
4394 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 ac_save_LIBS="$LIBS"
4399 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4406 char pthread_mutex_unlock();
4409 pthread_mutex_unlock()
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_lib_$ac_lib_var=no"
4422 LIBS="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4428 ol_link_threads=posix
4429 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4430 if test $ol_with_yielding_select = auto ; then
4431 ol_with_yielding_select=yes
4435 echo "$ac_t""no" 1>&6
4442 if test $ol_link_threads = no ; then
4444 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4445 echo "configure:4446: checking for pthread_mutex_lock in -lpthread" >&5
4446 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lpthread -lmach -lexc $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4458 char pthread_mutex_lock();
4461 pthread_mutex_lock()
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_lib_$ac_lib_var=no"
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4480 ol_link_threads=posix
4481 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4482 if test $ol_with_yielding_select = auto ; then
4483 ol_with_yielding_select=yes
4487 echo "$ac_t""no" 1>&6
4494 if test $ol_link_threads = no ; then
4496 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4497 echo "configure:4498: checking for pthread_mutex_trylock in -lpthread" >&5
4498 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 ac_save_LIBS="$LIBS"
4503 LIBS="-lpthread -lexc $LIBS"
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char pthread_mutex_trylock();
4513 pthread_mutex_trylock()
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518 eval "ac_cv_lib_$ac_lib_var=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 eval "ac_cv_lib_$ac_lib_var=no"
4526 LIBS="$ac_save_LIBS"
4529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4532 ol_link_threads=posix
4533 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4534 if test $ol_with_yielding_select = auto ; then
4535 ol_with_yielding_select=yes
4539 echo "$ac_t""no" 1>&6
4546 if test $ol_link_threads = no ; then
4548 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4549 echo "configure:4550: checking for pthread_create in -lpthread" >&5
4550 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 ac_save_LIBS="$LIBS"
4555 LIBS="-lpthread $LIBS"
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562 char pthread_create();
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 eval "ac_cv_lib_$ac_lib_var=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 eval "ac_cv_lib_$ac_lib_var=no"
4578 LIBS="$ac_save_LIBS"
4581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4584 ol_link_threads=posix
4585 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4587 echo "$ac_t""no" 1>&6
4594 if test $ol_link_threads = no ; then
4596 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4597 echo "configure:4598: checking for pthread_create in -lc_r" >&5
4598 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 ac_save_LIBS="$LIBS"
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 /* Override any gcc2 internal prototype to avoid an error. */
4608 /* We use char because int might match the return type of a gcc2
4609 builtin and then its argument prototype would still apply. */
4610 char pthread_create();
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618 eval "ac_cv_lib_$ac_lib_var=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 eval "ac_cv_lib_$ac_lib_var=no"
4626 LIBS="$ac_save_LIBS"
4629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4632 ol_link_threads=posix
4633 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4635 echo "$ac_t""no" 1>&6
4642 if test $ol_link_threads = no ; then
4644 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4645 echo "configure:4646: checking for pthread_create in -lpthreads" >&5
4646 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 ac_save_LIBS="$LIBS"
4651 LIBS="-lpthreads $LIBS"
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4658 char pthread_create();
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4666 eval "ac_cv_lib_$ac_lib_var=yes"
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4671 eval "ac_cv_lib_$ac_lib_var=no"
4674 LIBS="$ac_save_LIBS"
4677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4680 ol_link_threads=posix
4681 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4683 echo "$ac_t""no" 1>&6
4690 if test $ol_link_threads = no ; then
4692 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4693 echo "configure:4694: checking for pthread_join in -lpthreads" >&5
4694 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 ac_save_LIBS="$LIBS"
4699 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* Override any gcc2 internal prototype to avoid an error. */
4704 /* We use char because int might match the return type of a gcc2
4705 builtin and then its argument prototype would still apply. */
4706 char pthread_join();
4712 if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4714 eval "ac_cv_lib_$ac_lib_var=yes"
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4719 eval "ac_cv_lib_$ac_lib_var=no"
4722 LIBS="$ac_save_LIBS"
4725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4726 echo "$ac_t""yes" 1>&6
4728 ol_link_threads=posix
4729 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4732 echo "$ac_t""no" 1>&6
4739 if test $ol_link_threads = no ; then
4740 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4741 echo "configure:4742: checking for pthread_create with -threads" >&5
4742 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4747 LIBS="-threads $LIBS"
4748 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 char pthread_create();
4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4760 ol_cv_thread_flag=yes
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4765 ol_cv_thread_flag=no
4772 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4774 if test $ol_cv_thread_flag = yes ; then
4775 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4776 ol_link_threads=posix
4780 if test $ol_link_threads = no ; then
4782 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4783 echo "configure:4784: checking for pthread_mutex_unlock in -lpthreads" >&5
4784 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 ac_save_LIBS="$LIBS"
4789 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* Override any gcc2 internal prototype to avoid an error. */
4794 /* We use char because int might match the return type of a gcc2
4795 builtin and then its argument prototype would still apply. */
4796 char pthread_mutex_unlock();
4799 pthread_mutex_unlock()
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4804 eval "ac_cv_lib_$ac_lib_var=yes"
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4809 eval "ac_cv_lib_$ac_lib_var=no"
4812 LIBS="$ac_save_LIBS"
4815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4818 ol_link_threads=posix
4819 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4820 if test $ol_with_yielding_select = auto ; then
4821 ol_with_yielding_select=yes
4825 echo "$ac_t""no" 1>&6
4832 if test $ol_link_threads = no ; then
4834 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4835 echo "configure:4836: checking for pthread_mutex_lock in -lpthreads" >&5
4836 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 ac_save_LIBS="$LIBS"
4841 LIBS="-lpthreads -lmach -lexc $LIBS"
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4848 char pthread_mutex_lock();
4851 pthread_mutex_lock()
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4856 eval "ac_cv_lib_$ac_lib_var=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4861 eval "ac_cv_lib_$ac_lib_var=no"
4864 LIBS="$ac_save_LIBS"
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4870 ol_link_threads=posix
4871 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4872 if test $ol_with_yielding_select = auto ; then
4873 ol_with_yielding_select=yes
4877 echo "$ac_t""no" 1>&6
4884 if test $ol_link_threads = no ; then
4886 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4887 echo "configure:4888: checking for pthread_mutex_trylock in -lpthreads" >&5
4888 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 ac_save_LIBS="$LIBS"
4893 LIBS="-lpthreads -lexc $LIBS"
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4900 char pthread_mutex_trylock();
4903 pthread_mutex_trylock()
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4908 eval "ac_cv_lib_$ac_lib_var=yes"
4910 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4913 eval "ac_cv_lib_$ac_lib_var=no"
4916 LIBS="$ac_save_LIBS"
4919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4922 ol_link_threads=posix
4923 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4924 if test $ol_with_yielding_select = auto ; then
4925 ol_with_yielding_select=yes
4929 echo "$ac_t""no" 1>&6
4936 if test $ol_link_threads != no ; then
4937 cat >> confdefs.h <<\EOF
4938 #define HAVE_PTHREADS 1
4942 save_CPPFLAGS="$CPPFLAGS"
4944 LIBS="$LTHREAD_LIBS $LIBS"
4946 for ac_func in sched_yield pthread_yield
4948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_func" >&5
4950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char $ac_func(); below. */
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4966 /* The GNU C library defines this for functions which it implements
4967 to always fail with ENOSYS. Some functions are actually named
4968 something starting with __ and the normal name is an alias. */
4969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 eval "ac_cv_func_$ac_func=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_func_$ac_func=no"
4989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4992 cat >> confdefs.h <<EOF
4993 #define $ac_tr_func 1
4997 echo "$ac_t""no" 1>&6
5002 if test $ac_cv_func_sched_yield = no -a \
5003 $ac_cv_func_pthread_yield = no ; then
5004 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5005 echo "configure:5006: checking for sched_yield in -lrt" >&5
5006 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 ac_save_LIBS="$LIBS"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 eval "ac_cv_lib_$ac_lib_var=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 eval "ac_cv_lib_$ac_lib_var=no"
5034 LIBS="$ac_save_LIBS"
5037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5038 echo "$ac_t""yes" 1>&6
5039 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5040 cat >> confdefs.h <<\EOF
5041 #define HAVE_SCHED_YIELD 1
5044 ac_cv_func_sched_yield=yes
5046 echo "$ac_t""no" 1>&6
5047 ac_cv_func_sched_yield=no
5051 if test $ac_cv_func_sched_yield = no -a \
5052 $ac_cv_func_pthread_yield = no ; then
5053 for ac_func in thr_yield
5055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5056 echo "configure:5057: checking for $ac_func" >&5
5057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 /* System header to define __stub macros and hopefully few prototypes,
5064 which can conflict with char $ac_func(); below. */
5066 /* Override any gcc2 internal prototype to avoid an error. */
5067 /* We use char because int might match the return type of a gcc2
5068 builtin and then its argument prototype would still apply. */
5073 /* The GNU C library defines this for functions which it implements
5074 to always fail with ENOSYS. Some functions are actually named
5075 something starting with __ and the normal name is an alias. */
5076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5084 if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5086 eval "ac_cv_func_$ac_func=yes"
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 eval "ac_cv_func_$ac_func=no"
5096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5099 cat >> confdefs.h <<EOF
5100 #define $ac_tr_func 1
5104 echo "$ac_t""no" 1>&6
5109 if test $ac_cv_func_sched_yield = no -a \
5110 $ac_cv_func_pthread_yield = no -a \
5111 "$ac_cv_func_thr_yield" = no ; then
5112 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5115 for ac_func in pthread_kill
5117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5118 echo "configure:5119: checking for $ac_func" >&5
5119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5125 /* System header to define __stub macros and hopefully few prototypes,
5126 which can conflict with char $ac_func(); below. */
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5135 /* The GNU C library defines this for functions which it implements
5136 to always fail with ENOSYS. Some functions are actually named
5137 something starting with __ and the normal name is an alias. */
5138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 eval "ac_cv_func_$ac_func=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 eval "ac_cv_func_$ac_func=no"
5158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5161 cat >> confdefs.h <<EOF
5162 #define $ac_tr_func 1
5166 echo "$ac_t""no" 1>&6
5171 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5172 echo "configure:5173: checking for pthread_detach with <pthread.h>" >&5
5173 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 #include <pthread.h>
5182 pthread_detach(NULL);
5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5187 ol_cv_func_pthread_detach=yes
5189 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5192 ol_cv_func_pthread_detach=no
5198 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5200 if test $ol_cv_func_pthread_detach = no ; then
5201 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5204 cat >> confdefs.h <<\EOF
5205 #define HAVE_PTHREAD_DETACH 1
5210 pthread_setconcurrency \
5211 pthread_getconcurrency \
5212 thr_setconcurrency \
5213 thr_getconcurrency \
5216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5217 echo "configure:5218: checking for $ac_func" >&5
5218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char $ac_func(); below. */
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5234 /* The GNU C library defines this for functions which it implements
5235 to always fail with ENOSYS. Some functions are actually named
5236 something starting with __ and the normal name is an alias. */
5237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5247 eval "ac_cv_func_$ac_func=yes"
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5252 eval "ac_cv_func_$ac_func=no"
5257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5260 cat >> confdefs.h <<EOF
5261 #define $ac_tr_func 1
5265 echo "$ac_t""no" 1>&6
5270 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5271 echo "configure:5272: checking if pthread_create() works" >&5
5272 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5276 if test "$cross_compiling" = yes; then
5277 ol_cv_pthread_create_works=yes
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5283 #include <pthread.h>
5285 #define NULL (void*)0
5288 static void *task(p)
5291 return (void *) (p == NULL);
5294 int main(argc, argv)
5299 #if HAVE_PTHREADS_D4
5300 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5302 exit(pthread_create(&t, NULL, task, NULL));
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5309 ol_cv_pthread_create_works=yes
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 ol_cv_pthread_create_works=no
5321 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5323 if test $ol_cv_pthread_create_works = no ; then
5324 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5327 if test $ol_with_yielding_select = auto ; then
5328 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5329 echo "configure:5330: checking if select yields when using pthreads" >&5
5330 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5334 if test "$cross_compiling" = yes; then
5336 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5342 #include <sys/types.h>
5343 #include <sys/time.h>
5345 #include <pthread.h>
5347 #define NULL (void*) 0
5350 static int fildes[2];
5352 static void *task(p)
5364 FD_SET(fildes[0], &rfds);
5366 /* we're not interested in any fds */
5367 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5374 exit(0); /* if we exit here, the select blocked the whole process */
5377 int main(argc, argv)
5383 /* create a pipe to select */
5384 if(pipe(&fildes[0])) {
5389 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5390 (void) pthread_setconcurrency(2);
5392 #ifdef HAVE_THR_SETCONCURRENCY
5393 /* Set Solaris LWP concurrency to 2 */
5394 thr_setconcurrency(2);
5398 #if HAVE_PTHREADS_D4
5399 pthread_create(&t, pthread_attr_default, task, NULL);
5401 pthread_create(&t, NULL, task, NULL);
5404 #if HAVE_SCHED_YIELD
5405 sched_yield(); /* make sure task runs first */
5407 #ifdef HAVE_PTHREAD_YIELD
5408 pthread_yield(); /* make sure task runs first */
5415 if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5417 ol_cv_pthread_select_yields=no
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5422 ol_cv_pthread_select_yields=yes
5429 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5431 if test $ol_cv_pthread_select_yields = yes ; then
5432 ol_with_yielding_select=yes
5436 CPPFLAGS="$save_CPPFLAGS"
5439 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5443 if test $ol_with_threads = posix ; then
5444 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5448 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5449 -o $ol_with_threads = mach ; then
5451 for ac_hdr in mach/cthreads.h
5453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5455 echo "configure:5456: checking for $ac_hdr" >&5
5456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5465 { (eval echo configure:5466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5467 if test -z "$ac_err"; then
5469 eval "ac_cv_header_$ac_safe=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 eval "ac_cv_header_$ac_safe=no"
5479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5482 cat >> confdefs.h <<EOF
5483 #define $ac_tr_hdr 1
5487 echo "$ac_t""no" 1>&6
5491 if test $ac_cv_header_mach_cthreads_h = yes ; then
5492 ol_with_threads=found
5494 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5495 echo "configure:5496: checking for cthread_fork" >&5
5496 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* System header to define __stub macros and hopefully few prototypes,
5503 which can conflict with char cthread_fork(); below. */
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5508 char cthread_fork();
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 eval "ac_cv_func_cthread_fork=yes"
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 eval "ac_cv_func_cthread_fork=no"
5535 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5539 echo "$ac_t""no" 1>&6
5543 if test $ol_link_threads = no ; then
5544 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5545 echo "configure:5546: checking for cthread_fork with -all_load" >&5
5546 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5551 LIBS="-all_load $LIBS"
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 #include <mach/cthreads.h>
5558 cthread_fork((void *)0, (void *)0);
5562 if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5564 ol_cv_cthread_all_load=yes
5566 echo "configure: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5569 ol_cv_cthread_all_load=no
5576 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5578 if test $ol_cv_cthread_all_load = yes ; then
5579 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5580 ol_link_threads=mach
5584 if test $ol_link_threads != no ; then
5585 : check for cthread specific functionality here
5586 cat >> confdefs.h <<\EOF
5587 #define HAVE_MACH_CTHREADS 1
5591 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5595 if test $ol_with_threads = mach ; then
5596 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5600 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5601 -o $ol_with_threads = lwp ; then
5603 for ac_hdr in thread.h synch.h
5605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5607 echo "configure:5608: checking for $ac_hdr" >&5
5608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5617 { (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5619 if test -z "$ac_err"; then
5621 eval "ac_cv_header_$ac_safe=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_header_$ac_safe=no"
5631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5634 cat >> confdefs.h <<EOF
5635 #define $ac_tr_hdr 1
5639 echo "$ac_t""no" 1>&6
5643 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5644 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5645 echo "configure:5646: checking for thr_create in -lthread" >&5
5646 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 ac_save_LIBS="$LIBS"
5651 LIBS="-lthread $LIBS"
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5664 if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5666 eval "ac_cv_lib_$ac_lib_var=yes"
5668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 eval "ac_cv_lib_$ac_lib_var=no"
5674 LIBS="$ac_save_LIBS"
5677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5681 echo "$ac_t""no" 1>&6
5686 if test $have_thr = yes ; then
5687 cat >> confdefs.h <<\EOF
5691 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5694 if test $ol_with_yielding_select = auto ; then
5695 ol_with_yielding_select=yes
5699 thr_setconcurrency \
5700 thr_getconcurrency \
5703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5704 echo "configure:5705: checking for $ac_func" >&5
5705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5711 /* System header to define __stub macros and hopefully few prototypes,
5712 which can conflict with char $ac_func(); below. */
5714 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5721 /* The GNU C library defines this for functions which it implements
5722 to always fail with ENOSYS. Some functions are actually named
5723 something starting with __ and the normal name is an alias. */
5724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5732 if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5734 eval "ac_cv_func_$ac_func=yes"
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_func_$ac_func=no"
5744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5745 echo "$ac_t""yes" 1>&6
5746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5747 cat >> confdefs.h <<EOF
5748 #define $ac_tr_func 1
5752 echo "$ac_t""no" 1>&6
5759 for ac_hdr in lwp/lwp.h
5761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5763 echo "configure:5764: checking for $ac_hdr" >&5
5764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5773 { (eval echo configure:5774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5775 if test -z "$ac_err"; then
5777 eval "ac_cv_header_$ac_safe=yes"
5780 echo "configure: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5783 eval "ac_cv_header_$ac_safe=no"
5787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5788 echo "$ac_t""yes" 1>&6
5789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5790 cat >> confdefs.h <<EOF
5791 #define $ac_tr_hdr 1
5795 echo "$ac_t""no" 1>&6
5799 if test $ac_cv_header_lwp_lwp_h = yes ; then
5800 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5801 echo "configure:5802: checking for lwp_create in -llwp" >&5
5802 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 ac_save_LIBS="$LIBS"
5808 cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure"
5810 #include "confdefs.h"
5811 /* Override any gcc2 internal prototype to avoid an error. */
5812 /* We use char because int might match the return type of a gcc2
5813 builtin and then its argument prototype would still apply. */
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 eval "ac_cv_lib_$ac_lib_var=yes"
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5827 eval "ac_cv_lib_$ac_lib_var=no"
5830 LIBS="$ac_save_LIBS"
5833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5834 echo "$ac_t""yes" 1>&6
5837 echo "$ac_t""no" 1>&6
5842 if test $have_lwp = yes ; then
5843 cat >> confdefs.h <<\EOF
5847 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5850 if test $ol_with_yielding_select = auto ; then
5851 ol_with_yielding_select=no
5857 if test $ol_with_yielding_select = yes ; then
5858 cat >> confdefs.h <<\EOF
5859 #define HAVE_YIELDING_SELECT 1
5864 if test $ol_with_threads = manual ; then
5867 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5869 for ac_hdr in pthread.h sched.h
5871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5873 echo "configure:5874: checking for $ac_hdr" >&5
5874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5883 { (eval echo configure:5884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5885 if test -z "$ac_err"; then
5887 eval "ac_cv_header_$ac_safe=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 eval "ac_cv_header_$ac_safe=no"
5897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5898 echo "$ac_t""yes" 1>&6
5899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5900 cat >> confdefs.h <<EOF
5901 #define $ac_tr_hdr 1
5905 echo "$ac_t""no" 1>&6
5909 for ac_func in sched_yield pthread_yield
5911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_func" >&5
5913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func(); below. */
5922 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5929 /* The GNU C library defines this for functions which it implements
5930 to always fail with ENOSYS. Some functions are actually named
5931 something starting with __ and the normal name is an alias. */
5932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 eval "ac_cv_func_$ac_func=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 eval "ac_cv_func_$ac_func=no"
5952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5953 echo "$ac_t""yes" 1>&6
5954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5955 cat >> confdefs.h <<EOF
5956 #define $ac_tr_func 1
5960 echo "$ac_t""no" 1>&6
5965 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5966 echo "configure:5967: checking for LinuxThreads" >&5
5967 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5971 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5972 if test "$res" -gt 0 ; then
5973 ol_cv_linux_threads=yes
5975 ol_cv_linux_threads=no
5980 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5983 for ac_hdr in mach/cthreads.h
5985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5987 echo "configure:5988: checking for $ac_hdr" >&5
5988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5997 { (eval echo configure:5998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5999 if test -z "$ac_err"; then
6001 eval "ac_cv_header_$ac_safe=yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 eval "ac_cv_header_$ac_safe=no"
6011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6014 cat >> confdefs.h <<EOF
6015 #define $ac_tr_hdr 1
6019 echo "$ac_t""no" 1>&6
6023 for ac_hdr in lwp/lwp.h
6025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6027 echo "configure:6028: checking for $ac_hdr" >&5
6028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6037 { (eval echo configure:6038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6039 if test -z "$ac_err"; then
6041 eval "ac_cv_header_$ac_safe=yes"
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6047 eval "ac_cv_header_$ac_safe=no"
6051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6052 echo "$ac_t""yes" 1>&6
6053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6054 cat >> confdefs.h <<EOF
6055 #define $ac_tr_hdr 1
6059 echo "$ac_t""no" 1>&6
6063 for ac_hdr in thread.h synch.h
6065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6067 echo "configure:6068: checking for $ac_hdr" >&5
6068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6077 { (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6079 if test -z "$ac_err"; then
6081 eval "ac_cv_header_$ac_safe=yes"
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6087 eval "ac_cv_header_$ac_safe=no"
6091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6094 cat >> confdefs.h <<EOF
6095 #define $ac_tr_hdr 1
6099 echo "$ac_t""no" 1>&6
6105 if test $ol_link_threads != no ; then
6106 cat >> confdefs.h <<\EOF
6110 cat >> confdefs.h <<\EOF
6111 #define _REENTRANT 1
6114 cat >> confdefs.h <<\EOF
6115 #define THREAD_SAFE 1
6118 cat >> confdefs.h <<\EOF
6119 #define _THREAD_SAFE 1
6122 cat >> confdefs.h <<\EOF
6123 #define THREADSAFE 1
6126 cat >> confdefs.h <<\EOF
6127 #define _THREADSAFE 1
6131 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6132 echo "configure:6133: checking for thread specific errno" >&5
6133 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6145 if { (eval echo configure:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6147 ol_cv_errno_thread_specific=yes
6149 echo "configure: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6152 ol_cv_errno_thread_specific=no
6158 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6160 if test $ol_cv_errno_thread_specific != yes ; then
6161 LIBS="$LTHREAD_LIBS $LIBS"
6168 if test $ol_link_threads = no ; then
6169 if test $ol_with_threads = yes ; then
6170 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6173 if test $ol_with_threads = auto ; then
6174 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6178 cat >> confdefs.h <<\EOF
6179 #define NO_THREADS 1
6186 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6187 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6188 echo "configure:6189: checking for DB2 library" >&5
6189 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6193 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6194 echo "configure:6195: checking for db_open in -ldb" >&5
6195 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6199 ac_save_LIBS="$LIBS"
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6215 eval "ac_cv_lib_$ac_lib_var=yes"
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6220 eval "ac_cv_lib_$ac_lib_var=no"
6223 LIBS="$ac_save_LIBS"
6226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6227 echo "$ac_t""yes" 1>&6
6230 echo "$ac_t""no" 1>&6
6238 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_hdr" >&5
6245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6256 if test -z "$ac_err"; then
6258 eval "ac_cv_header_$ac_safe=yes"
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6264 eval "ac_cv_header_$ac_safe=no"
6268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6271 cat >> confdefs.h <<EOF
6272 #define $ac_tr_hdr 1
6276 echo "$ac_t""no" 1>&6
6280 if test $ac_cv_header_db_h = yes ; then
6281 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6282 echo "configure:6283: checking if db.h is DB2" >&5
6283 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6292 /* this check could be improved */
6293 # ifdef DB_VERSION_MAJOR
6294 # if DB_VERSION_MAJOR == 2
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 egrep "__db_version_2" >/dev/null 2>&1; then
6303 ol_cv_header_db2=yes
6312 echo "$ac_t""$ol_cv_header_db2" 1>&6
6319 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6320 echo "configure:6321: checking for Berkeley DB2" >&5
6321 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6325 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6326 ol_cv_berkeley_db2=no
6328 ol_cv_berkeley_db2=yes
6333 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6334 if test $ol_cv_berkeley_db2 = yes ; then
6335 cat >> confdefs.h <<\EOF
6336 #define HAVE_BERKELEY_DB2 1
6342 if test $ol_cv_berkeley_db2 = yes ; then
6344 ol_with_ldbm_api=db2
6346 if test $ol_with_ldbm_type = hash ; then
6347 cat >> confdefs.h <<\EOF
6348 #define LDBM_USE_DBHASH 1
6352 cat >> confdefs.h <<\EOF
6353 #define LDBM_USE_DBBTREE 1
6358 if test $ol_cv_lib_db2 != yes ; then
6359 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6365 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6369 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6370 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6371 echo "configure:6372: checking for Berkeley DB library" >&5
6372 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6376 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6377 echo "configure:6378: checking for dbopen" >&5
6378 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char dbopen(); below. */
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 eval "ac_cv_func_dbopen=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6412 eval "ac_cv_func_dbopen=no"
6417 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6421 echo "$ac_t""no" 1>&6
6423 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6424 echo "configure:6425: checking for dbopen in -ldb" >&5
6425 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6429 ac_save_LIBS="$LIBS"
6431 cat > conftest.$ac_ext <<EOF
6432 #line 6433 "configure"
6433 #include "confdefs.h"
6434 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 eval "ac_cv_lib_$ac_lib_var=yes"
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 eval "ac_cv_lib_$ac_lib_var=no"
6453 LIBS="$ac_save_LIBS"
6456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6460 echo "$ac_t""no" 1>&6
6471 echo "$ac_t""$ol_cv_lib_db" 1>&6
6474 for ac_hdr in db_185.h
6476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6478 echo "configure:6479: checking for $ac_hdr" >&5
6479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6488 { (eval echo configure:6489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6490 if test -z "$ac_err"; then
6492 eval "ac_cv_header_$ac_safe=yes"
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6498 eval "ac_cv_header_$ac_safe=no"
6502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6503 echo "$ac_t""yes" 1>&6
6504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6505 cat >> confdefs.h <<EOF
6506 #define $ac_tr_hdr 1
6510 echo "$ac_t""no" 1>&6
6514 if test "$ol_cv_header_db2" = yes ; then
6516 ol_cv_header_db=$ac_cv_header_db_185_h
6518 ol_cv_header_db=$ac_cv_header_db_h
6523 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6524 echo "configure:6525: checking for Berkeley DB" >&5
6525 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6529 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6530 ol_cv_berkeley_db=no
6532 ol_cv_berkeley_db=yes
6537 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6538 if test $ol_cv_berkeley_db = yes ; then
6539 cat >> confdefs.h <<\EOF
6540 #define HAVE_BERKELEY_DB 1
6546 if test $ol_cv_berkeley_db = yes ; then
6550 if test $ol_with_ldbm_type = hash ; then
6551 cat >> confdefs.h <<\EOF
6552 #define LDBM_USE_DBHASH 1
6556 cat >> confdefs.h <<\EOF
6557 #define LDBM_USE_DBBTREE 1
6562 if test $ol_cv_lib_db != yes ; then
6563 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6568 if test $ol_with_ldbm_api = manual ; then
6571 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6573 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6577 echo "configure:6578: checking for $ac_hdr" >&5
6578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6587 { (eval echo configure:6588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6589 if test -z "$ac_err"; then
6591 eval "ac_cv_header_$ac_safe=yes"
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6597 eval "ac_cv_header_$ac_safe=no"
6601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6604 cat >> confdefs.h <<EOF
6605 #define $ac_tr_hdr 1
6609 echo "$ac_t""no" 1>&6
6615 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6616 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6617 ol_with_ldbm_api=none
6620 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6621 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6622 echo "configure:6623: checking for GDBM library" >&5
6623 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6627 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6628 echo "configure:6629: checking for gdbm_open" >&5
6629 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6632 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 /* System header to define __stub macros and hopefully few prototypes,
6636 which can conflict with char gdbm_open(); below. */
6638 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */
6645 /* The GNU C library defines this for functions which it implements
6646 to always fail with ENOSYS. Some functions are actually named
6647 something starting with __ and the normal name is an alias. */
6648 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6658 eval "ac_cv_func_gdbm_open=yes"
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 eval "ac_cv_func_gdbm_open=no"
6668 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6669 echo "$ac_t""yes" 1>&6
6672 echo "$ac_t""no" 1>&6
6674 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6675 echo "configure:6676: checking for gdbm_open in -lgdbm" >&5
6676 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 ac_save_LIBS="$LIBS"
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6685 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 eval "ac_cv_lib_$ac_lib_var=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_lib_$ac_lib_var=no"
6704 LIBS="$ac_save_LIBS"
6707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6708 echo "$ac_t""yes" 1>&6
6709 ol_cv_lib_gdbm=-lgdbm
6711 echo "$ac_t""no" 1>&6
6722 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6725 for ac_hdr in gdbm.h
6727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_hdr" >&5
6730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6739 { (eval echo configure:6740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6741 if test -z "$ac_err"; then
6743 eval "ac_cv_header_$ac_safe=yes"
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 eval "ac_cv_header_$ac_safe=no"
6753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6754 echo "$ac_t""yes" 1>&6
6755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6756 cat >> confdefs.h <<EOF
6757 #define $ac_tr_hdr 1
6761 echo "$ac_t""no" 1>&6
6765 echo $ac_n "checking for db""... $ac_c" 1>&6
6766 echo "configure:6767: checking for db" >&5
6767 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6771 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6779 echo "$ac_t""$ol_cv_gdbm" 1>&6
6780 if test $ol_cv_gdbm = yes ; then
6781 cat >> confdefs.h <<\EOF
6788 if test $ol_cv_gdbm = yes ; then
6790 ol_with_ldbm_api=gdbm
6792 if test $ol_cv_lib_gdbm != yes ; then
6793 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6798 if test $ol_with_ldbm_api = auto ; then
6799 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6800 elif test $ol_with_ldbm_api = ndbm ; then
6801 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6802 echo "configure:6803: checking for NDBM library" >&5
6803 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6807 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6808 echo "configure:6809: checking for dbm_open" >&5
6809 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* System header to define __stub macros and hopefully few prototypes,
6816 which can conflict with char dbm_open(); below. */
6818 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6825 /* The GNU C library defines this for functions which it implements
6826 to always fail with ENOSYS. Some functions are actually named
6827 something starting with __ and the normal name is an alias. */
6828 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6838 eval "ac_cv_func_dbm_open=yes"
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6843 eval "ac_cv_func_dbm_open=no"
6848 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6852 echo "$ac_t""no" 1>&6
6854 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6855 echo "configure:6856: checking for dbm_open in -lndbm" >&5
6856 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 ac_save_LIBS="$LIBS"
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6876 eval "ac_cv_lib_$ac_lib_var=yes"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 eval "ac_cv_lib_$ac_lib_var=no"
6884 LIBS="$ac_save_LIBS"
6887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6889 ol_cv_lib_ndbm=-lndbm
6891 echo "$ac_t""no" 1>&6
6893 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6894 echo "configure:6895: checking for dbm_open in -ldbm" >&5
6895 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 ac_save_LIBS="$LIBS"
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 /* Override any gcc2 internal prototype to avoid an error. */
6905 /* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */
6913 if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6915 eval "ac_cv_lib_$ac_lib_var=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 eval "ac_cv_lib_$ac_lib_var=no"
6923 LIBS="$ac_save_LIBS"
6926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6927 echo "$ac_t""yes" 1>&6
6928 ol_cv_lib_ndbm=-ldbm
6930 echo "$ac_t""no" 1>&6
6943 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6946 for ac_hdr in ndbm.h
6948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6950 echo "configure:6951: checking for $ac_hdr" >&5
6951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6960 { (eval echo configure:6961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6962 if test -z "$ac_err"; then
6964 eval "ac_cv_header_$ac_safe=yes"
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6970 eval "ac_cv_header_$ac_safe=no"
6974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6977 cat >> confdefs.h <<EOF
6978 #define $ac_tr_hdr 1
6982 echo "$ac_t""no" 1>&6
6986 echo $ac_n "checking for db""... $ac_c" 1>&6
6987 echo "configure:6988: checking for db" >&5
6988 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6
6992 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7000 echo "$ac_t""$ol_cv_ndbm" 1>&6
7001 if test $ol_cv_ndbm = yes ; then
7002 cat >> confdefs.h <<\EOF
7009 if test $ol_cv_ndbm = yes ; then
7011 ol_with_ldbm_api=ndbm
7013 if test $ol_cv_lib_ndbm != yes ; then
7014 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7019 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7020 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7021 if test $ol_enable_ldbm = yes ; then
7022 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7025 echo "configure: warning: disabling LDBM" 1>&2
7029 if test $ol_enable_wrappers != no ; then
7030 for ac_hdr in tcpd.h
7032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7034 echo "configure:7035: checking for $ac_hdr" >&5
7035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7046 if test -z "$ac_err"; then
7048 eval "ac_cv_header_$ac_safe=yes"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 eval "ac_cv_header_$ac_safe=no"
7058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7059 echo "$ac_t""yes" 1>&6
7060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7061 cat >> confdefs.h <<EOF
7062 #define $ac_tr_hdr 1
7066 echo "$ac_t""no" 1>&6
7071 if test $ac_cv_header_tcpd_h != yes ; then
7074 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7075 echo "configure:7076: checking for main in -lwrap" >&5
7076 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 ac_save_LIBS="$LIBS"
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7090 if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 eval "ac_cv_lib_$ac_lib_var=yes"
7094 echo "configure: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7097 eval "ac_cv_lib_$ac_lib_var=no"
7100 LIBS="$ac_save_LIBS"
7103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7107 echo "$ac_t""no" 1>&6
7113 if test $have_wrappers = yes ; then
7114 cat >> confdefs.h <<\EOF
7118 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7120 echo "configure: warning: could not find -lwrap" 1>&2
7121 if test $ol_enable_wrappers = yes ; then
7122 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7125 echo "configure: warning: disabling wrappers support" 1>&2
7126 ol_enable_wrappers=no
7130 if test $ol_enable_syslog != no ; then
7131 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7132 echo "configure:7133: checking for openlog" >&5
7133 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char openlog(); below. */
7142 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7149 /* The GNU C library defines this for functions which it implements
7150 to always fail with ENOSYS. Some functions are actually named
7151 something starting with __ and the normal name is an alias. */
7152 #if defined (__stub_openlog) || defined (__stub___openlog)
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 eval "ac_cv_func_openlog=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_func_openlog=no"
7172 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7173 echo "$ac_t""yes" 1>&6
7176 echo "$ac_t""no" 1>&6
7179 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7180 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7182 ol_enable_syslog=$ac_cv_func_openlog
7185 if test $ol_enable_dmalloc != no ; then
7186 for ac_hdr in dmalloc.h
7188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7190 echo "configure:7191: checking for $ac_hdr" >&5
7191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7200 { (eval echo configure:7201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7202 if test -z "$ac_err"; then
7204 eval "ac_cv_header_$ac_safe=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 eval "ac_cv_header_$ac_safe=no"
7214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_hdr 1
7222 echo "$ac_t""no" 1>&6
7226 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7227 echo "configure:7228: checking for dmalloc_shutdown in -ldmalloc" >&5
7228 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 ac_save_LIBS="$LIBS"
7233 LIBS="-ldmalloc $LIBS"
7234 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7237 /* Override any gcc2 internal prototype to avoid an error. */
7238 /* We use char because int might match the return type of a gcc2
7239 builtin and then its argument prototype would still apply. */
7240 char dmalloc_shutdown();
7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 eval "ac_cv_lib_$ac_lib_var=yes"
7250 echo "configure: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7253 eval "ac_cv_lib_$ac_lib_var=no"
7256 LIBS="$ac_save_LIBS"
7259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7260 echo "$ac_t""yes" 1>&6
7261 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7263 cat >> confdefs.h <<EOF
7264 #define $ac_tr_lib 1
7267 LIBS="-ldmalloc $LIBS"
7270 echo "$ac_t""no" 1>&6
7275 if test $ol_enable_tcl != no ; then
7278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7280 echo "configure:7281: checking for $ac_hdr" >&5
7281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7282 echo $ac_n "(cached) $ac_c" 1>&6
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7290 { (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7292 if test -z "$ac_err"; then
7294 eval "ac_cv_header_$ac_safe=yes"
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7300 eval "ac_cv_header_$ac_safe=no"
7304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7305 echo "$ac_t""yes" 1>&6
7306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7307 cat >> confdefs.h <<EOF
7308 #define $ac_tr_hdr 1
7312 echo "$ac_t""no" 1>&6
7317 if test $ac_cv_header_tcl_h != yes ; then
7320 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7321 echo "configure:7322: checking for main in -ltcl" >&5
7322 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 ac_save_LIBS="$LIBS"
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7338 eval "ac_cv_lib_$ac_lib_var=yes"
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 eval "ac_cv_lib_$ac_lib_var=no"
7346 LIBS="$ac_save_LIBS"
7349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7350 echo "$ac_t""yes" 1>&6
7351 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7353 echo "$ac_t""no" 1>&6
7358 if test $have_tcl != yes; then
7359 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7360 echo "configure:7361: checking for main in -ltcl7.6" >&5
7361 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7365 ac_save_LIBS="$LIBS"
7366 LIBS="-ltcl7.6 $LIBS"
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7377 eval "ac_cv_lib_$ac_lib_var=yes"
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7382 eval "ac_cv_lib_$ac_lib_var=no"
7385 LIBS="$ac_save_LIBS"
7388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7392 echo "$ac_t""no" 1>&6
7398 if test $have_tcl != yes; then
7399 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7400 echo "configure:7401: checking for main in -ltcl8.0" >&5
7401 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7403 echo $ac_n "(cached) $ac_c" 1>&6
7405 ac_save_LIBS="$LIBS"
7406 LIBS="-ltcl8.0 $LIBS"
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 eval "ac_cv_lib_$ac_lib_var=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_lib_$ac_lib_var=no"
7425 LIBS="$ac_save_LIBS"
7428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7432 echo "$ac_t""no" 1>&6
7439 if test $have_tcl != yes ; then
7440 echo "configure: warning: could not find -ltcl" 1>&2
7441 if test $ol_enable_tcl = yes ; then
7442 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7449 # ud needs termcap (should insert check here)
7451 for ac_hdr in termcap.h ncurses.h
7453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7455 echo "configure:7456: checking for $ac_hdr" >&5
7456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7465 { (eval echo configure:7466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7467 if test -z "$ac_err"; then
7469 eval "ac_cv_header_$ac_safe=yes"
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7475 eval "ac_cv_header_$ac_safe=no"
7479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7480 echo "$ac_t""yes" 1>&6
7481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7482 cat >> confdefs.h <<EOF
7483 #define $ac_tr_hdr 1
7487 echo "$ac_t""no" 1>&6
7492 if test $ol_link_termcap = no ; then
7493 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7494 echo "configure:7495: checking for tputs in -ltermcap" >&5
7495 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7499 ac_save_LIBS="$LIBS"
7500 LIBS="-ltermcap $LIBS"
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7515 eval "ac_cv_lib_$ac_lib_var=yes"
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7520 eval "ac_cv_lib_$ac_lib_var=no"
7523 LIBS="$ac_save_LIBS"
7526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7527 echo "$ac_t""yes" 1>&6
7530 echo "$ac_t""no" 1>&6
7534 if test $have_termcap = yes ; then
7535 cat >> confdefs.h <<\EOF
7536 #define HAVE_TERMCAP 1
7540 TERMCAP_LIBS=-ltermcap
7544 if test $ol_link_termcap = no ; then
7545 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7546 echo "configure:7547: checking for initscr in -lncurses" >&5
7547 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 ac_save_LIBS="$LIBS"
7552 LIBS="-lncurses $LIBS"
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7565 if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7567 eval "ac_cv_lib_$ac_lib_var=yes"
7569 echo "configure: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7572 eval "ac_cv_lib_$ac_lib_var=no"
7575 LIBS="$ac_save_LIBS"
7578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7579 echo "$ac_t""yes" 1>&6
7582 echo "$ac_t""no" 1>&6
7586 if test $have_ncurses = yes ; then
7587 cat >> confdefs.h <<\EOF
7588 #define HAVE_NCURSES 1
7592 TERMCAP_LIBS=-lncurses
7596 if test $ol_link_termcap = no ; then
7597 cat >> confdefs.h <<\EOF
7598 #define NO_TERMCAP 1
7604 # FreeBSD (and others) have crypt(3) in -lcrypt
7605 if test $ol_enable_crypt != no ; then
7606 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7607 echo "configure:7608: checking for crypt" >&5
7608 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 /* System header to define __stub macros and hopefully few prototypes,
7615 which can conflict with char crypt(); below. */
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 /* We use char because int might match the return type of a gcc2
7619 builtin and then its argument prototype would still apply. */
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_crypt) || defined (__stub___crypt)
7635 if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7637 eval "ac_cv_func_crypt=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_func_crypt=no"
7647 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7648 echo "$ac_t""yes" 1>&6
7651 echo "$ac_t""no" 1>&6
7653 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7654 echo "configure:7655: checking for crypt in -lcrypt" >&5
7655 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7659 ac_save_LIBS="$LIBS"
7660 LIBS="-lcrypt $LIBS"
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* Override any gcc2 internal prototype to avoid an error. */
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7673 if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7675 eval "ac_cv_lib_$ac_lib_var=yes"
7677 echo "configure: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7680 eval "ac_cv_lib_$ac_lib_var=no"
7683 LIBS="$ac_save_LIBS"
7686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7687 echo "$ac_t""yes" 1>&6
7688 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7691 echo "$ac_t""no" 1>&6
7698 if test $have_crypt = yes ; then
7699 cat >> confdefs.h <<\EOF
7700 #define HAVE_CRYPT 1
7704 echo "configure: warning: could not find crypt" 1>&2
7705 if test $ol_enable_crypt = yes ; then
7706 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7709 echo "configure: warning: disabling crypt support" 1>&2
7714 # FreeBSD (and others) have setproctitle(3) in -lutil
7715 if test $ol_enable_proctitle != no ; then
7716 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7717 echo "configure:7718: checking for setproctitle" >&5
7718 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char setproctitle(); below. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730 char setproctitle();
7734 /* The GNU C library defines this for functions which it implements
7735 to always fail with ENOSYS. Some functions are actually named
7736 something starting with __ and the normal name is an alias. */
7737 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7747 eval "ac_cv_func_setproctitle=yes"
7749 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 eval "ac_cv_func_setproctitle=no"
7757 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 have_setproctitle=yes
7761 echo "$ac_t""no" 1>&6
7763 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7764 echo "configure:7765: checking for setproctitle in -lutil" >&5
7765 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 ac_save_LIBS="$LIBS"
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774 /* Override any gcc2 internal prototype to avoid an error. */
7775 /* We use char because int might match the return type of a gcc2
7776 builtin and then its argument prototype would still apply. */
7777 char setproctitle();
7783 if { (eval echo configure:7784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7785 eval "ac_cv_lib_$ac_lib_var=yes"
7787 echo "configure: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7790 eval "ac_cv_lib_$ac_lib_var=no"
7793 LIBS="$ac_save_LIBS"
7796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 have_setproctitle=yes
7799 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7801 echo "$ac_t""no" 1>&6
7802 have_setproctitle=no
7803 LIBOBJS="$LIBOBJS setproctitle.o"
7809 if test $have_setproctitle = yes ; then
7810 cat >> confdefs.h <<\EOF
7811 #define HAVE_SETPROCTITLE 1
7817 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7818 echo "configure:7819: checking for ANSI C header files" >&5
7819 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7831 { (eval echo configure:7832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7833 if test -z "$ac_err"; then
7835 ac_cv_header_stdc=yes
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7841 ac_cv_header_stdc=no
7845 if test $ac_cv_header_stdc = yes; then
7846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7853 egrep "memchr" >/dev/null 2>&1; then
7857 ac_cv_header_stdc=no
7863 if test $ac_cv_header_stdc = yes; then
7864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7865 cat > conftest.$ac_ext <<EOF
7866 #line 7867 "configure"
7867 #include "confdefs.h"
7870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871 egrep "free" >/dev/null 2>&1; then
7875 ac_cv_header_stdc=no
7881 if test $ac_cv_header_stdc = yes; then
7882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7883 if test "$cross_compiling" = yes; then
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7890 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7891 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7893 int main () { int i; for (i = 0; i < 256; i++)
7894 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7905 ac_cv_header_stdc=no
7913 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7914 if test $ac_cv_header_stdc = yes; then
7915 cat >> confdefs.h <<\EOF
7916 #define STDC_HEADERS 1
7922 if test $ac_cv_header_stdc != yes; then
7923 echo "configure: warning: could not Standard C compliant headers" 1>&2
7927 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7930 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7931 echo "configure:7932: checking for $ac_hdr that defines DIR" >&5
7932 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7938 #include <sys/types.h>
7944 if { (eval echo configure:7945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7946 eval "ac_cv_header_dirent_$ac_safe=yes"
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7951 eval "ac_cv_header_dirent_$ac_safe=no"
7955 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7958 cat >> confdefs.h <<EOF
7959 #define $ac_tr_hdr 1
7961 ac_header_dirent=$ac_hdr; break
7963 echo "$ac_t""no" 1>&6
7966 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7967 if test $ac_header_dirent = dirent.h; then
7968 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7969 echo "configure:7970: checking for opendir in -ldir" >&5
7970 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7974 ac_save_LIBS="$LIBS"
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 /* Override any gcc2 internal prototype to avoid an error. */
7980 /* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7988 if { (eval echo configure:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990 eval "ac_cv_lib_$ac_lib_var=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 eval "ac_cv_lib_$ac_lib_var=no"
7998 LIBS="$ac_save_LIBS"
8001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8005 echo "$ac_t""no" 1>&6
8009 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8010 echo "configure:8011: checking for opendir in -lx" >&5
8011 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8015 ac_save_LIBS="$LIBS"
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8031 eval "ac_cv_lib_$ac_lib_var=yes"
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8036 eval "ac_cv_lib_$ac_lib_var=no"
8039 LIBS="$ac_save_LIBS"
8042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8043 echo "$ac_t""yes" 1>&6
8046 echo "$ac_t""no" 1>&6
8051 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8052 echo "configure:8053: checking for sys/wait.h that is POSIX.1 compatible" >&5
8053 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 #include <sys/types.h>
8060 #include <sys/wait.h>
8062 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8065 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8070 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8073 if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8075 ac_cv_header_sys_wait_h=yes
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8080 ac_cv_header_sys_wait_h=no
8085 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8086 if test $ac_cv_header_sys_wait_h = yes; then
8087 cat >> confdefs.h <<\EOF
8088 #define HAVE_SYS_WAIT_H 1
8093 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8094 echo "configure:8095: checking POSIX termios" >&5
8095 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 #include <sys/types.h>
8103 #include <termios.h>
8105 /* SunOS 4.0.3 has termios.h but not the library calls. */
8109 if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8111 am_cv_sys_posix_termios=yes
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8116 am_cv_sys_posix_termios=no
8121 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8124 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8125 echo "configure:8126: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8126 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8129 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8131 gwinsz_in_termios_h=no
8132 if test $am_cv_sys_posix_termios = yes; then
8133 cat > conftest.$ac_ext <<EOF
8134 #line 8135 "configure"
8135 #include "confdefs.h"
8136 #include <sys/types.h>
8137 # include <termios.h>
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 egrep "yes" >/dev/null 2>&1; then
8146 gwinsz_in_termios_h=yes
8152 if test $gwinsz_in_termios_h = no; then
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 #include <sys/types.h>
8157 # include <sys/ioctl.h>
8163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8164 egrep "yes" >/dev/null 2>&1; then
8166 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8174 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8175 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8176 cat >> confdefs.h <<\EOF
8177 #define GWINSZ_IN_SYS_IOCTL 1
8182 if test $am_cv_sys_posix_termios = yes ; then
8183 cat >> confdefs.h <<\EOF
8184 #define HAVE_POSIX_TERMIOS 1
8226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8228 echo "configure:8229: checking for $ac_hdr" >&5
8229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8238 { (eval echo configure:8239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8240 if test -z "$ac_err"; then
8242 eval "ac_cv_header_$ac_safe=yes"
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8248 eval "ac_cv_header_$ac_safe=no"
8252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8253 echo "$ac_t""yes" 1>&6
8254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8255 cat >> confdefs.h <<EOF
8256 #define $ac_tr_hdr 1
8260 echo "$ac_t""no" 1>&6
8265 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8266 echo "configure:8267: checking for uid_t in sys/types.h" >&5
8267 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 #include <sys/types.h>
8275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8276 egrep "uid_t" >/dev/null 2>&1; then
8278 ac_cv_type_uid_t=yes
8287 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8288 if test $ac_cv_type_uid_t = no; then
8289 cat >> confdefs.h <<\EOF
8293 cat >> confdefs.h <<\EOF
8299 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8300 echo "configure:8301: checking type of array argument to getgroups" >&5
8301 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8304 if test "$cross_compiling" = yes; then
8305 ac_cv_type_getgroups=cross
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8311 /* Thanks to Mike Rendell for this test. */
8312 #include <sys/types.h>
8315 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8320 union { gid_t gval; long lval; } val;
8323 for (i = 0; i < NGID; i++)
8324 gidset[i] = val.gval;
8325 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8327 /* Exit non-zero if getgroups seems to require an array of ints. This
8328 happens when gid_t is short but getgroups modifies an array of ints. */
8329 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8335 ac_cv_type_getgroups=gid_t
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 ac_cv_type_getgroups=int
8345 if test $ac_cv_type_getgroups = cross; then
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8352 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8354 ac_cv_type_getgroups=gid_t
8357 ac_cv_type_getgroups=int
8364 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8365 cat >> confdefs.h <<EOF
8366 #define GETGROUPS_T $ac_cv_type_getgroups
8369 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8370 echo "configure:8371: checking for mode_t" >&5
8371 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 cat > conftest.$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 #include <sys/types.h>
8383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8384 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8386 ac_cv_type_mode_t=yes
8389 ac_cv_type_mode_t=no
8394 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8395 if test $ac_cv_type_mode_t = no; then
8396 cat >> confdefs.h <<\EOF
8402 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8403 echo "configure:8404: checking for off_t" >&5
8404 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 #include <sys/types.h>
8416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8417 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8419 ac_cv_type_off_t=yes
8427 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8428 if test $ac_cv_type_off_t = no; then
8429 cat >> confdefs.h <<\EOF
8435 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8436 echo "configure:8437: checking for pid_t" >&5
8437 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 #include <sys/types.h>
8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8450 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8452 ac_cv_type_pid_t=yes
8460 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8461 if test $ac_cv_type_pid_t = no; then
8462 cat >> confdefs.h <<\EOF
8468 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8469 echo "configure:8470: checking for ptrdiff_t" >&5
8470 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8481 if { (eval echo configure:8482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8483 am_cv_type_ptrdiff_t=yes
8485 echo "configure: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8488 am_cv_type_ptrdiff_t=no
8493 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8494 if test $am_cv_type_ptrdiff_t = yes; then
8495 cat >> confdefs.h <<\EOF
8496 #define HAVE_PTRDIFF_T 1
8501 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8502 echo "configure:8503: checking return type of signal handlers" >&5
8503 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 #include <sys/types.h>
8515 extern "C" void (*signal (int, void (*)(int)))(int);
8517 void (*signal ()) ();
8524 if { (eval echo configure:8525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8526 ac_cv_type_signal=void
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8531 ac_cv_type_signal=int
8536 echo "$ac_t""$ac_cv_type_signal" 1>&6
8537 cat >> confdefs.h <<EOF
8538 #define RETSIGTYPE $ac_cv_type_signal
8542 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8543 echo "configure:8544: checking for sig_atomic_t" >&5
8544 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8545 echo $ac_n "(cached) $ac_c" 1>&6
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8552 sig_atomic_t atomic;
8555 if { (eval echo configure:8556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8557 ol_cv_type_sig_atomic_t=yes
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8562 ol_cv_type_sig_atomic_t=no
8567 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8568 if test $ol_cv_type_sig_atomic_t = no; then
8569 cat >> confdefs.h <<\EOF
8570 #define sig_atomic_t int
8575 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8576 echo "configure:8577: checking for size_t" >&5
8577 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583 #include <sys/types.h>
8589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8590 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8592 ac_cv_type_size_t=yes
8595 ac_cv_type_size_t=no
8600 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8601 if test $ac_cv_type_size_t = no; then
8602 cat >> confdefs.h <<\EOF
8603 #define size_t unsigned
8608 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8609 echo "configure:8610: checking for st_blksize in struct stat" >&5
8610 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 #include <sys/types.h>
8617 #include <sys/stat.h>
8619 struct stat s; s.st_blksize;
8622 if { (eval echo configure:8623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8624 ac_cv_struct_st_blksize=yes
8626 echo "configure: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8629 ac_cv_struct_st_blksize=no
8634 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8635 if test $ac_cv_struct_st_blksize = yes; then
8636 cat >> confdefs.h <<\EOF
8637 #define HAVE_ST_BLKSIZE 1
8642 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8643 echo "configure:8644: checking whether time.h and sys/time.h may both be included" >&5
8644 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <sys/types.h>
8651 #include <sys/time.h>
8657 if { (eval echo configure:8658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8659 ac_cv_header_time=yes
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 ac_cv_header_time=no
8669 echo "$ac_t""$ac_cv_header_time" 1>&6
8670 if test $ac_cv_header_time = yes; then
8671 cat >> confdefs.h <<\EOF
8672 #define TIME_WITH_SYS_TIME 1
8677 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8678 echo "configure:8679: checking whether struct tm is in sys/time.h or time.h" >&5
8679 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 #include <sys/types.h>
8688 struct tm *tp; tp->tm_sec;
8691 if { (eval echo configure:8692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8693 ac_cv_struct_tm=time.h
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 ac_cv_struct_tm=sys/time.h
8703 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8704 if test $ac_cv_struct_tm = sys/time.h; then
8705 cat >> confdefs.h <<\EOF
8706 #define TM_IN_SYS_TIME 1
8713 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8714 echo "configure:8715: checking if toupper() requires islower()" >&5
8715 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8719 if test "$cross_compiling" = yes; then
8720 ol_cv_c_upper_lower=safe
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8729 if ('C' == toupper('C'))
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8737 ol_cv_c_upper_lower=no
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8742 ol_cv_c_upper_lower=yes
8749 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8750 if test $ol_cv_c_upper_lower != no ; then
8751 cat >> confdefs.h <<\EOF
8752 #define C_UPPER_LOWER 1
8757 echo $ac_n "checking for working const""... $ac_c" 1>&6
8758 echo "configure:8759: checking for working const" >&5
8759 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8768 /* Ultrix mips cc rejects this. */
8769 typedef int charset[2]; const charset x;
8770 /* SunOS 4.1.1 cc rejects this. */
8771 char const *const *ccp;
8773 /* NEC SVR4.0.2 mips cc rejects this. */
8774 struct point {int x, y;};
8775 static struct point const zero = {0,0};
8776 /* AIX XL C 1.02.0.0 rejects this.
8777 It does not let you subtract one const X* pointer from another in an arm
8778 of an if-expression whose if-part is not a constant expression */
8779 const char *g = "string";
8780 ccp = &g + (g ? g-g : 0);
8781 /* HPUX 7.0 cc rejects these. */
8784 ccp = (char const *const *) p;
8785 { /* SCO 3.2v4 cc rejects this. */
8787 char const *s = 0 ? (char *) 0 : (char const *) 0;
8791 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8793 const int *foo = &x[0];
8796 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8797 typedef const int *iptr;
8801 { /* AIX XL C 1.02.0.0 rejects this saying
8802 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8803 struct s { int j; const int *ap[3]; };
8804 struct s *b; b->j = 5;
8806 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8812 if { (eval echo configure:8813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8824 echo "$ac_t""$ac_cv_c_const" 1>&6
8825 if test $ac_cv_c_const = no; then
8826 cat >> confdefs.h <<\EOF
8832 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8833 echo "configure:8834: checking if compiler understands volatile" >&5
8834 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8835 echo $ac_n "(cached) $ac_c" 1>&6
8837 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8842 volatile int a; int * volatile b = x ? &y : &z;
8843 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8847 if { (eval echo configure:8848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8849 ol_cv_c_volatile=yes
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8859 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8860 if test $ol_cv_c_volatile = yes; then
8863 cat >> confdefs.h <<\EOF
8870 if test $cross_compiling = yes ; then
8871 cat >> confdefs.h <<\EOF
8872 #define CROSS_COMPILING 1
8876 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8877 echo "configure:8878: checking whether byte ordering is bigendian" >&5
8878 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8881 ac_cv_c_bigendian=unknown
8882 # See if sys/param.h defines the BYTE_ORDER macro.
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 #include <sys/types.h>
8887 #include <sys/param.h>
8890 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8895 if { (eval echo configure:8896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8897 # It does; now see whether it defined to BIG_ENDIAN or not.
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 #include <sys/types.h>
8902 #include <sys/param.h>
8905 #if BYTE_ORDER != BIG_ENDIAN
8910 if { (eval echo configure:8911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8912 ac_cv_c_bigendian=yes
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8917 ac_cv_c_bigendian=no
8921 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8925 if test $ac_cv_c_bigendian = unknown; then
8926 if test "$cross_compiling" = yes; then
8927 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8929 cat > conftest.$ac_ext <<EOF
8930 #line 8931 "configure"
8931 #include "confdefs.h"
8933 /* Are we little or big endian? From Harbison&Steele. */
8937 char c[sizeof (long)];
8940 exit (u.c[sizeof (long) - 1] == 1);
8943 if { (eval echo configure:8944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8945 ac_cv_c_bigendian=no
8947 echo "configure: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 ac_cv_c_bigendian=yes
8958 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8959 if test $ac_cv_c_bigendian = yes; then
8960 cat >> confdefs.h <<\EOF
8961 #define WORDS_BIGENDIAN 1
8966 echo $ac_n "checking size of short""... $ac_c" 1>&6
8967 echo "configure:8968: checking size of short" >&5
8968 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8971 if test "$cross_compiling" = yes; then
8972 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8974 cat > conftest.$ac_ext <<EOF
8975 #line 8976 "configure"
8976 #include "confdefs.h"
8980 FILE *f=fopen("conftestval", "w");
8982 fprintf(f, "%d\n", sizeof(short));
8986 if { (eval echo configure:8987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8988 ac_cv_sizeof_short=`cat conftestval`
8990 echo "configure: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8993 ac_cv_sizeof_short=0
8999 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9000 cat >> confdefs.h <<EOF
9001 #define SIZEOF_SHORT $ac_cv_sizeof_short
9005 echo $ac_n "checking size of int""... $ac_c" 1>&6
9006 echo "configure:9007: checking size of int" >&5
9007 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9010 if test "$cross_compiling" = yes; then
9011 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9019 FILE *f=fopen("conftestval", "w");
9021 fprintf(f, "%d\n", sizeof(int));
9025 if { (eval echo configure:9026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9027 ac_cv_sizeof_int=`cat conftestval`
9029 echo "configure: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9038 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9039 cat >> confdefs.h <<EOF
9040 #define SIZEOF_INT $ac_cv_sizeof_int
9044 echo $ac_n "checking size of long""... $ac_c" 1>&6
9045 echo "configure:9046: checking size of long" >&5
9046 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9049 if test "$cross_compiling" = yes; then
9050 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9058 FILE *f=fopen("conftestval", "w");
9060 fprintf(f, "%d\n", sizeof(long));
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9066 ac_cv_sizeof_long=`cat conftestval`
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9077 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9078 cat >> confdefs.h <<EOF
9079 #define SIZEOF_LONG $ac_cv_sizeof_long
9085 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9086 echo "configure:9087: checking for 8-bit clean memcmp" >&5
9087 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9090 if test "$cross_compiling" = yes; then
9091 ac_cv_func_memcmp_clean=no
9093 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9099 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9100 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9104 if { (eval echo configure:9105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9106 ac_cv_func_memcmp_clean=yes
9108 echo "configure: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9111 ac_cv_func_memcmp_clean=no
9118 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9119 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9121 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9122 echo "configure:9123: checking for strftime" >&5
9123 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 /* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char strftime(); below. */
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9139 /* The GNU C library defines this for functions which it implements
9140 to always fail with ENOSYS. Some functions are actually named
9141 something starting with __ and the normal name is an alias. */
9142 #if defined (__stub_strftime) || defined (__stub___strftime)
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9152 eval "ac_cv_func_strftime=yes"
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 eval "ac_cv_func_strftime=no"
9162 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9163 echo "$ac_t""yes" 1>&6
9164 cat >> confdefs.h <<\EOF
9165 #define HAVE_STRFTIME 1
9169 echo "$ac_t""no" 1>&6
9170 # strftime is in -lintl on SCO UNIX.
9171 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9172 echo "configure:9173: checking for strftime in -lintl" >&5
9173 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 ac_save_LIBS="$LIBS"
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193 eval "ac_cv_lib_$ac_lib_var=yes"
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 eval "ac_cv_lib_$ac_lib_var=no"
9201 LIBS="$ac_save_LIBS"
9204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9206 cat >> confdefs.h <<\EOF
9207 #define HAVE_STRFTIME 1
9212 echo "$ac_t""no" 1>&6
9217 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9218 echo "configure:9219: checking for vprintf" >&5
9219 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9225 /* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char vprintf(); below. */
9228 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9235 /* The GNU C library defines this for functions which it implements
9236 to always fail with ENOSYS. Some functions are actually named
9237 something starting with __ and the normal name is an alias. */
9238 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9248 eval "ac_cv_func_vprintf=yes"
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9253 eval "ac_cv_func_vprintf=no"
9258 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9259 echo "$ac_t""yes" 1>&6
9260 cat >> confdefs.h <<\EOF
9261 #define HAVE_VPRINTF 1
9265 echo "$ac_t""no" 1>&6
9268 if test "$ac_cv_func_vprintf" != yes; then
9269 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9270 echo "configure:9271: checking for _doprnt" >&5
9271 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9274 cat > conftest.$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char _doprnt(); below. */
9280 /* Override any gcc2 internal prototype to avoid an error. */
9281 /* We use char because int might match the return type of a gcc2
9282 builtin and then its argument prototype would still apply. */
9287 /* The GNU C library defines this for functions which it implements
9288 to always fail with ENOSYS. Some functions are actually named
9289 something starting with __ and the normal name is an alias. */
9290 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9300 eval "ac_cv_func__doprnt=yes"
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 eval "ac_cv_func__doprnt=no"
9310 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9311 echo "$ac_t""yes" 1>&6
9312 cat >> confdefs.h <<\EOF
9313 #define HAVE_DOPRNT 1
9317 echo "$ac_t""no" 1>&6
9323 if test $ac_cv_func_vprintf = yes ; then
9324 for ac_func in vsnprintf vsprintf
9326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9327 echo "configure:9328: checking for $ac_func" >&5
9328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 /* System header to define __stub macros and hopefully few prototypes,
9335 which can conflict with char $ac_func(); below. */
9337 /* Override any gcc2 internal prototype to avoid an error. */
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9344 /* The GNU C library defines this for functions which it implements
9345 to always fail with ENOSYS. Some functions are actually named
9346 something starting with __ and the normal name is an alias. */
9347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9355 if { (eval echo configure:9356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9357 eval "ac_cv_func_$ac_func=yes"
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9362 eval "ac_cv_func_$ac_func=no"
9367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9368 echo "$ac_t""yes" 1>&6
9369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9370 cat >> confdefs.h <<EOF
9371 #define $ac_tr_func 1
9375 echo "$ac_t""no" 1>&6
9412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9413 echo "configure:9414: checking for $ac_func" >&5
9414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 /* System header to define __stub macros and hopefully few prototypes,
9421 which can conflict with char $ac_func(); below. */
9423 /* Override any gcc2 internal prototype to avoid an error. */
9424 /* We use char because int might match the return type of a gcc2
9425 builtin and then its argument prototype would still apply. */
9430 /* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9443 eval "ac_cv_func_$ac_func=yes"
9445 echo "configure: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9448 eval "ac_cv_func_$ac_func=no"
9453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9454 echo "$ac_t""yes" 1>&6
9455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9456 cat >> confdefs.h <<EOF
9457 #define $ac_tr_func 1
9461 echo "$ac_t""no" 1>&6
9466 # these functions are required to build a thread_safe -lldap
9473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9474 echo "configure:9475: checking for $ac_func" >&5
9475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 /* System header to define __stub macros and hopefully few prototypes,
9482 which can conflict with char $ac_func(); below. */
9484 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9491 /* The GNU C library defines this for functions which it implements
9492 to always fail with ENOSYS. Some functions are actually named
9493 something starting with __ and the normal name is an alias. */
9494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9504 eval "ac_cv_func_$ac_func=yes"
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9509 eval "ac_cv_func_$ac_func=no"
9514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9515 echo "$ac_t""yes" 1>&6
9516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9517 cat >> confdefs.h <<EOF
9518 #define $ac_tr_func 1
9522 echo "$ac_t""no" 1>&6
9527 if test "$ac_cv_func_ctime_r" = yes ; then
9528 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
9529 echo "configure:9530: checking number of arguments of ctime_r" >&5
9530 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
9531 echo $ac_n "(cached) $ac_c" 1>&6
9533 cat > conftest.$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9538 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
9541 if { (eval echo configure:9542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9543 ol_cv_func_ctime_r_nargs=3
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9548 ol_cv_func_ctime_r_nargs=0
9551 if test $ol_cv_func_ctime_r_nargs = 0 ; then
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9557 time_t ti; char *buffer;
9558 ctime_r(&ti,buffer);
9561 if { (eval echo configure:9562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9563 ol_cv_func_ctime_r_nargs=2
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9568 ol_cv_func_ctime_r_nargs=0
9575 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
9576 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
9577 cat >> confdefs.h <<EOF
9578 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
9583 echo $ac_n "checking return type of ctime_r""... $ac_c" 1>&6
9584 echo "configure:9585: checking return type of ctime_r" >&5
9585 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_type'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9596 if { (eval echo configure:9597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9598 ol_cv_func_ctime_r_type="int"
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9603 ol_cv_func_ctime_r_type="charp"
9609 echo "$ac_t""$ol_cv_func_ctime_r_type" 1>&6
9610 if test $ol_cv_func_ctime_r_type = "int" ; then
9611 cat >> confdefs.h <<\EOF
9612 #define CTIME_R_RETURNS_INT 1
9618 ol_cv_func_ctime_r_nargs=0
9621 if test "$ac_cv_func_gethostbyname_r" = yes ; then
9622 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
9623 echo "configure:9624: checking number of arguments of gethostbyname_r" >&5
9624 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 #include <sys/types.h>
9631 #include <sys/socket.h>
9632 #include <netinet/in.h>
9634 #define BUFSIZE (sizeof(struct hostent)+10)
9636 struct hostent hent; char buffer[BUFSIZE];
9637 int bufsize=BUFSIZE;int h_errno;
9638 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &h_errno);
9642 if { (eval echo configure:9643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9644 ol_cv_func_gethostbyname_r_nargs=5
9646 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9649 ol_cv_func_gethostbyname_r_nargs=0
9652 if test $ol_cv_func_gethostbyname_r_nargs = 0 ; then
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <sys/types.h>
9657 #include <sys/socket.h>
9658 #include <netinet/in.h>
9660 #define BUFSIZE (sizeof(struct hostent)+10)
9662 struct hostent hent;struct hostent *rhent;
9663 char buffer[BUFSIZE];
9664 int bufsize=BUFSIZE;int h_errno;
9665 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &rhent, &h_errno);
9669 if { (eval echo configure:9670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9671 ol_cv_func_gethostbyname_r_nargs=6
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 ol_cv_func_gethostbyname_r_nargs=0
9683 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
9684 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
9685 cat >> confdefs.h <<EOF
9686 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
9692 ol_cv_func_gethostbyname_r=0
9695 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
9696 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
9697 echo "configure:9698: checking number of arguments of gethostbyaddr_r" >&5
9698 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9701 cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 #include <sys/types.h>
9705 #include <sys/socket.h>
9706 #include <netinet/in.h>
9708 #define BUFSIZE (sizeof(struct hostent)+10)
9710 struct hostent hent; char buffer[BUFSIZE];
9711 struct in_addr add={0x70707070};
9712 size_t alen=sizeof(struct in_addr);
9713 int bufsize=BUFSIZE;int h_errno;
9714 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9715 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
9719 if { (eval echo configure:9720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9721 ol_cv_func_gethostbyaddr_r_nargs=7
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 ol_cv_func_gethostbyaddr_r_nargs=0
9729 if test $ol_cv_func_gethostbyaddr_r_nargs = 0 ; then
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 #include <sys/types.h>
9734 #include <sys/socket.h>
9735 #include <netinet/in.h>
9737 #define BUFSIZE (sizeof(struct hostent)+10)
9739 struct hostent hent; struct hostent *rhent; char buffer[BUFSIZE];
9740 struct in_addr add={0x70707070};
9741 size_t alen=sizeof(struct in_addr);
9742 int bufsize=BUFSIZE;int h_errno;
9743 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9744 alen, AF_INET, &hent, buffer, bufsize,
9749 if { (eval echo configure:9750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9751 ol_cv_func_gethostbyaddr_r_nargs=8
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9756 ol_cv_func_gethostbyaddr_r_nargs=0
9763 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
9764 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
9765 cat >> confdefs.h <<EOF
9766 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
9772 ol_cv_func_gethostbyaddr_r=0
9775 if test "$ac_cv_func_ctime_r" = yes \
9776 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
9777 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
9778 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
9779 -a "$ac_cv_func_gethostbyaddr_r" = yes \
9780 -a "$ac_cv_func_gethostbyname_r" = yes \
9783 cat >> confdefs.h <<\EOF
9784 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
9789 if test $ol_link_threads != no ; then
9790 cat >> confdefs.h <<\EOF
9791 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9796 for ac_func in getopt tempnam
9798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9799 echo "configure:9800: checking for $ac_func" >&5
9800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9803 cat > conftest.$ac_ext <<EOF
9804 #line 9805 "configure"
9805 #include "confdefs.h"
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char $ac_func(); below. */
9809 /* Override any gcc2 internal prototype to avoid an error. */
9810 /* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9816 /* The GNU C library defines this for functions which it implements
9817 to always fail with ENOSYS. Some functions are actually named
9818 something starting with __ and the normal name is an alias. */
9819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9827 if { (eval echo configure:9828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9829 eval "ac_cv_func_$ac_func=yes"
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9834 eval "ac_cv_func_$ac_func=no"
9839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9840 echo "$ac_t""yes" 1>&6
9841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9842 cat >> confdefs.h <<EOF
9843 #define $ac_tr_func 1
9847 echo "$ac_t""no" 1>&6
9848 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9854 # Check Configuration
9856 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9857 echo "configure:9858: checking declaration of sys_errlist" >&5
9858 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9867 #include <sys/types.h>
9870 char *c = (char *) *sys_errlist
9873 if { (eval echo configure:9874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9875 ol_cv_dcl_sys_errlist=yes
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9880 ol_cv_dcl_sys_errlist=no
9885 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9887 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9888 if test $ol_cv_dcl_sys_errlist = no ; then
9889 cat >> confdefs.h <<\EOF
9890 #define DECL_SYS_ERRLIST 1
9893 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9894 echo "configure:9895: checking existence of sys_errlist" >&5
9895 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9904 char *c = (char *) *sys_errlist
9907 if { (eval echo configure:9908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9909 ol_cv_have_sys_errlist=yes
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9914 ol_cv_have_sys_errlist=no
9919 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9924 if test "$ol_enable_debug" != no ; then
9925 cat >> confdefs.h <<\EOF
9926 #define LDAP_DEBUG 1
9930 if test "$ol_enable_syslog" = yes ; then
9931 cat >> confdefs.h <<\EOF
9932 #define LDAP_SYSLOG 1
9936 if test "$ol_enable_libui" = yes ; then
9937 cat >> confdefs.h <<\EOF
9938 #define LDAP_LIBUI 1
9942 if test "$ol_enable_cache" = no ; then
9943 cat >> confdefs.h <<\EOF
9944 #define LDAP_NOCACHE 1
9948 if test "$ol_enable_dns" != no ; then
9949 cat >> confdefs.h <<\EOF
9950 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9954 if test "$ol_enable_proctitle" != no ; then
9955 cat >> confdefs.h <<\EOF
9956 #define LDAP_PROCTITLE 1
9960 if test "$ol_enable_referrals" != no ; then
9961 cat >> confdefs.h <<\EOF
9962 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9966 if test "$ol_enable_cldap" != no ; then
9967 cat >> confdefs.h <<\EOF
9968 #define LDAP_CONNECTIONLESS 1
9973 if test "$ol_enable_aclgroups" != no ; then
9974 cat >> confdefs.h <<\EOF
9975 #define SLAPD_ACLGROUPS 1
9979 if test "$ol_enable_crypt" != no ; then
9980 cat >> confdefs.h <<\EOF
9981 #define SLAPD_CRYPT 1
9985 if test "$ol_enable_cleartext" != no ; then
9986 cat >> confdefs.h <<\EOF
9987 #define SLAPD_CLEARTEXT 1
9991 if test "$ol_enable_phonetic" != no ; then
9992 cat >> confdefs.h <<\EOF
9993 #define SLAPD_PHONETIC 1
9997 if test "$ol_enable_rlookups" != no ; then
9998 cat >> confdefs.h <<\EOF
9999 #define SLAPD_RLOOKUPS 1
10004 if test "$ol_link_bdb2" != no ; then
10005 cat >> confdefs.h <<\EOF
10006 #define SLAPD_BDB2 1
10013 if test "$ol_link_ldbm" != no ; then
10014 cat >> confdefs.h <<\EOF
10015 #define SLAPD_LDBM 1
10022 if test "$ol_enable_passwd" != no ; then
10023 cat >> confdefs.h <<\EOF
10024 #define SLAPD_PASSWD 1
10031 if test "$ol_enable_perl" != no ; then
10032 cat >> confdefs.h <<\EOF
10033 #define SLAPD_PERL 1
10040 if test "$ol_enable_shell" != no ; then
10041 cat >> confdefs.h <<\EOF
10042 #define SLAPD_SHELL 1
10049 if test "$ol_enable_tcl" != no ; then
10050 cat >> confdefs.h <<\EOF
10051 #define SLAPD_TCL 1
10058 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10059 $BUILD_SLAPD = yes ; then
10063 if test "$ol_link_isode" != no ; then
10095 cat > confcache <<\EOF
10096 # This file is a shell script that caches the results of configure
10097 # tests run on this system so they can be shared between configure
10098 # scripts and configure runs. It is not useful on other systems.
10099 # If it contains results you don't want to keep, you may remove or edit it.
10101 # By default, configure uses ./config.cache as the cache file,
10102 # creating it if it does not exist already. You can give configure
10103 # the --cache-file=FILE option to use a different cache file; that is
10104 # what configure does when it calls configure scripts in
10105 # subdirectories, so they share the cache.
10106 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10107 # config.status only pays attention to the cache file if you give it the
10108 # --recheck option to rerun configure.
10111 # The following way of writing the cache mishandles newlines in values,
10112 # but we know of no workaround that is simple, portable, and efficient.
10113 # So, don't put newlines in cache variables' values.
10114 # Ultrix sh set writes to stderr and can't be redirected directly,
10115 # and sets the high bit in the cache file unless we assign to the vars.
10117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10119 # `set' does not quote correctly, so add quotes (double-quote substitution
10120 # turns \\\\ into \\, and sed turns \\ into \).
10122 -e "s/'/'\\\\''/g" \
10123 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10126 # `set' quotes correctly as required by POSIX, so do not add quotes.
10127 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10130 if cmp -s $cache_file confcache; then
10133 if test -w $cache_file; then
10134 echo "updating cache $cache_file"
10135 cat confcache > $cache_file
10137 echo "not updating unwritable cache $cache_file"
10142 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10145 # Let make expand exec_prefix.
10146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10148 # Any assignment to VPATH causes Sun make to only execute
10149 # the first set of double-colon rules, so remove it if not needed.
10150 # If there is a colon in the path, we need to keep it.
10151 if test "x$srcdir" = x.; then
10152 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10155 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10157 DEFS=-DHAVE_CONFIG_H
10159 # Without the "./", some shells look in PATH for config.status.
10160 : ${CONFIG_STATUS=./config.status}
10162 echo creating $CONFIG_STATUS
10163 rm -f $CONFIG_STATUS
10164 cat > $CONFIG_STATUS <<EOF
10166 # Generated automatically by configure.
10167 # Run this file to recreate the current configuration.
10168 # This directory was configured as follows,
10169 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10171 # $0 $ac_configure_args
10173 # Compiler output produced by configure, useful for debugging
10174 # configure, is in ./config.log if it exists.
10176 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10179 case "\$ac_option" in
10180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10181 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10182 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10183 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10184 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10186 -help | --help | --hel | --he | --h)
10187 echo "\$ac_cs_usage"; exit 0 ;;
10188 *) echo "\$ac_cs_usage"; exit 1 ;;
10192 ac_given_srcdir=$srcdir
10193 ac_given_INSTALL="$INSTALL"
10195 trap 'rm -fr `echo "\
10196 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10197 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10198 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10199 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10200 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10201 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10202 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10203 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10204 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10205 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10206 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10207 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10208 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10209 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10210 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10211 include/Makefile:build/top.mk:include/Makefile.in \
10212 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10213 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10214 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10215 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10216 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10217 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10218 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10219 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10220 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10221 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10222 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10223 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10224 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10225 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10226 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10227 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10228 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10229 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10230 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10231 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10232 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10233 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10234 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10236 cat >> $CONFIG_STATUS <<EOF
10238 # Protect against being on the right side of a sed subst in config.status.
10239 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10240 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10244 s%@CFLAGS@%$CFLAGS%g
10245 s%@CPPFLAGS@%$CPPFLAGS%g
10246 s%@CXXFLAGS@%$CXXFLAGS%g
10247 s%@FFLAGS@%$FFLAGS%g
10249 s%@LDFLAGS@%$LDFLAGS%g
10251 s%@exec_prefix@%$exec_prefix%g
10252 s%@prefix@%$prefix%g
10253 s%@program_transform_name@%$program_transform_name%g
10254 s%@bindir@%$bindir%g
10255 s%@sbindir@%$sbindir%g
10256 s%@libexecdir@%$libexecdir%g
10257 s%@datadir@%$datadir%g
10258 s%@sysconfdir@%$sysconfdir%g
10259 s%@sharedstatedir@%$sharedstatedir%g
10260 s%@localstatedir@%$localstatedir%g
10261 s%@libdir@%$libdir%g
10262 s%@includedir@%$includedir%g
10263 s%@oldincludedir@%$oldincludedir%g
10264 s%@infodir@%$infodir%g
10265 s%@mandir@%$mandir%g
10266 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10267 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10268 s%@INSTALL_DATA@%$INSTALL_DATA%g
10269 s%@PACKAGE@%$PACKAGE%g
10270 s%@VERSION@%$VERSION%g
10271 s%@ACLOCAL@%$ACLOCAL%g
10272 s%@AUTOCONF@%$AUTOCONF%g
10273 s%@AUTOMAKE@%$AUTOMAKE%g
10274 s%@AUTOHEADER@%$AUTOHEADER%g
10275 s%@MAKEINFO@%$MAKEINFO%g
10276 s%@SET_MAKE@%$SET_MAKE%g
10277 s%@top_builddir@%$top_builddir%g
10278 s%@ldap_subdir@%$ldap_subdir%g
10280 s%@host_alias@%$host_alias%g
10281 s%@host_cpu@%$host_cpu%g
10282 s%@host_vendor@%$host_vendor%g
10283 s%@host_os@%$host_os%g
10284 s%@RANLIB@%$RANLIB%g
10289 s%@LIBTOOL@%$LIBTOOL%g
10291 s%@SENDMAIL@%$SENDMAIL%g
10292 s%@EDITOR@%$EDITOR%g
10293 s%@FINGER@%$FINGER%g
10294 s%@PERLBIN@%$PERLBIN%g
10296 s%@EXEEXT@%$EXEEXT%g
10297 s%@OBJEXT@%$OBJEXT%g
10299 s%@LIBOBJS@%$LIBOBJS%g
10300 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10301 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10302 s%@BUILD_BDB2@%$BUILD_BDB2%g
10303 s%@BUILD_LDBM@%$BUILD_LDBM%g
10304 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10305 s%@BUILD_PERL@%$BUILD_PERL%g
10306 s%@BUILD_SHELL@%$BUILD_SHELL%g
10307 s%@BUILD_TCL@%$BUILD_TCL%g
10308 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10309 s%@LDAP_LIBS@%$LDAP_LIBS%g
10310 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10311 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10312 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10313 s%@LDBM_LIBS@%$LDBM_LIBS%g
10314 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10315 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10316 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10317 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10318 s%@KRB_LIBS@%$KRB_LIBS%g
10319 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10320 s%@TLS_LIBS@%$TLS_LIBS%g
10325 cat >> $CONFIG_STATUS <<\EOF
10327 # Split the substitutions into bite-sized pieces for seds with
10328 # small command number limits, like on Digital OSF/1 and HP-UX.
10329 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10330 ac_file=1 # Number of current file.
10331 ac_beg=1 # First line for current file.
10332 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10335 while $ac_more_lines; do
10336 if test $ac_beg -gt 1; then
10337 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10339 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10341 if test ! -s conftest.s$ac_file; then
10342 ac_more_lines=false
10343 rm -f conftest.s$ac_file
10345 if test -z "$ac_sed_cmds"; then
10346 ac_sed_cmds="sed -f conftest.s$ac_file"
10348 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10350 ac_file=`expr $ac_file + 1`
10352 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10355 if test -z "$ac_sed_cmds"; then
10360 cat >> $CONFIG_STATUS <<EOF
10362 CONFIG_FILES=\${CONFIG_FILES-"\
10363 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10364 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10365 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10366 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10367 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10368 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10369 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10370 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10371 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10372 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10373 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10374 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10375 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10376 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10377 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10378 include/Makefile:build/top.mk:include/Makefile.in \
10379 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10380 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10381 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10382 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10383 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10384 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10385 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10386 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10387 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10388 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10389 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10390 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10391 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10392 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10393 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10394 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10395 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10396 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10397 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10398 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10399 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10400 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10403 cat >> $CONFIG_STATUS <<\EOF
10404 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10407 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10408 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10409 *) ac_file_in="${ac_file}.in" ;;
10412 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10414 # Remove last slash and all that follows it. Not all systems have dirname.
10415 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10416 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10417 # The file is in a subdirectory.
10418 test ! -d "$ac_dir" && mkdir "$ac_dir"
10419 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10420 # A "../" for each directory in $ac_dir_suffix.
10421 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10423 ac_dir_suffix= ac_dots=
10426 case "$ac_given_srcdir" in
10428 if test -z "$ac_dots"; then top_srcdir=.
10429 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10430 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10431 *) # Relative path.
10432 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10433 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10436 case "$ac_given_INSTALL" in
10437 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10438 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10441 echo creating "$ac_file"
10443 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10445 *Makefile*) ac_comsub="1i\\
10446 # $configure_input" ;;
10450 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10452 s%@configure_input@%$configure_input%g
10453 s%@srcdir@%$srcdir%g
10454 s%@top_srcdir@%$top_srcdir%g
10455 s%@INSTALL@%$INSTALL%g
10456 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10460 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10461 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10463 # ac_d sets the value in "#define NAME VALUE" lines.
10464 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10465 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10468 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10469 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10470 ac_uB='\([ ]\)%\1#\2define\3'
10473 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10474 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10475 ac_eB='$%\1#\2define\3'
10479 if test "${CONFIG_HEADERS+set}" != set; then
10481 cat >> $CONFIG_STATUS <<EOF
10482 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10484 cat >> $CONFIG_STATUS <<\EOF
10486 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10489 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10490 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10491 *) ac_file_in="${ac_file}.in" ;;
10494 echo creating $ac_file
10496 rm -f conftest.frag conftest.in conftest.out
10497 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10498 cat $ac_file_inputs > conftest.in
10502 # Transform confdefs.h into a sed script conftest.vals that substitutes
10503 # the proper values into config.h.in to produce config.h. And first:
10504 # Protect against being on the right side of a sed subst in config.status.
10505 # Protect against being in an unquoted here document in config.status.
10506 rm -f conftest.vals
10507 cat > conftest.hdr <<\EOF
10510 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10514 sed -n -f conftest.hdr confdefs.h > conftest.vals
10517 # This sed command replaces #undef with comments. This is necessary, for
10518 # example, in the case of _POSIX_SOURCE, which is predefined and required
10519 # on some systems where configure will not decide to define it.
10520 cat >> conftest.vals <<\EOF
10521 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10524 # Break up conftest.vals because some shells have a limit on
10525 # the size of here documents, and old seds have small limits too.
10527 rm -f conftest.tail
10530 ac_lines=`grep -c . conftest.vals`
10531 # grep -c gives empty output for an empty file on some AIX systems.
10532 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10533 # Write a limited-size here document to conftest.frag.
10534 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10535 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10537 sed -f conftest.frag conftest.in > conftest.out
10539 mv conftest.out conftest.in
10540 ' >> $CONFIG_STATUS
10541 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10542 rm -f conftest.vals
10543 mv conftest.tail conftest.vals
10545 rm -f conftest.vals
10547 cat >> $CONFIG_STATUS <<\EOF
10548 rm -f conftest.frag conftest.h
10549 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10550 cat conftest.in >> conftest.h
10552 if cmp -s $ac_file conftest.h 2>/dev/null; then
10553 echo "$ac_file is unchanged"
10556 # Remove last slash and all that follows it. Not all systems have dirname.
10557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10559 # The file is in a subdirectory.
10560 test ! -d "$ac_dir" && mkdir "$ac_dir"
10563 mv conftest.h $ac_file
10568 cat >> $CONFIG_STATUS <<EOF
10571 cat >> $CONFIG_STATUS <<\EOF
10574 echo Please \"make depend\" to build dependencies
10578 chmod +x $CONFIG_STATUS
10579 rm -fr confdefs* $ac_clean_files
10580 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1