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)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-bdb2 enable bdb2 backend (no)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd backend (no)"
70 --enable-perl enable perl backend (no)"
72 --enable-shell enable shell backend (no)"
74 --enable-tcl enable tcl backend (no)"
78 --enable-slurpd enable building slurpd (auto)"
80 Library Generation & Linking Options"
82 --enable-static build static libraries [default=yes]
83 --enable-static=PKGS only build shared libraries if the current package
84 appears as an element in the PKGS list"
86 --enable-shared build shared libraries [default=yes]
87 --enable-shared=PKGS only build shared libraries if the current package
88 appears as an element in the PKGS list"
90 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file=./config.cache
105 program_transform_name=s,x,x,
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host | --host | --hos | --ho)
268 -host=* | --host=* | --hos=* | --ho=*)
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
389 -site=* | --site=* | --sit=*)
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/ldap.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
597 ac_n= ac_c='\c' ac_t=
601 for ac_dir in build $srcdir/build; do
602 if test -f $ac_dir/install-sh; then
604 ac_install_sh="$ac_aux_dir/install-sh -c"
606 elif test -f $ac_dir/install.sh; then
608 ac_install_sh="$ac_aux_dir/install.sh -c"
612 if test -z "$ac_aux_dir"; then
613 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
615 ac_config_guess=$ac_aux_dir/config.guess
616 ac_config_sub=$ac_aux_dir/config.sub
617 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
618 # Find a good install program. We prefer a C program (faster),
619 # so one script is as good as another. But avoid the broken or
620 # incompatible versions:
621 # SysV /etc/install, /usr/sbin/install
622 # SunOS /usr/etc/install
625 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
626 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
627 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
628 # ./install, which can be erroneously created by make from ./install.sh.
629 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
630 echo "configure:631: checking for a BSD compatible install" >&5
631 if test -z "$INSTALL"; then
632 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
635 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
636 for ac_dir in $PATH; do
637 # Account for people who put trailing slashes in PATH elements.
639 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
641 # OSF1 and SCO ODT 3.0 have their own names for install.
642 # Don't use installbsd from OSF since it installs stuff as root
644 for ac_prog in ginstall scoinst install; do
645 if test -f $ac_dir/$ac_prog; then
646 if test $ac_prog = install &&
647 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
648 # AIX install. It has an incompatible calling convention.
651 ac_cv_path_install="$ac_dir/$ac_prog -c"
662 if test "${ac_cv_path_install+set}" = set; then
663 INSTALL="$ac_cv_path_install"
665 # As a last resort, use the slow shell script. We don't cache a
666 # path for INSTALL within a source directory, because that will
667 # break other packages using the cache if that directory is
668 # removed, or if the path is relative.
669 INSTALL="$ac_install_sh"
672 echo "$ac_t""$INSTALL" 1>&6
674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
675 # It thinks the first close brace ends the variable substitution.
676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
678 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
682 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
683 echo "configure:684: checking whether build environment is sane" >&5
686 echo timestamp > conftestfile
687 # Do `set' in a subshell so we don't clobber the current shell's
688 # arguments. Must try -L first in case configure is actually a
689 # symlink; some systems play weird games with the mod time of symlinks
690 # (eg FreeBSD returns the mod time of the symlink's containing
693 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
694 if test "$*" = "X"; then
696 set X `ls -t $srcdir/configure conftestfile`
698 if test "$*" != "X $srcdir/configure conftestfile" \
699 && test "$*" != "X conftestfile $srcdir/configure"; then
701 # If neither matched, then we have a broken ls. This can happen
702 # if, for instance, CONFIG_SHELL is bash and it inherits a
703 # broken ls alias from the environment. This has actually
704 # happened. Such a system could not be considered "sane".
705 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
706 alias in your environment" 1>&2; exit 1; }
709 test "$2" = conftestfile
715 { echo "configure: error: newly created file is older than distributed files!
716 Check your system clock" 1>&2; exit 1; }
719 echo "$ac_t""yes" 1>&6
720 if test "$program_transform_name" = s,x,x,; then
721 program_transform_name=
723 # Double any \ or $. echo might interpret backslashes.
724 cat <<\EOF_SED > conftestsed
725 s,\\,\\\\,g; s,\$,$$,g
727 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
730 test "$program_prefix" != NONE &&
731 program_transform_name="s,^,${program_prefix},; $program_transform_name"
732 # Use a double $ so make ignores it.
733 test "$program_suffix" != NONE &&
734 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
736 # sed with no file args requires a program.
737 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
739 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
740 echo "configure:741: checking whether ${MAKE-make} sets \${MAKE}" >&5
741 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
742 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
745 cat > conftestmake <<\EOF
747 @echo 'ac_maketemp="${MAKE}"'
749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
750 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
751 if test -n "$ac_maketemp"; then
752 eval ac_cv_prog_make_${ac_make}_set=yes
754 eval ac_cv_prog_make_${ac_make}_set=no
758 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
759 echo "$ac_t""yes" 1>&6
762 echo "$ac_t""no" 1>&6
763 SET_MAKE="MAKE=${MAKE-make}"
771 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
772 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
777 missing_dir=`cd $ac_aux_dir && pwd`
778 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
779 echo "configure:780: checking for working aclocal" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
785 echo "$ac_t""found" 1>&6
787 ACLOCAL="$missing_dir/missing aclocal"
788 echo "$ac_t""missing" 1>&6
791 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
792 echo "configure:793: checking for working autoconf" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
798 echo "$ac_t""found" 1>&6
800 AUTOCONF="$missing_dir/missing autoconf"
801 echo "$ac_t""missing" 1>&6
804 echo $ac_n "checking for working automake""... $ac_c" 1>&6
805 echo "configure:806: checking for working automake" >&5
806 # Run test in a subshell; some versions of sh will print an error if
807 # an executable is not found, even if stderr is redirected.
808 # Redirect stdin to placate older versions of autoconf. Sigh.
809 if (automake --version) < /dev/null > /dev/null 2>&1; then
811 echo "$ac_t""found" 1>&6
813 AUTOMAKE="$missing_dir/missing automake"
814 echo "$ac_t""missing" 1>&6
817 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
818 echo "configure:819: checking for working autoheader" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
823 AUTOHEADER=autoheader
824 echo "$ac_t""found" 1>&6
826 AUTOHEADER="$missing_dir/missing autoheader"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
831 echo "configure:832: checking for working makeinfo" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
837 echo "$ac_t""found" 1>&6
839 MAKEINFO="$missing_dir/missing makeinfo"
840 echo "$ac_t""missing" 1>&6
846 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
847 echo "configure:848: checking configure arguments" >&5
852 ldap_subdir="openldap"
854 # Check whether --with-subdir or --without-subdir was given.
855 if test "${with_subdir+set}" = set; then
856 withval="$with_subdir"
858 if test "$withval" = "no"; then
860 elif test "$withval" != "yes"; then
861 ldap_subdir="$withval"
867 # OpenLDAP --enable-debug
868 # Check whether --enable-debug or --disable-debug was given.
869 if test "${enable_debug+set}" = set; then
870 enableval="$enable_debug"
873 for ol_val in auto yes no ; do
874 if test "$enableval" = "$ol_val" ; then
878 if test "$ol_arg" = "invalid" ; then
879 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
881 ol_enable_debug="$ol_arg"
884 ol_enable_debug="yes"
888 # OpenLDAP --enable-proctitle
889 # Check whether --enable-proctitle or --disable-proctitle was given.
890 if test "${enable_proctitle+set}" = set; then
891 enableval="$enable_proctitle"
894 for ol_val in auto yes no ; do
895 if test "$enableval" = "$ol_val" ; then
899 if test "$ol_arg" = "invalid" ; then
900 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
902 ol_enable_proctitle="$ol_arg"
905 ol_enable_proctitle="yes"
907 # end --enable-proctitle
908 # OpenLDAP --enable-cache
909 # Check whether --enable-cache or --disable-cache was given.
910 if test "${enable_cache+set}" = set; then
911 enableval="$enable_cache"
914 for ol_val in auto yes no ; do
915 if test "$enableval" = "$ol_val" ; then
919 if test "$ol_arg" = "invalid" ; then
920 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
922 ol_enable_cache="$ol_arg"
925 ol_enable_cache="yes"
928 # OpenLDAP --enable-dns
929 # Check whether --enable-dns or --disable-dns was given.
930 if test "${enable_dns+set}" = set; then
931 enableval="$enable_dns"
934 for ol_val in auto yes no ; do
935 if test "$enableval" = "$ol_val" ; then
939 if test "$ol_arg" = "invalid" ; then
940 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
942 ol_enable_dns="$ol_arg"
948 # OpenLDAP --enable-referrals
949 # Check whether --enable-referrals or --disable-referrals was given.
950 if test "${enable_referrals+set}" = set; then
951 enableval="$enable_referrals"
954 for ol_val in auto yes no ; do
955 if test "$enableval" = "$ol_val" ; then
959 if test "$ol_arg" = "invalid" ; then
960 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
962 ol_enable_referrals="$ol_arg"
965 ol_enable_referrals="yes"
967 # end --enable-referrals
968 # OpenLDAP --enable-cldap
969 # Check whether --enable-cldap or --disable-cldap was given.
970 if test "${enable_cldap+set}" = set; then
971 enableval="$enable_cldap"
974 for ol_val in auto yes no ; do
975 if test "$enableval" = "$ol_val" ; then
979 if test "$ol_arg" = "invalid" ; then
980 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
982 ol_enable_cldap="$ol_arg"
988 # OpenLDAP --enable-x_compile
989 # Check whether --enable-x_compile or --disable-x_compile was given.
990 if test "${enable_x_compile+set}" = set; then
991 enableval="$enable_x_compile"
994 for ol_val in yes no ; do
995 if test "$enableval" = "$ol_val" ; then
999 if test "$ol_arg" = "invalid" ; then
1000 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1002 ol_enable_x_compile="$ol_arg"
1005 ol_enable_x_compile="no"
1007 # end --enable-x_compile
1010 # OpenLDAP --enable-dmalloc
1011 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1012 if test "${enable_dmalloc+set}" = set; then
1013 enableval="$enable_dmalloc"
1016 for ol_val in auto yes no ; do
1017 if test "$enableval" = "$ol_val" ; then
1021 if test "$ol_arg" = "invalid" ; then
1022 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1024 ol_enable_dmalloc="$ol_arg"
1027 ol_enable_dmalloc="no"
1029 # end --enable-dmalloc
1031 # OpenLDAP --with-kerberos
1032 # Check whether --with-kerberos or --without-kerberos was given.
1033 if test "${with_kerberos+set}" = set; then
1034 withval="$with_kerberos"
1037 for ol_val in auto k5 k4 afs yes no ; do
1038 if test "$withval" = "$ol_val" ; then
1042 if test "$ol_arg" = "invalid" ; then
1043 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1045 ol_with_kerberos="$ol_arg"
1048 ol_with_kerberos="auto"
1050 # end --with-kerberos
1052 # OpenLDAP --with-threads
1053 # Check whether --with-threads or --without-threads was given.
1054 if test "${with_threads+set}" = set; then
1055 withval="$with_threads"
1058 for ol_val in auto posix mach lwp yes no manual ; do
1059 if test "$withval" = "$ol_val" ; then
1063 if test "$ol_arg" = "invalid" ; then
1064 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1066 ol_with_threads="$ol_arg"
1069 ol_with_threads="auto"
1071 # end --with-threads
1073 # OpenLDAP --with-yielding_select
1074 # Check whether --with-yielding_select or --without-yielding_select was given.
1075 if test "${with_yielding_select+set}" = set; then
1076 withval="$with_yielding_select"
1079 for ol_val in auto yes no manual ; do
1080 if test "$withval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1087 ol_with_yielding_select="$ol_arg"
1090 ol_with_yielding_select="auto"
1092 # end --with-yielding_select
1096 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1097 if test "${with_xxldapdoptions+set}" = set; then
1098 withval="$with_xxldapdoptions"
1102 # OpenLDAP --enable-ldapd
1103 # Check whether --enable-ldapd or --disable-ldapd was given.
1104 if test "${enable_ldapd+set}" = set; then
1105 enableval="$enable_ldapd"
1108 for ol_val in auto yes no ; do
1109 if test "$enableval" = "$ol_val" ; then
1113 if test "$ol_arg" = "invalid" ; then
1114 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1116 ol_enable_ldapd="$ol_arg"
1119 ol_enable_ldapd="no"
1121 # end --enable-ldapd
1123 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1124 if test "${with_xxslapdoptions+set}" = set; then
1125 withval="$with_xxslapdoptions"
1129 # OpenLDAP --enable-slapd
1130 # Check whether --enable-slapd or --disable-slapd was given.
1131 if test "${enable_slapd+set}" = set; then
1132 enableval="$enable_slapd"
1135 for ol_val in auto yes no ; do
1136 if test "$enableval" = "$ol_val" ; then
1140 if test "$ol_arg" = "invalid" ; then
1141 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1143 ol_enable_slapd="$ol_arg"
1146 ol_enable_slapd="yes"
1148 # end --enable-slapd
1149 # OpenLDAP --enable-aclgroups
1150 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1151 if test "${enable_aclgroups+set}" = set; then
1152 enableval="$enable_aclgroups"
1155 for ol_val in auto yes no ; do
1156 if test "$enableval" = "$ol_val" ; then
1160 if test "$ol_arg" = "invalid" ; then
1161 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1163 ol_enable_aclgroups="$ol_arg"
1166 ol_enable_aclgroups="auto"
1168 # end --enable-aclgroups
1169 # OpenLDAP --enable-cleartext
1170 # Check whether --enable-cleartext or --disable-cleartext was given.
1171 if test "${enable_cleartext+set}" = set; then
1172 enableval="$enable_cleartext"
1175 for ol_val in auto yes no ; do
1176 if test "$enableval" = "$ol_val" ; then
1180 if test "$ol_arg" = "invalid" ; then
1181 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1183 ol_enable_cleartext="$ol_arg"
1186 ol_enable_cleartext="yes"
1188 # end --enable-cleartext
1189 # OpenLDAP --enable-crypt
1190 # Check whether --enable-crypt or --disable-crypt was given.
1191 if test "${enable_crypt+set}" = set; then
1192 enableval="$enable_crypt"
1195 for ol_val in auto yes no ; do
1196 if test "$enableval" = "$ol_val" ; then
1200 if test "$ol_arg" = "invalid" ; then
1201 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1203 ol_enable_crypt="$ol_arg"
1206 ol_enable_crypt="auto"
1208 # end --enable-crypt
1209 # OpenLDAP --enable-wrappers
1210 # Check whether --enable-wrappers or --disable-wrappers was given.
1211 if test "${enable_wrappers+set}" = set; then
1212 enableval="$enable_wrappers"
1215 for ol_val in auto yes no ; do
1216 if test "$enableval" = "$ol_val" ; then
1220 if test "$ol_arg" = "invalid" ; then
1221 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1223 ol_enable_wrappers="$ol_arg"
1226 ol_enable_wrappers="no"
1228 # end --enable-wrappers
1229 # OpenLDAP --enable-phonetic
1230 # Check whether --enable-phonetic or --disable-phonetic was given.
1231 if test "${enable_phonetic+set}" = set; then
1232 enableval="$enable_phonetic"
1235 for ol_val in auto yes no ; do
1236 if test "$enableval" = "$ol_val" ; then
1240 if test "$ol_arg" = "invalid" ; then
1241 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1243 ol_enable_phonetic="$ol_arg"
1246 ol_enable_phonetic="no"
1248 # end --enable-phonetic
1249 # OpenLDAP --enable-rlookups
1250 # Check whether --enable-rlookups or --disable-rlookups was given.
1251 if test "${enable_rlookups+set}" = set; then
1252 enableval="$enable_rlookups"
1255 for ol_val in auto yes no ; do
1256 if test "$enableval" = "$ol_val" ; then
1260 if test "$ol_arg" = "invalid" ; then
1261 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1263 ol_enable_rlookups="$ol_arg"
1266 ol_enable_rlookups="auto"
1268 # end --enable-rlookups
1270 # OpenLDAP --enable-bdb2
1271 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1272 if test "${enable_bdb2+set}" = set; then
1273 enableval="$enable_bdb2"
1276 for ol_val in auto yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1284 ol_enable_bdb2="$ol_arg"
1290 # OpenLDAP --enable-ldbm
1291 # Check whether --enable-ldbm or --disable-ldbm was given.
1292 if test "${enable_ldbm+set}" = set; then
1293 enableval="$enable_ldbm"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1304 ol_enable_ldbm="$ol_arg"
1307 ol_enable_ldbm="yes"
1310 # OpenLDAP --with-ldbm_api
1311 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1312 if test "${with_ldbm_api+set}" = set; then
1313 withval="$with_ldbm_api"
1316 for ol_val in auto db2 db gdbm ndbm manual ; do
1317 if test "$withval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1324 ol_with_ldbm_api="$ol_arg"
1327 ol_with_ldbm_api="auto"
1329 # end --with-ldbm_api
1331 # OpenLDAP --with-ldbm_type
1332 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1333 if test "${with_ldbm_type+set}" = set; then
1334 withval="$with_ldbm_type"
1337 for ol_val in auto btree hash ; do
1338 if test "$withval" = "$ol_val" ; then
1342 if test "$ol_arg" = "invalid" ; then
1343 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1345 ol_with_ldbm_type="$ol_arg"
1348 ol_with_ldbm_type="auto"
1350 # end --with-ldbm_type
1353 # OpenLDAP --enable-passwd
1354 # Check whether --enable-passwd or --disable-passwd was given.
1355 if test "${enable_passwd+set}" = set; then
1356 enableval="$enable_passwd"
1359 for ol_val in auto yes no ; do
1360 if test "$enableval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1367 ol_enable_passwd="$ol_arg"
1370 ol_enable_passwd="no"
1372 # end --enable-passwd
1373 # OpenLDAP --enable-perl
1374 # Check whether --enable-perl or --disable-perl was given.
1375 if test "${enable_perl+set}" = set; then
1376 enableval="$enable_perl"
1379 for ol_val in auto yes no ; do
1380 if test "$enableval" = "$ol_val" ; then
1384 if test "$ol_arg" = "invalid" ; then
1385 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1387 ol_enable_perl="$ol_arg"
1393 # OpenLDAP --enable-shell
1394 # Check whether --enable-shell or --disable-shell was given.
1395 if test "${enable_shell+set}" = set; then
1396 enableval="$enable_shell"
1399 for ol_val in auto yes no ; do
1400 if test "$enableval" = "$ol_val" ; then
1404 if test "$ol_arg" = "invalid" ; then
1405 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1407 ol_enable_shell="$ol_arg"
1410 ol_enable_shell="no"
1412 # end --enable-shell
1413 # OpenLDAP --enable-tcl
1414 # Check whether --enable-tcl or --disable-tcl was given.
1415 if test "${enable_tcl+set}" = set; then
1416 enableval="$enable_tcl"
1419 for ol_val in auto yes no ; do
1420 if test "$enableval" = "$ol_val" ; then
1424 if test "$ol_arg" = "invalid" ; then
1425 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1427 ol_enable_tcl="$ol_arg"
1434 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1435 if test "${with_xxslurpdoptions+set}" = set; then
1436 withval="$with_xxslurpdoptions"
1440 # OpenLDAP --enable-slurpd
1441 # Check whether --enable-slurpd or --disable-slurpd was given.
1442 if test "${enable_slurpd+set}" = set; then
1443 enableval="$enable_slurpd"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1454 ol_enable_slurpd="$ol_arg"
1457 ol_enable_slurpd="auto"
1459 # end --enable-slurpd
1461 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1462 if test "${with_xxliboptions+set}" = set; then
1463 withval="$with_xxliboptions"
1467 # Check whether --enable-static or --disable-static was given.
1468 if test "${enable_static+set}" = set; then
1469 enableval="$enable_static"
1470 p=${PACKAGE-default}
1471 case "$enableval" in
1472 yes) enable_static=yes ;;
1473 no) enable_static=no ;;
1476 # Look at the argument we got. We use all the common list separators.
1477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1478 for pkg in $enableval; do
1479 if test "X$pkg" = "X$p"; then
1490 # Check whether --enable-shared or --disable-shared was given.
1491 if test "${enable_shared+set}" = set; then
1492 enableval="$enable_shared"
1493 p=${PACKAGE-default}
1494 case "$enableval" in
1495 yes) enable_shared=yes ;;
1496 no) enable_shared=no ;;
1499 # Look at the argument we got. We use all the common list separators.
1500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1501 for pkg in $enableval; do
1502 if test "X$pkg" = "X$p"; then
1515 if test $ol_enable_dns = yes ; then
1516 if test $ol_enable_referrals = no ; then
1517 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1519 if test $ol_enable_referrals = auto ; then
1520 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1521 ol_enable_referrals=yes
1525 if test $ol_enable_slapd = no ; then
1526 if test $ol_enable_bdb2 = yes ; then
1527 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1529 if test $ol_enable_ldbm = yes ; then
1530 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1532 if test $ol_enable_passwd = yes ; then
1533 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1535 if test $ol_enable_perl = yes ; then
1536 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1538 if test $ol_enable_shell = yes ; then
1539 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1541 if test $ol_enable_tcl = yes ; then
1542 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1544 if test $ol_enable_aclgroups = yes ; then
1545 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1547 if test $ol_enable_wrappers = yes ; then
1548 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1550 if test $ol_enable_phonetic = yes ; then
1551 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1553 if test $ol_enable_rlookups = yes ; then
1554 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1556 if test $ol_with_ldbm_api != auto ; then
1557 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1559 if test $ol_with_ldbm_type != auto ; then
1560 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1562 if test $ol_enable_slurpd = yes ; then
1563 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1566 # force settings to no
1573 ol_enable_aclgroups=no
1574 ol_enable_wrappers=no
1575 ol_enable_phonetic=no
1576 ol_enable_rlookups=no
1578 ol_with_ldbm_type=no
1581 elif test $ol_enable_ldbm = no ; then
1583 if test $ol_with_ldbm_api != auto ; then
1584 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1587 if test $ol_with_ldbm_type != auto ; then
1588 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1591 if test $ol_enable_bdb2 = yes ; then
1592 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1595 if test $ol_enable_passwd = no -a \
1596 $ol_enable_perl = no -a \
1597 $ol_enable_shell = no -a \
1598 $ol_enable_tcl = no ; then
1599 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1603 ol_with_ldbm_type=no
1605 elif test $ol_enable_bdb2 = yes ; then
1607 if test $ol_with_ldbm_api != auto -a \
1608 $ol_with_ldbm_api != db2 ; then
1609 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1612 ol_with_ldbm_api=db2
1616 if test $ol_enable_bdb2 != no ; then
1617 if test $ol_with_ldbm_api != auto -a \
1618 $ol_with_ldbm_api != db2 ; then
1619 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1624 if test $ol_with_ldbm_api = gdbm -a \
1625 $ol_with_ldbm_type = btree ; then
1626 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1628 if test $ol_with_ldbm_api = ndbm -a \
1629 $ol_with_ldbm_type = btree ; then
1630 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1634 if test $ol_enable_slurpd = yes ; then
1635 if test $ol_with_threads = no ; then
1636 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1640 echo "$ac_t""done" 1>&6
1643 # Make sure we can run config.sub.
1644 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1645 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1648 echo $ac_n "checking host system type""... $ac_c" 1>&6
1649 echo "configure:1650: checking host system type" >&5
1652 case "$host_alias" in
1656 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1657 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1659 *) host_alias=$nonopt ;;
1663 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1664 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667 echo "$ac_t""$host" 1>&6
1693 SLAPD_PERL_CPPFLAGS=
1699 # Find a good install program. We prefer a C program (faster),
1700 # so one script is as good as another. But avoid the broken or
1701 # incompatible versions:
1702 # SysV /etc/install, /usr/sbin/install
1703 # SunOS /usr/etc/install
1704 # IRIX /sbin/install
1706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1709 # ./install, which can be erroneously created by make from ./install.sh.
1710 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1711 echo "configure:1712: checking for a BSD compatible install" >&5
1712 if test -z "$INSTALL"; then
1713 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1717 for ac_dir in $PATH; do
1718 # Account for people who put trailing slashes in PATH elements.
1720 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1722 # OSF1 and SCO ODT 3.0 have their own names for install.
1723 # Don't use installbsd from OSF since it installs stuff as root
1725 for ac_prog in ginstall scoinst install; do
1726 if test -f $ac_dir/$ac_prog; then
1727 if test $ac_prog = install &&
1728 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1729 # AIX install. It has an incompatible calling convention.
1732 ac_cv_path_install="$ac_dir/$ac_prog -c"
1743 if test "${ac_cv_path_install+set}" = set; then
1744 INSTALL="$ac_cv_path_install"
1746 # As a last resort, use the slow shell script. We don't cache a
1747 # path for INSTALL within a source directory, because that will
1748 # break other packages using the cache if that directory is
1749 # removed, or if the path is relative.
1750 INSTALL="$ac_install_sh"
1753 echo "$ac_t""$INSTALL" 1>&6
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1763 # Extract the first word of "ranlib", so it can be a program name with args.
1764 set dummy ranlib; ac_word=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 if test -n "$RANLIB"; then
1771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1775 for ac_dir in $ac_dummy; do
1776 test -z "$ac_dir" && ac_dir=.
1777 if test -f $ac_dir/$ac_word; then
1778 ac_cv_prog_RANLIB="ranlib"
1783 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1786 RANLIB="$ac_cv_prog_RANLIB"
1787 if test -n "$RANLIB"; then
1788 echo "$ac_t""$RANLIB" 1>&6
1790 echo "$ac_t""no" 1>&6
1793 # Extract the first word of "gcc", so it can be a program name with args.
1794 set dummy gcc; ac_word=$2
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1796 echo "configure:1797: checking for $ac_word" >&5
1797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1805 for ac_dir in $ac_dummy; do
1806 test -z "$ac_dir" && ac_dir=.
1807 if test -f $ac_dir/$ac_word; then
1816 if test -n "$CC"; then
1817 echo "$ac_t""$CC" 1>&6
1819 echo "$ac_t""no" 1>&6
1822 if test -z "$CC"; then
1823 # Extract the first word of "cc", so it can be a program name with args.
1824 set dummy cc; ac_word=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1836 for ac_dir in $ac_dummy; do
1837 test -z "$ac_dir" && ac_dir=.
1838 if test -f $ac_dir/$ac_word; then
1839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1840 ac_prog_rejected=yes
1848 if test $ac_prog_rejected = yes; then
1849 # We found a bogon in the path, so make sure we never use it.
1850 set dummy $ac_cv_prog_CC
1852 if test $# -gt 0; then
1853 # We chose a different compiler from the bogus one.
1854 # However, it has the same basename, so the bogon will be chosen
1855 # first if we set CC to just the basename; use the full file name.
1857 set dummy "$ac_dir/$ac_word" "$@"
1865 if test -n "$CC"; then
1866 echo "$ac_t""$CC" 1>&6
1868 echo "$ac_t""no" 1>&6
1871 if test -z "$CC"; then
1872 case "`uname -s`" in
1874 # Extract the first word of "cl", so it can be a program name with args.
1875 set dummy cl; ac_word=$2
1876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_word" >&5
1878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/$ac_word; then
1897 if test -n "$CC"; then
1898 echo "$ac_t""$CC" 1>&6
1900 echo "$ac_t""no" 1>&6
1905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1909 echo "configure:1910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1913 ac_cpp='$CPP $CPPFLAGS'
1914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1916 cross_compiling=$ac_cv_prog_cc_cross
1918 cat > conftest.$ac_ext << EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1925 if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1926 ac_cv_prog_cc_works=yes
1927 # If we can't run a trivial program, we are probably using a cross compiler.
1928 if (./conftest; exit) 2>/dev/null; then
1929 ac_cv_prog_cc_cross=no
1931 ac_cv_prog_cc_cross=yes
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936 ac_cv_prog_cc_works=no
1940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1944 cross_compiling=$ac_cv_prog_cc_cross
1946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1947 if test $ac_cv_prog_cc_works = no; then
1948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1953 cross_compiling=$ac_cv_prog_cc_cross
1955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1956 echo "configure:1957: checking whether we are using GNU C" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.c <<EOF
1965 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1974 if test $ac_cv_prog_gcc = yes; then
1980 ac_test_CFLAGS="${CFLAGS+set}"
1981 ac_save_CFLAGS="$CFLAGS"
1983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1984 echo "configure:1985: checking whether ${CC-cc} accepts -g" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 echo 'void f(){}' > conftest.c
1989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1999 if test "$ac_test_CFLAGS" = set; then
2000 CFLAGS="$ac_save_CFLAGS"
2001 elif test $ac_cv_prog_cc_g = yes; then
2002 if test "$GCC" = yes; then
2008 if test "$GCC" = yes; then
2015 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2016 if test "${with_gnu_ld+set}" = set; then
2017 withval="$with_gnu_ld"
2018 test "$withval" = no || with_gnu_ld=yes
2025 if test "$ac_cv_prog_gcc" = yes; then
2026 # Check if gcc -print-prog-name=ld gives a path.
2027 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2028 echo "configure:2029: checking for ld used by GCC" >&5
2029 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2031 # Accept absolute paths.
2033 test -z "$LD" && LD="$ac_prog"
2036 # If it fails, then pretend we aren't using GCC.
2040 # If it is relative, then search for the first ld in PATH.
2044 elif test "$with_gnu_ld" = yes; then
2045 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2046 echo "configure:2047: checking for GNU ld" >&5
2048 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2049 echo "configure:2050: checking for non-GNU ld" >&5
2051 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 if test -z "$LD"; then
2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2056 for ac_dir in $PATH; do
2057 test -z "$ac_dir" && ac_dir=.
2058 if test -f "$ac_dir/$ac_prog"; then
2059 ac_cv_path_LD="$ac_dir/$ac_prog"
2060 # Check to see if the program is GNU ld. I'd rather use --version,
2061 # but apparently some GNU ld's only accept -v.
2062 # Break only if it was the GNU/non-GNU ld that we prefer.
2063 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2064 test "$with_gnu_ld" != no && break
2066 test "$with_gnu_ld" != yes && break
2072 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2077 if test -n "$LD"; then
2078 echo "$ac_t""$LD" 1>&6
2080 echo "$ac_t""no" 1>&6
2082 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2084 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2085 echo "configure:2086: checking if the linker ($LD) is GNU ld" >&5
2086 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2090 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2091 ac_cv_prog_gnu_ld=yes
2093 ac_cv_prog_gnu_ld=no
2097 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2100 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2101 echo "configure:2102: checking for BSD-compatible nm" >&5
2102 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2107 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2111 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2112 test -z "$ac_dir" && ac_dir=.
2113 if test -f $ac_dir/nm; then
2114 # Check to see if the nm accepts a BSD-compat flag.
2115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2116 # nm: unknown option "B" ignored
2117 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2118 ac_cv_path_NM="$ac_dir/nm -B"
2119 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2120 ac_cv_path_NM="$ac_dir/nm -p"
2122 ac_cv_path_NM="$ac_dir/nm"
2128 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2134 echo "$ac_t""$NM" 1>&6
2137 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2138 echo "configure:2139: checking whether ln -s works" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2143 if ln -s X conftestdata 2>/dev/null
2146 ac_cv_prog_LN_S="ln -s"
2151 LN_S="$ac_cv_prog_LN_S"
2152 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2153 echo "$ac_t""yes" 1>&6
2155 echo "$ac_t""no" 1>&6
2158 # Always use our own libtool.
2159 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2161 # Check for any special flags to pass to ltconfig.
2163 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2164 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2165 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2166 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2167 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2169 # Some flags need to be propagated to the compiler or linker for good
2173 # Find out which ABI we are using.
2174 echo '#line 2175 "configure"' > conftest.$ac_ext
2175 if { (eval echo configure:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2176 case "`/usr/bin/file conftest.o`" in
2192 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2193 CFLAGS="$CFLAGS -belf"
2197 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2198 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2199 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2200 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2201 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2202 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2205 for ac_prog in mawk gawk nawk awk
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_word" >&5
2211 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2219 for ac_dir in $ac_dummy; do
2220 test -z "$ac_dir" && ac_dir=.
2221 if test -f $ac_dir/$ac_word; then
2222 ac_cv_prog_AWK="$ac_prog"
2229 AWK="$ac_cv_prog_AWK"
2230 if test -n "$AWK"; then
2231 echo "$ac_t""$AWK" 1>&6
2233 echo "$ac_t""no" 1>&6
2236 test -n "$AWK" && break
2239 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2240 echo "configure:2241: checking whether ln -s works" >&5
2241 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2245 if ln -s X conftestdata 2>/dev/null
2248 ac_cv_prog_LN_S="ln -s"
2253 LN_S="$ac_cv_prog_LN_S"
2254 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2255 echo "$ac_t""yes" 1>&6
2257 echo "$ac_t""no" 1>&6
2261 # Extract the first word of "sendmail", so it can be a program name with args.
2262 set dummy sendmail; ac_word=$2
2263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_word" >&5
2265 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2270 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2273 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2277 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2278 for ac_dir in $ac_dummy; do
2279 test -z "$ac_dir" && ac_dir=.
2280 if test -f $ac_dir/$ac_word; then
2281 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2286 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2290 SENDMAIL="$ac_cv_path_SENDMAIL"
2291 if test -n "$SENDMAIL"; then
2292 echo "$ac_t""$SENDMAIL" 1>&6
2294 echo "$ac_t""no" 1>&6
2297 # Extract the first word of "vi", so it can be a program name with args.
2298 set dummy vi; ac_word=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2309 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2313 ac_dummy="$PATH:/usr/ucb"
2314 for ac_dir in $ac_dummy; do
2315 test -z "$ac_dir" && ac_dir=.
2316 if test -f $ac_dir/$ac_word; then
2317 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2322 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2326 EDITOR="$ac_cv_path_EDITOR"
2327 if test -n "$EDITOR"; then
2328 echo "$ac_t""$EDITOR" 1>&6
2330 echo "$ac_t""no" 1>&6
2333 # Extract the first word of "finger", so it can be a program name with args.
2334 set dummy finger; ac_word=$2
2335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_word" >&5
2337 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2342 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2345 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2349 ac_dummy="$PATH:/usr/ucb"
2350 for ac_dir in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir=.
2352 if test -f $ac_dir/$ac_word; then
2353 ac_cv_path_FINGER="$ac_dir/$ac_word"
2358 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2362 FINGER="$ac_cv_path_FINGER"
2363 if test -n "$FINGER"; then
2364 echo "$ac_t""$FINGER" 1>&6
2366 echo "$ac_t""no" 1>&6
2370 if test $ol_enable_perl = yes ; then
2371 # Extract the first word of "perl", so it can be a program name with args.
2372 set dummy perl; ac_word=$2
2373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2374 echo "configure:2375: checking for $ac_word" >&5
2375 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2380 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2383 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2396 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2400 PERLBIN="$ac_cv_path_PERLBIN"
2401 if test -n "$PERLBIN"; then
2402 echo "$ac_t""$PERLBIN" 1>&6
2404 echo "$ac_t""no" 1>&6
2408 if test "no$PERLBIN" = "no" ; then
2412 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2413 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2416 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2417 echo "configure:2418: checking how to run the C preprocessor" >&5
2418 # On Suns, sometimes $CPP names a directory.
2419 if test -n "$CPP" && test -d "$CPP"; then
2422 if test -z "$CPP"; then
2423 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 # This must be in double quotes, not single quotes, because CPP may get
2427 # substituted into the Makefile and "${CC-cc}" will confuse make.
2429 # On the NeXT, cc -E runs the code through the compiler's parser,
2430 # not just through cpp.
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2438 { (eval echo configure:2439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2440 if test -z "$ac_err"; then
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 CPP="${CC-cc} -E -traditional-cpp"
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455 { (eval echo configure:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2457 if test -z "$ac_err"; then
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2464 CPP="${CC-cc} -nologo -E"
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2488 ac_cv_prog_CPP="$CPP"
2490 CPP="$ac_cv_prog_CPP"
2492 ac_cv_prog_CPP="$CPP"
2494 echo "$ac_t""$CPP" 1>&6
2497 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2498 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2500 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2501 echo "configure: warning: programs compiled here do run here..." 1>&2
2502 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2504 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2505 echo "configure: warning: programs compiled here do not run here..." 1>&2
2506 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2509 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2510 echo "configure:2511: checking for AIX" >&5
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2520 egrep "yes" >/dev/null 2>&1; then
2522 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2523 #define _ALL_SOURCE 1
2528 echo "$ac_t""no" 1>&6
2533 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2534 echo "configure:2535: checking for POSIXized ISC" >&5
2535 if test -d /etc/conf/kconfig.d &&
2536 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2538 echo "$ac_t""yes" 1>&6
2539 ISC=yes # If later tests want to check for ISC.
2540 cat >> confdefs.h <<\EOF
2541 #define _POSIX_SOURCE 1
2544 if test "$GCC" = yes; then
2550 echo "$ac_t""no" 1>&6
2554 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2556 echo "configure:2557: checking for minix/config.h" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <minix/config.h>
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2570 eval "ac_cv_header_$ac_safe=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_header_$ac_safe=no"
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2584 echo "$ac_t""no" 1>&6
2588 if test "$MINIX" = yes; then
2589 cat >> confdefs.h <<\EOF
2590 #define _POSIX_SOURCE 1
2593 cat >> confdefs.h <<\EOF
2594 #define _POSIX_1_SOURCE 2
2597 cat >> confdefs.h <<\EOF
2604 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2605 echo "configure:2606: checking for Cygwin environment" >&5
2606 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2616 #define __CYGWIN__ __CYGWIN32__
2621 if { (eval echo configure:2622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2634 echo "$ac_t""$ac_cv_cygwin" 1>&6
2636 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2637 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2638 echo "configure:2639: checking for mingw32 environment" >&5
2639 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2650 if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2663 echo "$ac_t""$ac_cv_mingw32" 1>&6
2665 test "$ac_cv_mingw32" = yes && MINGW32=yes
2668 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2669 echo "configure:2670: checking for executable suffix" >&5
2670 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2677 echo 'int main () { return 0; }' > conftest.$ac_ext
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2680 for file in conftest.*; do
2682 *.c | *.o | *.obj) ;;
2683 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2687 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2690 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2695 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2696 echo "$ac_t""${ac_cv_exeext}" 1>&6
2699 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2700 echo "configure:2701: checking for object suffix" >&5
2701 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2705 echo 'int i = 1;' > conftest.$ac_ext
2706 if { (eval echo configure:2707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2707 for ac_file in conftest.*; do
2710 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2714 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2719 echo "$ac_t""$ac_cv_objext" 1>&6
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$ac_cv_objext
2727 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2728 echo "configure:2729: checking for ${CC-cc} option to accept ANSI C" >&5
2729 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 am_cv_prog_cc_stdc=no
2734 # Don't try gcc -ansi; that turns off useful extensions and
2735 # breaks some systems' header files.
2736 # AIX -qlanglvl=ansi
2737 # Ultrix and OSF/1 -std1
2738 # HP-UX -Aa -D_HPUX_SOURCE
2739 # SVR4 -Xc -D__EXTENSIONS__
2740 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2742 CC="$ac_save_CC $ac_arg"
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 #include <sys/types.h>
2749 #include <sys/stat.h>
2750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2751 struct buf { int x; };
2752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2753 static char *e (p, i)
2759 static char *f (char * (*g) (char **, int), char **p, ...)
2764 s = g (p, va_arg (v,int));
2768 int test (int i, double x);
2769 struct s1 {int (*f) (int a);};
2770 struct s2 {int (*f) (double a);};
2771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2777 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2781 if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2783 am_cv_prog_cc_stdc="$ac_arg"; break
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2794 if test -z "$am_cv_prog_cc_stdc"; then
2795 echo "$ac_t""none needed" 1>&6
2797 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2799 case "x$am_cv_prog_cc_stdc" in
2801 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2804 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2805 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2811 echo $ac_n "checking for socket""... $ac_c" 1>&6
2812 echo "configure:2813: checking for socket" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char socket(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub_socket) || defined (__stub___socket)
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842 eval "ac_cv_func_socket=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_func_socket=no"
2852 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2856 echo "$ac_t""no" 1>&6
2858 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2859 echo "configure:2860: checking for main in -lsocket" >&5
2860 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 ac_save_LIBS="$LIBS"
2865 LIBS="-lsocket $LIBS"
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2874 if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2876 eval "ac_cv_lib_$ac_lib_var=yes"
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2881 eval "ac_cv_lib_$ac_lib_var=no"
2884 LIBS="$ac_save_LIBS"
2887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2888 echo "$ac_t""yes" 1>&6
2889 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2890 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2891 cat >> confdefs.h <<EOF
2892 #define $ac_tr_lib 1
2895 LIBS="-lsocket $LIBS"
2898 echo "$ac_t""no" 1>&6
2901 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2902 echo "configure:2903: checking for main in -lnet" >&5
2903 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 ac_save_LIBS="$LIBS"
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2919 eval "ac_cv_lib_$ac_lib_var=yes"
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2924 eval "ac_cv_lib_$ac_lib_var=no"
2927 LIBS="$ac_save_LIBS"
2930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2931 echo "$ac_t""yes" 1>&6
2932 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2933 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2934 cat >> confdefs.h <<EOF
2935 #define $ac_tr_lib 1
2941 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2945 echo "configure:2946: checking for main in -lnsl_s" >&5
2946 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 ac_save_LIBS="$LIBS"
2951 LIBS="-lnsl_s $LIBS"
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2962 eval "ac_cv_lib_$ac_lib_var=yes"
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2967 eval "ac_cv_lib_$ac_lib_var=no"
2970 LIBS="$ac_save_LIBS"
2973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2974 echo "$ac_t""yes" 1>&6
2975 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2977 cat >> confdefs.h <<EOF
2978 #define $ac_tr_lib 1
2981 LIBS="-lnsl_s $LIBS"
2984 echo "$ac_t""no" 1>&6
2987 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2988 echo "configure:2989: checking for main in -lnsl" >&5
2989 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 ac_save_LIBS="$LIBS"
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
3003 if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3005 eval "ac_cv_lib_$ac_lib_var=yes"
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 eval "ac_cv_lib_$ac_lib_var=no"
3013 LIBS="$ac_save_LIBS"
3016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3019 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3020 cat >> confdefs.h <<EOF
3021 #define $ac_tr_lib 1
3027 echo "$ac_t""no" 1>&6
3030 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3031 echo "configure:3032: checking for socket in -linet" >&5
3032 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 ac_save_LIBS="$LIBS"
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3052 eval "ac_cv_lib_$ac_lib_var=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3057 eval "ac_cv_lib_$ac_lib_var=no"
3060 LIBS="$ac_save_LIBS"
3063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3065 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3067 cat >> confdefs.h <<EOF
3068 #define $ac_tr_lib 1
3074 echo "$ac_t""no" 1>&6
3077 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3078 echo "configure:3079: checking for main in -lgen" >&5
3079 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_save_LIBS="$LIBS"
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_lib_$ac_lib_var=no"
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_lib 1
3117 echo "$ac_t""no" 1>&6
3124 for ac_func in res_search
3126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3127 echo "configure:3128: checking for $ac_func" >&5
3128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* System header to define __stub macros and hopefully few prototypes,
3135 which can conflict with char $ac_func(); below. */
3137 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3144 /* The GNU C library defines this for functions which it implements
3145 to always fail with ENOSYS. Some functions are actually named
3146 something starting with __ and the normal name is an alias. */
3147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3157 eval "ac_cv_func_$ac_func=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3162 eval "ac_cv_func_$ac_func=no"
3167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3170 cat >> confdefs.h <<EOF
3171 #define $ac_tr_func 1
3175 echo "$ac_t""no" 1>&6
3179 if test $ac_cv_func_res_search = "no" ; then
3180 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3181 echo "configure:3182: checking for res_search in -lbind" >&5
3182 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 ac_save_LIBS="$LIBS"
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 /* Override any gcc2 internal prototype to avoid an error. */
3192 /* We use char because int might match the return type of a gcc2
3193 builtin and then its argument prototype would still apply. */
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202 eval "ac_cv_lib_$ac_lib_var=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 eval "ac_cv_lib_$ac_lib_var=no"
3210 LIBS="$ac_save_LIBS"
3213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3217 cat >> confdefs.h <<EOF
3218 #define $ac_tr_lib 1
3224 echo "$ac_t""no" 1>&6
3227 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3228 cat >> confdefs.h <<\EOF
3229 #define HAVE_RES_SEARCH 1
3233 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3234 echo "configure:3235: checking for res_search in -lresolv" >&5
3235 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 ac_save_LIBS="$LIBS"
3240 LIBS="-lresolv $LIBS"
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3253 if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 eval "ac_cv_lib_$ac_lib_var=yes"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 eval "ac_cv_lib_$ac_lib_var=no"
3263 LIBS="$ac_save_LIBS"
3266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3267 echo "$ac_t""yes" 1>&6
3268 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3270 cat >> confdefs.h <<EOF
3271 #define $ac_tr_lib 1
3274 LIBS="-lresolv $LIBS"
3277 echo "$ac_t""no" 1>&6
3280 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3281 cat >> confdefs.h <<\EOF
3282 #define HAVE_RES_SEARCH 1
3289 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3290 echo "configure:3291: checking for sigset in -lV3" >&5
3291 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 ac_save_LIBS="$LIBS"
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311 eval "ac_cv_lib_$ac_lib_var=yes"
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 eval "ac_cv_lib_$ac_lib_var=no"
3319 LIBS="$ac_save_LIBS"
3322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3326 cat >> confdefs.h <<EOF
3327 #define $ac_tr_lib 1
3333 echo "$ac_t""no" 1>&6
3339 if test $ol_enable_ldapd != no ; then
3340 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3341 echo "configure:3342: checking for main in -lxtpp" >&5
3342 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 ac_save_LIBS="$LIBS"
3347 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3356 if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3358 eval "ac_cv_lib_$ac_lib_var=yes"
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3363 eval "ac_cv_lib_$ac_lib_var=no"
3366 LIBS="$ac_save_LIBS"
3369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3370 echo "$ac_t""yes" 1>&6
3373 cat >> confdefs.h <<\EOF
3377 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3380 echo "$ac_t""no" 1>&6
3384 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3385 echo "configure:3386: checking for main in -ldsap" >&5
3386 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 ac_save_LIBS="$LIBS"
3391 LIBS="-ldsap -lisode $LIBS"
3392 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3402 eval "ac_cv_lib_$ac_lib_var=yes"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3407 eval "ac_cv_lib_$ac_lib_var=no"
3410 LIBS="$ac_save_LIBS"
3413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3417 cat >> confdefs.h <<\EOF
3421 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3424 echo "$ac_t""no" 1>&6
3428 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3429 echo "configure:3430: checking for main in -lisode" >&5
3430 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3434 ac_save_LIBS="$LIBS"
3435 LIBS="-lisode $LIBS"
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 eval "ac_cv_lib_$ac_lib_var=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_lib_$ac_lib_var=no"
3454 LIBS="$ac_save_LIBS"
3457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3461 cat >> confdefs.h <<\EOF
3462 #define HAVE_ISODE 1
3465 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3468 echo "$ac_t""no" 1>&6
3474 if test $ol_link_isode != no; then
3475 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3476 echo "configure:3477: checking for main in -lpp" >&5
3477 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 ac_save_LIBS="$LIBS"
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3491 if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3493 eval "ac_cv_lib_$ac_lib_var=yes"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3498 eval "ac_cv_lib_$ac_lib_var=no"
3501 LIBS="$ac_save_LIBS"
3504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3507 cat >> confdefs.h <<\EOF
3511 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3514 echo "$ac_t""no" 1>&6
3519 # Extract the first word of "pepsy", so it can be a program name with args.
3520 set dummy pepsy; ac_word=$2
3521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3522 echo "configure:3523: checking for $ac_word" >&5
3523 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3528 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3531 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3536 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 if test -f $ac_dir/$ac_word; then
3539 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3547 PEPSY="$ac_cv_path_PEPSY"
3548 if test -n "$PEPSY"; then
3549 echo "$ac_t""$PEPSY" 1>&6
3551 echo "$ac_t""no" 1>&6
3558 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3559 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3563 echo "configure:3564: checking for $ac_hdr" >&5
3564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3573 { (eval echo configure:3574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3575 if test -z "$ac_err"; then
3577 eval "ac_cv_header_$ac_safe=yes"
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3583 eval "ac_cv_header_$ac_safe=no"
3587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3590 cat >> confdefs.h <<EOF
3591 #define $ac_tr_hdr 1
3595 echo "$ac_t""no" 1>&6
3600 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3601 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3602 echo "configure:3603: checking for main in -lkrb4" >&5
3603 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 ac_save_LIBS="$LIBS"
3608 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3617 if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3619 eval "ac_cv_lib_$ac_lib_var=yes"
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3624 eval "ac_cv_lib_$ac_lib_var=no"
3627 LIBS="$ac_save_LIBS"
3630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3631 echo "$ac_t""yes" 1>&6
3634 echo "$ac_t""no" 1>&6
3639 if test $have_k5 = yes ; then
3640 ol_with_kerberos=found
3641 ol_link_kerberos=yes
3643 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3645 LIBS="$KRB_LIBS $LIBS"
3647 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3648 echo "configure:3649: checking for des_debug in Kerberos libraries" >&5
3649 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3654 LIBS="$KRB_LIBS $LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3659 #include <kerberosIV/krb.h>
3660 #include <kerberosIV/des.h>
3661 extern int des_debug;
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3671 ol_cv_var_des_debug=yes
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3676 ol_cv_var_des_debug=no
3683 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3685 if test $ol_cv_var_des_debug= yes ; then
3686 cat >> confdefs.h <<\EOF
3687 #define HAVE_DES_DEBUG 1
3697 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3698 for ac_hdr in krb.h des.h
3700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3702 echo "configure:3703: checking for $ac_hdr" >&5
3703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3712 { (eval echo configure:3713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3714 if test -z "$ac_err"; then
3716 eval "ac_cv_header_$ac_safe=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3722 eval "ac_cv_header_$ac_safe=no"
3726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_hdr 1
3734 echo "$ac_t""no" 1>&6
3739 if test $ac_cv_header_krb_h = yes ; then
3740 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3741 echo "configure:3742: checking for main in -lkrb" >&5
3742 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 ac_save_LIBS="$LIBS"
3747 LIBS="-lkrb -ldes $LIBS"
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3758 eval "ac_cv_lib_$ac_lib_var=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_lib_$ac_lib_var=no"
3766 LIBS="$ac_save_LIBS"
3769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3773 echo "$ac_t""no" 1>&6
3778 if test $have_k4 = yes ; then
3779 ol_with_kerberos=found
3780 ol_link_kerberos=yes
3782 KRB_LIBS="-lkrb -ldes"
3787 if test $ol_link_kerberos = yes ; then
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_KERBEROS 1
3795 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3796 -o $ol_with_threads = posix ; then
3798 for ac_hdr in pthread.h sched.h
3800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3802 echo "configure:3803: checking for $ac_hdr" >&5
3803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3812 { (eval echo configure:3813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3814 if test -z "$ac_err"; then
3816 eval "ac_cv_header_$ac_safe=yes"
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 eval "ac_cv_header_$ac_safe=no"
3826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3829 cat >> confdefs.h <<EOF
3830 #define $ac_tr_hdr 1
3834 echo "$ac_t""no" 1>&6
3839 if test $ac_cv_header_pthread_h = yes ; then
3840 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3841 echo "configure:3842: checking POSIX thread version" >&5
3842 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3850 # include <pthread.h>
3851 /* this check could be improved */
3852 # ifdef PTHREAD_ONCE_INIT
3853 pthread_version_final
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 egrep "pthread_version_final" >/dev/null 2>&1; then
3860 ol_pthread_final=yes
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3872 # include <pthread.h>
3873 /* this check could be improved */
3874 # ifdef pthread_once_init
3875 pthread_version_draft4
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3882 ol_pthread_draft4=yes
3885 ol_pthread_draft4=no
3890 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3891 ol_cv_pthread_version=final
3892 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3893 ol_cv_pthread_version=draft4
3895 ol_cv_pthread_version=unknown
3900 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3903 if test $ol_cv_pthread_version = final ; then
3904 cat >> confdefs.h <<\EOF
3905 #define HAVE_PTHREADS_FINAL 1
3908 elif test $ol_cv_pthread_version = draft4 ; then
3909 cat >> confdefs.h <<\EOF
3910 #define HAVE_PTHREADS_D4 1
3914 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3917 # consider threads found
3918 ol_with_threads=found
3921 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3922 echo "configure:3923: checking for LinuxThreads" >&5
3923 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3927 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3928 if test "$res" -gt 0 ; then
3929 ol_cv_linux_threads=yes
3931 ol_cv_linux_threads=no
3936 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3939 if test $ol_cv_linux_threads = yes ; then
3940 cat >> confdefs.h <<\EOF
3941 #define HAVE_LINUX_THREADS 1
3947 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3948 echo "configure:3949: checking for pthread_create" >&5
3949 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char pthread_create(); below. */
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char pthread_create();
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 eval "ac_cv_func_pthread_create=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_func_pthread_create=no"
3988 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3992 echo "$ac_t""no" 1>&6
3996 if test $ol_link_threads = no ; then
3997 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3998 echo "configure:3999: checking for pthread_create with -kthread" >&5
3999 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4004 LIBS="-kthread $LIBS"
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 #include <pthread.h>
4010 pthread_create(NULL,NULL,NULL,NULL);
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 ol_cv_kthread_flag=yes
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 ol_cv_kthread_flag=no
4027 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4029 if test $ol_cv_kthread_flag = yes ; then
4030 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4031 ol_link_threads=posix
4035 if test $ol_link_threads = no ; then
4036 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4037 echo "configure:4038: checking for pthread_create with -pthread" >&5
4038 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4043 LIBS="-pthread $LIBS"
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <pthread.h>
4049 pthread_create(NULL,NULL,NULL,NULL);
4052 if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4054 ol_cv_pthread_flag=yes
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 ol_cv_pthread_flag=no
4066 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4068 if test $ol_cv_pthread_flag = yes ; then
4069 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4070 ol_link_threads=posix
4074 if test $ol_link_threads = no ; then
4075 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4076 echo "configure:4077: checking for pthread_create with -pthreads" >&5
4077 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4082 LIBS="-pthreads $LIBS"
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 #include <pthread.h>
4088 pthread_create(NULL,NULL,NULL,NULL);
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 ol_cv_pthreads_flag=yes
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 ol_cv_pthreads_flag=no
4105 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4107 if test $ol_cv_pthreads_flag = yes ; then
4108 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4109 ol_link_threads=posix
4113 if test $ol_link_threads = no ; then
4114 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4115 echo "configure:4116: checking for pthread_create with -thread" >&5
4116 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4121 LIBS="-thread $LIBS"
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 char pthread_create();
4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4132 ol_cv_thread_flag=yes
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4137 ol_cv_thread_flag=no
4144 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4146 if test $ol_cv_thread_flag = yes ; then
4147 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4148 ol_link_threads=posix
4152 if test $ol_link_threads = no ; then
4153 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4154 echo "configure:4155: checking for pthread_create with -mt" >&5
4155 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4161 cat > conftest.$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4164 char pthread_create();
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4171 ol_cv_thread_flag=yes
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4176 ol_cv_thread_flag=no
4183 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4185 if test $ol_cv_thread_flag = yes ; then
4186 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4187 ol_link_threads=posix
4191 if test $ol_link_threads = no ; then
4193 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4194 echo "configure:4195: checking for pthread_mutex_unlock in -lpthread" >&5
4195 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 ac_save_LIBS="$LIBS"
4200 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4207 char pthread_mutex_unlock();
4210 pthread_mutex_unlock()
4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 eval "ac_cv_lib_$ac_lib_var=no"
4223 LIBS="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4229 ol_link_threads=posix
4230 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4231 if test $ol_with_yielding_select = auto ; then
4232 ol_with_yielding_select=yes
4236 echo "$ac_t""no" 1>&6
4243 if test $ol_link_threads = no ; then
4245 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4246 echo "configure:4247: checking for pthread_mutex_lock in -lpthread" >&5
4247 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 ac_save_LIBS="$LIBS"
4252 LIBS="-lpthread -lmach -lexc $LIBS"
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4259 char pthread_mutex_lock();
4262 pthread_mutex_lock()
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 eval "ac_cv_lib_$ac_lib_var=yes"
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 eval "ac_cv_lib_$ac_lib_var=no"
4275 LIBS="$ac_save_LIBS"
4278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4281 ol_link_threads=posix
4282 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4283 if test $ol_with_yielding_select = auto ; then
4284 ol_with_yielding_select=yes
4288 echo "$ac_t""no" 1>&6
4295 if test $ol_link_threads = no ; then
4297 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4298 echo "configure:4299: checking for pthread_mutex_trylock in -lpthread" >&5
4299 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 ac_save_LIBS="$LIBS"
4304 LIBS="-lpthread -lexc $LIBS"
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 /* Override any gcc2 internal prototype to avoid an error. */
4309 /* We use char because int might match the return type of a gcc2
4310 builtin and then its argument prototype would still apply. */
4311 char pthread_mutex_trylock();
4314 pthread_mutex_trylock()
4317 if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4319 eval "ac_cv_lib_$ac_lib_var=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 eval "ac_cv_lib_$ac_lib_var=no"
4327 LIBS="$ac_save_LIBS"
4330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4331 echo "$ac_t""yes" 1>&6
4333 ol_link_threads=posix
4334 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4335 if test $ol_with_yielding_select = auto ; then
4336 ol_with_yielding_select=yes
4340 echo "$ac_t""no" 1>&6
4347 if test $ol_link_threads = no ; then
4349 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4350 echo "configure:4351: checking for pthread_create in -lpthread" >&5
4351 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 ac_save_LIBS="$LIBS"
4356 LIBS="-lpthread $LIBS"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char pthread_create();
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_lib_$ac_lib_var=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_lib_$ac_lib_var=no"
4379 LIBS="$ac_save_LIBS"
4382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4385 ol_link_threads=posix
4386 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4388 echo "$ac_t""no" 1>&6
4395 if test $ol_link_threads = no ; then
4397 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4398 echo "configure:4399: checking for pthread_create in -lc_r" >&5
4399 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 ac_save_LIBS="$LIBS"
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4411 char pthread_create();
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 eval "ac_cv_lib_$ac_lib_var=no"
4427 LIBS="$ac_save_LIBS"
4430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4433 ol_link_threads=posix
4434 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4436 echo "$ac_t""no" 1>&6
4443 if test $ol_link_threads = no ; then
4445 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4446 echo "configure:4447: checking for pthread_create in -lpthreads" >&5
4447 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 ac_save_LIBS="$LIBS"
4452 LIBS="-lpthreads $LIBS"
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4459 char pthread_create();
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4467 eval "ac_cv_lib_$ac_lib_var=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 eval "ac_cv_lib_$ac_lib_var=no"
4475 LIBS="$ac_save_LIBS"
4478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4481 ol_link_threads=posix
4482 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4484 echo "$ac_t""no" 1>&6
4491 if test $ol_link_threads = no ; then
4493 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4494 echo "configure:4495: checking for pthread_join in -lpthreads" >&5
4495 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 ac_save_LIBS="$LIBS"
4500 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 /* Override any gcc2 internal prototype to avoid an error. */
4505 /* We use char because int might match the return type of a gcc2
4506 builtin and then its argument prototype would still apply. */
4507 char pthread_join();
4513 if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4515 eval "ac_cv_lib_$ac_lib_var=yes"
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4520 eval "ac_cv_lib_$ac_lib_var=no"
4523 LIBS="$ac_save_LIBS"
4526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4527 echo "$ac_t""yes" 1>&6
4529 ol_link_threads=posix
4530 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4533 echo "$ac_t""no" 1>&6
4540 if test $ol_link_threads = no ; then
4541 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4542 echo "configure:4543: checking for pthread_create with -threads" >&5
4543 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4548 LIBS="-threads $LIBS"
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4552 char pthread_create();
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4561 ol_cv_thread_flag=yes
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 ol_cv_thread_flag=no
4573 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4575 if test $ol_cv_thread_flag = yes ; then
4576 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4577 ol_link_threads=posix
4581 if test $ol_link_threads = no ; then
4583 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4584 echo "configure:4585: checking for pthread_mutex_unlock in -lpthreads" >&5
4585 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 ac_save_LIBS="$LIBS"
4590 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4594 /* Override any gcc2 internal prototype to avoid an error. */
4595 /* We use char because int might match the return type of a gcc2
4596 builtin and then its argument prototype would still apply. */
4597 char pthread_mutex_unlock();
4600 pthread_mutex_unlock()
4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4605 eval "ac_cv_lib_$ac_lib_var=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4610 eval "ac_cv_lib_$ac_lib_var=no"
4613 LIBS="$ac_save_LIBS"
4616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4619 ol_link_threads=posix
4620 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4621 if test $ol_with_yielding_select = auto ; then
4622 ol_with_yielding_select=yes
4626 echo "$ac_t""no" 1>&6
4633 if test $ol_link_threads = no ; then
4635 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4636 echo "configure:4637: checking for pthread_mutex_lock in -lpthreads" >&5
4637 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 ac_save_LIBS="$LIBS"
4642 LIBS="-lpthreads -lmach -lexc $LIBS"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649 char pthread_mutex_lock();
4652 pthread_mutex_lock()
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 eval "ac_cv_lib_$ac_lib_var=no"
4665 LIBS="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4671 ol_link_threads=posix
4672 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4673 if test $ol_with_yielding_select = auto ; then
4674 ol_with_yielding_select=yes
4678 echo "$ac_t""no" 1>&6
4685 if test $ol_link_threads = no ; then
4687 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4688 echo "configure:4689: checking for pthread_mutex_trylock in -lpthreads" >&5
4689 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 ac_save_LIBS="$LIBS"
4694 LIBS="-lpthreads -lexc $LIBS"
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4701 char pthread_mutex_trylock();
4704 pthread_mutex_trylock()
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 eval "ac_cv_lib_$ac_lib_var=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_lib_$ac_lib_var=no"
4717 LIBS="$ac_save_LIBS"
4720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4723 ol_link_threads=posix
4724 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4725 if test $ol_with_yielding_select = auto ; then
4726 ol_with_yielding_select=yes
4730 echo "$ac_t""no" 1>&6
4737 if test $ol_link_threads != no ; then
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_PTHREADS 1
4743 save_CPPFLAGS="$CPPFLAGS"
4745 LIBS="$LTHREAD_LIBS $LIBS"
4747 for ac_func in sched_yield pthread_yield
4749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_func" >&5
4751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* System header to define __stub macros and hopefully few prototypes,
4758 which can conflict with char $ac_func(); below. */
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4767 /* The GNU C library defines this for functions which it implements
4768 to always fail with ENOSYS. Some functions are actually named
4769 something starting with __ and the normal name is an alias. */
4770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 eval "ac_cv_func_$ac_func=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_func_$ac_func=no"
4790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4793 cat >> confdefs.h <<EOF
4794 #define $ac_tr_func 1
4798 echo "$ac_t""no" 1>&6
4803 if test $ac_cv_func_sched_yield = no -a \
4804 $ac_cv_func_pthread_yield = no ; then
4805 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4806 echo "configure:4807: checking for sched_yield in -lrt" >&5
4807 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 ac_save_LIBS="$LIBS"
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4827 eval "ac_cv_lib_$ac_lib_var=yes"
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 eval "ac_cv_lib_$ac_lib_var=no"
4835 LIBS="$ac_save_LIBS"
4838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4841 cat >> confdefs.h <<\EOF
4842 #define HAVE_SCHED_YIELD 1
4845 ac_cv_func_sched_yield=yes
4847 echo "$ac_t""no" 1>&6
4848 ac_cv_func_sched_yield=no
4852 if test $ac_cv_func_sched_yield = no -a \
4853 $ac_cv_func_pthread_yield = no ; then
4854 for ac_func in thr_yield
4856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_func" >&5
4858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 /* System header to define __stub macros and hopefully few prototypes,
4865 which can conflict with char $ac_func(); below. */
4867 /* Override any gcc2 internal prototype to avoid an error. */
4868 /* We use char because int might match the return type of a gcc2
4869 builtin and then its argument prototype would still apply. */
4874 /* The GNU C library defines this for functions which it implements
4875 to always fail with ENOSYS. Some functions are actually named
4876 something starting with __ and the normal name is an alias. */
4877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 eval "ac_cv_func_$ac_func=yes"
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 eval "ac_cv_func_$ac_func=no"
4897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4900 cat >> confdefs.h <<EOF
4901 #define $ac_tr_func 1
4905 echo "$ac_t""no" 1>&6
4910 if test $ac_cv_func_sched_yield = no -a \
4911 $ac_cv_func_pthread_yield = no -a \
4912 "$ac_cv_func_thr_yield" = no ; then
4913 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4916 for ac_func in pthread_kill
4918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4919 echo "configure:4920: checking for $ac_func" >&5
4920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 /* System header to define __stub macros and hopefully few prototypes,
4927 which can conflict with char $ac_func(); below. */
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4936 /* The GNU C library defines this for functions which it implements
4937 to always fail with ENOSYS. Some functions are actually named
4938 something starting with __ and the normal name is an alias. */
4939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 eval "ac_cv_func_$ac_func=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_func_$ac_func=no"
4959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4962 cat >> confdefs.h <<EOF
4963 #define $ac_tr_func 1
4967 echo "$ac_t""no" 1>&6
4972 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
4973 echo "configure:4974: checking for pthread_detach with <pthread.h>" >&5
4974 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 #include <pthread.h>
4983 pthread_detach(NULL);
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 ol_cv_func_pthread_detach=yes
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 ol_cv_func_pthread_detach=no
4999 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5001 if test $ol_cv_func_pthread_detach = no ; then
5002 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5005 cat >> confdefs.h <<\EOF
5006 #define HAVE_PTHREAD_DETACH 1
5011 pthread_setconcurrency \
5012 pthread_getconcurrency \
5013 thr_setconcurrency \
5014 thr_getconcurrency \
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 eval "ac_cv_func_$ac_func=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_func_$ac_func=no"
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h <<EOF
5062 #define $ac_tr_func 1
5066 echo "$ac_t""no" 1>&6
5071 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5072 echo "configure:5073: checking if pthread_create() works" >&5
5073 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5077 if test "$cross_compiling" = yes; then
5078 ol_cv_pthread_create_works=yes
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5084 #include <pthread.h>
5086 #define NULL (void*)0
5089 static void *task(p)
5092 return (void *) (p == NULL);
5095 int main(argc, argv)
5100 exit(pthread_create(&t, NULL, task, NULL));
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5106 ol_cv_pthread_create_works=yes
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 ol_cv_pthread_create_works=no
5118 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5120 if test $ol_cv_pthread_create_works = no ; then
5121 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5124 if test $ol_with_yielding_select = auto ; then
5125 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5126 echo "configure:5127: checking if select yields when using pthreads" >&5
5127 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5131 if test "$cross_compiling" = yes; then
5133 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5139 #include <sys/types.h>
5140 #include <sys/time.h>
5142 #include <pthread.h>
5144 #define NULL (void*) 0
5147 static int fildes[2];
5149 static void *task(p)
5161 FD_SET(fildes[0], &rfds);
5163 /* we're not interested in any fds */
5164 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5171 exit(0); /* if we exit here, the select blocked the whole process */
5174 int main(argc, argv)
5180 /* create a pipe to select */
5181 if(pipe(&fildes[0])) {
5186 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5187 (void) pthread_setconcurrency(2);
5189 #ifdef HAVE_THR_SETCONCURRENCY
5190 /* Set Solaris LWP concurrency to 2 */
5191 thr_setconcurrency(2);
5195 pthread_create(&t, NULL, task, NULL);
5197 #if HAVE_SCHED_YIELD
5198 sched_yield(); /* make sure task runs first */
5200 #ifdef HAVE_PTHREAD_YIELD
5201 pthread_yield(); /* make sure task runs first */
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5210 ol_cv_pthread_select_yields=no
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 ol_cv_pthread_select_yields=yes
5222 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5224 if test $ol_cv_pthread_select_yields = yes ; then
5225 ol_with_yielding_select=yes
5229 CPPFLAGS="$save_CPPFLAGS"
5232 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5236 if test $ol_with_threads = posix ; then
5237 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5241 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5242 -o $ol_with_threads = mach ; then
5244 for ac_hdr in mach/cthreads.h
5246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5248 echo "configure:5249: checking for $ac_hdr" >&5
5249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5258 { (eval echo configure:5259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5260 if test -z "$ac_err"; then
5262 eval "ac_cv_header_$ac_safe=yes"
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 eval "ac_cv_header_$ac_safe=no"
5272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5275 cat >> confdefs.h <<EOF
5276 #define $ac_tr_hdr 1
5280 echo "$ac_t""no" 1>&6
5284 if test $ac_cv_header_mach_cthreads_h = yes ; then
5285 ol_with_threads=found
5287 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5288 echo "configure:5289: checking for cthread_fork" >&5
5289 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295 /* System header to define __stub macros and hopefully few prototypes,
5296 which can conflict with char cthread_fork(); below. */
5298 /* Override any gcc2 internal prototype to avoid an error. */
5299 /* We use char because int might match the return type of a gcc2
5300 builtin and then its argument prototype would still apply. */
5301 char cthread_fork();
5305 /* The GNU C library defines this for functions which it implements
5306 to always fail with ENOSYS. Some functions are actually named
5307 something starting with __ and the normal name is an alias. */
5308 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5316 if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5318 eval "ac_cv_func_cthread_fork=yes"
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 eval "ac_cv_func_cthread_fork=no"
5328 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5329 echo "$ac_t""yes" 1>&6
5332 echo "$ac_t""no" 1>&6
5336 if test $ol_link_threads = no ; then
5337 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5338 echo "configure:5339: checking for cthread_fork with -all_load" >&5
5339 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5344 LIBS="-all_load $LIBS"
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 #include <mach/cthreads.h>
5351 cthread_fork((void *)0, (void *)0);
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 ol_cv_cthread_all_load=yes
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5362 ol_cv_cthread_all_load=no
5369 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5371 if test $ol_cv_cthread_all_load = yes ; then
5372 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5373 ol_link_threads=mach
5377 if test $ol_link_threads != no ; then
5378 : check for cthread specific functionality here
5379 cat >> confdefs.h <<\EOF
5380 #define HAVE_MACH_CTHREADS 1
5384 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5388 if test $ol_with_threads = mach ; then
5389 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5393 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5394 -o $ol_with_threads = lwp ; then
5396 for ac_hdr in thread.h synch.h
5398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5400 echo "configure:5401: checking for $ac_hdr" >&5
5401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5410 { (eval echo configure:5411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5412 if test -z "$ac_err"; then
5414 eval "ac_cv_header_$ac_safe=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 eval "ac_cv_header_$ac_safe=no"
5424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5427 cat >> confdefs.h <<EOF
5428 #define $ac_tr_hdr 1
5432 echo "$ac_t""no" 1>&6
5436 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5437 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5438 echo "configure:5439: checking for thr_create in -lthread" >&5
5439 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 ac_save_LIBS="$LIBS"
5444 LIBS="-lthread $LIBS"
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5448 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 eval "ac_cv_lib_$ac_lib_var=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_lib_$ac_lib_var=no"
5467 LIBS="$ac_save_LIBS"
5470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5471 echo "$ac_t""yes" 1>&6
5474 echo "$ac_t""no" 1>&6
5479 if test $have_thr = yes ; then
5480 cat >> confdefs.h <<\EOF
5484 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5487 if test $ol_with_yielding_select = auto ; then
5488 ol_with_yielding_select=yes
5492 thr_setconcurrency \
5493 thr_getconcurrency \
5496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_func" >&5
5498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 /* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char $ac_func(); below. */
5507 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5514 /* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 eval "ac_cv_func_$ac_func=yes"
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5532 eval "ac_cv_func_$ac_func=no"
5537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5540 cat >> confdefs.h <<EOF
5541 #define $ac_tr_func 1
5545 echo "$ac_t""no" 1>&6
5552 for ac_hdr in lwp/lwp.h
5554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_hdr" >&5
5557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5566 { (eval echo configure:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5568 if test -z "$ac_err"; then
5570 eval "ac_cv_header_$ac_safe=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_header_$ac_safe=no"
5580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5583 cat >> confdefs.h <<EOF
5584 #define $ac_tr_hdr 1
5588 echo "$ac_t""no" 1>&6
5592 if test $ac_cv_header_lwp_lwp_h = yes ; then
5593 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5594 echo "configure:5595: checking for lwp_create in -llwp" >&5
5595 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 ac_save_LIBS="$LIBS"
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 eval "ac_cv_lib_$ac_lib_var=yes"
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5620 eval "ac_cv_lib_$ac_lib_var=no"
5623 LIBS="$ac_save_LIBS"
5626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5630 echo "$ac_t""no" 1>&6
5635 if test $have_lwp = yes ; then
5636 cat >> confdefs.h <<\EOF
5640 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5643 if test $ol_with_yielding_select = auto ; then
5644 ol_with_yielding_select=no
5650 if test $ol_with_yielding_select = yes ; then
5651 cat >> confdefs.h <<\EOF
5652 #define HAVE_YIELDING_SELECT 1
5657 if test $ol_with_threads = manual ; then
5660 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5662 for ac_hdr in pthread.h sched.h
5664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_hdr" >&5
5667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5676 { (eval echo configure:5677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5678 if test -z "$ac_err"; then
5680 eval "ac_cv_header_$ac_safe=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_header_$ac_safe=no"
5690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5693 cat >> confdefs.h <<EOF
5694 #define $ac_tr_hdr 1
5698 echo "$ac_t""no" 1>&6
5702 for ac_func in sched_yield pthread_yield
5704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_func" >&5
5706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 /* System header to define __stub macros and hopefully few prototypes,
5713 which can conflict with char $ac_func(); below. */
5715 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5722 /* The GNU C library defines this for functions which it implements
5723 to always fail with ENOSYS. Some functions are actually named
5724 something starting with __ and the normal name is an alias. */
5725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5733 if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5735 eval "ac_cv_func_$ac_func=yes"
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5740 eval "ac_cv_func_$ac_func=no"
5745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5748 cat >> confdefs.h <<EOF
5749 #define $ac_tr_func 1
5753 echo "$ac_t""no" 1>&6
5758 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5759 echo "configure:5760: checking for LinuxThreads" >&5
5760 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5764 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5765 if test "$res" -gt 0 ; then
5766 ol_cv_linux_threads=yes
5768 ol_cv_linux_threads=no
5773 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5776 for ac_hdr in mach/cthreads.h
5778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_hdr" >&5
5781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5790 { (eval echo configure:5791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5792 if test -z "$ac_err"; then
5794 eval "ac_cv_header_$ac_safe=yes"
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5800 eval "ac_cv_header_$ac_safe=no"
5804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5807 cat >> confdefs.h <<EOF
5808 #define $ac_tr_hdr 1
5812 echo "$ac_t""no" 1>&6
5816 for ac_hdr in lwp/lwp.h
5818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_hdr" >&5
5821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5830 { (eval echo configure:5831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5832 if test -z "$ac_err"; then
5834 eval "ac_cv_header_$ac_safe=yes"
5837 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5
5840 eval "ac_cv_header_$ac_safe=no"
5844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5847 cat >> confdefs.h <<EOF
5848 #define $ac_tr_hdr 1
5852 echo "$ac_t""no" 1>&6
5856 for ac_hdr in thread.h synch.h
5858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5860 echo "configure:5861: checking for $ac_hdr" >&5
5861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5870 { (eval echo configure:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5872 if test -z "$ac_err"; then
5874 eval "ac_cv_header_$ac_safe=yes"
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 eval "ac_cv_header_$ac_safe=no"
5884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
5886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5887 cat >> confdefs.h <<EOF
5888 #define $ac_tr_hdr 1
5892 echo "$ac_t""no" 1>&6
5898 if test $ol_link_threads != no ; then
5899 cat >> confdefs.h <<\EOF
5903 cat >> confdefs.h <<\EOF
5904 #define _REENTRANT 1
5907 cat >> confdefs.h <<\EOF
5908 #define THREAD_SAFE 1
5911 cat >> confdefs.h <<\EOF
5912 #define _THREAD_SAFE 1
5915 cat >> confdefs.h <<\EOF
5916 #define THREADSAFE 1
5919 cat >> confdefs.h <<\EOF
5920 #define _THREADSAFE 1
5924 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5925 echo "configure:5926: checking for thread specific errno" >&5
5926 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 ol_cv_errno_thread_specific=yes
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 ol_cv_errno_thread_specific=no
5951 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5953 if test $ol_cv_errno_thread_specific != yes ; then
5954 LIBS="$LTHREAD_LIBS $LIBS"
5961 if test $ol_link_threads = no ; then
5962 if test $ol_with_threads = yes ; then
5963 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5966 if test $ol_with_threads = auto ; then
5967 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5971 cat >> confdefs.h <<\EOF
5972 #define NO_THREADS 1
5979 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5980 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5981 echo "configure:5982: checking for DB2 library" >&5
5982 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5986 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5987 echo "configure:5988: checking for db_open in -ldb" >&5
5988 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 ac_save_LIBS="$LIBS"
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6006 if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6008 eval "ac_cv_lib_$ac_lib_var=yes"
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 eval "ac_cv_lib_$ac_lib_var=no"
6016 LIBS="$ac_save_LIBS"
6019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6023 echo "$ac_t""no" 1>&6
6031 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_hdr" >&5
6038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6047 { (eval echo configure:6048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6049 if test -z "$ac_err"; then
6051 eval "ac_cv_header_$ac_safe=yes"
6054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 eval "ac_cv_header_$ac_safe=no"
6061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_hdr 1
6069 echo "$ac_t""no" 1>&6
6073 if test $ac_cv_header_db_h = yes ; then
6074 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6075 echo "configure:6076: checking if db.h is DB2" >&5
6076 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6085 /* this check could be improved */
6086 # ifdef DB_VERSION_MAJOR
6087 # if DB_VERSION_MAJOR == 2
6093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 egrep "__db_version_2" >/dev/null 2>&1; then
6096 ol_cv_header_db2=yes
6105 echo "$ac_t""$ol_cv_header_db2" 1>&6
6112 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6113 echo "configure:6114: checking for Berkeley DB2" >&5
6114 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6118 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6119 ol_cv_berkeley_db2=no
6121 ol_cv_berkeley_db2=yes
6126 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6127 if test $ol_cv_berkeley_db2 = yes ; then
6128 cat >> confdefs.h <<\EOF
6129 #define HAVE_BERKELEY_DB2 1
6135 if test $ol_cv_berkeley_db2 = yes ; then
6137 ol_with_ldbm_api=db2
6139 if test $ol_with_ldbm_type = hash ; then
6140 cat >> confdefs.h <<\EOF
6141 #define LDBM_USE_DBHASH 1
6145 cat >> confdefs.h <<\EOF
6146 #define LDBM_USE_DBBTREE 1
6151 if test $ol_cv_lib_db2 != yes ; then
6152 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6158 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6162 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6163 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6164 echo "configure:6165: checking for Berkeley DB library" >&5
6165 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6169 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6170 echo "configure:6171: checking for dbopen" >&5
6171 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 /* System header to define __stub macros and hopefully few prototypes,
6178 which can conflict with char dbopen(); below. */
6180 /* Override any gcc2 internal prototype to avoid an error. */
6181 /* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6187 /* The GNU C library defines this for functions which it implements
6188 to always fail with ENOSYS. Some functions are actually named
6189 something starting with __ and the normal name is an alias. */
6190 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6200 eval "ac_cv_func_dbopen=yes"
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6205 eval "ac_cv_func_dbopen=no"
6210 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6211 echo "$ac_t""yes" 1>&6
6214 echo "$ac_t""no" 1>&6
6216 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6217 echo "configure:6218: checking for dbopen in -ldb" >&5
6218 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6220 echo $ac_n "(cached) $ac_c" 1>&6
6222 ac_save_LIBS="$LIBS"
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 eval "ac_cv_lib_$ac_lib_var=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_lib_$ac_lib_var=no"
6246 LIBS="$ac_save_LIBS"
6249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6250 echo "$ac_t""yes" 1>&6
6253 echo "$ac_t""no" 1>&6
6264 echo "$ac_t""$ol_cv_lib_db" 1>&6
6267 for ac_hdr in db_185.h
6269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_hdr" >&5
6272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6281 { (eval echo configure:6282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6283 if test -z "$ac_err"; then
6285 eval "ac_cv_header_$ac_safe=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_header_$ac_safe=no"
6295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6298 cat >> confdefs.h <<EOF
6299 #define $ac_tr_hdr 1
6303 echo "$ac_t""no" 1>&6
6307 if test "$ol_cv_header_db2" = yes ; then
6309 ol_cv_header_db=$ac_cv_header_db_185_h
6311 ol_cv_header_db=$ac_cv_header_db_h
6316 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6317 echo "configure:6318: checking for Berkeley DB" >&5
6318 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6322 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6323 ol_cv_berkeley_db=no
6325 ol_cv_berkeley_db=yes
6330 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6331 if test $ol_cv_berkeley_db = yes ; then
6332 cat >> confdefs.h <<\EOF
6333 #define HAVE_BERKELEY_DB 1
6339 if test $ol_cv_berkeley_db = yes ; then
6343 if test $ol_with_ldbm_type = hash ; then
6344 cat >> confdefs.h <<\EOF
6345 #define LDBM_USE_DBHASH 1
6349 cat >> confdefs.h <<\EOF
6350 #define LDBM_USE_DBBTREE 1
6355 if test $ol_cv_lib_db != yes ; then
6356 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6361 if test $ol_with_ldbm_api = manual ; then
6364 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6366 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6370 echo "configure:6371: checking for $ac_hdr" >&5
6371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6372 echo $ac_n "(cached) $ac_c" 1>&6
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6380 { (eval echo configure:6381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6382 if test -z "$ac_err"; then
6384 eval "ac_cv_header_$ac_safe=yes"
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 eval "ac_cv_header_$ac_safe=no"
6394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6395 echo "$ac_t""yes" 1>&6
6396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6397 cat >> confdefs.h <<EOF
6398 #define $ac_tr_hdr 1
6402 echo "$ac_t""no" 1>&6
6408 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6409 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6410 ol_with_ldbm_api=none
6413 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6414 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6415 echo "configure:6416: checking for GDBM library" >&5
6416 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6420 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6421 echo "configure:6422: checking for gdbm_open" >&5
6422 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6428 /* System header to define __stub macros and hopefully few prototypes,
6429 which can conflict with char gdbm_open(); below. */
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6438 /* The GNU C library defines this for functions which it implements
6439 to always fail with ENOSYS. Some functions are actually named
6440 something starting with __ and the normal name is an alias. */
6441 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 eval "ac_cv_func_gdbm_open=yes"
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 eval "ac_cv_func_gdbm_open=no"
6461 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6465 echo "$ac_t""no" 1>&6
6467 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6468 echo "configure:6469: checking for gdbm_open in -lgdbm" >&5
6469 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 ac_save_LIBS="$LIBS"
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* Override any gcc2 internal prototype to avoid an error. */
6479 /* We use char because int might match the return type of a gcc2
6480 builtin and then its argument prototype would still apply. */
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 eval "ac_cv_lib_$ac_lib_var=yes"
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 eval "ac_cv_lib_$ac_lib_var=no"
6497 LIBS="$ac_save_LIBS"
6500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6502 ol_cv_lib_gdbm=-lgdbm
6504 echo "$ac_t""no" 1>&6
6515 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6518 for ac_hdr in gdbm.h
6520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_hdr" >&5
6523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then
6536 eval "ac_cv_header_$ac_safe=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_header_$ac_safe=no"
6546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6547 echo "$ac_t""yes" 1>&6
6548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6549 cat >> confdefs.h <<EOF
6550 #define $ac_tr_hdr 1
6554 echo "$ac_t""no" 1>&6
6558 echo $ac_n "checking for db""... $ac_c" 1>&6
6559 echo "configure:6560: checking for db" >&5
6560 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6561 echo $ac_n "(cached) $ac_c" 1>&6
6564 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6572 echo "$ac_t""$ol_cv_gdbm" 1>&6
6573 if test $ol_cv_gdbm = yes ; then
6574 cat >> confdefs.h <<\EOF
6581 if test $ol_cv_gdbm = yes ; then
6583 ol_with_ldbm_api=gdbm
6585 if test $ol_cv_lib_gdbm != yes ; then
6586 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6591 if test $ol_with_ldbm_api = auto ; then
6592 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6593 elif test $ol_with_ldbm_api = ndbm ; then
6594 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6595 echo "configure:6596: checking for NDBM library" >&5
6596 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6600 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6601 echo "configure:6602: checking for dbm_open" >&5
6602 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* System header to define __stub macros and hopefully few prototypes,
6609 which can conflict with char dbm_open(); below. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6618 /* The GNU C library defines this for functions which it implements
6619 to always fail with ENOSYS. Some functions are actually named
6620 something starting with __ and the normal name is an alias. */
6621 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6631 eval "ac_cv_func_dbm_open=yes"
6633 echo "configure: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6636 eval "ac_cv_func_dbm_open=no"
6641 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6645 echo "$ac_t""no" 1>&6
6647 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6648 echo "configure:6649: checking for dbm_open in -lndbm" >&5
6649 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 ac_save_LIBS="$LIBS"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_lib_$ac_lib_var=no"
6677 LIBS="$ac_save_LIBS"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 ol_cv_lib_ndbm=-lndbm
6684 echo "$ac_t""no" 1>&6
6686 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6687 echo "configure:6688: checking for dbm_open in -ldbm" >&5
6688 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 ac_save_LIBS="$LIBS"
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6706 if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6708 eval "ac_cv_lib_$ac_lib_var=yes"
6710 echo "configure: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6713 eval "ac_cv_lib_$ac_lib_var=no"
6716 LIBS="$ac_save_LIBS"
6719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 ol_cv_lib_ndbm=-ldbm
6723 echo "$ac_t""no" 1>&6
6736 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6739 for ac_hdr in ndbm.h
6741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6743 echo "configure:6744: checking for $ac_hdr" >&5
6744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6753 { (eval echo configure:6754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6755 if test -z "$ac_err"; then
6757 eval "ac_cv_header_$ac_safe=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_header_$ac_safe=no"
6767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6770 cat >> confdefs.h <<EOF
6771 #define $ac_tr_hdr 1
6775 echo "$ac_t""no" 1>&6
6779 echo $ac_n "checking for db""... $ac_c" 1>&6
6780 echo "configure:6781: checking for db" >&5
6781 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6785 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6793 echo "$ac_t""$ol_cv_ndbm" 1>&6
6794 if test $ol_cv_ndbm = yes ; then
6795 cat >> confdefs.h <<\EOF
6802 if test $ol_cv_ndbm = yes ; then
6804 ol_with_ldbm_api=ndbm
6806 if test $ol_cv_lib_ndbm != yes ; then
6807 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6812 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6813 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6814 if test $ol_enable_ldbm = yes ; then
6815 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6818 echo "configure: warning: disabling LDBM" 1>&2
6822 if test $ol_enable_wrappers != no ; then
6823 for ac_hdr in tcpd.h
6825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_hdr" >&5
6828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6837 { (eval echo configure:6838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6839 if test -z "$ac_err"; then
6841 eval "ac_cv_header_$ac_safe=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 eval "ac_cv_header_$ac_safe=no"
6851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6854 cat >> confdefs.h <<EOF
6855 #define $ac_tr_hdr 1
6859 echo "$ac_t""no" 1>&6
6864 if test $ac_cv_header_tcpd_h != yes ; then
6867 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6868 echo "configure:6869: checking for main in -lwrap" >&5
6869 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 ac_save_LIBS="$LIBS"
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 eval "ac_cv_lib_$ac_lib_var=yes"
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 eval "ac_cv_lib_$ac_lib_var=no"
6893 LIBS="$ac_save_LIBS"
6896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6897 echo "$ac_t""yes" 1>&6
6900 echo "$ac_t""no" 1>&6
6906 if test $have_wrappers = yes ; then
6907 cat >> confdefs.h <<\EOF
6911 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6913 echo "configure: warning: could not find -lwrap" 1>&2
6914 if test $ol_enable_wrappers = yes ; then
6915 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6918 echo "configure: warning: disabling wrappers support" 1>&2
6919 ol_enable_wrappers=no
6923 if test $ol_enable_syslog != no ; then
6924 echo $ac_n "checking for openlog""... $ac_c" 1>&6
6925 echo "configure:6926: checking for openlog" >&5
6926 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6932 /* System header to define __stub macros and hopefully few prototypes,
6933 which can conflict with char openlog(); below. */
6935 /* Override any gcc2 internal prototype to avoid an error. */
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6942 /* The GNU C library defines this for functions which it implements
6943 to always fail with ENOSYS. Some functions are actually named
6944 something starting with __ and the normal name is an alias. */
6945 #if defined (__stub_openlog) || defined (__stub___openlog)
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6955 eval "ac_cv_func_openlog=yes"
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6960 eval "ac_cv_func_openlog=no"
6965 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6969 echo "$ac_t""no" 1>&6
6972 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
6973 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
6975 ol_enable_syslog=$ac_cv_func_openlog
6978 if test $ol_enable_dmalloc != no ; then
6979 for ac_hdr in dmalloc.h
6981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6983 echo "configure:6984: checking for $ac_hdr" >&5
6984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6985 echo $ac_n "(cached) $ac_c" 1>&6
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6993 { (eval echo configure:6994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6995 if test -z "$ac_err"; then
6997 eval "ac_cv_header_$ac_safe=yes"
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 eval "ac_cv_header_$ac_safe=no"
7007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7010 cat >> confdefs.h <<EOF
7011 #define $ac_tr_hdr 1
7015 echo "$ac_t""no" 1>&6
7019 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7020 echo "configure:7021: checking for dmalloc_shutdown in -ldmalloc" >&5
7021 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 ac_save_LIBS="$LIBS"
7026 LIBS="-ldmalloc $LIBS"
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char dmalloc_shutdown();
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 eval "ac_cv_lib_$ac_lib_var=no"
7049 LIBS="$ac_save_LIBS"
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7056 cat >> confdefs.h <<EOF
7057 #define $ac_tr_lib 1
7060 LIBS="-ldmalloc $LIBS"
7063 echo "$ac_t""no" 1>&6
7068 if test $ol_enable_tcl != no ; then
7071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7073 echo "configure:7074: checking for $ac_hdr" >&5
7074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7083 { (eval echo configure:7084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7085 if test -z "$ac_err"; then
7087 eval "ac_cv_header_$ac_safe=yes"
7090 echo "configure: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7093 eval "ac_cv_header_$ac_safe=no"
7097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7100 cat >> confdefs.h <<EOF
7101 #define $ac_tr_hdr 1
7105 echo "$ac_t""no" 1>&6
7110 if test $ac_cv_header_tcl_h != yes ; then
7113 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7114 echo "configure:7115: checking for main in -ltcl" >&5
7115 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 ac_save_LIBS="$LIBS"
7121 cat > conftest.$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131 eval "ac_cv_lib_$ac_lib_var=yes"
7133 echo "configure: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7136 eval "ac_cv_lib_$ac_lib_var=no"
7139 LIBS="$ac_save_LIBS"
7142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7143 echo "$ac_t""yes" 1>&6
7144 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7146 echo "$ac_t""no" 1>&6
7151 if test $have_tcl != yes; then
7152 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7153 echo "configure:7154: checking for main in -ltcl7.6" >&5
7154 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 ac_save_LIBS="$LIBS"
7159 LIBS="-ltcl7.6 $LIBS"
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7168 if { (eval echo configure:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7170 eval "ac_cv_lib_$ac_lib_var=yes"
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7175 eval "ac_cv_lib_$ac_lib_var=no"
7178 LIBS="$ac_save_LIBS"
7181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7185 echo "$ac_t""no" 1>&6
7191 if test $have_tcl != yes; then
7192 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7193 echo "configure:7194: checking for main in -ltcl8.0" >&5
7194 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7198 ac_save_LIBS="$LIBS"
7199 LIBS="-ltcl8.0 $LIBS"
7200 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7210 eval "ac_cv_lib_$ac_lib_var=yes"
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7215 eval "ac_cv_lib_$ac_lib_var=no"
7218 LIBS="$ac_save_LIBS"
7221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7222 echo "$ac_t""yes" 1>&6
7223 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7225 echo "$ac_t""no" 1>&6
7232 if test $have_tcl != yes ; then
7233 echo "configure: warning: could not find -ltcl" 1>&2
7234 if test $ol_enable_tcl = yes ; then
7235 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7242 # ud needs termcap (should insert check here)
7244 for ac_hdr in termcap.h ncurses.h
7246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7248 echo "configure:7249: checking for $ac_hdr" >&5
7249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7258 { (eval echo configure:7259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7260 if test -z "$ac_err"; then
7262 eval "ac_cv_header_$ac_safe=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_header_$ac_safe=no"
7272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_hdr 1
7280 echo "$ac_t""no" 1>&6
7285 if test $ol_link_termcap = no ; then
7286 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7287 echo "configure:7288: checking for tputs in -ltermcap" >&5
7288 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7292 ac_save_LIBS="$LIBS"
7293 LIBS="-ltermcap $LIBS"
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7306 if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7308 eval "ac_cv_lib_$ac_lib_var=yes"
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7313 eval "ac_cv_lib_$ac_lib_var=no"
7316 LIBS="$ac_save_LIBS"
7319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7323 echo "$ac_t""no" 1>&6
7327 if test $have_termcap = yes ; then
7328 cat >> confdefs.h <<\EOF
7329 #define HAVE_TERMCAP 1
7333 TERMCAP_LIBS=-ltermcap
7337 if test $ol_link_termcap = no ; then
7338 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7339 echo "configure:7340: checking for initscr in -lncurses" >&5
7340 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 ac_save_LIBS="$LIBS"
7345 LIBS="-lncurses $LIBS"
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7358 if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7360 eval "ac_cv_lib_$ac_lib_var=yes"
7362 echo "configure: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7365 eval "ac_cv_lib_$ac_lib_var=no"
7368 LIBS="$ac_save_LIBS"
7371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7372 echo "$ac_t""yes" 1>&6
7375 echo "$ac_t""no" 1>&6
7379 if test $have_ncurses = yes ; then
7380 cat >> confdefs.h <<\EOF
7381 #define HAVE_NCURSES 1
7385 TERMCAP_LIBS=-lncurses
7389 if test $ol_link_termcap = no ; then
7390 cat >> confdefs.h <<\EOF
7391 #define NO_TERMCAP 1
7397 # FreeBSD (and others) have crypt(3) in -lcrypt
7398 if test $ol_enable_crypt != no ; then
7399 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7400 echo "configure:7401: checking for crypt" >&5
7401 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char crypt(); below. */
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_crypt) || defined (__stub___crypt)
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7430 eval "ac_cv_func_crypt=yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7435 eval "ac_cv_func_crypt=no"
7440 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7444 echo "$ac_t""no" 1>&6
7446 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7447 echo "configure:7448: checking for crypt in -lcrypt" >&5
7448 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 ac_save_LIBS="$LIBS"
7453 LIBS="-lcrypt $LIBS"
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7466 if { (eval echo configure:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7468 eval "ac_cv_lib_$ac_lib_var=yes"
7470 echo "configure: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7473 eval "ac_cv_lib_$ac_lib_var=no"
7476 LIBS="$ac_save_LIBS"
7479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7480 echo "$ac_t""yes" 1>&6
7481 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7484 echo "$ac_t""no" 1>&6
7491 if test $have_crypt = yes ; then
7492 cat >> confdefs.h <<\EOF
7493 #define HAVE_CRYPT 1
7497 echo "configure: warning: could not find crypt" 1>&2
7498 if test $ol_enable_crypt = yes ; then
7499 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7502 echo "configure: warning: disabling crypt support" 1>&2
7507 # FreeBSD (and others) have setproctitle(3) in -lutil
7508 if test $ol_enable_proctitle != no ; then
7509 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7510 echo "configure:7511: checking for setproctitle" >&5
7511 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char setproctitle(); below. */
7520 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char setproctitle();
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 eval "ac_cv_func_setproctitle=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7545 eval "ac_cv_func_setproctitle=no"
7550 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 have_setproctitle=yes
7554 echo "$ac_t""no" 1>&6
7556 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7557 echo "configure:7558: checking for setproctitle in -lutil" >&5
7558 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7562 ac_save_LIBS="$LIBS"
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char setproctitle();
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 eval "ac_cv_lib_$ac_lib_var=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_lib_$ac_lib_var=no"
7586 LIBS="$ac_save_LIBS"
7589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 have_setproctitle=yes
7592 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7594 echo "$ac_t""no" 1>&6
7595 have_setproctitle=no
7596 LIBOBJS="$LIBOBJS setproctitle.o"
7602 if test $have_setproctitle = yes ; then
7603 cat >> confdefs.h <<\EOF
7604 #define HAVE_SETPROCTITLE 1
7610 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7611 echo "configure:7612: checking for ANSI C header files" >&5
7612 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7624 { (eval echo configure:7625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7626 if test -z "$ac_err"; then
7628 ac_cv_header_stdc=yes
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 ac_cv_header_stdc=no
7638 if test $ac_cv_header_stdc = yes; then
7639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646 egrep "memchr" >/dev/null 2>&1; then
7650 ac_cv_header_stdc=no
7656 if test $ac_cv_header_stdc = yes; then
7657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7658 cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7664 egrep "free" >/dev/null 2>&1; then
7668 ac_cv_header_stdc=no
7674 if test $ac_cv_header_stdc = yes; then
7675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7676 if test "$cross_compiling" = yes; then
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7683 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7684 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7686 int main () { int i; for (i = 0; i < 256; i++)
7687 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7691 if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 ac_cv_header_stdc=no
7706 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7707 if test $ac_cv_header_stdc = yes; then
7708 cat >> confdefs.h <<\EOF
7709 #define STDC_HEADERS 1
7715 if test $ac_cv_header_stdc != yes; then
7716 echo "configure: warning: could not Standard C compliant headers" 1>&2
7720 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7723 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7724 echo "configure:7725: checking for $ac_hdr that defines DIR" >&5
7725 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731 #include <sys/types.h>
7737 if { (eval echo configure:7738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7739 eval "ac_cv_header_dirent_$ac_safe=yes"
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7744 eval "ac_cv_header_dirent_$ac_safe=no"
7748 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7749 echo "$ac_t""yes" 1>&6
7750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7751 cat >> confdefs.h <<EOF
7752 #define $ac_tr_hdr 1
7754 ac_header_dirent=$ac_hdr; break
7756 echo "$ac_t""no" 1>&6
7759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7760 if test $ac_header_dirent = dirent.h; then
7761 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7762 echo "configure:7763: checking for opendir in -ldir" >&5
7763 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7767 ac_save_LIBS="$LIBS"
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7781 if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7783 eval "ac_cv_lib_$ac_lib_var=yes"
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 eval "ac_cv_lib_$ac_lib_var=no"
7791 LIBS="$ac_save_LIBS"
7794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7798 echo "$ac_t""no" 1>&6
7802 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7803 echo "configure:7804: checking for opendir in -lx" >&5
7804 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
7805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7808 ac_save_LIBS="$LIBS"
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7822 if { (eval echo configure:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7824 eval "ac_cv_lib_$ac_lib_var=yes"
7826 echo "configure: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7829 eval "ac_cv_lib_$ac_lib_var=no"
7832 LIBS="$ac_save_LIBS"
7835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7836 echo "$ac_t""yes" 1>&6
7839 echo "$ac_t""no" 1>&6
7844 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7845 echo "configure:7846: checking for sys/wait.h that is POSIX.1 compatible" >&5
7846 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7847 echo $ac_n "(cached) $ac_c" 1>&6
7849 cat > conftest.$ac_ext <<EOF
7850 #line 7851 "configure"
7851 #include "confdefs.h"
7852 #include <sys/types.h>
7853 #include <sys/wait.h>
7855 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7858 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7863 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7866 if { (eval echo configure:7867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7868 ac_cv_header_sys_wait_h=yes
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 ac_cv_header_sys_wait_h=no
7878 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7879 if test $ac_cv_header_sys_wait_h = yes; then
7880 cat >> confdefs.h <<\EOF
7881 #define HAVE_SYS_WAIT_H 1
7886 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7887 echo "configure:7888: checking POSIX termios" >&5
7888 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <sys/types.h>
7896 #include <termios.h>
7898 /* SunOS 4.0.3 has termios.h but not the library calls. */
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 am_cv_sys_posix_termios=yes
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7909 am_cv_sys_posix_termios=no
7914 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7917 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7918 echo "configure:7919: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7919 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7922 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7924 gwinsz_in_termios_h=no
7925 if test $am_cv_sys_posix_termios = yes; then
7926 cat > conftest.$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7929 #include <sys/types.h>
7930 # include <termios.h>
7936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7937 egrep "yes" >/dev/null 2>&1; then
7939 gwinsz_in_termios_h=yes
7945 if test $gwinsz_in_termios_h = no; then
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7949 #include <sys/types.h>
7950 # include <sys/ioctl.h>
7956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957 egrep "yes" >/dev/null 2>&1; then
7959 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7967 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7968 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7969 cat >> confdefs.h <<\EOF
7970 #define GWINSZ_IN_SYS_IOCTL 1
7975 if test $am_cv_sys_posix_termios = yes ; then
7976 cat >> confdefs.h <<\EOF
7977 #define HAVE_POSIX_TERMIOS 1
8019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8021 echo "configure:8021: checking for $ac_hdr" >&5
8022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8026 "configure"
8027 #include "confdefs.h"
8030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8031 { (eval echo configure:8031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8033 if test -z "$ac_err"; then
8035 eval "ac_cv_header_$ac_safe=yes"
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 eval "ac_cv_header_$ac_safe=no"
8045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8046 echo "$ac_t""yes" 1>&6
8047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8048 cat >> confdefs.h <<EOF
8049 #define $ac_tr_hdr 1
8053 echo "$ac_t""no" 1>&6
8058 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8059 echo "configure:8059: checking for uid_t in sys/types.h" >&5
8060 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8064 "configure"
8065 #include "confdefs.h"
8066 #include <sys/types.h>
8068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8069 egrep "uid_t" >/dev/null 2>&1; then
8071 ac_cv_type_uid_t=yes
8080 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8081 if test $ac_cv_type_uid_t = no; then
8082 cat >> confdefs.h <<\EOF
8086 cat >> confdefs.h <<\EOF
8092 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8093 echo "configure:8093: checking type of array argument to getgroups" >&5
8094 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 if test "$cross_compiling" = yes; then
8098 ac_cv_type_getgroups=cross
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8101 "configure"
8102 #include "confdefs.h"
8104 /* Thanks to Mike Rendell for this test. */
8105 #include <sys/types.h>
8108 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8113 union { gid_t gval; long lval; } val;
8116 for (i = 0; i < NGID; i++)
8117 gidset[i] = val.gval;
8118 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8120 /* Exit non-zero if getgroups seems to require an array of ints. This
8121 happens when gid_t is short but getgroups modifies an array of ints. */
8122 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8126 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8128 ac_cv_type_getgroups=gid_t
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 ac_cv_type_getgroups=int
8138 if test $ac_cv_type_getgroups = cross; then
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8140 "configure"
8141 #include "confdefs.h"
8144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8145 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8147 ac_cv_type_getgroups=gid_t
8150 ac_cv_type_getgroups=int
8157 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8158 cat >> confdefs.h <<EOF
8159 #define GETGROUPS_T $ac_cv_type_getgroups
8162 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8163 echo "configure:8163: checking for mode_t" >&5
8164 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8168 "configure"
8169 #include "confdefs.h"
8170 #include <sys/types.h>
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8179 ac_cv_type_mode_t=yes
8182 ac_cv_type_mode_t=no
8187 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8188 if test $ac_cv_type_mode_t = no; then
8189 cat >> confdefs.h <<\EOF
8195 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8196 echo "configure:8196: checking for off_t" >&5
8197 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8203 #include <sys/types.h>
8209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8210 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8212 ac_cv_type_off_t=yes
8220 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8221 if test $ac_cv_type_off_t = no; then
8222 cat >> confdefs.h <<\EOF
8228 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8229 echo "configure:8229: checking for pid_t" >&5
8230 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8234 "configure"
8235 #include "confdefs.h"
8236 #include <sys/types.h>
8242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8245 ac_cv_type_pid_t=yes
8253 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8254 if test $ac_cv_type_pid_t = no; then
8255 cat >> confdefs.h <<\EOF
8261 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8262 echo "configure:8262: checking for ptrdiff_t" >&5
8263 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 cat > conftest.$ac_ext <<EOF
8267 #line 8267 "configure"
8268 #include "confdefs.h"
8274 if { (eval echo configure:8274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8276 am_cv_type_ptrdiff_t=yes
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8281 am_cv_type_ptrdiff_t=no
8286 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8287 if test $am_cv_type_ptrdiff_t = yes; then
8288 cat >> confdefs.h <<\EOF
8289 #define HAVE_PTRDIFF_T 1
8294 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8295 echo "configure:8295: checking return type of signal handlers" >&5
8296 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8300 "configure"
8301 #include "confdefs.h"
8302 #include <sys/types.h>
8308 extern "C" void (*signal (int, void (*)(int)))(int);
8310 void (*signal ()) ();
8317 if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8319 ac_cv_type_signal=void
8321 echo "configure: failed program was:" >&5
8322 cat conftest.$ac_ext >&5
8324 ac_cv_type_signal=int
8329 echo "$ac_t""$ac_cv_type_signal" 1>&6
8330 cat >> confdefs.h <<EOF
8331 #define RETSIGTYPE $ac_cv_type_signal
8335 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8336 echo "configure:8336: checking for sig_atomic_t" >&5
8337 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8341 "configure"
8342 #include "confdefs.h"
8345 sig_atomic_t atomic;
8348 if { (eval echo configure:8348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8350 ol_cv_type_sig_atomic_t=yes
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8355 ol_cv_type_sig_atomic_t=no
8360 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8361 if test $ol_cv_type_sig_atomic_t = no; then
8362 cat >> confdefs.h <<\EOF
8363 #define sig_atomic_t int
8368 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8369 echo "configure:8369: checking for size_t" >&5
8370 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8374 "configure"
8375 #include "confdefs.h"
8376 #include <sys/types.h>
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8385 ac_cv_type_size_t=yes
8388 ac_cv_type_size_t=no
8393 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8394 if test $ac_cv_type_size_t = no; then
8395 cat >> confdefs.h <<\EOF
8396 #define size_t unsigned
8401 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8402 echo "configure:8402: checking for st_blksize in struct stat" >&5
8403 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8404 echo $ac_n "(cached) $ac_c" 1>&6
8406 cat > conftest.$ac_ext <<EOF
8407 #line 8407 "configure"
8408 #include "confdefs.h"
8409 #include <sys/types.h>
8410 #include <sys/stat.h>
8412 struct stat s; s.st_blksize;
8415 if { (eval echo configure:8415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8417 ac_cv_struct_st_blksize=yes
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8422 ac_cv_struct_st_blksize=no
8427 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8428 if test $ac_cv_struct_st_blksize = yes; then
8429 cat >> confdefs.h <<\EOF
8430 #define HAVE_ST_BLKSIZE 1
8435 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8436 echo "configure:8436: checking whether time.h and sys/time.h may both be included" >&5
8437 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8441 "configure"
8442 #include "confdefs.h"
8443 #include <sys/types.h>
8444 #include <sys/time.h>
8450 if { (eval echo configure:8450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8452 ac_cv_header_time=yes
8454 echo "configure: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8457 ac_cv_header_time=no
8462 echo "$ac_t""$ac_cv_header_time" 1>&6
8463 if test $ac_cv_header_time = yes; then
8464 cat >> confdefs.h <<\EOF
8465 #define TIME_WITH_SYS_TIME 1
8470 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8471 echo "configure:8471: checking whether struct tm is in sys/time.h or time.h" >&5
8472 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8476 "configure"
8477 #include "confdefs.h"
8478 #include <sys/types.h>
8481 struct tm *tp; tp->tm_sec;
8484 if { (eval echo configure:8484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8486 ac_cv_struct_tm=time.h
8488 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8491 ac_cv_struct_tm=sys/time.h
8496 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8497 if test $ac_cv_struct_tm = sys/time.h; then
8498 cat >> confdefs.h <<\EOF
8499 #define TM_IN_SYS_TIME 1
8506 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8507 echo "configure:8507: checking if toupper() requires islower()" >&5
8508 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8512 if test "$cross_compiling" = yes; then
8513 ol_cv_c_upper_lower=safe
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8516 "configure"
8517 #include "confdefs.h"
8522 if ('C' == toupper('C'))
8528 if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8530 ol_cv_c_upper_lower=no
8532 echo "configure: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8535 ol_cv_c_upper_lower=yes
8542 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8543 if test $ol_cv_c_upper_lower != no ; then
8544 cat >> confdefs.h <<\EOF
8545 #define C_UPPER_LOWER 1
8550 echo $ac_n "checking for working const""... $ac_c" 1>&6
8551 echo "configure:8551: checking for working const" >&5
8552 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8556 "configure"
8557 #include "confdefs.h"
8561 /* Ultrix mips cc rejects this. */
8562 typedef int charset[2]; const charset x;
8563 /* SunOS 4.1.1 cc rejects this. */
8564 char const *const *ccp;
8566 /* NEC SVR4.0.2 mips cc rejects this. */
8567 struct point {int x, y;};
8568 static struct point const zero = {0,0};
8569 /* AIX XL C 1.02.0.0 rejects this.
8570 It does not let you subtract one const X* pointer from another in an arm
8571 of an if-expression whose if-part is not a constant expression */
8572 const char *g = "string";
8573 ccp = &g + (g ? g-g : 0);
8574 /* HPUX 7.0 cc rejects these. */
8577 ccp = (char const *const *) p;
8578 { /* SCO 3.2v4 cc rejects this. */
8580 char const *s = 0 ? (char *) 0 : (char const *) 0;
8584 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8586 const int *foo = &x[0];
8589 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8590 typedef const int *iptr;
8594 { /* AIX XL C 1.02.0.0 rejects this saying
8595 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8596 struct s { int j; const int *ap[3]; };
8597 struct s *b; b->j = 5;
8599 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8605 if { (eval echo configure:8605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8617 echo "$ac_t""$ac_cv_c_const" 1>&6
8618 if test $ac_cv_c_const = no; then
8619 cat >> confdefs.h <<\EOF
8625 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8626 echo "configure:8626: checking if compiler understands volatile" >&5
8627 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8631 "configure"
8632 #include "confdefs.h"
8635 volatile int a; int * volatile b = x ? &y : &z;
8636 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8640 if { (eval echo configure:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8642 ol_cv_c_volatile=yes
8644 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8652 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8653 if test $ol_cv_c_volatile = yes; then
8656 cat >> confdefs.h <<\EOF
8663 if test $cross_compiling = yes ; then
8664 cat >> confdefs.h <<\EOF
8665 #define CROSS_COMPILING 1
8669 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8670 echo "configure:8670: checking whether byte ordering is bigendian" >&5
8671 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8674 ac_cv_c_bigendian=unknown
8675 # See if sys/param.h defines the BYTE_ORDER macro.
8676 cat > conftest.$ac_ext <<EOF
8677 #line 8677 "configure"
8678 #include "confdefs.h"
8679 #include <sys/types.h>
8680 #include <sys/param.h>
8683 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8688 if { (eval echo configure:8688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8690 # It does; now see whether it defined to BIG_ENDIAN or not.
8691 cat > conftest.$ac_ext <<EOF
8692 #line 8692 "configure"
8693 #include "confdefs.h"
8694 #include <sys/types.h>
8695 #include <sys/param.h>
8698 #if BYTE_ORDER != BIG_ENDIAN
8703 if { (eval echo configure:8703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8705 ac_cv_c_bigendian=yes
8707 echo "configure: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8710 ac_cv_c_bigendian=no
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8718 if test $ac_cv_c_bigendian = unknown; then
8719 if test "$cross_compiling" = yes; then
8720 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8723 "configure"
8724 #include "confdefs.h"
8726 /* Are we little or big endian? From Harbison&Steele. */
8730 char c[sizeof (long)];
8733 exit (u.c[sizeof (long) - 1] == 1);
8736 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8738 ac_cv_c_bigendian=no
8740 echo "configure: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8743 ac_cv_c_bigendian=yes
8751 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8752 if test $ac_cv_c_bigendian = yes; then
8753 cat >> confdefs.h <<\EOF
8754 #define WORDS_BIGENDIAN 1
8759 echo $ac_n "checking size of short""... $ac_c" 1>&6
8760 echo "configure:8760: checking size of short" >&5
8761 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 if test "$cross_compiling" = yes; then
8765 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8768 "configure"
8769 #include "confdefs.h"
8773 FILE *f=fopen("conftestval", "w");
8775 fprintf(f, "%d\n", sizeof(short));
8779 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8781 ac_cv_sizeof_short=`cat conftestval`
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8786 ac_cv_sizeof_short=0
8792 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8793 cat >> confdefs.h <<EOF
8794 #define SIZEOF_SHORT $ac_cv_sizeof_short
8798 echo $ac_n "checking size of int""... $ac_c" 1>&6
8799 echo "configure:8799: checking size of int" >&5
8800 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8803 if test "$cross_compiling" = yes; then
8804 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8807 "configure"
8808 #include "confdefs.h"
8812 FILE *f=fopen("conftestval", "w");
8814 fprintf(f, "%d\n", sizeof(int));
8818 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8820 ac_cv_sizeof_int=`cat conftestval`
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8831 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8832 cat >> confdefs.h <<EOF
8833 #define SIZEOF_INT $ac_cv_sizeof_int
8837 echo $ac_n "checking size of long""... $ac_c" 1>&6
8838 echo "configure:8838: checking size of long" >&5
8839 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8842 if test "$cross_compiling" = yes; then
8843 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8845 cat > conftest.$ac_ext <<EOF
8846 #line 8846 "configure"
8847 #include "confdefs.h"
8851 FILE *f=fopen("conftestval", "w");
8853 fprintf(f, "%d\n", sizeof(long));
8857 if { (eval echo configure:8857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8859 ac_cv_sizeof_long=`cat conftestval`
8861 echo "configure: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8870 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8871 cat >> confdefs.h <<EOF
8872 #define SIZEOF_LONG $ac_cv_sizeof_long
8878 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8879 echo "configure:8879: checking for 8-bit clean memcmp" >&5
8880 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8883 if test "$cross_compiling" = yes; then
8884 ac_cv_func_memcmp_clean=no
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8887 "configure"
8888 #include "confdefs.h"
8892 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8893 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8897 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8899 ac_cv_func_memcmp_clean=yes
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 ac_cv_func_memcmp_clean=no
8911 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8912 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
8914 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8915 echo "configure:8915: checking for strftime" >&5
8916 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8917 echo $ac_n "(cached) $ac_c" 1>&6
8919 cat > conftest.$ac_ext <<EOF
8920 #line 8920 "configure"
8921 #include "confdefs.h"
8922 /* System header to define __stub macros and hopefully few prototypes,
8923 which can conflict with char strftime(); below. */
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8932 /* The GNU C library defines this for functions which it implements
8933 to always fail with ENOSYS. Some functions are actually named
8934 something starting with __ and the normal name is an alias. */
8935 #if defined (__stub_strftime) || defined (__stub___strftime)
8943 if { (eval echo configure:8943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8945 eval "ac_cv_func_strftime=yes"
8947 echo "configure: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 eval "ac_cv_func_strftime=no"
8955 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8956 echo "$ac_t""yes" 1>&6
8957 cat >> confdefs.h <<\EOF
8958 #define HAVE_STRFTIME 1
8962 echo "$ac_t""no" 1>&6
8963 # strftime is in -lintl on SCO UNIX.
8964 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8965 echo "configure:8965: checking for strftime in -lintl" >&5
8966 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8970 ac_save_LIBS="$LIBS"
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8973 "configure"
8974 #include "confdefs.h"
8975 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8984 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8986 eval "ac_cv_lib_$ac_lib_var=yes"
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8991 eval "ac_cv_lib_$ac_lib_var=no"
8994 LIBS="$ac_save_LIBS"
8997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_STRFTIME 1
9005 echo "$ac_t""no" 1>&6
9010 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9011 echo "configure:9011: checking for vprintf" >&5
9012 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9016 "configure"
9017 #include "confdefs.h"
9018 /* System header to define __stub macros and hopefully few prototypes,
9019 which can conflict with char vprintf(); below. */
9021 /* Override any gcc2 internal prototype to avoid an error. */
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9028 /* The GNU C library defines this for functions which it implements
9029 to always fail with ENOSYS. Some functions are actually named
9030 something starting with __ and the normal name is an alias. */
9031 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9039 if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9041 eval "ac_cv_func_vprintf=yes"
9043 echo "configure: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9046 eval "ac_cv_func_vprintf=no"
9051 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9052 echo "$ac_t""yes" 1>&6
9053 cat >> confdefs.h <<\EOF
9054 #define HAVE_VPRINTF 1
9058 echo "$ac_t""no" 1>&6
9061 if test "$ac_cv_func_vprintf" != yes; then
9062 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9063 echo "configure:9063: checking for _doprnt" >&5
9064 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9065 echo $ac_n "(cached) $ac_c" 1>&6
9067 cat > conftest.$ac_ext <<EOF
9068 #line 9068 "configure"
9069 #include "confdefs.h"
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char _doprnt(); below. */
9073 /* Override any gcc2 internal prototype to avoid an error. */
9074 /* We use char because int might match the return type of a gcc2
9075 builtin and then its argument prototype would still apply. */
9080 /* The GNU C library defines this for functions which it implements
9081 to always fail with ENOSYS. Some functions are actually named
9082 something starting with __ and the normal name is an alias. */
9083 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9091 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9093 eval "ac_cv_func__doprnt=yes"
9095 echo "configure: failed program was:" >&5
9096 cat conftest.$ac_ext >&5
9098 eval "ac_cv_func__doprnt=no"
9103 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9104 echo "$ac_t""yes" 1>&6
9105 cat >> confdefs.h <<\EOF
9106 #define HAVE_DOPRNT 1
9110 echo "$ac_t""no" 1>&6
9116 if test $ac_cv_func_vprintf = yes ; then
9117 for ac_func in vsnprintf vsprintf
9119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9120 echo "configure:9120: checking for $ac_func" >&5
9121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9125 "configure"
9126 #include "confdefs.h"
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char $ac_func(); below. */
9130 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9137 /* The GNU C library defines this for functions which it implements
9138 to always fail with ENOSYS. Some functions are actually named
9139 something starting with __ and the normal name is an alias. */
9140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9148 if { (eval echo configure:9148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9150 eval "ac_cv_func_$ac_func=yes"
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 eval "ac_cv_func_$ac_func=no"
9160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9161 echo "$ac_t""yes" 1>&6
9162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9163 cat >> confdefs.h <<EOF
9164 #define $ac_tr_func 1
9168 echo "$ac_t""no" 1>&6
9205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9206 echo "configure:9206: checking for $ac_func" >&5
9207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9211 "configure"
9212 #include "confdefs.h"
9213 /* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char $ac_func(); below. */
9216 /* Override any gcc2 internal prototype to avoid an error. */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9223 /* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9234 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9236 eval "ac_cv_func_$ac_func=yes"
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9241 eval "ac_cv_func_$ac_func=no"
9246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9249 cat >> confdefs.h <<EOF
9250 #define $ac_tr_func 1
9254 echo "$ac_t""no" 1>&6
9259 # these functions are required to build a thread_safe -lldap
9266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9267 echo "configure:9267: checking for $ac_func" >&5
9268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9272 "configure"
9273 #include "confdefs.h"
9274 /* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func(); below. */
9277 /* Override any gcc2 internal prototype to avoid an error. */
9278 /* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9284 /* The GNU C library defines this for functions which it implements
9285 to always fail with ENOSYS. Some functions are actually named
9286 something starting with __ and the normal name is an alias. */
9287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9295 if { (eval echo configure:9295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9297 eval "ac_cv_func_$ac_func=yes"
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9302 eval "ac_cv_func_$ac_func=no"
9307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9308 echo "$ac_t""yes" 1>&6
9309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9310 cat >> confdefs.h <<EOF
9311 #define $ac_tr_func 1
9315 echo "$ac_t""no" 1>&6
9320 if test "$ac_cv_func_ctime_r" = yes ; then
9321 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
9322 echo "configure:9322: checking number of arguments of ctime_r" >&5
9323 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9327 "configure"
9328 #include "confdefs.h"
9331 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
9334 if { (eval echo configure:9334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9336 ol_cv_func_ctime_r_nargs=3
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 ol_cv_func_ctime_r_nargs=0
9344 if test $ol_cv_func_ctime_r_nargs = 0 ; then
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9346 "configure"
9347 #include "confdefs.h"
9350 time_t ti; char *buffer;
9351 ctime_r(&ti,buffer);
9354 if { (eval echo configure:9354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9356 ol_cv_func_ctime_r_nargs=2
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9361 ol_cv_func_ctime_r_nargs=0
9368 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
9369 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
9370 cat >> confdefs.h <<EOF
9371 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
9377 ol_cv_func_ctime_r=0
9380 if test "$ac_cv_func_ctime_r" = yes \
9381 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
9382 -a "$ac_cv_func_gethostbyaddr_r" = yes \
9383 -a "$ac_cv_func_gethostbyname_r" = yes \
9386 cat >> confdefs.h <<\EOF
9387 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
9392 if test $ol_link_threads != no ; then
9393 cat >> confdefs.h <<\EOF
9394 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9399 for ac_func in getopt tempnam
9401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9402 echo "configure:9402: checking for $ac_func" >&5
9403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9409 /* System header to define __stub macros and hopefully few prototypes,
9410 which can conflict with char $ac_func(); below. */
9412 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9419 /* The GNU C library defines this for functions which it implements
9420 to always fail with ENOSYS. Some functions are actually named
9421 something starting with __ and the normal name is an alias. */
9422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9432 eval "ac_cv_func_$ac_func=yes"
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9437 eval "ac_cv_func_$ac_func=no"
9442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9443 echo "$ac_t""yes" 1>&6
9444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9445 cat >> confdefs.h <<EOF
9446 #define $ac_tr_func 1
9450 echo "$ac_t""no" 1>&6
9451 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9457 # Check Configuration
9459 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9460 echo "configure:9460: checking declaration of sys_errlist" >&5
9461 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9465 cat > conftest.$ac_ext <<EOF
9466 #line 9466 "configure"
9467 #include "confdefs.h"
9470 #include <sys/types.h>
9473 char *c = (char *) *sys_errlist
9476 if { (eval echo configure:9476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9478 ol_cv_dcl_sys_errlist=yes
9480 echo "configure: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9483 ol_cv_dcl_sys_errlist=no
9488 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9490 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9491 if test $ol_cv_dcl_sys_errlist = no ; then
9492 cat >> confdefs.h <<\EOF
9493 #define DECL_SYS_ERRLIST 1
9496 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9497 echo "configure:9497: checking existence of sys_errlist" >&5
9498 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9503 "configure"
9504 #include "confdefs.h"
9507 char *c = (char *) *sys_errlist
9510 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9512 ol_cv_have_sys_errlist=yes
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 ol_cv_have_sys_errlist=no
9522 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9527 if test "$ol_enable_debug" != no ; then
9528 cat >> confdefs.h <<\EOF
9529 #define LDAP_DEBUG 1
9533 if test "$ol_enable_syslog" = yes ; then
9534 cat >> confdefs.h <<\EOF
9535 #define LDAP_SYSLOG 1
9539 if test "$ol_enable_libui" = yes ; then
9540 cat >> confdefs.h <<\EOF
9541 #define LDAP_LIBUI 1
9545 if test "$ol_enable_cache" = no ; then
9546 cat >> confdefs.h <<\EOF
9547 #define LDAP_NOCACHE 1
9551 if test "$ol_enable_dns" != no ; then
9552 cat >> confdefs.h <<\EOF
9553 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9557 if test "$ol_enable_proctitle" != no ; then
9558 cat >> confdefs.h <<\EOF
9559 #define LDAP_PROCTITLE 1
9563 if test "$ol_enable_referrals" != no ; then
9564 cat >> confdefs.h <<\EOF
9565 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9569 if test "$ol_enable_cldap" != no ; then
9570 cat >> confdefs.h <<\EOF
9571 #define LDAP_CONNECTIONLESS 1
9576 if test "$ol_enable_aclgroups" != no ; then
9577 cat >> confdefs.h <<\EOF
9578 #define SLAPD_ACLGROUPS 1
9582 if test "$ol_enable_crypt" != no ; then
9583 cat >> confdefs.h <<\EOF
9584 #define SLAPD_CRYPT 1
9588 if test "$ol_enable_cleartext" != no ; then
9589 cat >> confdefs.h <<\EOF
9590 #define SLAPD_CLEARTEXT 1
9594 if test "$ol_enable_phonetic" != no ; then
9595 cat >> confdefs.h <<\EOF
9596 #define SLAPD_PHONETIC 1
9600 if test "$ol_enable_rlookups" != no ; then
9601 cat >> confdefs.h <<\EOF
9602 #define SLAPD_RLOOKUPS 1
9607 if test "$ol_link_bdb2" != no ; then
9608 cat >> confdefs.h <<\EOF
9609 #define SLAPD_BDB2 1
9616 if test "$ol_link_ldbm" != no ; then
9617 cat >> confdefs.h <<\EOF
9618 #define SLAPD_LDBM 1
9625 if test "$ol_enable_passwd" != no ; then
9626 cat >> confdefs.h <<\EOF
9627 #define SLAPD_PASSWD 1
9634 if test "$ol_enable_perl" != no ; then
9635 cat >> confdefs.h <<\EOF
9636 #define SLAPD_PERL 1
9643 if test "$ol_enable_shell" != no ; then
9644 cat >> confdefs.h <<\EOF
9645 #define SLAPD_SHELL 1
9652 if test "$ol_enable_tcl" != no ; then
9653 cat >> confdefs.h <<\EOF
9661 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
9662 $BUILD_SLAPD = yes ; then
9666 if test "$ol_link_isode" != no ; then
9697 cat > confcache <<\EOF
9698 # This file is a shell script that caches the results of configure
9699 # tests run on this system so they can be shared between configure
9700 # scripts and configure runs. It is not useful on other systems.
9701 # If it contains results you don't want to keep, you may remove or edit it.
9703 # By default, configure uses ./config.cache as the cache file,
9704 # creating it if it does not exist already. You can give configure
9705 # the --cache-file=FILE option to use a different cache file; that is
9706 # what configure does when it calls configure scripts in
9707 # subdirectories, so they share the cache.
9708 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9709 # config.status only pays attention to the cache file if you give it the
9710 # --recheck option to rerun configure.
9713 # The following way of writing the cache mishandles newlines in values,
9714 # but we know of no workaround that is simple, portable, and efficient.
9715 # So, don't put newlines in cache variables' values.
9716 # Ultrix sh set writes to stderr and can't be redirected directly,
9717 # and sets the high bit in the cache file unless we assign to the vars.
9719 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9721 # `set' does not quote correctly, so add quotes (double-quote substitution
9722 # turns \\\\ into \\, and sed turns \\ into \).
9724 -e "s/'/'\\\\''/g" \
9725 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9728 # `set' quotes correctly as required by POSIX, so do not add quotes.
9729 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9732 if cmp -s $cache_file confcache; then
9735 if test -w $cache_file; then
9736 echo "updating cache $cache_file"
9737 cat confcache > $cache_file
9739 echo "not updating unwritable cache $cache_file"
9744 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9747 # Let make expand exec_prefix.
9748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9750 # Any assignment to VPATH causes Sun make to only execute
9751 # the first set of double-colon rules, so remove it if not needed.
9752 # If there is a colon in the path, we need to keep it.
9753 if test "x$srcdir" = x.; then
9754 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9757 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9759 DEFS=-DHAVE_CONFIG_H
9761 # Without the "./", some shells look in PATH for config.status.
9762 : ${CONFIG_STATUS=./config.status}
9764 echo creating $CONFIG_STATUS
9765 rm -f $CONFIG_STATUS
9766 cat > $CONFIG_STATUS <<EOF
9768 # Generated automatically by configure.
9769 # Run this file to recreate the current configuration.
9770 # This directory was configured as follows,
9771 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9773 # $0 $ac_configure_args
9775 # Compiler output produced by configure, useful for debugging
9776 # configure, is in ./config.log if it exists.
9778 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9781 case "\$ac_option" in
9782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9783 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9784 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9785 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9786 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9788 -help | --help | --hel | --he | --h)
9789 echo "\$ac_cs_usage"; exit 0 ;;
9790 *) echo "\$ac_cs_usage"; exit 1 ;;
9794 ac_given_srcdir=$srcdir
9795 ac_given_INSTALL="$INSTALL"
9797 trap 'rm -fr `echo "\
9798 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9799 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9800 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9801 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9802 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9803 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9804 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9805 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9806 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9807 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9808 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9809 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9810 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9811 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9812 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9813 include/Makefile:build/top.mk:include/Makefile.in \
9814 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9815 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9816 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9817 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9818 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9819 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9820 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9821 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9822 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9823 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9824 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9825 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
9826 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9827 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9828 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9829 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9830 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
9831 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9832 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9833 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9834 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
9835 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
9836 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9838 cat >> $CONFIG_STATUS <<EOF
9840 # Protect against being on the right side of a sed subst in config.status.
9841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9846 s%@CFLAGS@%$CFLAGS%g
9847 s%@CPPFLAGS@%$CPPFLAGS%g
9848 s%@CXXFLAGS@%$CXXFLAGS%g
9849 s%@FFLAGS@%$FFLAGS%g
9851 s%@LDFLAGS@%$LDFLAGS%g
9853 s%@exec_prefix@%$exec_prefix%g
9854 s%@prefix@%$prefix%g
9855 s%@program_transform_name@%$program_transform_name%g
9856 s%@bindir@%$bindir%g
9857 s%@sbindir@%$sbindir%g
9858 s%@libexecdir@%$libexecdir%g
9859 s%@datadir@%$datadir%g
9860 s%@sysconfdir@%$sysconfdir%g
9861 s%@sharedstatedir@%$sharedstatedir%g
9862 s%@localstatedir@%$localstatedir%g
9863 s%@libdir@%$libdir%g
9864 s%@includedir@%$includedir%g
9865 s%@oldincludedir@%$oldincludedir%g
9866 s%@infodir@%$infodir%g
9867 s%@mandir@%$mandir%g
9868 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9869 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9870 s%@INSTALL_DATA@%$INSTALL_DATA%g
9871 s%@PACKAGE@%$PACKAGE%g
9872 s%@VERSION@%$VERSION%g
9873 s%@ACLOCAL@%$ACLOCAL%g
9874 s%@AUTOCONF@%$AUTOCONF%g
9875 s%@AUTOMAKE@%$AUTOMAKE%g
9876 s%@AUTOHEADER@%$AUTOHEADER%g
9877 s%@MAKEINFO@%$MAKEINFO%g
9878 s%@SET_MAKE@%$SET_MAKE%g
9879 s%@top_builddir@%$top_builddir%g
9880 s%@ldap_subdir@%$ldap_subdir%g
9882 s%@host_alias@%$host_alias%g
9883 s%@host_cpu@%$host_cpu%g
9884 s%@host_vendor@%$host_vendor%g
9885 s%@host_os@%$host_os%g
9886 s%@RANLIB@%$RANLIB%g
9891 s%@LIBTOOL@%$LIBTOOL%g
9893 s%@SENDMAIL@%$SENDMAIL%g
9894 s%@EDITOR@%$EDITOR%g
9895 s%@FINGER@%$FINGER%g
9896 s%@PERLBIN@%$PERLBIN%g
9898 s%@EXEEXT@%$EXEEXT%g
9899 s%@OBJEXT@%$OBJEXT%g
9901 s%@LIBOBJS@%$LIBOBJS%g
9902 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9903 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9904 s%@BUILD_BDB2@%$BUILD_BDB2%g
9905 s%@BUILD_LDBM@%$BUILD_LDBM%g
9906 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9907 s%@BUILD_PERL@%$BUILD_PERL%g
9908 s%@BUILD_SHELL@%$BUILD_SHELL%g
9909 s%@BUILD_TCL@%$BUILD_TCL%g
9910 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9911 s%@LDAP_LIBS@%$LDAP_LIBS%g
9912 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9913 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9914 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9915 s%@LDBM_LIBS@%$LDBM_LIBS%g
9916 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9917 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9918 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
9919 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
9920 s%@KRB_LIBS@%$KRB_LIBS%g
9921 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9926 cat >> $CONFIG_STATUS <<\EOF
9928 # Split the substitutions into bite-sized pieces for seds with
9929 # small command number limits, like on Digital OSF/1 and HP-UX.
9930 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9931 ac_file=1 # Number of current file.
9932 ac_beg=1 # First line for current file.
9933 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9936 while $ac_more_lines; do
9937 if test $ac_beg -gt 1; then
9938 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9940 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9942 if test ! -s conftest.s$ac_file; then
9944 rm -f conftest.s$ac_file
9946 if test -z "$ac_sed_cmds"; then
9947 ac_sed_cmds="sed -f conftest.s$ac_file"
9949 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9951 ac_file=`expr $ac_file + 1`
9953 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9956 if test -z "$ac_sed_cmds"; then
9961 cat >> $CONFIG_STATUS <<EOF
9963 CONFIG_FILES=\${CONFIG_FILES-"\
9964 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9965 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9966 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9967 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9968 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9969 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9970 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9971 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9972 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9973 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9974 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9975 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9976 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9977 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9978 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9979 include/Makefile:build/top.mk:include/Makefile.in \
9980 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9981 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9982 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9983 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9984 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9985 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9986 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9987 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9988 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9989 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9990 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9991 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
9992 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9993 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9994 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9995 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9996 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
9997 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9998 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9999 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10000 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10001 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10004 cat >> $CONFIG_STATUS <<\EOF
10005 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10008 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10009 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10010 *) ac_file_in="${ac_file}.in" ;;
10013 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10015 # Remove last slash and all that follows it. Not all systems have dirname.
10016 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10017 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10018 # The file is in a subdirectory.
10019 test ! -d "$ac_dir" && mkdir "$ac_dir"
10020 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10021 # A "../" for each directory in $ac_dir_suffix.
10022 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10024 ac_dir_suffix= ac_dots=
10027 case "$ac_given_srcdir" in
10029 if test -z "$ac_dots"; then top_srcdir=.
10030 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10031 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10032 *) # Relative path.
10033 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10034 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10037 case "$ac_given_INSTALL" in
10038 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10039 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10042 echo creating "$ac_file"
10044 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10046 *Makefile*) ac_comsub="1i\\
10047 # $configure_input" ;;
10051 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10053 s%@configure_input@%$configure_input%g
10054 s%@srcdir@%$srcdir%g
10055 s%@top_srcdir@%$top_srcdir%g
10056 s%@INSTALL@%$INSTALL%g
10057 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10061 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10062 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10064 # ac_d sets the value in "#define NAME VALUE" lines.
10065 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10066 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10069 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10070 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10071 ac_uB='\([ ]\)%\1#\2define\3'
10074 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10075 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10076 ac_eB='$%\1#\2define\3'
10080 if test "${CONFIG_HEADERS+set}" != set; then
10082 cat >> $CONFIG_STATUS <<EOF
10083 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10085 cat >> $CONFIG_STATUS <<\EOF
10087 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10090 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10091 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10092 *) ac_file_in="${ac_file}.in" ;;
10095 echo creating $ac_file
10097 rm -f conftest.frag conftest.in conftest.out
10098 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10099 cat $ac_file_inputs > conftest.in
10103 # Transform confdefs.h into a sed script conftest.vals that substitutes
10104 # the proper values into config.h.in to produce config.h. And first:
10105 # Protect against being on the right side of a sed subst in config.status.
10106 # Protect against being in an unquoted here document in config.status.
10107 rm -f conftest.vals
10108 cat > conftest.hdr <<\EOF
10111 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10115 sed -n -f conftest.hdr confdefs.h > conftest.vals
10118 # This sed command replaces #undef with comments. This is necessary, for
10119 # example, in the case of _POSIX_SOURCE, which is predefined and required
10120 # on some systems where configure will not decide to define it.
10121 cat >> conftest.vals <<\EOF
10122 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10125 # Break up conftest.vals because some shells have a limit on
10126 # the size of here documents, and old seds have small limits too.
10128 rm -f conftest.tail
10131 ac_lines=`grep -c . conftest.vals`
10132 # grep -c gives empty output for an empty file on some AIX systems.
10133 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10134 # Write a limited-size here document to conftest.frag.
10135 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10136 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10138 sed -f conftest.frag conftest.in > conftest.out
10140 mv conftest.out conftest.in
10141 ' >> $CONFIG_STATUS
10142 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10143 rm -f conftest.vals
10144 mv conftest.tail conftest.vals
10146 rm -f conftest.vals
10148 cat >> $CONFIG_STATUS <<\EOF
10149 rm -f conftest.frag conftest.h
10150 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10151 cat conftest.in >> conftest.h
10153 if cmp -s $ac_file conftest.h 2>/dev/null; then
10154 echo "$ac_file is unchanged"
10157 # Remove last slash and all that follows it. Not all systems have dirname.
10158 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10160 # The file is in a subdirectory.
10161 test ! -d "$ac_dir" && mkdir "$ac_dir"
10164 mv conftest.h $ac_file
10169 cat >> $CONFIG_STATUS <<EOF
10172 cat >> $CONFIG_STATUS <<\EOF
10175 echo Please \"make depend\" to build dependencies
10179 chmod +x $CONFIG_STATUS
10180 rm -fr confdefs* $ac_clean_files
10181 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1