3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-debug enable debugging (yes)"
18 --enable-libui enable library user interface (yes)"
20 --enable-cache enable caching (yes)"
22 --enable-dns enable dns support (no)"
24 --enable-referrals enable referrals (yes)"
26 --enable-clapd enable connectionless ldap (no)"
28 --with-kerberos use Kerberos (auto)"
30 --with-threads use threads (auto)"
32 --with-preemptive thread implementation is preemptive (auto)"
34 --enable-ldapd enable building ldapd (no)"
36 --enable-slapd enable building slapd (yes)"
38 --enable-aclgroup enable ACL group support (auto)"
40 --enable-crypt enable crypt(3) passwords (auto)"
42 --enable-md5 enable MD5 passwords (auto)"
44 --enable-sha1 enable SHA1 passwords (auto)"
46 --enable-wrappers enable tcp wrapper support (no)"
48 --enable-phonetic enable phonetic/soundex (no)"
50 --enable-rlookups enable reverse lookups (auto)"
52 --enable-ldbm enable ldbm backend (yes)"
54 --with-ldbm-api use LDBM API (auto)"
56 --with-ldbm-type use LDBM type (auto)"
58 --enable-passwd enable passwd backend (no)"
60 --enable-shell enable shell backend (no)"
62 --enable-slurpd enable building slurpd (auto)"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
68 cache_file=./config.cache
77 program_transform_name=s,x,x,
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host | --host | --hos | --ho)
239 -host=* | --host=* | --hos=* | --ho=*)
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
360 -site=* | --site=* | --sit=*)
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.12"
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=include/ldap.h
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp='$CPP $CPPFLAGS'
553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='\c' ac_t=
571 for ac_dir in build $srcdir/build; do
572 if test -f $ac_dir/install-sh; then
574 ac_install_sh="$ac_aux_dir/install-sh -c"
576 elif test -f $ac_dir/install.sh; then
578 ac_install_sh="$ac_aux_dir/install.sh -c"
582 if test -z "$ac_aux_dir"; then
583 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
585 ac_config_guess=$ac_aux_dir/config.guess
586 ac_config_sub=$ac_aux_dir/config.sub
587 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
590 echo "configure:591: checking configure arguments" >&5
593 # OpenLDAP --enable-debug
594 # Check whether --enable-debug or --disable-debug was given.
595 if test "${enable_debug+set}" = set; then
596 enableval="$enable_debug"
599 for ol_val in auto yes no ; do
600 if test "$enableval" = "$ol_val" ; then
604 if test "$ol_arg" = "invalid" ; then
605 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
607 ol_enable_debug="$ol_arg"
610 ol_enable_debug="yes"
613 # OpenLDAP --enable-libui
614 # Check whether --enable-libui or --disable-libui was given.
615 if test "${enable_libui+set}" = set; then
616 enableval="$enable_libui"
619 for ol_val in auto yes no ; do
620 if test "$enableval" = "$ol_val" ; then
624 if test "$ol_arg" = "invalid" ; then
625 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
627 ol_enable_libui="$ol_arg"
630 ol_enable_libui="yes"
633 # OpenLDAP --enable-cache
634 # Check whether --enable-cache or --disable-cache was given.
635 if test "${enable_cache+set}" = set; then
636 enableval="$enable_cache"
639 for ol_val in auto yes no ; do
640 if test "$enableval" = "$ol_val" ; then
644 if test "$ol_arg" = "invalid" ; then
645 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
647 ol_enable_cache="$ol_arg"
650 ol_enable_cache="yes"
653 # OpenLDAP --enable-dns
654 # Check whether --enable-dns or --disable-dns was given.
655 if test "${enable_dns+set}" = set; then
656 enableval="$enable_dns"
659 for ol_val in auto yes no ; do
660 if test "$enableval" = "$ol_val" ; then
664 if test "$ol_arg" = "invalid" ; then
665 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
667 ol_enable_dns="$ol_arg"
673 # OpenLDAP --enable-referrals
674 # Check whether --enable-referrals or --disable-referrals was given.
675 if test "${enable_referrals+set}" = set; then
676 enableval="$enable_referrals"
679 for ol_val in auto yes no ; do
680 if test "$enableval" = "$ol_val" ; then
684 if test "$ol_arg" = "invalid" ; then
685 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
687 ol_enable_referrals="$ol_arg"
690 ol_enable_referrals="yes"
692 # end --enable-referrals
693 # OpenLDAP --enable-cldap
694 # Check whether --enable-cldap or --disable-cldap was given.
695 if test "${enable_cldap+set}" = set; then
696 enableval="$enable_cldap"
699 for ol_val in auto yes no ; do
700 if test "$enableval" = "$ol_val" ; then
704 if test "$ol_arg" = "invalid" ; then
705 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
707 ol_enable_cldap="$ol_arg"
714 # OpenLDAP --with-kerberos
715 # Check whether --with-kerberos or --without-kerberos was given.
716 if test "${with_kerberos+set}" = set; then
717 withval="$with_kerberos"
720 for ol_val in auto k5 k4 afs yes no ; do
721 if test "$withval" = "$ol_val" ; then
725 if test "$ol_arg" = "invalid" ; then
726 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
728 ol_with_kerberos="$ol_arg"
731 ol_with_kerberos="auto"
733 # end --with-kerberos
735 # OpenLDAP --with-threads
736 # Check whether --with-threads or --without-threads was given.
737 if test "${with_threads+set}" = set; then
738 withval="$with_threads"
741 for ol_val in auto posix mach lwp yes no manual ; do
742 if test "$withval" = "$ol_val" ; then
746 if test "$ol_arg" = "invalid" ; then
747 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
749 ol_with_threads="$ol_arg"
752 ol_with_threads="auto"
756 # OpenLDAP --with-preemptive
757 # Check whether --with-preemptive or --without-preemptive was given.
758 if test "${with_preemptive+set}" = set; then
759 withval="$with_preemptive"
762 for ol_val in auto yes no manual ; do
763 if test "$withval" = "$ol_val" ; then
767 if test "$ol_arg" = "invalid" ; then
768 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
770 ol_with_preemptive="$ol_arg"
773 ol_with_preemptive="auto"
775 # end --with-preemptive
779 # OpenLDAP --enable-ldapd
780 # Check whether --enable-ldapd or --disable-ldapd was given.
781 if test "${enable_ldapd+set}" = set; then
782 enableval="$enable_ldapd"
785 for ol_val in auto yes no ; do
786 if test "$enableval" = "$ol_val" ; then
790 if test "$ol_arg" = "invalid" ; then
791 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
793 ol_enable_ldapd="$ol_arg"
800 # OpenLDAP --enable-slapd
801 # Check whether --enable-slapd or --disable-slapd was given.
802 if test "${enable_slapd+set}" = set; then
803 enableval="$enable_slapd"
806 for ol_val in auto yes no ; do
807 if test "$enableval" = "$ol_val" ; then
811 if test "$ol_arg" = "invalid" ; then
812 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
814 ol_enable_slapd="$ol_arg"
817 ol_enable_slapd="yes"
820 # OpenLDAP --enable-aclgroup
821 # Check whether --enable-aclgroup or --disable-aclgroup was given.
822 if test "${enable_aclgroup+set}" = set; then
823 enableval="$enable_aclgroup"
826 for ol_val in auto yes no ; do
827 if test "$enableval" = "$ol_val" ; then
831 if test "$ol_arg" = "invalid" ; then
832 { echo "configure: error: bad value $enableval for --enable-aclgroup" 1>&2; exit 1; }
834 ol_enable_aclgroup="$ol_arg"
837 ol_enable_aclgroup="auto"
839 # end --enable-aclgroup
840 # OpenLDAP --enable-crypt
841 # Check whether --enable-crypt or --disable-crypt was given.
842 if test "${enable_crypt+set}" = set; then
843 enableval="$enable_crypt"
846 for ol_val in auto yes no ; do
847 if test "$enableval" = "$ol_val" ; then
851 if test "$ol_arg" = "invalid" ; then
852 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
854 ol_enable_crypt="$ol_arg"
857 ol_enable_crypt="auto"
860 # OpenLDAP --enable-md5
861 # Check whether --enable-md5 or --disable-md5 was given.
862 if test "${enable_md5+set}" = set; then
863 enableval="$enable_md5"
866 for ol_val in auto yes no ; do
867 if test "$enableval" = "$ol_val" ; then
871 if test "$ol_arg" = "invalid" ; then
872 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
874 ol_enable_md5="$ol_arg"
880 # OpenLDAP --enable-sha1
881 # Check whether --enable-sha1 or --disable-sha1 was given.
882 if test "${enable_sha1+set}" = set; then
883 enableval="$enable_sha1"
886 for ol_val in auto yes no ; do
887 if test "$enableval" = "$ol_val" ; then
891 if test "$ol_arg" = "invalid" ; then
892 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
894 ol_enable_sha1="$ol_arg"
897 ol_enable_sha1="auto"
900 # OpenLDAP --enable-wrappers
901 # Check whether --enable-wrappers or --disable-wrappers was given.
902 if test "${enable_wrappers+set}" = set; then
903 enableval="$enable_wrappers"
906 for ol_val in auto yes no ; do
907 if test "$enableval" = "$ol_val" ; then
911 if test "$ol_arg" = "invalid" ; then
912 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
914 ol_enable_wrappers="$ol_arg"
917 ol_enable_wrappers="no"
919 # end --enable-wrappers
920 # OpenLDAP --enable-phonetic
921 # Check whether --enable-phonetic or --disable-phonetic was given.
922 if test "${enable_phonetic+set}" = set; then
923 enableval="$enable_phonetic"
926 for ol_val in auto yes no ; do
927 if test "$enableval" = "$ol_val" ; then
931 if test "$ol_arg" = "invalid" ; then
932 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
934 ol_enable_phonetic="$ol_arg"
937 ol_enable_phonetic="no"
939 # end --enable-phonetic
940 # OpenLDAP --enable-rlookups
941 # Check whether --enable-rlookups or --disable-rlookups was given.
942 if test "${enable_rlookups+set}" = set; then
943 enableval="$enable_rlookups"
946 for ol_val in auto yes no ; do
947 if test "$enableval" = "$ol_val" ; then
951 if test "$ol_arg" = "invalid" ; then
952 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
954 ol_enable_rlookups="$ol_arg"
957 ol_enable_rlookups="auto"
959 # end --enable-rlookups
961 # OpenLDAP --enable-ldbm
962 # Check whether --enable-ldbm or --disable-ldbm was given.
963 if test "${enable_ldbm+set}" = set; then
964 enableval="$enable_ldbm"
967 for ol_val in auto yes no ; do
968 if test "$enableval" = "$ol_val" ; then
972 if test "$ol_arg" = "invalid" ; then
973 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
975 ol_enable_ldbm="$ol_arg"
981 # OpenLDAP --with-ldbm_api
982 # Check whether --with-ldbm_api or --without-ldbm_api was given.
983 if test "${with_ldbm_api+set}" = set; then
984 withval="$with_ldbm_api"
987 for ol_val in auto db2 db gdbm ndbm manual ; do
988 if test "$withval" = "$ol_val" ; then
992 if test "$ol_arg" = "invalid" ; then
993 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
995 ol_with_ldbm_api="$ol_arg"
998 ol_with_ldbm_api="auto"
1000 # end --with-ldbm_api
1002 # OpenLDAP --with-ldbm_type
1003 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1004 if test "${with_ldbm_type+set}" = set; then
1005 withval="$with_ldbm_type"
1008 for ol_val in auto btree hash ; do
1009 if test "$withval" = "$ol_val" ; then
1013 if test "$ol_arg" = "invalid" ; then
1014 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1016 ol_with_ldbm_type="$ol_arg"
1019 ol_with_ldbm_type="auto"
1021 # end --with-ldbm_type
1024 # OpenLDAP --enable-passwd
1025 # Check whether --enable-passwd or --disable-passwd was given.
1026 if test "${enable_passwd+set}" = set; then
1027 enableval="$enable_passwd"
1030 for ol_val in auto yes no ; do
1031 if test "$enableval" = "$ol_val" ; then
1035 if test "$ol_arg" = "invalid" ; then
1036 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1038 ol_enable_passwd="$ol_arg"
1041 ol_enable_passwd="no"
1043 # end --enable-passwd
1044 # OpenLDAP --enable-shell
1045 # Check whether --enable-shell or --disable-shell was given.
1046 if test "${enable_shell+set}" = set; then
1047 enableval="$enable_shell"
1050 for ol_val in auto yes no ; do
1051 if test "$enableval" = "$ol_val" ; then
1055 if test "$ol_arg" = "invalid" ; then
1056 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1058 ol_enable_shell="$ol_arg"
1061 ol_enable_shell="no"
1063 # end --enable-shell
1065 # OpenLDAP --enable-slurpd
1066 # Check whether --enable-slurpd or --disable-slurpd was given.
1067 if test "${enable_slurpd+set}" = set; then
1068 enableval="$enable_slurpd"
1071 for ol_val in auto yes no ; do
1072 if test "$enableval" = "$ol_val" ; then
1076 if test "$ol_arg" = "invalid" ; then
1077 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1079 ol_enable_slurpd="$ol_arg"
1082 ol_enable_slurpd="auto"
1084 # end --enable-slurpd
1086 if test $ol_enable_slapd = no ; then
1087 if test $ol_enable_ldbm = yes ; then
1088 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2;
1090 if test $ol_enable_passwd = yes ; then
1091 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2;
1093 if test $ol_enable_shell = yes ; then
1094 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2;
1096 if test $ol_enable_aclgroup = yes ; then
1097 echo "configure: warning: slapd disabled, ignoring --enable_aclgroup argument" 1>&2;
1099 if test $ol_enable_crypt = yes ; then
1100 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2;
1102 if test $ol_enable_md5 = yes ; then
1103 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2;
1105 if test $ol_enable_sha1 = yes ; then
1106 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2;
1108 if test $ol_enable_wrappers = yes ; then
1109 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2;
1111 if test $ol_enable_phonetic = yes ; then
1112 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2;
1114 if test $ol_enable_rlookups = yes ; then
1115 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2;
1117 if test $ol_with_ldbm_api != auto ; then
1118 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2;
1120 if test $ol_with_ldbm_type != auto ; then
1121 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2;
1123 if test $ol_enable_slurpd = yes ; then
1124 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; };
1127 # force settings to no
1131 ol_enable_aclgroup=no
1135 ol_enable_wrappers=no
1136 ol_enable_phonetic=no
1137 ol_enable_rlookups=no
1139 ol_with_ldbm_type=no
1142 elif test $ol_enable_ldbm = no ; then
1144 if test $ol_with_ldbm_api != auto ; then
1145 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2;
1148 if test $ol_with_ldbm_type != auto ; then
1149 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2;
1152 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1153 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; };
1157 ol_with_ldbm_type=no
1161 if test $ol_with_ldbm_api = gdbm -a \
1162 $ol_with_ldbm_type = btree ; then
1163 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; };
1165 if test $ol_with_ldbm_api = ndbm -a \
1166 $ol_with_ldbm_type = btree ; then
1167 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; };
1171 if test $ol_enable_slurpd = yes ; then
1172 if test $ol_with_threads = no ; then
1173 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; };
1177 echo "$ac_t""done" 1>&6
1210 # Extract the first word of "gcc", so it can be a program name with args.
1211 set dummy gcc; ac_word=$2
1212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213 echo "configure:1214: checking for $ac_word" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 if test -n "$CC"; then
1218 ac_cv_prog_CC="$CC" # Let the user override the test.
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1221 for ac_dir in $PATH; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/$ac_word; then
1232 if test -n "$CC"; then
1233 echo "$ac_t""$CC" 1>&6
1235 echo "$ac_t""no" 1>&6
1238 if test -z "$CC"; then
1239 # Extract the first word of "cc", so it can be a program name with args.
1240 set dummy cc; ac_word=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 if test -n "$CC"; then
1247 ac_cv_prog_CC="$CC" # Let the user override the test.
1249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1251 for ac_dir in $PATH; do
1252 test -z "$ac_dir" && ac_dir=.
1253 if test -f $ac_dir/$ac_word; then
1254 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1255 ac_prog_rejected=yes
1263 if test $ac_prog_rejected = yes; then
1264 # We found a bogon in the path, so make sure we never use it.
1265 set dummy $ac_cv_prog_CC
1267 if test $# -gt 0; then
1268 # We chose a different compiler from the bogus one.
1269 # However, it has the same basename, so the bogon will be chosen
1270 # first if we set CC to just the basename; use the full file name.
1272 set dummy "$ac_dir/$ac_word" "$@"
1280 if test -n "$CC"; then
1281 echo "$ac_t""$CC" 1>&6
1283 echo "$ac_t""no" 1>&6
1286 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1289 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1290 echo "configure:1291: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1293 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1296 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1297 cross_compiling=$ac_cv_prog_cc_cross
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1304 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1305 ac_cv_prog_cc_works=yes
1306 # If we can't run a trivial program, we are probably using a cross compiler.
1307 if (./conftest; exit) 2>/dev/null; then
1308 ac_cv_prog_cc_cross=no
1310 ac_cv_prog_cc_cross=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1315 ac_cv_prog_cc_works=no
1319 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1320 if test $ac_cv_prog_cc_works = no; then
1321 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1323 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1325 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1326 cross_compiling=$ac_cv_prog_cc_cross
1328 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether we are using GNU C" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 cat > conftest.c <<EOF
1338 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1345 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1347 if test $ac_cv_prog_gcc = yes; then
1349 ac_test_CFLAGS="${CFLAGS+set}"
1350 ac_save_CFLAGS="$CFLAGS"
1352 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1353 echo "configure:1354: checking whether ${CC-cc} accepts -g" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 echo 'void f(){}' > conftest.c
1358 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1367 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1368 if test "$ac_test_CFLAGS" = set; then
1369 CFLAGS="$ac_save_CFLAGS"
1370 elif test $ac_cv_prog_cc_g = yes; then
1377 test "${CFLAGS+set}" = set || CFLAGS="-g"
1380 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1381 echo "configure:1382: checking how to run the C preprocessor" >&5
1382 # On Suns, sometimes $CPP names a directory.
1383 if test -n "$CPP" && test -d "$CPP"; then
1386 if test -z "$CPP"; then
1387 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 # This must be in double quotes, not single quotes, because CPP may get
1391 # substituted into the Makefile and "${CC-cc}" will confuse make.
1393 # On the NeXT, cc -E runs the code through the compiler's parser,
1394 # not just through cpp.
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1402 { (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1403 ac_err=`grep -v '^ *+' conftest.out`
1404 if test -z "$ac_err"; then
1408 echo "configure: failed program was:" >&5
1409 cat conftest.$ac_ext >&5
1411 CPP="${CC-cc} -E -traditional-cpp"
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1419 { (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1420 ac_err=`grep -v '^ *+' conftest.out`
1421 if test -z "$ac_err"; then
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1433 ac_cv_prog_CPP="$CPP"
1435 CPP="$ac_cv_prog_CPP"
1437 ac_cv_prog_CPP="$CPP"
1439 echo "$ac_t""$CPP" 1>&6
1441 if test $ac_cv_prog_gcc = yes; then
1442 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1443 echo "configure:1444: checking whether ${CC-cc} needs -traditional" >&5
1444 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 ac_pattern="Autoconf.*'x'"
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1455 egrep "$ac_pattern" >/dev/null 2>&1; then
1457 ac_cv_prog_gcc_traditional=yes
1460 ac_cv_prog_gcc_traditional=no
1465 if test $ac_cv_prog_gcc_traditional = no; then
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1473 egrep "$ac_pattern" >/dev/null 2>&1; then
1475 ac_cv_prog_gcc_traditional=yes
1482 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1483 if test $ac_cv_prog_gcc_traditional = yes; then
1484 CC="$CC -traditional"
1489 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1490 echo "configure:1491: checking whether ln -s works" >&5
1491 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1495 if ln -s X conftestdata 2>/dev/null
1498 ac_cv_prog_LN_S="ln -s"
1503 LN_S="$ac_cv_prog_LN_S"
1504 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1505 echo "$ac_t""yes" 1>&6
1507 echo "$ac_t""no" 1>&6
1510 # Find a good install program. We prefer a C program (faster),
1511 # so one script is as good as another. But avoid the broken or
1512 # incompatible versions:
1513 # SysV /etc/install, /usr/sbin/install
1514 # SunOS /usr/etc/install
1515 # IRIX /sbin/install
1517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1519 # ./install, which can be erroneously created by make from ./install.sh.
1520 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1521 echo "configure:1522: checking for a BSD compatible install" >&5
1522 if test -z "$INSTALL"; then
1523 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1527 for ac_dir in $PATH; do
1528 # Account for people who put trailing slashes in PATH elements.
1530 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1532 # OSF1 and SCO ODT 3.0 have their own names for install.
1533 for ac_prog in ginstall installbsd scoinst install; do
1534 if test -f $ac_dir/$ac_prog; then
1535 if test $ac_prog = install &&
1536 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1537 # AIX install. It has an incompatible calling convention.
1538 # OSF/1 installbsd also uses dspmsg, but is usable.
1541 ac_cv_path_install="$ac_dir/$ac_prog -c"
1552 if test "${ac_cv_path_install+set}" = set; then
1553 INSTALL="$ac_cv_path_install"
1555 # As a last resort, use the slow shell script. We don't cache a
1556 # path for INSTALL within a source directory, because that will
1557 # break other packages using the cache if that directory is
1558 # removed, or if the path is relative.
1559 INSTALL="$ac_install_sh"
1562 echo "$ac_t""$INSTALL" 1>&6
1564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1565 # It thinks the first close brace ends the variable substitution.
1566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570 # Extract the first word of "ranlib", so it can be a program name with args.
1571 set dummy ranlib; ac_word=$2
1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573 echo "configure:1574: checking for $ac_word" >&5
1574 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 if test -n "$RANLIB"; then
1578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1581 for ac_dir in $PATH; do
1582 test -z "$ac_dir" && ac_dir=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_prog_RANLIB="ranlib"
1589 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1592 RANLIB="$ac_cv_prog_RANLIB"
1593 if test -n "$RANLIB"; then
1594 echo "$ac_t""$RANLIB" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1600 echo "configure:1601: checking whether ${MAKE-make} sets \${MAKE}" >&5
1601 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 cat > conftestmake <<\EOF
1607 @echo 'ac_maketemp="${MAKE}"'
1609 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1610 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1611 if test -n "$ac_maketemp"; then
1612 eval ac_cv_prog_make_${ac_make}_set=yes
1614 eval ac_cv_prog_make_${ac_make}_set=no
1618 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1619 echo "$ac_t""yes" 1>&6
1622 echo "$ac_t""no" 1>&6
1623 SET_MAKE="MAKE=${MAKE-make}"
1627 # Extract the first word of "sendmail", so it can be a program name with args.
1628 set dummy sendmail; ac_word=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5
1631 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1636 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1640 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1641 test -z "$ac_dir" && ac_dir=.
1642 if test -f $ac_dir/$ac_word; then
1643 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1648 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1652 SENDMAIL="$ac_cv_path_SENDMAIL"
1653 if test -n "$SENDMAIL"; then
1654 echo "$ac_t""$SENDMAIL" 1>&6
1656 echo "$ac_t""no" 1>&6
1659 # Extract the first word of "vi", so it can be a program name with args.
1660 set dummy vi; ac_word=$2
1661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1662 echo "configure:1663: checking for $ac_word" >&5
1663 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1668 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1672 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1673 test -z "$ac_dir" && ac_dir=.
1674 if test -f $ac_dir/$ac_word; then
1675 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1680 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1684 EDITOR="$ac_cv_path_EDITOR"
1685 if test -n "$EDITOR"; then
1686 echo "$ac_t""$EDITOR" 1>&6
1688 echo "$ac_t""no" 1>&6
1691 # Extract the first word of "finger", so it can be a program name with args.
1692 set dummy finger; ac_word=$2
1693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_word" >&5
1695 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1700 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1704 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f $ac_dir/$ac_word; then
1707 ac_cv_path_FINGER="$ac_dir/$ac_word"
1712 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1716 FINGER="$ac_cv_path_FINGER"
1717 if test -n "$FINGER"; then
1718 echo "$ac_t""$FINGER" 1>&6
1720 echo "$ac_t""no" 1>&6
1726 echo $ac_n "checking for socket""... $ac_c" 1>&6
1727 echo "configure:1728: checking for socket" >&5
1728 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char socket(); below. */
1737 /* Override any gcc2 internal prototype to avoid an error. */
1738 /* We use char because int might match the return type of a gcc2
1739 builtin and then its argument prototype would still apply. */
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined (__stub_socket) || defined (__stub___socket)
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1757 eval "ac_cv_func_socket=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 eval "ac_cv_func_socket=no"
1767 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1768 echo "$ac_t""yes" 1>&6
1771 echo "$ac_t""no" 1>&6
1773 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1774 echo "configure:1775: checking for main in -lsocket" >&5
1775 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 ac_save_LIBS="$LIBS"
1780 LIBS="-lsocket $LIBS"
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1791 eval "ac_cv_lib_$ac_lib_var=yes"
1793 echo "configure: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1796 eval "ac_cv_lib_$ac_lib_var=no"
1799 LIBS="$ac_save_LIBS"
1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1805 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1806 cat >> confdefs.h <<EOF
1807 #define $ac_tr_lib 1
1810 LIBS="-lsocket $LIBS"
1813 echo "$ac_t""no" 1>&6
1816 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
1817 echo "configure:1818: checking for main in -lnet" >&5
1818 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
1819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 ac_save_LIBS="$LIBS"
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1834 eval "ac_cv_lib_$ac_lib_var=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1839 eval "ac_cv_lib_$ac_lib_var=no"
1842 LIBS="$ac_save_LIBS"
1845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1847 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1849 cat >> confdefs.h <<EOF
1850 #define $ac_tr_lib 1
1856 echo "$ac_t""no" 1>&6
1859 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
1860 echo "configure:1861: checking for main in -lnsl_s" >&5
1861 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
1862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 ac_save_LIBS="$LIBS"
1866 LIBS="-lnsl_s $LIBS"
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1877 eval "ac_cv_lib_$ac_lib_var=yes"
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1882 eval "ac_cv_lib_$ac_lib_var=no"
1885 LIBS="$ac_save_LIBS"
1888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1892 cat >> confdefs.h <<EOF
1893 #define $ac_tr_lib 1
1896 LIBS="-lnsl_s $LIBS"
1899 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1903 echo "configure:1904: checking for main in -lnsl" >&5
1904 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 ac_save_LIBS="$LIBS"
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1920 eval "ac_cv_lib_$ac_lib_var=yes"
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 eval "ac_cv_lib_$ac_lib_var=no"
1928 LIBS="$ac_save_LIBS"
1931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1935 cat >> confdefs.h <<EOF
1936 #define $ac_tr_lib 1
1942 echo "$ac_t""no" 1>&6
1945 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
1946 echo "configure:1947: checking for socket in -linet" >&5
1947 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
1948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 ac_save_LIBS="$LIBS"
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1967 eval "ac_cv_lib_$ac_lib_var=yes"
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 eval "ac_cv_lib_$ac_lib_var=no"
1975 LIBS="$ac_save_LIBS"
1978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1982 cat >> confdefs.h <<EOF
1983 #define $ac_tr_lib 1
1989 echo "$ac_t""no" 1>&6
1992 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
1993 echo "configure:1994: checking for main in -lgen" >&5
1994 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
1995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 ac_save_LIBS="$LIBS"
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2010 eval "ac_cv_lib_$ac_lib_var=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 eval "ac_cv_lib_$ac_lib_var=no"
2018 LIBS="$ac_save_LIBS"
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2024 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2025 cat >> confdefs.h <<EOF
2026 #define $ac_tr_lib 1
2032 echo "$ac_t""no" 1>&6
2039 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2040 echo "configure:2041: checking for sigset in -lV3" >&5
2041 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 ac_save_LIBS="$LIBS"
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2050 /* Override any gcc2 internal prototype to avoid an error. */
2051 /* We use char because int might match the return type of a gcc2
2052 builtin and then its argument prototype would still apply. */
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2061 eval "ac_cv_lib_$ac_lib_var=yes"
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 eval "ac_cv_lib_$ac_lib_var=no"
2069 LIBS="$ac_save_LIBS"
2072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2074 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2076 cat >> confdefs.h <<EOF
2077 #define $ac_tr_lib 1
2083 echo "$ac_t""no" 1>&6
2087 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2088 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_hdr" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2102 { (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2103 ac_err=`grep -v '^ *+' conftest.out`
2104 if test -z "$ac_err"; then
2106 eval "ac_cv_header_$ac_safe=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_header_$ac_safe=no"
2116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2119 cat >> confdefs.h <<EOF
2120 #define $ac_tr_hdr 1
2124 echo "$ac_t""no" 1>&6
2129 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2130 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2131 echo "configure:2132: checking for main in -lkrb4" >&5
2132 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 ac_save_LIBS="$LIBS"
2137 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2146 if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2148 eval "ac_cv_lib_$ac_lib_var=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2153 eval "ac_cv_lib_$ac_lib_var=no"
2156 LIBS="$ac_save_LIBS"
2159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2163 echo "$ac_t""no" 1>&6
2168 if test $have_k5 = yes ; then
2169 ol_with_kerberos=found
2170 ol_link_kerberos=yes
2172 cat >> confdefs.h <<\EOF
2173 #define HAVE_KERBEROS 1
2177 KRB_DEFS="-DKERBEROS"
2178 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2182 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2183 for ac_hdr in krb.h des.h
2185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_hdr" >&5
2188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2197 { (eval echo configure:2198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2198 ac_err=`grep -v '^ *+' conftest.out`
2199 if test -z "$ac_err"; then
2201 eval "ac_cv_header_$ac_safe=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 eval "ac_cv_header_$ac_safe=no"
2211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2214 cat >> confdefs.h <<EOF
2215 #define $ac_tr_hdr 1
2219 echo "$ac_t""no" 1>&6
2224 if test $ac_cv_header_krb_h = yes ; then
2225 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2226 echo "configure:2227: checking for main in -lkrb" >&5
2227 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 ac_save_LIBS="$LIBS"
2232 LIBS="-lkrb -ldes $LIBS"
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 eval "ac_cv_lib_$ac_lib_var=no"
2251 LIBS="$ac_save_LIBS"
2254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2258 echo "$ac_t""no" 1>&6
2263 if test $have_k4 = yes ; then
2264 ol_with_kerberos=found
2265 ol_link_kerberos=yes
2267 cat >> confdefs.h <<\EOF
2268 #define HAVE_KERBEROS 1
2272 KRB_DEFS="-DKERBEROS"
2273 KRB_LIBS="-lkrb -ldes"
2280 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2281 for ac_hdr in pthread.h sched.h
2283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_hdr" >&5
2286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2295 { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2296 ac_err=`grep -v '^ *+' conftest.out`
2297 if test -z "$ac_err"; then
2299 eval "ac_cv_header_$ac_safe=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 eval "ac_cv_header_$ac_safe=no"
2309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_hdr 1
2317 echo "$ac_t""no" 1>&6
2322 if test $ac_cv_header_pthread_h = yes ; then
2323 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2324 echo "configure:2325: checking POSIX thread version" >&5
2325 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2333 # include <pthread.h>
2334 /* this check could be improved */
2335 # ifdef PTHREAD_ONCE_INIT
2340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2341 egrep "final" >/dev/null 2>&1; then
2343 ol_pthread_final=yes
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2355 # include <pthread.h>
2356 /* this check could be improved */
2357 # ifdef pthread_once_init
2362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2363 egrep "draft4" >/dev/null 2>&1; then
2365 ol_pthread_draft4=yes
2368 ol_pthread_draft4=no
2373 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2374 ol_cv_pthread_version=final
2375 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2376 ol_cv_pthread_version=draft4
2378 ol_cv_pthread_version=unknown
2383 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2386 if test $ol_cv_pthread_version = final ; then
2387 LTHREAD_DEFS="$LTHREAD_DEFS -DPOSIX_THREADS"
2388 elif test $ol_cv_pthread_version = draft4 ; then
2389 cat >> confdefs.h <<\EOF
2390 #define HAVE_PTHREADS_D4 1
2393 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_MIT_PTHREADS"
2395 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2398 # consider threads found
2399 ol_with_threads=found
2402 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2403 echo "configure:2404: checking for LinuxThreads" >&5
2404 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2408 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2409 if test "$res" -gt 0 ; then
2410 ol_cv_linux_threads=yes
2412 ol_cv_linux_threads=no
2417 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2420 if test $ol_cv_linux_threads = yes ; then
2421 cat >> confdefs.h <<\EOF
2422 #define HAVE_LINUX_THREADS 1
2425 LTHREAD_DEFS="$LTHREAD_DEFS -DLINUX_THREADS"
2429 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2430 echo "configure:2431: checking for pthread_create" >&5
2431 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2437 /* System header to define __stub macros and hopefully few prototypes,
2438 which can conflict with char pthread_create(); below. */
2440 /* Override any gcc2 internal prototype to avoid an error. */
2441 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2443 char pthread_create();
2447 /* The GNU C library defines this for functions which it implements
2448 to always fail with ENOSYS. Some functions are actually named
2449 something starting with __ and the normal name is an alias. */
2450 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2460 eval "ac_cv_func_pthread_create=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_func_pthread_create=no"
2470 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2471 echo "$ac_t""yes" 1>&6
2474 echo "$ac_t""no" 1>&6
2478 if test $ol_link_threads = no ; then
2479 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2480 echo "configure:2481: checking for pthread_create with -pthread" >&5
2481 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2486 LIBS="-pthread $LIBS"
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <pthread.h>
2493 pthread_create((pthread_t*) 0,
2494 (pthread_attr_t*) 0, 0, 0);
2498 if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2500 ol_cv_pthread_flag=yes
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2505 ol_cv_pthread_flag=no
2512 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2514 if test $ol_cv_pthread_flag = yes ; then
2515 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2516 ol_link_threads=posix
2520 if test $ol_link_threads = no ; then
2522 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2523 echo "configure:2524: checking for pthread_create in -lpthread" >&5
2524 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 ac_save_LIBS="$LIBS"
2529 LIBS="-lpthread $LIBS"
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536 char pthread_create();
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 eval "ac_cv_lib_$ac_lib_var=no"
2552 LIBS="$ac_save_LIBS"
2555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2558 ol_link_threads=posix
2559 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2561 echo "$ac_t""no" 1>&6
2567 if test $ol_link_threads = no ; then
2569 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2570 echo "configure:2571: checking for pthread_create in -lc_r" >&5
2571 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_save_LIBS="$LIBS"
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 /* Override any gcc2 internal prototype to avoid an error. */
2581 /* We use char because int might match the return type of a gcc2
2582 builtin and then its argument prototype would still apply. */
2583 char pthread_create();
2589 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2591 eval "ac_cv_lib_$ac_lib_var=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 eval "ac_cv_lib_$ac_lib_var=no"
2599 LIBS="$ac_save_LIBS"
2602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2605 ol_link_threads=posix
2606 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2608 echo "$ac_t""no" 1>&6
2614 if test $ol_link_threads = no ; then
2616 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2617 echo "configure:2618: checking for pthread_create in -lpthread" >&5
2618 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 ac_save_LIBS="$LIBS"
2623 LIBS="-lpthread if test $with_preemptive = auto ; then
2624 ol_with_preemptive=yes
2626 -lmach -lexc -lc $LIBS"
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 /* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2633 char pthread_create();
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2641 eval "ac_cv_lib_$ac_lib_var=yes"
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 eval "ac_cv_lib_$ac_lib_var=no"
2649 LIBS="$ac_save_LIBS"
2652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2655 cat >> confdefs.h <<\EOF
2659 ol_link_threads=posix
2660 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_DCE_THREADS"
2661 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2663 echo "$ac_t""no" 1>&6
2669 if test $ol_link_threads != no ; then
2670 cat >> confdefs.h <<\EOF
2671 #define HAVE_PTHREADS 1
2675 save_CPPFLAGS="$CPPFLAGS"
2677 CPPFLAGS="$LTHREAD_DEFS $CPPFLAGS"
2678 LIBS="$LTHREAD_LIBS $LIBS"
2680 for ac_func in sched_yield pthread_yield
2682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_func" >&5
2684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2687 cat > conftest.$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 /* System header to define __stub macros and hopefully few prototypes,
2691 which can conflict with char $ac_func(); below. */
2693 /* Override any gcc2 internal prototype to avoid an error. */
2694 /* We use char because int might match the return type of a gcc2
2695 builtin and then its argument prototype would still apply. */
2700 /* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2711 if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2713 eval "ac_cv_func_$ac_func=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 eval "ac_cv_func_$ac_func=no"
2723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2726 cat >> confdefs.h <<EOF
2727 #define $ac_tr_func 1
2731 echo "$ac_t""no" 1>&6
2736 if test $ac_cv_func_sched_yield = no -a \
2737 $ac_cv_func_pthread_yield = no ; then
2739 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
2740 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
2743 for ac_func in pthread_kill
2745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_func" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $ac_func(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2774 if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2776 eval "ac_cv_func_$ac_func=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2781 eval "ac_cv_func_$ac_func=no"
2786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2789 cat >> confdefs.h <<EOF
2790 #define $ac_tr_func 1
2794 echo "$ac_t""no" 1>&6
2799 if test $ol_with_preemptive = auto ; then
2800 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
2801 echo "configure:2802: checking for preemptive Pthread implementation" >&5
2802 if test "$cross_compiling" = yes; then
2804 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2810 #include <sys/types.h>
2811 #include <sys/time.h>
2813 #include <pthread.h>
2825 select(0, NULL, NULL, NULL, &tv);
2829 select(0, NULL, NULL, NULL, &tv);
2831 exit(1); /* if we exit here, the select blocked the whole process */
2835 int argc; char **argv;
2838 pthread_create(&t, NULL, (void *) task, NULL);
2840 #if HAVE_SCHED_YIELD
2841 sched_yield(); /* make sure task runs first */
2843 #if defined(HAVE_PTHREAD_YIELD)
2844 pthread_yield(); /* make sure task runs first */
2851 if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2853 ol_pthread_preemptive=yes
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2858 ol_pthread_preemptive=no
2863 echo "$ac_t""$ol_pthread_preemptive" 1>&6
2865 if test $ol_pthread_preemptive = yes ; then
2866 cat >> confdefs.h <<\EOF
2867 #define HAVE_PREEMPTIVE_PTHREADS 1
2870 ol_with_preemptive=yes
2874 CPPFLAGS="$save_CPPFLAGS"
2877 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
2881 if test $ol_with_threads = posix ; then
2882 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
2886 if test $ol_with_threads = auto -o $ol_with_threads = cthreads ; then
2887 for ac_hdr in mach/cthreads.h
2889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2891 echo "configure:2892: checking for $ac_hdr" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out`
2903 if test -z "$ac_err"; then
2905 eval "ac_cv_header_$ac_safe=yes"
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 eval "ac_cv_header_$ac_safe=no"
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2918 cat >> confdefs.h <<EOF
2919 #define $ac_tr_hdr 1
2923 echo "$ac_t""no" 1>&6
2927 if test $ac_cv_header_lwp_lwp_h = yes ; then
2928 echo $ac_n "checking for cthread_fork in -llwp""... $ac_c" 1>&6
2929 echo "configure:2930: checking for cthread_fork in -llwp" >&5
2930 ac_lib_var=`echo lwp'_'cthread_fork | sed 'y%./+-%__p_%'`
2931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 ac_save_LIBS="$LIBS"
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2942 char cthread_fork();
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2950 eval "ac_cv_lib_$ac_lib_var=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2955 eval "ac_cv_lib_$ac_lib_var=no"
2958 LIBS="$ac_save_LIBS"
2961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2962 echo "$ac_t""yes" 1>&6
2965 echo "$ac_t""no" 1>&6
2970 if test $have_cthreads = yes ; then
2971 cat >> confdefs.h <<\EOF
2972 #define HAVE_CTHREADS 1
2975 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_NEXT_CTHREADS"
2976 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
2981 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
2982 for ac_hdr in thread.h synch.h
2984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2986 echo "configure:2987: checking for $ac_hdr" >&5
2987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2996 { (eval echo configure:2997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2997 ac_err=`grep -v '^ *+' conftest.out`
2998 if test -z "$ac_err"; then
3000 eval "ac_cv_header_$ac_safe=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_header_$ac_safe=no"
3010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3013 cat >> confdefs.h <<EOF
3014 #define $ac_tr_hdr 1
3018 echo "$ac_t""no" 1>&6
3022 if test $ac_cv_header_lwp_lwp_h = yes ; then
3023 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3024 echo "configure:3025: checking for thr_create in -lthread" >&5
3025 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 ac_save_LIBS="$LIBS"
3030 LIBS="-lthread $LIBS"
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 /* Override any gcc2 internal prototype to avoid an error. */
3035 /* We use char because int might match the return type of a gcc2
3036 builtin and then its argument prototype would still apply. */
3043 if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3045 eval "ac_cv_lib_$ac_lib_var=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 eval "ac_cv_lib_$ac_lib_var=no"
3053 LIBS="$ac_save_LIBS"
3056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3057 echo "$ac_t""yes" 1>&6
3060 echo "$ac_t""no" 1>&6
3065 if test $have_lwp = yes ; then
3066 cat >> confdefs.h <<\EOF
3070 cat >> confdefs.h <<\EOF
3071 #define HAVE_LWP_THR 1
3074 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_SUNOS5_LWP"
3075 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3079 for ac_hdr in lwp/lwp.h
3081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_hdr" >&5
3084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3093 { (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3094 ac_err=`grep -v '^ *+' conftest.out`
3095 if test -z "$ac_err"; then
3097 eval "ac_cv_header_$ac_safe=yes"
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3103 eval "ac_cv_header_$ac_safe=no"
3107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_hdr 1
3115 echo "$ac_t""no" 1>&6
3119 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3120 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3121 echo "configure:3122: checking for lwp_create in -llwp" >&5
3122 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 ac_save_LIBS="$LIBS"
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3142 eval "ac_cv_lib_$ac_lib_var=yes"
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 eval "ac_cv_lib_$ac_lib_var=no"
3150 LIBS="$ac_save_LIBS"
3153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3154 echo "$ac_t""yes" 1>&6
3157 echo "$ac_t""no" 1>&6
3162 if test $have_lwp = yes ; then
3163 cat >> confdefs.h <<\EOF
3167 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_SUNOS4_LWP"
3168 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3170 if test $with_preemptive = auto ; then
3177 if test $ol_with_preemptive = yes ; then
3178 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_PREEMPTIVE"
3181 if test $ol_with_threads = manual ; then
3182 $ol_link_threads=yes
3184 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3186 for ac_hdr in pthread.h sched.h
3188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_hdr" >&5
3191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3200 { (eval echo configure:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3201 ac_err=`grep -v '^ *+' conftest.out`
3202 if test -z "$ac_err"; then
3204 eval "ac_cv_header_$ac_safe=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 eval "ac_cv_header_$ac_safe=no"
3214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3215 echo "$ac_t""yes" 1>&6
3216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3217 cat >> confdefs.h <<EOF
3218 #define $ac_tr_hdr 1
3222 echo "$ac_t""no" 1>&6
3226 for ac_func in sched_yield pthread_yield
3228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3229 echo "configure:3230: checking for $ac_func" >&5
3230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* System header to define __stub macros and hopefully few prototypes,
3237 which can conflict with char $ac_func(); below. */
3239 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3246 /* The GNU C library defines this for functions which it implements
3247 to always fail with ENOSYS. Some functions are actually named
3248 something starting with __ and the normal name is an alias. */
3249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3259 eval "ac_cv_func_$ac_func=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_func_$ac_func=no"
3269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3270 echo "$ac_t""yes" 1>&6
3271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3272 cat >> confdefs.h <<EOF
3273 #define $ac_tr_func 1
3277 echo "$ac_t""no" 1>&6
3282 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3283 echo "configure:3284: checking for LinuxThreads" >&5
3284 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3288 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3289 if test "$res" -gt 0 ; then
3290 ol_cv_linux_threads=yes
3292 ol_cv_linux_threads=no
3297 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3300 for ac_hdr in mach/cthreads.h
3302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3304 echo "configure:3305: checking for $ac_hdr" >&5
3305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3314 { (eval echo configure:3315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3315 ac_err=`grep -v '^ *+' conftest.out`
3316 if test -z "$ac_err"; then
3318 eval "ac_cv_header_$ac_safe=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 eval "ac_cv_header_$ac_safe=no"
3328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3329 echo "$ac_t""yes" 1>&6
3330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3331 cat >> confdefs.h <<EOF
3332 #define $ac_tr_hdr 1
3336 echo "$ac_t""no" 1>&6
3340 for ac_hdr in lwp/lwp.h
3342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_hdr" >&5
3345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3354 { (eval echo configure:3355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3355 ac_err=`grep -v '^ *+' conftest.out`
3356 if test -z "$ac_err"; then
3358 eval "ac_cv_header_$ac_safe=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_header_$ac_safe=no"
3368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3369 echo "$ac_t""yes" 1>&6
3370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3371 cat >> confdefs.h <<EOF
3372 #define $ac_tr_hdr 1
3376 echo "$ac_t""no" 1>&6
3380 for ac_hdr in thread.h synch.h
3382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_hdr" >&5
3385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3394 { (eval echo configure:3395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3395 ac_err=`grep -v '^ *+' conftest.out`
3396 if test -z "$ac_err"; then
3398 eval "ac_cv_header_$ac_safe=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_header_$ac_safe=no"
3408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3409 echo "$ac_t""yes" 1>&6
3410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3411 cat >> confdefs.h <<EOF
3412 #define $ac_tr_hdr 1
3416 echo "$ac_t""no" 1>&6
3422 if test $ol_link_threads = no ; then
3423 if test $ol_with_threads = yes ; then
3424 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
3427 if test $ol_with_threads = auto ; then
3428 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
3429 $ol_with_threads = no
3432 LTHREAD_DEFS="-DNO_THREADS"
3437 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
3438 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
3439 echo "configure:3440: checking for DB2 library" >&5
3440 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3444 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
3445 echo "configure:3446: checking for db_open in -ldb" >&5
3446 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
3447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 ac_save_LIBS="$LIBS"
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3466 eval "ac_cv_lib_$ac_lib_var=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 eval "ac_cv_lib_$ac_lib_var=no"
3474 LIBS="$ac_save_LIBS"
3477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3481 echo "$ac_t""no" 1>&6
3489 echo "$ac_t""$ol_cv_lib_db2" 1>&6
3493 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_hdr" >&5
3496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3505 { (eval echo configure:3506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3506 ac_err=`grep -v '^ *+' conftest.out`
3507 if test -z "$ac_err"; then
3509 eval "ac_cv_header_$ac_safe=yes"
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3515 eval "ac_cv_header_$ac_safe=no"
3519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3522 cat >> confdefs.h <<EOF
3523 #define $ac_tr_hdr 1
3527 echo "$ac_t""no" 1>&6
3531 if test $ac_cv_header_db_h = yes ; then
3532 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
3533 echo "configure:3534: checking if db.h is DB2" >&5
3534 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3543 /* this check could be improved */
3544 # ifdef DB_VERSION_MAJOR
3545 # if DB_VERSION_MAJOR == 2
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 egrep "__db_version_2" >/dev/null 2>&1; then
3554 ol_cv_header_db2=yes
3563 echo "$ac_t""$ol_cv_header_db2" 1>&6
3570 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
3571 echo "configure:3572: checking for Berkeley DB2" >&5
3572 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3576 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
3577 ol_cv_berkeley_db2=no
3579 ol_cv_berkeley_db2=yes
3584 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
3585 if test $ol_cv_berkeley_db2 = yes ; then
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_BERKELEY_DB2 1
3593 if test $ol_cv_berkeley_db2 = yes ; then
3595 ol_with_ldbm_api=db2
3597 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
3599 if test $ol_with_ldbm_type = hash ; then
3600 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
3602 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
3605 if test $ol_cv_lib_db2 != yes ; then
3606 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
3611 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
3612 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
3613 echo "configure:3614: checking for Berkeley DB library" >&5
3614 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3618 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
3619 echo "configure:3620: checking for dbopen" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char dbopen(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_dbopen) || defined (__stub___dbopen)
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3649 eval "ac_cv_func_dbopen=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3654 eval "ac_cv_func_dbopen=no"
3659 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3663 echo "$ac_t""no" 1>&6
3665 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
3666 echo "configure:3667: checking for dbopen in -ldb" >&5
3667 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
3668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 ac_save_LIBS="$LIBS"
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 /* Override any gcc2 internal prototype to avoid an error. */
3677 /* We use char because int might match the return type of a gcc2
3678 builtin and then its argument prototype would still apply. */
3685 if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3687 eval "ac_cv_lib_$ac_lib_var=yes"
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 eval "ac_cv_lib_$ac_lib_var=no"
3695 LIBS="$ac_save_LIBS"
3698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3702 echo "$ac_t""no" 1>&6
3713 echo "$ac_t""$ol_cv_lib_db" 1>&6
3716 for ac_hdr in db_185.h
3718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3720 echo "configure:3721: checking for $ac_hdr" >&5
3721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3730 { (eval echo configure:3731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3731 ac_err=`grep -v '^ *+' conftest.out`
3732 if test -z "$ac_err"; then
3734 eval "ac_cv_header_$ac_safe=yes"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 eval "ac_cv_header_$ac_safe=no"
3744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_hdr 1
3752 echo "$ac_t""no" 1>&6
3756 if test $ol_cv_header_db2 = yes ; then
3758 ol_cv_header_db=$ac_cv_header_db_185_h
3760 ol_cv_header_db=$ac_cv_header_db_h
3765 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
3766 echo "configure:3767: checking for Berkeley DB" >&5
3767 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3771 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
3772 ol_cv_berkeley_db=no
3774 ol_cv_berkeley_db=yes
3779 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
3780 if test $ol_cv_berkeley_db = yes ; then
3781 cat >> confdefs.h <<\EOF
3782 #define HAVE_BERKELEY_DB 1
3788 if test $ol_cv_berkeley_db = yes ; then
3792 if test $ac_cv_header_db_185_h = yes ; then
3793 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
3796 if test $ol_with_ldbm_type = hash ; then
3797 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
3799 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
3802 if test $ol_cv_lib_db != yes ; then
3803 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
3808 if test $ol_with_ldbm_api = manual ; then
3811 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
3813 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
3815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3817 echo "configure:3818: checking for $ac_hdr" >&5
3818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3827 { (eval echo configure:3828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3828 ac_err=`grep -v '^ *+' conftest.out`
3829 if test -z "$ac_err"; then
3831 eval "ac_cv_header_$ac_safe=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 eval "ac_cv_header_$ac_safe=no"
3841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_hdr 1
3849 echo "$ac_t""no" 1>&6
3855 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
3856 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2;
3857 $ol_with_ldbm_api=none
3860 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
3861 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
3862 echo "configure:3863: checking for GDBM library" >&5
3863 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3867 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
3868 echo "configure:3869: checking for gdbm_open" >&5
3869 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* System header to define __stub macros and hopefully few prototypes,
3876 which can conflict with char gdbm_open(); below. */
3878 /* Override any gcc2 internal prototype to avoid an error. */
3879 /* We use char because int might match the return type of a gcc2
3880 builtin and then its argument prototype would still apply. */
3885 /* The GNU C library defines this for functions which it implements
3886 to always fail with ENOSYS. Some functions are actually named
3887 something starting with __ and the normal name is an alias. */
3888 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3898 eval "ac_cv_func_gdbm_open=yes"
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3903 eval "ac_cv_func_gdbm_open=no"
3908 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3912 echo "$ac_t""no" 1>&6
3914 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
3915 echo "configure:3916: checking for gdbm_open in -lgdbm" >&5
3916 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
3917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 ac_save_LIBS="$LIBS"
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 /* Override any gcc2 internal prototype to avoid an error. */
3926 /* We use char because int might match the return type of a gcc2
3927 builtin and then its argument prototype would still apply. */
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3936 eval "ac_cv_lib_$ac_lib_var=yes"
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3941 eval "ac_cv_lib_$ac_lib_var=no"
3944 LIBS="$ac_save_LIBS"
3947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3948 echo "$ac_t""yes" 1>&6
3949 ol_cv_lib_gdbm=-lgdbm
3951 echo "$ac_t""no" 1>&6
3962 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
3965 for ac_hdr in gdbm.h
3967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3969 echo "configure:3970: checking for $ac_hdr" >&5
3970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3979 { (eval echo configure:3980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3980 ac_err=`grep -v '^ *+' conftest.out`
3981 if test -z "$ac_err"; then
3983 eval "ac_cv_header_$ac_safe=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 eval "ac_cv_header_$ac_safe=no"
3993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3996 cat >> confdefs.h <<EOF
3997 #define $ac_tr_hdr 1
4001 echo "$ac_t""no" 1>&6
4005 echo $ac_n "checking for db""... $ac_c" 1>&6
4006 echo "configure:4007: checking for db" >&5
4007 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4011 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4019 echo "$ac_t""$ol_cv_gdbm" 1>&6
4020 if test $ol_cv_gdbm = yes ; then
4021 cat >> confdefs.h <<\EOF
4028 if test $ol_cv_gdbm = yes ; then
4030 ol_with_ldbm_api=gdbm
4032 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_GDBM"
4034 if test $ol_cv_lib_gdbm != yes ; then
4035 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4040 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4041 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4042 echo "configure:4043: checking for NDBM library" >&5
4043 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4047 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4048 echo "configure:4049: checking for dbm_open" >&5
4049 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char dbm_open(); below. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4065 /* The GNU C library defines this for functions which it implements
4066 to always fail with ENOSYS. Some functions are actually named
4067 something starting with __ and the normal name is an alias. */
4068 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4078 eval "ac_cv_func_dbm_open=yes"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 eval "ac_cv_func_dbm_open=no"
4088 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4092 echo "$ac_t""no" 1>&6
4094 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4095 echo "configure:4096: checking for dbm_open in -lndbm" >&5
4096 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 ac_save_LIBS="$LIBS"
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4114 if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4116 eval "ac_cv_lib_$ac_lib_var=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4121 eval "ac_cv_lib_$ac_lib_var=no"
4124 LIBS="$ac_save_LIBS"
4127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ol_cv_lib_ndbm=-lndbm
4131 echo "$ac_t""no" 1>&6
4133 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4134 echo "configure:4135: checking for dbm_open in -ldbm" >&5
4135 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 ac_save_LIBS="$LIBS"
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 eval "ac_cv_lib_$ac_lib_var=no"
4163 LIBS="$ac_save_LIBS"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ol_cv_lib_ndbm=-ldbm
4170 echo "$ac_t""no" 1>&6
4183 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4186 for ac_hdr in ndbm.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4222 echo "$ac_t""no" 1>&6
4226 echo $ac_n "checking for db""... $ac_c" 1>&6
4227 echo "configure:4228: checking for db" >&5
4228 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4232 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
4240 echo "$ac_t""$ol_cv_ndbm" 1>&6
4241 if test $ol_cv_ndbm = yes ; then
4242 cat >> confdefs.h <<\EOF
4249 if test $ol_cv_ndbm = yes ; then
4251 ol_with_ldbm_api=ndbm
4253 if test $ol_with_ldbm_api = ndbm ; then
4254 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
4257 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_NDBM"
4259 if test $ol_cv_lib_ndbm != yes ; then
4260 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
4265 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
4266 echo "configure: warning: could not find suitable LDBM backend" 1>&2
4267 if test $ol_enable_ldbm = yes ; then
4268 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
4271 echo "configure: warning: disabling LDBM" 1>&2
4275 if test $ol_enable_wrappers = yes ; then
4276 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
4277 echo "configure:4278: checking for hosts_access in -lwrap" >&5
4278 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
4279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 ac_save_LIBS="$LIBS"
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 /* Override any gcc2 internal prototype to avoid an error. */
4288 /* We use char because int might match the return type of a gcc2
4289 builtin and then its argument prototype would still apply. */
4290 char hosts_access();
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4298 eval "ac_cv_lib_$ac_lib_var=yes"
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4303 eval "ac_cv_lib_$ac_lib_var=no"
4306 LIBS="$ac_save_LIBS"
4309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4313 echo "$ac_t""no" 1>&6
4318 if test $have_wrappers = yes ; then
4319 SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
4320 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
4322 echo "configure: warning: could not find -lwrap" 1>&2
4323 if test $ol_enable_wrappers = yes ; then
4324 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
4327 echo "configure: warning: disabling wrappers support" 1>&2
4328 ol_enable_wrappers=no
4333 # ud needs termcap (should insert check here)
4336 for ac_hdr in termcap.h ncurses.h
4338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_hdr" >&5
4341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4350 { (eval echo configure:4351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4351 ac_err=`grep -v '^ *+' conftest.out`
4352 if test -z "$ac_err"; then
4354 eval "ac_cv_header_$ac_safe=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_header_$ac_safe=no"
4364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4367 cat >> confdefs.h <<EOF
4368 #define $ac_tr_hdr 1
4372 echo "$ac_t""no" 1>&6
4377 if test $ol_link_termcap = no ; then
4378 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
4379 echo "configure:4380: checking for tputs in -ltermcap" >&5
4380 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS="$LIBS"
4385 LIBS="-ltermcap $LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4415 echo "$ac_t""no" 1>&6
4419 if test $have_termcap = yes ; then
4421 TERMCAP_LIBS=-ltermcap
4425 if test $ol_link_termcap = no ; then
4426 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4427 echo "configure:4428: checking for initscr in -lncurses" >&5
4428 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 ac_save_LIBS="$LIBS"
4433 LIBS="-lncurses $LIBS"
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4463 echo "$ac_t""no" 1>&6
4467 if test $have_ncurses = yes ; then
4469 TERMCAP_LIBS=-lncurses
4473 if test $ol_link_termcap = no ; then
4474 TERMCAP_DEFS="-DNOTERMCAP"
4478 # FreeBSD (and others) have crypt(3) in -lcrypt
4479 if test $ol_enable_crypt != no ; then
4480 echo $ac_n "checking for crypt""... $ac_c" 1>&6
4481 echo "configure:4482: checking for crypt" >&5
4482 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char crypt(); below. */
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4498 /* The GNU C library defines this for functions which it implements
4499 to always fail with ENOSYS. Some functions are actually named
4500 something starting with __ and the normal name is an alias. */
4501 #if defined (__stub_crypt) || defined (__stub___crypt)
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4511 eval "ac_cv_func_crypt=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_func_crypt=no"
4521 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4525 echo "$ac_t""no" 1>&6
4527 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4528 echo "configure:4529: checking for crypt in -lcrypt" >&5
4529 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS="$LIBS"
4534 LIBS="-lcrypt $LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
4565 echo "$ac_t""no" 1>&6
4572 if test $have_crypt = yes ; then
4573 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
4575 echo "configure: warning: could not find crypt" 1>&2
4576 if test $ol_enable_crypt = yes ; then
4577 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
4580 echo "configure: warning: disabling crypt support" 1>&2
4585 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4586 echo "configure:4587: checking for ANSI C header files" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4599 { (eval echo configure:4600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4600 ac_err=`grep -v '^ *+' conftest.out`
4601 if test -z "$ac_err"; then
4603 ac_cv_header_stdc=yes
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4609 ac_cv_header_stdc=no
4613 if test $ac_cv_header_stdc = yes; then
4614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 egrep "memchr" >/dev/null 2>&1; then
4625 ac_cv_header_stdc=no
4631 if test $ac_cv_header_stdc = yes; then
4632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639 egrep "free" >/dev/null 2>&1; then
4643 ac_cv_header_stdc=no
4649 if test $ac_cv_header_stdc = yes; then
4650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4651 if test "$cross_compiling" = yes; then
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4658 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661 int main () { int i; for (i = 0; i < 256; i++)
4662 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 ac_cv_header_stdc=no
4681 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4682 if test $ac_cv_header_stdc = yes; then
4683 cat >> confdefs.h <<\EOF
4684 #define STDC_HEADERS 1
4690 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4693 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_hdr that defines DIR" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 #include <sys/types.h>
4707 if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 eval "ac_cv_header_dirent_$ac_safe=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_header_dirent_$ac_safe=no"
4718 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4721 cat >> confdefs.h <<EOF
4722 #define $ac_tr_hdr 1
4724 ac_header_dirent=$ac_hdr; break
4726 echo "$ac_t""no" 1>&6
4729 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4730 if test $ac_header_dirent = dirent.h; then
4731 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4732 echo "configure:4733: checking for opendir in -ldir" >&5
4733 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 ac_save_LIBS="$LIBS"
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4753 eval "ac_cv_lib_$ac_lib_var=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_lib_$ac_lib_var=no"
4761 LIBS="$ac_save_LIBS"
4764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4768 echo "$ac_t""no" 1>&6
4772 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4773 echo "configure:4774: checking for opendir in -lx" >&5
4774 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 ac_save_LIBS="$LIBS"
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* Override any gcc2 internal prototype to avoid an error. */
4784 /* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4794 eval "ac_cv_lib_$ac_lib_var=yes"
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4799 eval "ac_cv_lib_$ac_lib_var=no"
4802 LIBS="$ac_save_LIBS"
4805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4809 echo "$ac_t""no" 1>&6
4814 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4815 echo "configure:4816: checking for sys/wait.h that is POSIX.1 compatible" >&5
4816 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <sys/types.h>
4823 #include <sys/wait.h>
4825 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4828 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4833 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4836 if { (eval echo configure:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 ac_cv_header_sys_wait_h=yes
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 ac_cv_header_sys_wait_h=no
4848 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4849 if test $ac_cv_header_sys_wait_h = yes; then
4850 cat >> confdefs.h <<\EOF
4851 #define HAVE_SYS_WAIT_H 1
4871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_hdr" >&5
4874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4883 { (eval echo configure:4884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4884 ac_err=`grep -v '^ *+' conftest.out`
4885 if test -z "$ac_err"; then
4887 eval "ac_cv_header_$ac_safe=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4893 eval "ac_cv_header_$ac_safe=no"
4897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4900 cat >> confdefs.h <<EOF
4901 #define $ac_tr_hdr 1
4905 echo "$ac_t""no" 1>&6
4910 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4911 echo "configure:4912: checking for uid_t in sys/types.h" >&5
4912 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 #include <sys/types.h>
4920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921 egrep "uid_t" >/dev/null 2>&1; then
4923 ac_cv_type_uid_t=yes
4932 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4933 if test $ac_cv_type_uid_t = no; then
4934 cat >> confdefs.h <<\EOF
4938 cat >> confdefs.h <<\EOF
4944 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
4945 echo "configure:4946: checking type of array argument to getgroups" >&5
4946 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 if test "$cross_compiling" = yes; then
4950 ac_cv_type_getgroups=cross
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4956 /* Thanks to Mike Rendell for this test. */
4957 #include <sys/types.h>
4960 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4965 union { gid_t gval; long lval; } val;
4968 for (i = 0; i < NGID; i++)
4969 gidset[i] = val.gval;
4970 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4972 /* Exit non-zero if getgroups seems to require an array of ints. This
4973 happens when gid_t is short but getgroups modifies an array of ints. */
4974 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4980 ac_cv_type_getgroups=gid_t
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4985 ac_cv_type_getgroups=int
4990 if test $ac_cv_type_getgroups = cross; then
4991 cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4997 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4999 ac_cv_type_getgroups=gid_t
5002 ac_cv_type_getgroups=int
5009 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5010 cat >> confdefs.h <<EOF
5011 #define GETGROUPS_T $ac_cv_type_getgroups
5015 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5016 echo "configure:5017: checking for mode_t" >&5
5017 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 #include <sys/types.h>
5029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5032 ac_cv_type_mode_t=yes
5035 ac_cv_type_mode_t=no
5040 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5041 if test $ac_cv_type_mode_t = no; then
5042 cat >> confdefs.h <<\EOF
5048 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5049 echo "configure:5050: checking for off_t" >&5
5050 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 #include <sys/types.h>
5062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5063 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5065 ac_cv_type_off_t=yes
5073 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5074 if test $ac_cv_type_off_t = no; then
5075 cat >> confdefs.h <<\EOF
5081 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5082 echo "configure:5083: checking for pid_t" >&5
5083 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 #include <sys/types.h>
5095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5098 ac_cv_type_pid_t=yes
5106 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5107 if test $ac_cv_type_pid_t = no; then
5108 cat >> confdefs.h <<\EOF
5114 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5115 echo "configure:5116: checking return type of signal handlers" >&5
5116 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 #include <sys/types.h>
5128 extern "C" void (*signal (int, void (*)(int)))(int);
5130 void (*signal ()) ();
5137 if { (eval echo configure:5138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5139 ac_cv_type_signal=void
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5144 ac_cv_type_signal=int
5149 echo "$ac_t""$ac_cv_type_signal" 1>&6
5150 cat >> confdefs.h <<EOF
5151 #define RETSIGTYPE $ac_cv_type_signal
5155 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5156 echo "configure:5157: checking for size_t" >&5
5157 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 #include <sys/types.h>
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5172 ac_cv_type_size_t=yes
5175 ac_cv_type_size_t=no
5180 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5181 if test $ac_cv_type_size_t = no; then
5182 cat >> confdefs.h <<\EOF
5183 #define size_t unsigned
5188 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5189 echo "configure:5190: checking for uid_t in sys/types.h" >&5
5190 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 #include <sys/types.h>
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 egrep "uid_t" >/dev/null 2>&1; then
5201 ac_cv_type_uid_t=yes
5210 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5211 if test $ac_cv_type_uid_t = no; then
5212 cat >> confdefs.h <<\EOF
5216 cat >> confdefs.h <<\EOF
5222 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5223 echo "configure:5224: checking for st_blksize in struct stat" >&5
5224 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 #include <sys/types.h>
5231 #include <sys/stat.h>
5233 struct stat s; s.st_blksize;
5236 if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 ac_cv_struct_st_blksize=yes
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 ac_cv_struct_st_blksize=no
5248 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5249 if test $ac_cv_struct_st_blksize = yes; then
5250 cat >> confdefs.h <<\EOF
5251 #define HAVE_ST_BLKSIZE 1
5256 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5257 echo "configure:5258: checking whether time.h and sys/time.h may both be included" >&5
5258 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 #include <sys/types.h>
5265 #include <sys/time.h>
5271 if { (eval echo configure:5272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5273 ac_cv_header_time=yes
5275 echo "configure: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5278 ac_cv_header_time=no
5283 echo "$ac_t""$ac_cv_header_time" 1>&6
5284 if test $ac_cv_header_time = yes; then
5285 cat >> confdefs.h <<\EOF
5286 #define TIME_WITH_SYS_TIME 1
5291 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5292 echo "configure:5293: checking whether struct tm is in sys/time.h or time.h" >&5
5293 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <sys/types.h>
5302 struct tm *tp; tp->tm_sec;
5305 if { (eval echo configure:5306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5307 ac_cv_struct_tm=time.h
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5312 ac_cv_struct_tm=sys/time.h
5317 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5318 if test $ac_cv_struct_tm = sys/time.h; then
5319 cat >> confdefs.h <<\EOF
5320 #define TM_IN_SYS_TIME 1
5326 echo $ac_n "checking for working const""... $ac_c" 1>&6
5327 echo "configure:5328: checking for working const" >&5
5328 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5331 cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure"
5333 #include "confdefs.h"
5337 /* Ultrix mips cc rejects this. */
5338 typedef int charset[2]; const charset x;
5339 /* SunOS 4.1.1 cc rejects this. */
5340 char const *const *ccp;
5342 /* NEC SVR4.0.2 mips cc rejects this. */
5343 struct point {int x, y;};
5344 static struct point const zero = {0,0};
5345 /* AIX XL C 1.02.0.0 rejects this.
5346 It does not let you subtract one const X* pointer from another in an arm
5347 of an if-expression whose if-part is not a constant expression */
5348 const char *g = "string";
5349 ccp = &g + (g ? g-g : 0);
5350 /* HPUX 7.0 cc rejects these. */
5353 ccp = (char const *const *) p;
5354 { /* SCO 3.2v4 cc rejects this. */
5356 char const *s = 0 ? (char *) 0 : (char const *) 0;
5360 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5362 const int *foo = &x[0];
5365 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5366 typedef const int *iptr;
5370 { /* AIX XL C 1.02.0.0 rejects this saying
5371 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5372 struct s { int j; const int *ap[3]; };
5373 struct s *b; b->j = 5;
5375 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5381 if { (eval echo configure:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5393 echo "$ac_t""$ac_cv_c_const" 1>&6
5394 if test $ac_cv_c_const = no; then
5395 cat >> confdefs.h <<\EOF
5402 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
5403 echo "configure:5404: checking for 8-bit clean memcmp" >&5
5404 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 if test "$cross_compiling" = yes; then
5408 ac_cv_func_memcmp_clean=no
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5416 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5417 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5423 ac_cv_func_memcmp_clean=yes
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5428 ac_cv_func_memcmp_clean=no
5435 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5436 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
5438 echo $ac_n "checking for strftime""... $ac_c" 1>&6
5439 echo "configure:5440: checking for strftime" >&5
5440 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5446 /* System header to define __stub macros and hopefully few prototypes,
5447 which can conflict with char strftime(); below. */
5449 /* Override any gcc2 internal prototype to avoid an error. */
5450 /* We use char because int might match the return type of a gcc2
5451 builtin and then its argument prototype would still apply. */
5456 /* The GNU C library defines this for functions which it implements
5457 to always fail with ENOSYS. Some functions are actually named
5458 something starting with __ and the normal name is an alias. */
5459 #if defined (__stub_strftime) || defined (__stub___strftime)
5467 if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5469 eval "ac_cv_func_strftime=yes"
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5474 eval "ac_cv_func_strftime=no"
5479 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 cat >> confdefs.h <<\EOF
5482 #define HAVE_STRFTIME 1
5486 echo "$ac_t""no" 1>&6
5487 # strftime is in -lintl on SCO UNIX.
5488 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
5489 echo "configure:5490: checking for strftime in -lintl" >&5
5490 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
5491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 ac_save_LIBS="$LIBS"
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5498 "configure"
5498 #include "confdefs.h"
5499 /* Override any gcc2 internal prototype to avoid an error. */
5500 /* We use char because int might match the return type of a gcc2
5501 builtin and then its argument prototype would still apply. */
5508 if { (eval echo configure:5509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5510 eval "ac_cv_lib_$ac_lib_var=yes"
5512 echo "configure: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5515 eval "ac_cv_lib_$ac_lib_var=no"
5518 LIBS="$ac_save_LIBS"
5521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 cat >> confdefs.h <<\EOF
5524 #define HAVE_STRFTIME 1
5529 echo "$ac_t""no" 1>&6
5534 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5535 echo "configure:5536: checking for vprintf" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char vprintf(); below. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_vprintf) || defined (__stub___vprintf)
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5565 eval "ac_cv_func_vprintf=yes"
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 eval "ac_cv_func_vprintf=no"
5575 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 cat >> confdefs.h <<\EOF
5578 #define HAVE_VPRINTF 1
5582 echo "$ac_t""no" 1>&6
5585 if test "$ac_cv_func_vprintf" != yes; then
5586 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5587 echo "configure:5588: checking for _doprnt" >&5
5588 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char _doprnt(); below. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5604 /* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5617 eval "ac_cv_func__doprnt=yes"
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 eval "ac_cv_func__doprnt=no"
5627 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5629 cat >> confdefs.h <<\EOF
5630 #define HAVE_DOPRNT 1
5634 echo "$ac_t""no" 1>&6
5639 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
5640 echo "configure:5641: checking for wait3 that fills in rusage" >&5
5641 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 if test "$cross_compiling" = yes; then
5645 ac_cv_func_wait3_rusage=no
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 #include <sys/types.h>
5651 #include <sys/time.h>
5652 #include <sys/resource.h>
5654 /* HP-UX has wait3 but does not fill in rusage at all. */
5658 /* Use a field that we can force nonzero --
5659 voluntary context switches.
5660 For systems like NeXT and OSF/1 that don't set it,
5661 also use the system CPU time. And page faults (I/O) for Linux. */
5663 r.ru_stime.tv_sec = 0;
5664 r.ru_stime.tv_usec = 0;
5665 r.ru_majflt = r.ru_minflt = 0;
5667 case 0: /* Child. */
5668 sleep(1); /* Give up the CPU. */
5670 case -1: _exit(0); /* What can we do? */
5671 default: /* Parent. */
5673 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
5674 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5675 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5681 ac_cv_func_wait3_rusage=yes
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 ac_cv_func_wait3_rusage=no
5693 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
5694 if test $ac_cv_func_wait3_rusage = yes; then
5695 cat >> confdefs.h <<\EOF
5696 #define HAVE_WAIT3 1
5728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5729 echo "configure:5730: checking for $ac_func" >&5
5730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 /* System header to define __stub macros and hopefully few prototypes,
5737 which can conflict with char $ac_func(); below. */
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5746 /* The GNU C library defines this for functions which it implements
5747 to always fail with ENOSYS. Some functions are actually named
5748 something starting with __ and the normal name is an alias. */
5749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5757 if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5759 eval "ac_cv_func_$ac_func=yes"
5761 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5764 eval "ac_cv_func_$ac_func=no"
5769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5770 echo "$ac_t""yes" 1>&6
5771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5772 cat >> confdefs.h <<EOF
5773 #define $ac_tr_func 1
5777 echo "$ac_t""no" 1>&6
5782 for ac_func in strdup
5784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_func" >&5
5786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792 /* System header to define __stub macros and hopefully few prototypes,
5793 which can conflict with char $ac_func(); below. */
5795 /* Override any gcc2 internal prototype to avoid an error. */
5796 /* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5802 /* The GNU C library defines this for functions which it implements
5803 to always fail with ENOSYS. Some functions are actually named
5804 something starting with __ and the normal name is an alias. */
5805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5815 eval "ac_cv_func_$ac_func=yes"
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5820 eval "ac_cv_func_$ac_func=no"
5825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5828 cat >> confdefs.h <<EOF
5829 #define $ac_tr_func 1
5833 echo "$ac_t""no" 1>&6
5834 LIBOBJS="$LIBOBJS ${ac_func}.o"
5840 # Check Configuration
5842 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
5843 echo "configure:5844: checking declaration of sys_errlist" >&5
5844 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5853 #include <sys/types.h>
5856 char *c = (char *) *sys_errlist
5859 if { (eval echo configure:5860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5861 ol_cv_dcl_sys_errlist=yes
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 ol_cv_dcl_sys_errlist=no
5871 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
5873 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
5874 if test $ol_cv_dcl_sys_errlist = no ; then
5875 cat >> confdefs.h <<\EOF
5876 #define DECL_SYS_ERRLIST 1
5879 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
5880 echo "configure:5881: checking existence of sys_errlist" >&5
5881 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5890 char *c = (char *) *sys_errlist
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5895 ol_cv_have_sys_errlist=yes
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5900 ol_cv_have_sys_errlist=no
5905 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
5910 if test $ol_enable_debug != no ; then
5911 LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
5913 if test $ol_enable_libui = yes ; then
5914 LDAP_DEFS="$LDAP_DEFS -DLDAP_LIBUI"
5916 if test $ol_enable_cache = no ; then
5917 LDAP_DEFS="$LDAP_DEFS -DNO_CACHE"
5919 if test $ol_enable_dns != no ; then
5920 LDAP_DEFS="$LDAP_DEFS -DLDAP_DNS"
5922 if test $ol_enable_referrals != no ; then
5923 LDAP_DEFS="$LDAP_DEFS -DLDAP_REFERRALS"
5925 if test $ol_enable_cldap != no ; then
5926 LDAP_DEFS="$LDAP_DEFS -DCLDAP"
5929 if test $ol_enable_aclgroup != no ; then
5930 cat >> confdefs.h <<\EOF
5931 #define SLAPD_ACLGROUP 1
5934 SLAPD_DEFS="$SLAPD_DEFS -DACLGROUP"
5937 if test $ol_enable_md5 != no ; then
5938 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
5941 if test $ol_enable_sha1 != no ; then
5942 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
5945 if test $ol_enable_phonetic != no ; then
5946 cat >> confdefs.h <<\EOF
5947 #define SLAPD_PHONETIC 1
5950 SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
5953 if test $ol_enable_rlookups != no ; then
5954 cat >> confdefs.h <<\EOF
5955 #define SLAPD_RLOOKUPS 1
5958 SLAPD_DEFS="$SLAPD_DEFS -DREVERSE_LOOKUPS"
5961 if test $ol_link_ldbm != no ; then
5964 LDBM_DEFS="-DLDAP_LDBM $LDBM_DEFS"
5967 if test $ol_enable_passwd != no ; then
5970 SLAPD_DEFS="-DLDAP_PASSWD $SLAPD_DEFS"
5973 if test $ol_enable_shell != no ; then
5976 SLAPD_DEFS="-DLDAP_SHELL $SLAPD_DEFS"
5979 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
5980 $BUILD_SLAPD = yes ; then
6016 cat > confcache <<\EOF
6017 # This file is a shell script that caches the results of configure
6018 # tests run on this system so they can be shared between configure
6019 # scripts and configure runs. It is not useful on other systems.
6020 # If it contains results you don't want to keep, you may remove or edit it.
6022 # By default, configure uses ./config.cache as the cache file,
6023 # creating it if it does not exist already. You can give configure
6024 # the --cache-file=FILE option to use a different cache file; that is
6025 # what configure does when it calls configure scripts in
6026 # subdirectories, so they share the cache.
6027 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6028 # config.status only pays attention to the cache file if you give it the
6029 # --recheck option to rerun configure.
6032 # The following way of writing the cache mishandles newlines in values,
6033 # but we know of no workaround that is simple, portable, and efficient.
6034 # So, don't put newlines in cache variables' values.
6035 # Ultrix sh set writes to stderr and can't be redirected directly,
6036 # and sets the high bit in the cache file unless we assign to the vars.
6038 case `(ac_space=' '; set) 2>&1` in
6040 # `set' does not quote correctly, so add quotes (double-quote substitution
6041 # turns \\\\ into \\, and sed turns \\ into \).
6043 -e "s/'/'\\\\''/g" \
6044 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6047 # `set' quotes correctly as required by POSIX, so do not add quotes.
6048 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6051 if cmp -s $cache_file confcache; then
6054 if test -w $cache_file; then
6055 echo "updating cache $cache_file"
6056 cat confcache > $cache_file
6058 echo "not updating unwritable cache $cache_file"
6063 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6066 # Let make expand exec_prefix.
6067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6069 # Any assignment to VPATH causes Sun make to only execute
6070 # the first set of double-colon rules, so remove it if not needed.
6071 # If there is a colon in the path, we need to keep it.
6072 if test "x$srcdir" = x.; then
6073 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6076 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6078 DEFS=-DHAVE_CONFIG_H
6080 # Without the "./", some shells look in PATH for config.status.
6081 : ${CONFIG_STATUS=./config.status}
6083 echo creating $CONFIG_STATUS
6084 rm -f $CONFIG_STATUS
6085 cat > $CONFIG_STATUS <<EOF
6087 # Generated automatically by configure.
6088 # Run this file to recreate the current configuration.
6089 # This directory was configured as follows,
6090 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6092 # $0 $ac_configure_args
6094 # Compiler output produced by configure, useful for debugging
6095 # configure, is in ./config.log if it exists.
6097 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6100 case "\$ac_option" in
6101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6102 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6103 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6104 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6105 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6107 -help | --help | --hel | --he | --h)
6108 echo "\$ac_cs_usage"; exit 0 ;;
6109 *) echo "\$ac_cs_usage"; exit 1 ;;
6113 ac_given_srcdir=$srcdir
6114 ac_given_INSTALL="$INSTALL"
6116 trap 'rm -fr `echo "\
6117 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6118 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6119 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6120 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6121 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6122 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6123 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6124 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6125 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6126 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6127 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6128 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6129 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6130 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6131 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6132 include/Makefile:build/top.mk:include/Makefile.in \
6133 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6134 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6135 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6136 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6137 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6138 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6139 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6140 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6141 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6142 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6143 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6144 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6145 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6146 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6147 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6148 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6149 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6150 tests/Makefile:build/top.mk:tests/Makefile.in \
6151 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6153 cat >> $CONFIG_STATUS <<EOF
6155 # Protect against being on the right side of a sed subst in config.status.
6156 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6157 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6160 s%@CFLAGS@%$CFLAGS%g
6161 s%@CPPFLAGS@%$CPPFLAGS%g
6162 s%@CXXFLAGS@%$CXXFLAGS%g
6164 s%@LDFLAGS@%$LDFLAGS%g
6166 s%@exec_prefix@%$exec_prefix%g
6167 s%@prefix@%$prefix%g
6168 s%@program_transform_name@%$program_transform_name%g
6169 s%@bindir@%$bindir%g
6170 s%@sbindir@%$sbindir%g
6171 s%@libexecdir@%$libexecdir%g
6172 s%@datadir@%$datadir%g
6173 s%@sysconfdir@%$sysconfdir%g
6174 s%@sharedstatedir@%$sharedstatedir%g
6175 s%@localstatedir@%$localstatedir%g
6176 s%@libdir@%$libdir%g
6177 s%@includedir@%$includedir%g
6178 s%@oldincludedir@%$oldincludedir%g
6179 s%@infodir@%$infodir%g
6180 s%@mandir@%$mandir%g
6184 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6185 s%@INSTALL_DATA@%$INSTALL_DATA%g
6186 s%@RANLIB@%$RANLIB%g
6187 s%@SET_MAKE@%$SET_MAKE%g
6188 s%@SENDMAIL@%$SENDMAIL%g
6189 s%@EDITOR@%$EDITOR%g
6190 s%@FINGER@%$FINGER%g
6191 s%@LIBOBJS@%$LIBOBJS%g
6192 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
6193 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
6194 s%@BUILD_LDBM@%$BUILD_LDBM%g
6195 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
6196 s%@BUILD_SHELL@%$BUILD_SHELL%g
6197 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
6198 s%@LDAP_DEFS@%$LDAP_DEFS%g
6199 s%@LDAP_LIBS@%$LDAP_LIBS%g
6200 s%@LDAPD_DEFS@%$LDAPD_DEFS%g
6201 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
6202 s%@SLAPD_DEFS@%$SLAPD_DEFS%g
6203 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
6204 s%@SLURPD_DEFS@%$SLURPD_DEFS%g
6205 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
6206 s%@LDBM_DEFS@%$LDBM_DEFS%g
6207 s%@LDBM_LIBS@%$LDBM_LIBS%g
6208 s%@LTHREAD_DEFS@%$LTHREAD_DEFS%g
6209 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
6210 s%@LUTIL_DEFS@%$LUTIL_DEFS%g
6211 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
6212 s%@KRB_DEFS@%$KRB_DEFS%g
6213 s%@KRB_LIBS@%$KRB_LIBS%g
6214 s%@TERMCAP_DEFS@%$TERMCAP_DEFS%g
6215 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
6220 cat >> $CONFIG_STATUS <<\EOF
6222 # Split the substitutions into bite-sized pieces for seds with
6223 # small command number limits, like on Digital OSF/1 and HP-UX.
6224 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6225 ac_file=1 # Number of current file.
6226 ac_beg=1 # First line for current file.
6227 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6230 while $ac_more_lines; do
6231 if test $ac_beg -gt 1; then
6232 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6234 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6236 if test ! -s conftest.s$ac_file; then
6238 rm -f conftest.s$ac_file
6240 if test -z "$ac_sed_cmds"; then
6241 ac_sed_cmds="sed -f conftest.s$ac_file"
6243 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6245 ac_file=`expr $ac_file + 1`
6247 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6250 if test -z "$ac_sed_cmds"; then
6255 cat >> $CONFIG_STATUS <<EOF
6257 CONFIG_FILES=\${CONFIG_FILES-"\
6258 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6259 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6260 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6261 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6262 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6263 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6264 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6265 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6266 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6267 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6268 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6269 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6270 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6271 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6272 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6273 include/Makefile:build/top.mk:include/Makefile.in \
6274 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6275 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6276 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6277 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6278 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6279 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6280 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6281 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6282 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6283 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6284 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6285 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6286 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6287 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6288 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6289 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6290 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6291 tests/Makefile:build/top.mk:tests/Makefile.in \
6294 cat >> $CONFIG_STATUS <<\EOF
6295 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6298 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6299 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6300 *) ac_file_in="${ac_file}.in" ;;
6303 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6305 # Remove last slash and all that follows it. Not all systems have dirname.
6306 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6307 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6308 # The file is in a subdirectory.
6309 test ! -d "$ac_dir" && mkdir "$ac_dir"
6310 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6311 # A "../" for each directory in $ac_dir_suffix.
6312 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6314 ac_dir_suffix= ac_dots=
6317 case "$ac_given_srcdir" in
6319 if test -z "$ac_dots"; then top_srcdir=.
6320 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6321 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6323 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6324 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6327 case "$ac_given_INSTALL" in
6328 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6329 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6332 echo creating "$ac_file"
6334 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6336 *Makefile*) ac_comsub="1i\\
6337 # $configure_input" ;;
6341 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6343 s%@configure_input@%$configure_input%g
6344 s%@srcdir@%$srcdir%g
6345 s%@top_srcdir@%$top_srcdir%g
6346 s%@INSTALL@%$INSTALL%g
6347 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6351 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6352 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6354 # ac_d sets the value in "#define NAME VALUE" lines.
6355 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6356 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6359 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6360 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6361 ac_uB='\([ ]\)%\1#\2define\3'
6364 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6365 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6366 ac_eB='$%\1#\2define\3'
6370 if test "${CONFIG_HEADERS+set}" != set; then
6372 cat >> $CONFIG_STATUS <<EOF
6373 CONFIG_HEADERS="include/portable.h"
6375 cat >> $CONFIG_STATUS <<\EOF
6377 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6378 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6380 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6381 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6382 *) ac_file_in="${ac_file}.in" ;;
6385 echo creating $ac_file
6387 rm -f conftest.frag conftest.in conftest.out
6388 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6389 cat $ac_file_inputs > conftest.in
6393 # Transform confdefs.h into a sed script conftest.vals that substitutes
6394 # the proper values into config.h.in to produce config.h. And first:
6395 # Protect against being on the right side of a sed subst in config.status.
6396 # Protect against being in an unquoted here document in config.status.
6398 cat > conftest.hdr <<\EOF
6401 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6405 sed -n -f conftest.hdr confdefs.h > conftest.vals
6408 # This sed command replaces #undef with comments. This is necessary, for
6409 # example, in the case of _POSIX_SOURCE, which is predefined and required
6410 # on some systems where configure will not decide to define it.
6411 cat >> conftest.vals <<\EOF
6412 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6415 # Break up conftest.vals because some shells have a limit on
6416 # the size of here documents, and old seds have small limits too.
6421 ac_lines=`grep -c . conftest.vals`
6422 # grep -c gives empty output for an empty file on some AIX systems.
6423 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6424 # Write a limited-size here document to conftest.frag.
6425 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6426 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6428 sed -f conftest.frag conftest.in > conftest.out
6430 mv conftest.out conftest.in
6432 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6434 mv conftest.tail conftest.vals
6438 cat >> $CONFIG_STATUS <<\EOF
6439 rm -f conftest.frag conftest.h
6440 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6441 cat conftest.in >> conftest.h
6443 if cmp -s $ac_file conftest.h 2>/dev/null; then
6444 echo "$ac_file is unchanged"
6447 # Remove last slash and all that follows it. Not all systems have dirname.
6448 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6449 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6450 # The file is in a subdirectory.
6451 test ! -d "$ac_dir" && mkdir "$ac_dir"
6454 mv conftest.h $ac_file
6459 cat >> $CONFIG_STATUS <<EOF
6462 cat >> $CONFIG_STATUS <<\EOF
6466 chmod +x $CONFIG_STATUS
6467 rm -fr confdefs* $ac_clean_files
6468 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1