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 (auto)"
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 --enable-ldapd enable building ldapd (no)"
34 --enable-slapd enable building slapd (yes)"
36 --enable-aclgroup enable ACL group support (auto)"
38 --enable-crypt enable crypt(3) passwords (auto)"
40 --enable-md5 enable MD5 passwords (auto)"
42 --enable-sha1 enable SHA1 passwords (auto)"
44 --enable-wrappers enable tcp wrapper support (no)"
46 --enable-phonetic enable phonetic/soundex (no)"
48 --enable-rlookups enable reverse lookups (auto)"
50 --enable-ldbm enable ldbm backend (yes)"
52 --with-ldbm-api use LDBM API (auto)"
54 --with-ldbm-type use LDBM type (auto)"
56 --enable-passwd enable passwd backend (no)"
58 --enable-shell enable shell backend (no)"
60 --enable-slurpd enable building slurpd (auto)"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file=./config.cache
75 program_transform_name=s,x,x,
83 bindir='${exec_prefix}/bin'
84 sbindir='${exec_prefix}/sbin'
85 libexecdir='${exec_prefix}/libexec'
86 datadir='${prefix}/share'
87 sysconfdir='${prefix}/etc'
88 sharedstatedir='${prefix}/com'
89 localstatedir='${prefix}/var'
90 libdir='${exec_prefix}/lib'
91 includedir='${prefix}/include'
92 oldincludedir='/usr/include'
93 infodir='${prefix}/info'
94 mandir='${prefix}/man'
96 # Initialize some other variables.
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host | --host | --hos | --ho)
237 -host=* | --host=* | --hos=* | --ho=*)
240 -includedir | --includedir | --includedi | --included | --include \
241 | --includ | --inclu | --incl | --inc)
242 ac_prev=includedir ;;
243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244 | --includ=* | --inclu=* | --incl=* | --inc=*)
245 includedir="$ac_optarg" ;;
247 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250 infodir="$ac_optarg" ;;
252 -libdir | --libdir | --libdi | --libd)
254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
255 libdir="$ac_optarg" ;;
257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258 | --libexe | --libex | --libe)
259 ac_prev=libexecdir ;;
260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261 | --libexe=* | --libex=* | --libe=*)
262 libexecdir="$ac_optarg" ;;
264 -localstatedir | --localstatedir | --localstatedi | --localstated \
265 | --localstate | --localstat | --localsta | --localst \
266 | --locals | --local | --loca | --loc | --lo)
267 ac_prev=localstatedir ;;
268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271 localstatedir="$ac_optarg" ;;
273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276 mandir="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292 | --oldin | --oldi | --old | --ol | --o)
293 ac_prev=oldincludedir ;;
294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297 oldincludedir="$ac_optarg" ;;
299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302 prefix="$ac_optarg" ;;
304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
305 | --program-pre | --program-pr | --program-p)
306 ac_prev=program_prefix ;;
307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309 program_prefix="$ac_optarg" ;;
311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
312 | --program-suf | --program-su | --program-s)
313 ac_prev=program_suffix ;;
314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316 program_suffix="$ac_optarg" ;;
318 -program-transform-name | --program-transform-name \
319 | --program-transform-nam | --program-transform-na \
320 | --program-transform-n | --program-transform- \
321 | --program-transform | --program-transfor \
322 | --program-transfo | --program-transf \
323 | --program-trans | --program-tran \
324 | --progr-tra | --program-tr | --program-t)
325 ac_prev=program_transform_name ;;
326 -program-transform-name=* | --program-transform-name=* \
327 | --program-transform-nam=* | --program-transform-na=* \
328 | --program-transform-n=* | --program-transform-=* \
329 | --program-transform=* | --program-transfor=* \
330 | --program-transfo=* | --program-transf=* \
331 | --program-trans=* | --program-tran=* \
332 | --progr-tra=* | --program-tr=* | --program-t=*)
333 program_transform_name="$ac_optarg" ;;
335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336 | -silent | --silent | --silen | --sile | --sil)
339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 sbindir="$ac_optarg" ;;
345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347 | --sharedst | --shareds | --shared | --share | --shar \
349 ac_prev=sharedstatedir ;;
350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 sharedstatedir="$ac_optarg" ;;
356 -site | --site | --sit)
358 -site=* | --site=* | --sit=*)
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
373 -target | --target | --targe | --targ | --tar | --ta | --t)
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 -version | --version | --versio | --versi | --vers)
382 echo "configure generated by autoconf version 2.12"
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file=include/ldap.h
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE; then
528 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CPP $CPPFLAGS'
551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='\c' ac_t=
569 for ac_dir in build $srcdir/build; do
570 if test -f $ac_dir/install-sh; then
572 ac_install_sh="$ac_aux_dir/install-sh -c"
574 elif test -f $ac_dir/install.sh; then
576 ac_install_sh="$ac_aux_dir/install.sh -c"
580 if test -z "$ac_aux_dir"; then
581 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
583 ac_config_guess=$ac_aux_dir/config.guess
584 ac_config_sub=$ac_aux_dir/config.sub
585 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
587 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
588 echo "configure:589: checking configure arguments" >&5
591 # OpenLDAP --enable-debug
592 # Check whether --enable-debug or --disable-debug was given.
593 if test "${enable_debug+set}" = set; then
594 enableval="$enable_debug"
597 for ol_val in auto yes no ; do
598 if test "$enableval" = "$ol_val" ; then
602 if test "$ol_arg" = "invalid" ; then
603 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
605 ol_enable_debug="$ol_arg"
608 ol_enable_debug="yes"
611 #OL_ARG_ENABLE(syslog,[ --enable-syslog enable syslog support], auto)dnl
612 # OpenLDAP --enable-libui
613 # Check whether --enable-libui or --disable-libui was given.
614 if test "${enable_libui+set}" = set; then
615 enableval="$enable_libui"
618 for ol_val in auto yes no ; do
619 if test "$enableval" = "$ol_val" ; then
623 if test "$ol_arg" = "invalid" ; then
624 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
626 ol_enable_libui="$ol_arg"
629 ol_enable_libui="yes"
632 # OpenLDAP --enable-cache
633 # Check whether --enable-cache or --disable-cache was given.
634 if test "${enable_cache+set}" = set; then
635 enableval="$enable_cache"
638 for ol_val in auto yes no ; do
639 if test "$enableval" = "$ol_val" ; then
643 if test "$ol_arg" = "invalid" ; then
644 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
646 ol_enable_cache="$ol_arg"
649 ol_enable_cache="yes"
652 # OpenLDAP --enable-dns
653 # Check whether --enable-dns or --disable-dns was given.
654 if test "${enable_dns+set}" = set; then
655 enableval="$enable_dns"
658 for ol_val in auto yes no ; do
659 if test "$enableval" = "$ol_val" ; then
663 if test "$ol_arg" = "invalid" ; then
664 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
666 ol_enable_dns="$ol_arg"
672 # OpenLDAP --enable-referrals
673 # Check whether --enable-referrals or --disable-referrals was given.
674 if test "${enable_referrals+set}" = set; then
675 enableval="$enable_referrals"
678 for ol_val in auto yes no ; do
679 if test "$enableval" = "$ol_val" ; then
683 if test "$ol_arg" = "invalid" ; then
684 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
686 ol_enable_referrals="$ol_arg"
689 ol_enable_referrals="yes"
691 # end --enable-referrals
692 # OpenLDAP --enable-cldap
693 # Check whether --enable-cldap or --disable-cldap was given.
694 if test "${enable_cldap+set}" = set; then
695 enableval="$enable_cldap"
698 for ol_val in auto yes no ; do
699 if test "$enableval" = "$ol_val" ; then
703 if test "$ol_arg" = "invalid" ; then
704 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
706 ol_enable_cldap="$ol_arg"
713 # OpenLDAP --with-kerberos
714 # Check whether --with-kerberos or --without-kerberos was given.
715 if test "${with_kerberos+set}" = set; then
716 withval="$with_kerberos"
719 for ol_val in auto k5 k4 afs yes no ; do
720 if test "$withval" = "$ol_val" ; then
724 if test "$ol_arg" = "invalid" ; then
725 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
727 ol_with_kerberos="$ol_arg"
730 ol_with_kerberos="auto"
732 # end --with-kerberos
734 # OpenLDAP --with-threads
735 # Check whether --with-threads or --without-threads was given.
736 if test "${with_threads+set}" = set; then
737 withval="$with_threads"
740 for ol_val in auto posix dce mach yes no ; do
741 if test "$withval" = "$ol_val" ; then
745 if test "$ol_arg" = "invalid" ; then
746 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
748 ol_with_threads="$ol_arg"
751 ol_with_threads="auto"
757 # OpenLDAP --enable-ldapd
758 # Check whether --enable-ldapd or --disable-ldapd was given.
759 if test "${enable_ldapd+set}" = set; then
760 enableval="$enable_ldapd"
763 for ol_val in auto yes no ; do
764 if test "$enableval" = "$ol_val" ; then
768 if test "$ol_arg" = "invalid" ; then
769 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
771 ol_enable_ldapd="$ol_arg"
778 # OpenLDAP --enable-slapd
779 # Check whether --enable-slapd or --disable-slapd was given.
780 if test "${enable_slapd+set}" = set; then
781 enableval="$enable_slapd"
784 for ol_val in auto yes no ; do
785 if test "$enableval" = "$ol_val" ; then
789 if test "$ol_arg" = "invalid" ; then
790 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
792 ol_enable_slapd="$ol_arg"
795 ol_enable_slapd="yes"
798 # OpenLDAP --enable-aclgroup
799 # Check whether --enable-aclgroup or --disable-aclgroup was given.
800 if test "${enable_aclgroup+set}" = set; then
801 enableval="$enable_aclgroup"
804 for ol_val in auto yes no ; do
805 if test "$enableval" = "$ol_val" ; then
809 if test "$ol_arg" = "invalid" ; then
810 { echo "configure: error: bad value $enableval for --enable-aclgroup" 1>&2; exit 1; }
812 ol_enable_aclgroup="$ol_arg"
815 ol_enable_aclgroup="auto"
817 # end --enable-aclgroup
818 # OpenLDAP --enable-crypt
819 # Check whether --enable-crypt or --disable-crypt was given.
820 if test "${enable_crypt+set}" = set; then
821 enableval="$enable_crypt"
824 for ol_val in auto yes no ; do
825 if test "$enableval" = "$ol_val" ; then
829 if test "$ol_arg" = "invalid" ; then
830 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
832 ol_enable_crypt="$ol_arg"
835 ol_enable_crypt="auto"
838 # OpenLDAP --enable-md5
839 # Check whether --enable-md5 or --disable-md5 was given.
840 if test "${enable_md5+set}" = set; then
841 enableval="$enable_md5"
844 for ol_val in auto yes no ; do
845 if test "$enableval" = "$ol_val" ; then
849 if test "$ol_arg" = "invalid" ; then
850 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
852 ol_enable_md5="$ol_arg"
858 # OpenLDAP --enable-sha1
859 # Check whether --enable-sha1 or --disable-sha1 was given.
860 if test "${enable_sha1+set}" = set; then
861 enableval="$enable_sha1"
864 for ol_val in auto yes no ; do
865 if test "$enableval" = "$ol_val" ; then
869 if test "$ol_arg" = "invalid" ; then
870 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
872 ol_enable_sha1="$ol_arg"
875 ol_enable_sha1="auto"
878 # OpenLDAP --enable-wrappers
879 # Check whether --enable-wrappers or --disable-wrappers was given.
880 if test "${enable_wrappers+set}" = set; then
881 enableval="$enable_wrappers"
884 for ol_val in auto yes no ; do
885 if test "$enableval" = "$ol_val" ; then
889 if test "$ol_arg" = "invalid" ; then
890 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
892 ol_enable_wrappers="$ol_arg"
895 ol_enable_wrappers="no"
897 # end --enable-wrappers
898 # OpenLDAP --enable-phonetic
899 # Check whether --enable-phonetic or --disable-phonetic was given.
900 if test "${enable_phonetic+set}" = set; then
901 enableval="$enable_phonetic"
904 for ol_val in auto yes no ; do
905 if test "$enableval" = "$ol_val" ; then
909 if test "$ol_arg" = "invalid" ; then
910 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
912 ol_enable_phonetic="$ol_arg"
915 ol_enable_phonetic="no"
917 # end --enable-phonetic
918 # OpenLDAP --enable-rlookups
919 # Check whether --enable-rlookups or --disable-rlookups was given.
920 if test "${enable_rlookups+set}" = set; then
921 enableval="$enable_rlookups"
924 for ol_val in auto yes no ; do
925 if test "$enableval" = "$ol_val" ; then
929 if test "$ol_arg" = "invalid" ; then
930 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
932 ol_enable_rlookups="$ol_arg"
935 ol_enable_rlookups="auto"
937 # end --enable-rlookups
939 # OpenLDAP --enable-ldbm
940 # Check whether --enable-ldbm or --disable-ldbm was given.
941 if test "${enable_ldbm+set}" = set; then
942 enableval="$enable_ldbm"
945 for ol_val in auto yes no ; do
946 if test "$enableval" = "$ol_val" ; then
950 if test "$ol_arg" = "invalid" ; then
951 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
953 ol_enable_ldbm="$ol_arg"
959 # OpenLDAP --with-ldbm_api
960 # Check whether --with-ldbm_api or --without-ldbm_api was given.
961 if test "${with_ldbm_api+set}" = set; then
962 withval="$with_ldbm_api"
965 for ol_val in auto db2 db gdbm ndbm ; do
966 if test "$withval" = "$ol_val" ; then
970 if test "$ol_arg" = "invalid" ; then
971 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
973 ol_with_ldbm_api="$ol_arg"
976 ol_with_ldbm_api="auto"
978 # end --with-ldbm_api
980 # OpenLDAP --with-ldbm_type
981 # Check whether --with-ldbm_type or --without-ldbm_type was given.
982 if test "${with_ldbm_type+set}" = set; then
983 withval="$with_ldbm_type"
986 for ol_val in auto btree hash ; do
987 if test "$withval" = "$ol_val" ; then
991 if test "$ol_arg" = "invalid" ; then
992 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
994 ol_with_ldbm_type="$ol_arg"
997 ol_with_ldbm_type="auto"
999 # end --with-ldbm_type
1002 # OpenLDAP --enable-passwd
1003 # Check whether --enable-passwd or --disable-passwd was given.
1004 if test "${enable_passwd+set}" = set; then
1005 enableval="$enable_passwd"
1008 for ol_val in auto yes no ; do
1009 if test "$enableval" = "$ol_val" ; then
1013 if test "$ol_arg" = "invalid" ; then
1014 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1016 ol_enable_passwd="$ol_arg"
1019 ol_enable_passwd="no"
1021 # end --enable-passwd
1022 # OpenLDAP --enable-shell
1023 # Check whether --enable-shell or --disable-shell was given.
1024 if test "${enable_shell+set}" = set; then
1025 enableval="$enable_shell"
1028 for ol_val in auto yes no ; do
1029 if test "$enableval" = "$ol_val" ; then
1033 if test "$ol_arg" = "invalid" ; then
1034 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1036 ol_enable_shell="$ol_arg"
1039 ol_enable_shell="no"
1041 # end --enable-shell
1043 # OpenLDAP --enable-slurpd
1044 # Check whether --enable-slurpd or --disable-slurpd was given.
1045 if test "${enable_slurpd+set}" = set; then
1046 enableval="$enable_slurpd"
1049 for ol_val in auto yes no ; do
1050 if test "$enableval" = "$ol_val" ; then
1054 if test "$ol_arg" = "invalid" ; then
1055 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1057 ol_enable_slurpd="$ol_arg"
1060 ol_enable_slurpd="auto"
1062 # end --enable-slurpd
1064 if test $ol_enable_slapd = no ; then
1065 if test $ol_enable_ldbm = yes ; then
1066 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2;
1068 if test $ol_enable_passwd = yes ; then
1069 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2;
1071 if test $ol_enable_shell = yes ; then
1072 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2;
1074 if test $ol_enable_aclgroup = yes ; then
1075 echo "configure: warning: slapd disabled, ignoring --enable_aclgroup argument" 1>&2;
1077 if test $ol_enable_crypt = yes ; then
1078 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2;
1080 if test $ol_enable_md5 = yes ; then
1081 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2;
1083 if test $ol_enable_sha1 = yes ; then
1084 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2;
1086 if test $ol_enable_wrappers = yes ; then
1087 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2;
1089 if test $ol_enable_phonetic = yes ; then
1090 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2;
1092 if test $ol_enable_rlookups = yes ; then
1093 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2;
1095 if test $ol_with_ldbm_api != auto ; then
1096 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2;
1098 if test $ol_with_ldbm_type != auto ; then
1099 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2;
1101 if test $ol_enable_slurpd = yes ; then
1102 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; };
1105 # force settings to no
1109 ol_enable_aclgroup=no
1113 ol_enable_wrappers=no
1114 ol_enable_phonetic=no
1115 ol_enable_rlookups=no
1117 ol_with_ldbm_type=no
1120 elif test $ol_enable_ldbm = no ; then
1122 if test $ol_with_ldbm_api != auto ; then
1123 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2;
1126 if test $ol_with_ldbm_type != auto ; then
1127 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2;
1130 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1131 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; };
1135 ol_with_ldbm_type=no
1139 if test $ol_with_ldbm_api = gdbm -a \
1140 $ol_with_ldbm_type = btree ; then
1141 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; };
1143 if test $ol_with_ldbm_api = ndbm -a \
1144 $ol_with_ldbm_type = btree ; then
1145 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; };
1149 if test $ol_enable_slurpd = yes ; then
1150 if test $ol_with_threads = no ; then
1151 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; };
1155 echo "$ac_t""done" 1>&6
1183 # Extract the first word of "gcc", so it can be a program name with args.
1184 set dummy gcc; ac_word=$2
1185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186 echo "configure:1187: checking for $ac_word" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 if test -n "$CC"; then
1191 ac_cv_prog_CC="$CC" # Let the user override the test.
1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1194 for ac_dir in $PATH; do
1195 test -z "$ac_dir" && ac_dir=.
1196 if test -f $ac_dir/$ac_word; then
1205 if test -n "$CC"; then
1206 echo "$ac_t""$CC" 1>&6
1208 echo "$ac_t""no" 1>&6
1211 if test -z "$CC"; then
1212 # Extract the first word of "cc", so it can be a program name with args.
1213 set dummy cc; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$CC"; then
1220 ac_cv_prog_CC="$CC" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1224 for ac_dir in $PATH; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1228 ac_prog_rejected=yes
1236 if test $ac_prog_rejected = yes; then
1237 # We found a bogon in the path, so make sure we never use it.
1238 set dummy $ac_cv_prog_CC
1240 if test $# -gt 0; then
1241 # We chose a different compiler from the bogus one.
1242 # However, it has the same basename, so the bogon will be chosen
1243 # first if we set CC to just the basename; use the full file name.
1245 set dummy "$ac_dir/$ac_word" "$@"
1253 if test -n "$CC"; then
1254 echo "$ac_t""$CC" 1>&6
1256 echo "$ac_t""no" 1>&6
1259 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1262 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1267 ac_cpp='$CPP $CPPFLAGS'
1268 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1269 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1270 cross_compiling=$ac_cv_prog_cc_cross
1272 cat > conftest.$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1278 ac_cv_prog_cc_works=yes
1279 # If we can't run a trivial program, we are probably using a cross compiler.
1280 if (./conftest; exit) 2>/dev/null; then
1281 ac_cv_prog_cc_cross=no
1283 ac_cv_prog_cc_cross=yes
1286 echo "configure: failed program was:" >&5
1287 cat conftest.$ac_ext >&5
1288 ac_cv_prog_cc_works=no
1292 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1293 if test $ac_cv_prog_cc_works = no; then
1294 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1296 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1297 echo "configure:1298: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1298 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1299 cross_compiling=$ac_cv_prog_cc_cross
1301 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether we are using GNU C" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.c <<EOF
1311 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1318 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1320 if test $ac_cv_prog_gcc = yes; then
1322 ac_test_CFLAGS="${CFLAGS+set}"
1323 ac_save_CFLAGS="$CFLAGS"
1325 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1326 echo "configure:1327: checking whether ${CC-cc} accepts -g" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 echo 'void f(){}' > conftest.c
1331 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1340 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1341 if test "$ac_test_CFLAGS" = set; then
1342 CFLAGS="$ac_save_CFLAGS"
1343 elif test $ac_cv_prog_cc_g = yes; then
1350 test "${CFLAGS+set}" = set || CFLAGS="-g"
1353 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1354 echo "configure:1355: checking how to run the C preprocessor" >&5
1355 # On Suns, sometimes $CPP names a directory.
1356 if test -n "$CPP" && test -d "$CPP"; then
1359 if test -z "$CPP"; then
1360 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 # This must be in double quotes, not single quotes, because CPP may get
1364 # substituted into the Makefile and "${CC-cc}" will confuse make.
1366 # On the NeXT, cc -E runs the code through the compiler's parser,
1367 # not just through cpp.
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1375 { (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1376 ac_err=`grep -v '^ *+' conftest.out`
1377 if test -z "$ac_err"; then
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1384 CPP="${CC-cc} -E -traditional-cpp"
1385 cat > conftest.$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1392 { (eval echo configure:1393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1393 ac_err=`grep -v '^ *+' conftest.out`
1394 if test -z "$ac_err"; then
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1406 ac_cv_prog_CPP="$CPP"
1408 CPP="$ac_cv_prog_CPP"
1410 ac_cv_prog_CPP="$CPP"
1412 echo "$ac_t""$CPP" 1>&6
1414 if test $ac_cv_prog_gcc = yes; then
1415 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1416 echo "configure:1417: checking whether ${CC-cc} needs -traditional" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 ac_pattern="Autoconf.*'x'"
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428 egrep "$ac_pattern" >/dev/null 2>&1; then
1430 ac_cv_prog_gcc_traditional=yes
1433 ac_cv_prog_gcc_traditional=no
1438 if test $ac_cv_prog_gcc_traditional = no; then
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1446 egrep "$ac_pattern" >/dev/null 2>&1; then
1448 ac_cv_prog_gcc_traditional=yes
1455 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1456 if test $ac_cv_prog_gcc_traditional = yes; then
1457 CC="$CC -traditional"
1462 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1463 echo "configure:1464: checking whether ln -s works" >&5
1464 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1468 if ln -s X conftestdata 2>/dev/null
1471 ac_cv_prog_LN_S="ln -s"
1476 LN_S="$ac_cv_prog_LN_S"
1477 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1478 echo "$ac_t""yes" 1>&6
1480 echo "$ac_t""no" 1>&6
1483 # Find a good install program. We prefer a C program (faster),
1484 # so one script is as good as another. But avoid the broken or
1485 # incompatible versions:
1486 # SysV /etc/install, /usr/sbin/install
1487 # SunOS /usr/etc/install
1488 # IRIX /sbin/install
1490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1492 # ./install, which can be erroneously created by make from ./install.sh.
1493 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1494 echo "configure:1495: checking for a BSD compatible install" >&5
1495 if test -z "$INSTALL"; then
1496 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1500 for ac_dir in $PATH; do
1501 # Account for people who put trailing slashes in PATH elements.
1503 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1505 # OSF1 and SCO ODT 3.0 have their own names for install.
1506 for ac_prog in ginstall installbsd scoinst install; do
1507 if test -f $ac_dir/$ac_prog; then
1508 if test $ac_prog = install &&
1509 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1510 # AIX install. It has an incompatible calling convention.
1511 # OSF/1 installbsd also uses dspmsg, but is usable.
1514 ac_cv_path_install="$ac_dir/$ac_prog -c"
1525 if test "${ac_cv_path_install+set}" = set; then
1526 INSTALL="$ac_cv_path_install"
1528 # As a last resort, use the slow shell script. We don't cache a
1529 # path for INSTALL within a source directory, because that will
1530 # break other packages using the cache if that directory is
1531 # removed, or if the path is relative.
1532 INSTALL="$ac_install_sh"
1535 echo "$ac_t""$INSTALL" 1>&6
1537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1538 # It thinks the first close brace ends the variable substitution.
1539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1541 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1543 # Extract the first word of "ranlib", so it can be a program name with args.
1544 set dummy ranlib; ac_word=$2
1545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1546 echo "configure:1547: checking for $ac_word" >&5
1547 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 if test -n "$RANLIB"; then
1551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1554 for ac_dir in $PATH; do
1555 test -z "$ac_dir" && ac_dir=.
1556 if test -f $ac_dir/$ac_word; then
1557 ac_cv_prog_RANLIB="ranlib"
1562 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1565 RANLIB="$ac_cv_prog_RANLIB"
1566 if test -n "$RANLIB"; then
1567 echo "$ac_t""$RANLIB" 1>&6
1569 echo "$ac_t""no" 1>&6
1572 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether ${MAKE-make} sets \${MAKE}" >&5
1574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1575 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftestmake <<\EOF
1580 @echo 'ac_maketemp="${MAKE}"'
1582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1583 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1584 if test -n "$ac_maketemp"; then
1585 eval ac_cv_prog_make_${ac_make}_set=yes
1587 eval ac_cv_prog_make_${ac_make}_set=no
1591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1592 echo "$ac_t""yes" 1>&6
1595 echo "$ac_t""no" 1>&6
1596 SET_MAKE="MAKE=${MAKE-make}"
1600 # Extract the first word of "sendmail", so it can be a program name with args.
1601 set dummy sendmail; ac_word=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1604 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1609 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1613 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1614 test -z "$ac_dir" && ac_dir=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1621 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1625 SENDMAIL="$ac_cv_path_SENDMAIL"
1626 if test -n "$SENDMAIL"; then
1627 echo "$ac_t""$SENDMAIL" 1>&6
1629 echo "$ac_t""no" 1>&6
1632 # Extract the first word of "vi", so it can be a program name with args.
1633 set dummy vi; ac_word=$2
1634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_word" >&5
1636 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1641 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1645 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 if test -f $ac_dir/$ac_word; then
1648 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1653 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1657 EDITOR="$ac_cv_path_EDITOR"
1658 if test -n "$EDITOR"; then
1659 echo "$ac_t""$EDITOR" 1>&6
1661 echo "$ac_t""no" 1>&6
1664 # Extract the first word of "finger", so it can be a program name with args.
1665 set dummy finger; ac_word=$2
1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_word" >&5
1668 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1673 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1677 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 if test -f $ac_dir/$ac_word; then
1680 ac_cv_path_FINGER="$ac_dir/$ac_word"
1685 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1689 FINGER="$ac_cv_path_FINGER"
1690 if test -n "$FINGER"; then
1691 echo "$ac_t""$FINGER" 1>&6
1693 echo "$ac_t""no" 1>&6
1699 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
1700 for ac_hdr in pthread.h sched.h
1702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_hdr" >&5
1705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err=`grep -v '^ *+' conftest.out`
1716 if test -z "$ac_err"; then
1718 eval "ac_cv_header_$ac_safe=yes"
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1724 eval "ac_cv_header_$ac_safe=no"
1728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1729 echo "$ac_t""yes" 1>&6
1730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1731 cat >> confdefs.h <<EOF
1732 #define $ac_tr_hdr 1
1736 echo "$ac_t""no" 1>&6
1741 if test "$ac_cv_header_pthread_h" = yes ; then
1742 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
1743 echo "configure:1744: checking POSIX thread version" >&5
1744 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1752 # include <pthread.h>
1753 /* this check could be improved */
1754 # ifdef PTHREAD_ONCE_INIT
1759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1760 egrep "final" >/dev/null 2>&1; then
1762 ol_pthread_final=yes
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1774 # include <pthread.h>
1775 /* this check could be improved */
1776 # ifdef pthread_once_init
1781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1782 egrep "draft4" >/dev/null 2>&1; then
1784 ol_pthread_draft4=yes
1787 ol_pthread_draft4=no
1792 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
1793 ol_cv_pthread_version=final
1794 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
1795 ol_cv_pthread_version=draft4
1797 ol_cv_pthread_version=unknown
1802 echo "$ac_t""$ol_cv_pthread_version" 1>&6
1805 if test $ol_cv_pthread_version = final ; then
1806 LTHREAD_DEFS="$LTHREAD_DEFS -DPOSIX_THREADS"
1807 elif test $ol_cv_pthread_version = draft4 ; then
1808 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_MIT_PTHREADS"
1810 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
1813 # consider threads found
1814 ol_with_threads=found
1817 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
1818 echo "configure:1819: checking for LinuxThreads" >&5
1819 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1823 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
1824 if test "$res" -gt 0 ; then
1825 ol_cv_linux_threads=yes
1827 ol_cv_linux_threads=no
1832 echo "$ac_t""$ol_cv_linux_threads" 1>&6
1835 if test $ol_cv_linux_threads = yes ; then
1836 LTHREAD_DEFS="$LTHREAD_DEFS -DHAVE_LINUX_THREADS"
1840 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1841 echo "configure:1842: checking for pthread_create" >&5
1842 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char pthread_create(); below. */
1851 /* Override any gcc2 internal prototype to avoid an error. */
1852 /* We use char because int might match the return type of a gcc2
1853 builtin and then its argument prototype would still apply. */
1854 char pthread_create();
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1871 eval "ac_cv_func_pthread_create=yes"
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 eval "ac_cv_func_pthread_create=no"
1881 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1885 echo "$ac_t""no" 1>&6
1889 if test $ol_link_threads = no ; then
1890 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
1891 echo "configure:1892: checking for pthread_create with -pthread" >&5
1892 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1897 LIBS="-pthread $LIBS"
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 #include <pthread.h>
1904 pthread_create((pthread_t*) 0,
1905 (pthread_attr_t*) 0, 0, 0);
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1911 ol_cv_pthread_flag=yes
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 ol_cv_pthread_flag=no
1923 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
1925 if test $ol_cv_pthread_flag = yes ; then
1926 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
1927 ol_link_threads=posix
1931 if test $ol_link_threads = no ; then
1933 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1934 echo "configure:1935: checking for pthread_create in -lpthread" >&5
1935 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 ac_save_LIBS="$LIBS"
1940 LIBS="-lpthread $LIBS"
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 /* Override any gcc2 internal prototype to avoid an error. */
1945 /* We use char because int might match the return type of a gcc2
1946 builtin and then its argument prototype would still apply. */
1947 char pthread_create();
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1955 eval "ac_cv_lib_$ac_lib_var=yes"
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1960 eval "ac_cv_lib_$ac_lib_var=no"
1963 LIBS="$ac_save_LIBS"
1966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1967 echo "$ac_t""yes" 1>&6
1969 ol_link_threads=posix
1970 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
1972 echo "$ac_t""no" 1>&6
1978 if test $ol_link_threads = no ; then
1980 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1981 echo "configure:1982: checking for pthread_create in -lc_r" >&5
1982 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 ac_save_LIBS="$LIBS"
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 /* Override any gcc2 internal prototype to avoid an error. */
1992 /* We use char because int might match the return type of a gcc2
1993 builtin and then its argument prototype would still apply. */
1994 char pthread_create();
2000 if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2002 eval "ac_cv_lib_$ac_lib_var=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 eval "ac_cv_lib_$ac_lib_var=no"
2010 LIBS="$ac_save_LIBS"
2013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2016 ol_link_threads=posix
2017 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2019 echo "$ac_t""no" 1>&6
2025 if test $ol_link_threads = no ; then
2027 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2028 echo "configure:2029: checking for pthread_create in -lpthread" >&5
2029 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 ac_save_LIBS="$LIBS"
2034 LIBS="-lpthread -lmach -lexc -lc $LIBS"
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 /* Override any gcc2 internal prototype to avoid an error. */
2039 /* We use char because int might match the return type of a gcc2
2040 builtin and then its argument prototype would still apply. */
2041 char pthread_create();
2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2049 eval "ac_cv_lib_$ac_lib_var=yes"
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2054 eval "ac_cv_lib_$ac_lib_var=no"
2057 LIBS="$ac_save_LIBS"
2060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2061 echo "$ac_t""yes" 1>&6
2063 ol_link_threads=posix
2064 LTHREAD_DEFS="$LTHREAD_DEFS -DDEC_THREADS"
2065 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2067 echo "$ac_t""no" 1>&6
2073 if test $ol_link_threads != no ; then
2074 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
2075 echo "configure:2076: checking for sched_yield" >&5
2076 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char sched_yield(); below. */
2085 /* Override any gcc2 internal prototype to avoid an error. */
2086 /* We use char because int might match the return type of a gcc2
2087 builtin and then its argument prototype would still apply. */
2092 /* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
2103 if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2105 eval "ac_cv_func_sched_yield=yes"
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 eval "ac_cv_func_sched_yield=no"
2115 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
2116 echo "$ac_t""yes" 1>&6
2119 echo "$ac_t""no" 1>&6
2123 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
2127 if test $ol_with_threads = posix ; then
2128 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
2132 if test $ol_link_threads = no ; then
2133 if test $ol_with_threads = yes ; then
2134 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
2137 if test $ol_with_threads = auto ; then
2138 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
2139 $ol_with_threads = no
2142 LTHREAD_DEFS="-DNO_THREADS"
2147 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
2148 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
2149 echo "configure:2150: checking for DB2 library" >&5
2150 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2154 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
2155 echo "configure:2156: checking for db_open in -ldb" >&5
2156 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
2157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 ac_save_LIBS="$LIBS"
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 /* Override any gcc2 internal prototype to avoid an error. */
2166 /* We use char because int might match the return type of a gcc2
2167 builtin and then its argument prototype would still apply. */
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2176 eval "ac_cv_lib_$ac_lib_var=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_lib_$ac_lib_var=no"
2184 LIBS="$ac_save_LIBS"
2187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2191 echo "$ac_t""no" 1>&6
2199 echo "$ac_t""$ol_cv_lib_db2" 1>&6
2203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2205 echo "configure:2206: checking for $ac_hdr" >&5
2206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2215 { (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2216 ac_err=`grep -v '^ *+' conftest.out`
2217 if test -z "$ac_err"; then
2219 eval "ac_cv_header_$ac_safe=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 eval "ac_cv_header_$ac_safe=no"
2229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2232 cat >> confdefs.h <<EOF
2233 #define $ac_tr_hdr 1
2237 echo "$ac_t""no" 1>&6
2241 if test $ac_cv_header_db_h = yes ; then
2242 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
2243 echo "configure:2244: checking if db.h is DB2" >&5
2244 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2253 /* this check could be improved */
2254 # ifdef DB_VERSION_MAJOR
2255 # if DB_VERSION_MAJOR == 2
2261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2262 egrep "__db_version_2" >/dev/null 2>&1; then
2264 ol_cv_header_db2=yes
2273 echo "$ac_t""$ol_cv_header_db2" 1>&6
2280 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
2281 echo "configure:2282: checking for Berkeley DB2" >&5
2282 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2286 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
2287 ol_cv_berkeley_db2=no
2289 ol_cv_berkeley_db2=yes
2294 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
2297 if test $ol_cv_berkeley_db2 = yes ; then
2299 ol_with_ldbm_api=db2
2301 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
2303 if test $ol_with_ldbm_type = hash ; then
2304 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
2306 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
2309 if test $ol_cv_lib_db2 != yes ; then
2310 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
2315 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
2316 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
2317 echo "configure:2318: checking for Berkeley DB library" >&5
2318 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2322 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
2323 echo "configure:2324: checking for dbopen" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char dbopen(); below. */
2333 /* Override any gcc2 internal prototype to avoid an error. */
2334 /* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined (__stub_dbopen) || defined (__stub___dbopen)
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2353 eval "ac_cv_func_dbopen=yes"
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 eval "ac_cv_func_dbopen=no"
2363 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2367 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
2370 echo "configure:2371: checking for dbopen in -ldb" >&5
2371 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
2372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 ac_save_LIBS="$LIBS"
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2389 if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2391 eval "ac_cv_lib_$ac_lib_var=yes"
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2396 eval "ac_cv_lib_$ac_lib_var=no"
2399 LIBS="$ac_save_LIBS"
2402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2403 echo "$ac_t""yes" 1>&6
2406 echo "$ac_t""no" 1>&6
2417 echo "$ac_t""$ol_cv_lib_db" 1>&6
2420 for ac_hdr in db_185.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 if test $ol_cv_header_db2 = yes ; then
2462 ol_cv_header_db=$ac_cv_header_db_185_h
2464 ol_cv_header_db=$ac_cv_header_db_h
2469 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
2470 echo "configure:2471: checking for Berkeley DB" >&5
2471 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2475 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
2476 ol_cv_berkeley_db=no
2478 ol_cv_berkeley_db=yes
2483 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
2486 if test $ol_cv_berkeley_db = yes ; then
2490 if test $ac_cv_header_db_185_h = yes ; then
2491 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
2494 if test $ol_with_ldbm_type = hash ; then
2495 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
2497 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
2500 if test $ol_cv_lib_db != yes ; then
2501 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
2506 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
2507 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2;
2508 $ol_with_ldbm_api=none
2511 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
2512 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
2513 echo "configure:2514: checking for GDBM library" >&5
2514 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2518 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
2519 echo "configure:2520: checking for gdbm_open" >&5
2520 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2526 /* System header to define __stub macros and hopefully few prototypes,
2527 which can conflict with char gdbm_open(); below. */
2529 /* Override any gcc2 internal prototype to avoid an error. */
2530 /* We use char because int might match the return type of a gcc2
2531 builtin and then its argument prototype would still apply. */
2536 /* The GNU C library defines this for functions which it implements
2537 to always fail with ENOSYS. Some functions are actually named
2538 something starting with __ and the normal name is an alias. */
2539 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2549 eval "ac_cv_func_gdbm_open=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2554 eval "ac_cv_func_gdbm_open=no"
2559 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2563 echo "$ac_t""no" 1>&6
2565 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
2566 echo "configure:2567: checking for gdbm_open in -lgdbm" >&5
2567 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
2568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_save_LIBS="$LIBS"
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2585 if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2587 eval "ac_cv_lib_$ac_lib_var=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2592 eval "ac_cv_lib_$ac_lib_var=no"
2595 LIBS="$ac_save_LIBS"
2598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ol_cv_lib_gdbm=-lgdbm
2602 echo "$ac_t""no" 1>&6
2613 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
2616 for ac_hdr in gdbm.h
2618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_hdr" >&5
2621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out`
2632 if test -z "$ac_err"; then
2634 eval "ac_cv_header_$ac_safe=yes"
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 eval "ac_cv_header_$ac_safe=no"
2644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2647 cat >> confdefs.h <<EOF
2648 #define $ac_tr_hdr 1
2652 echo "$ac_t""no" 1>&6
2656 echo $ac_n "checking for db""... $ac_c" 1>&6
2657 echo "configure:2658: checking for db" >&5
2658 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2662 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
2670 echo "$ac_t""$ol_cv_gdbm" 1>&6
2673 if test $ol_cv_gdbm = yes ; then
2675 ol_with_ldbm_api=gdbm
2677 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_GDBM"
2679 if test $ol_cv_lib_gdbm != yes ; then
2680 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
2685 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
2686 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
2687 echo "configure:2688: checking for NDBM library" >&5
2688 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2692 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
2693 echo "configure:2694: checking for dbm_open" >&5
2694 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 /* System header to define __stub macros and hopefully few prototypes,
2701 which can conflict with char dbm_open(); below. */
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2710 /* The GNU C library defines this for functions which it implements
2711 to always fail with ENOSYS. Some functions are actually named
2712 something starting with __ and the normal name is an alias. */
2713 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2723 eval "ac_cv_func_dbm_open=yes"
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2728 eval "ac_cv_func_dbm_open=no"
2733 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2737 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
2740 echo "configure:2741: checking for dbm_open in -lndbm" >&5
2741 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
2742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 ac_save_LIBS="$LIBS"
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* Override any gcc2 internal prototype to avoid an error. */
2751 /* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2761 eval "ac_cv_lib_$ac_lib_var=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 eval "ac_cv_lib_$ac_lib_var=no"
2769 LIBS="$ac_save_LIBS"
2772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2773 echo "$ac_t""yes" 1>&6
2774 ol_cv_lib_ndbm=-lndbm
2776 echo "$ac_t""no" 1>&6
2778 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
2779 echo "configure:2780: checking for dbm_open in -ldbm" >&5
2780 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
2781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 ac_save_LIBS="$LIBS"
2786 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 /* Override any gcc2 internal prototype to avoid an error. */
2790 /* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2800 eval "ac_cv_lib_$ac_lib_var=yes"
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 eval "ac_cv_lib_$ac_lib_var=no"
2808 LIBS="$ac_save_LIBS"
2811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ol_cv_lib_ndbm=-ldbm
2815 echo "$ac_t""no" 1>&6
2828 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
2831 for ac_hdr in ndbm.h
2833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2835 echo "configure:2836: checking for $ac_hdr" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out`
2847 if test -z "$ac_err"; then
2849 eval "ac_cv_header_$ac_safe=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 eval "ac_cv_header_$ac_safe=no"
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2862 cat >> confdefs.h <<EOF
2863 #define $ac_tr_hdr 1
2867 echo "$ac_t""no" 1>&6
2871 echo $ac_n "checking for db""... $ac_c" 1>&6
2872 echo "configure:2873: checking for db" >&5
2873 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2877 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
2885 echo "$ac_t""$ol_cv_ndbm" 1>&6
2888 if test $ol_cv_ndbm = yes ; then
2890 ol_with_ldbm_api=ndbm
2892 if test $ol_with_ldbm_api = ndbm ; then
2893 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
2896 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_NDBM"
2898 if test $ol_cv_lib_ndbm != yes ; then
2899 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
2904 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
2905 echo "configure: warning: could not find suitable LDBM backend" 1>&2
2906 if test $ol_enable_ldbm = yes ; then
2907 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
2910 echo "configure: warning: disabling LDBM" 1>&2
2914 if test $ol_enable_wrappers = yes ; then
2915 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
2916 echo "configure:2917: checking for hosts_access in -lwrap" >&5
2917 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
2918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 ac_save_LIBS="$LIBS"
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 /* Override any gcc2 internal prototype to avoid an error. */
2927 /* We use char because int might match the return type of a gcc2
2928 builtin and then its argument prototype would still apply. */
2929 char hosts_access();
2935 if { (eval echo configure:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2937 eval "ac_cv_lib_$ac_lib_var=yes"
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2942 eval "ac_cv_lib_$ac_lib_var=no"
2945 LIBS="$ac_save_LIBS"
2948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2949 echo "$ac_t""yes" 1>&6
2952 echo "$ac_t""no" 1>&6
2957 if test $have_wrappers = yes ; then
2958 SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
2959 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
2961 echo "configure: warning: could not find -lwrap" 1>&2
2962 if test $ol_enable_wrappers = yes ; then
2963 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
2966 echo "configure: warning: disabling wrappers support" 1>&2
2967 ol_enable_wrappers=no
2972 # ud needs termcap (should insert check here)
2973 LIBTERMCAP="-ltermcap"
2976 # FreeBSD (and others) have crypt(3) in -lcrypt
2977 if test $ol_enable_crypt != no ; then
2978 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2979 echo "configure:2980: checking for crypt" >&5
2980 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 /* System header to define __stub macros and hopefully few prototypes,
2987 which can conflict with char crypt(); below. */
2989 /* Override any gcc2 internal prototype to avoid an error. */
2990 /* We use char because int might match the return type of a gcc2
2991 builtin and then its argument prototype would still apply. */
2996 /* The GNU C library defines this for functions which it implements
2997 to always fail with ENOSYS. Some functions are actually named
2998 something starting with __ and the normal name is an alias. */
2999 #if defined (__stub_crypt) || defined (__stub___crypt)
3007 if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3009 eval "ac_cv_func_crypt=yes"
3011 echo "configure: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3014 eval "ac_cv_func_crypt=no"
3019 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3020 echo "$ac_t""yes" 1>&6
3023 echo "$ac_t""no" 1>&6
3025 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3026 echo "configure:3027: checking for crypt in -lcrypt" >&5
3027 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 ac_save_LIBS="$LIBS"
3032 LIBS="-lcrypt $LIBS"
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3036 /* Override any gcc2 internal prototype to avoid an error. */
3037 /* We use char because int might match the return type of a gcc2
3038 builtin and then its argument prototype would still apply. */
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3047 eval "ac_cv_lib_$ac_lib_var=yes"
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 eval "ac_cv_lib_$ac_lib_var=no"
3055 LIBS="$ac_save_LIBS"
3058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3059 echo "$ac_t""yes" 1>&6
3060 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
3063 echo "$ac_t""no" 1>&6
3070 if test $have_crypt = yes ; then
3071 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
3073 echo "configure: warning: could not find crypt" 1>&2
3074 if test $ol_enable_crypt = yes ; then
3075 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
3078 echo "configure: warning: disabling crypt support" 1>&2
3084 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3087 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_hdr that defines DIR" >&5
3089 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 #include <sys/types.h>
3101 if { (eval echo configure:3102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3103 eval "ac_cv_header_dirent_$ac_safe=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_header_dirent_$ac_safe=no"
3112 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3115 cat >> confdefs.h <<EOF
3116 #define $ac_tr_hdr 1
3118 ac_header_dirent=$ac_hdr; break
3120 echo "$ac_t""no" 1>&6
3123 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3124 if test $ac_header_dirent = dirent.h; then
3125 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3126 echo "configure:3127: checking for opendir in -ldir" >&5
3127 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 ac_save_LIBS="$LIBS"
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3147 eval "ac_cv_lib_$ac_lib_var=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3152 eval "ac_cv_lib_$ac_lib_var=no"
3155 LIBS="$ac_save_LIBS"
3158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3159 echo "$ac_t""yes" 1>&6
3162 echo "$ac_t""no" 1>&6
3166 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3167 echo "configure:3168: checking for opendir in -lx" >&5
3168 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 ac_save_LIBS="$LIBS"
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3188 eval "ac_cv_lib_$ac_lib_var=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3193 eval "ac_cv_lib_$ac_lib_var=no"
3196 LIBS="$ac_save_LIBS"
3199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3203 echo "$ac_t""no" 1>&6
3208 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3209 echo "configure:3210: checking for ANSI C header files" >&5
3210 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3222 { (eval echo configure:3223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3223 ac_err=`grep -v '^ *+' conftest.out`
3224 if test -z "$ac_err"; then
3226 ac_cv_header_stdc=yes
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 ac_cv_header_stdc=no
3236 if test $ac_cv_header_stdc = yes; then
3237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3244 egrep "memchr" >/dev/null 2>&1; then
3248 ac_cv_header_stdc=no
3254 if test $ac_cv_header_stdc = yes; then
3255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 egrep "free" >/dev/null 2>&1; then
3266 ac_cv_header_stdc=no
3272 if test $ac_cv_header_stdc = yes; then
3273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3274 if test "$cross_compiling" = yes; then
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3281 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3282 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3284 int main () { int i; for (i = 0; i < 256; i++)
3285 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 ac_cv_header_stdc=no
3304 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3305 if test $ac_cv_header_stdc = yes; then
3306 cat >> confdefs.h <<\EOF
3307 #define STDC_HEADERS 1
3312 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3313 echo "configure:3314: checking for sys/wait.h that is POSIX.1 compatible" >&5
3314 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <sys/types.h>
3321 #include <sys/wait.h>
3323 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3326 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3331 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 ac_cv_header_sys_wait_h=yes
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 ac_cv_header_sys_wait_h=no
3346 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3347 if test $ac_cv_header_sys_wait_h = yes; then
3348 cat >> confdefs.h <<\EOF
3349 #define HAVE_SYS_WAIT_H 1
3368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_hdr" >&5
3371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3380 { (eval echo configure:3381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3381 ac_err=`grep -v '^ *+' conftest.out`
3382 if test -z "$ac_err"; then
3384 eval "ac_cv_header_$ac_safe=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_header_$ac_safe=no"
3394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3397 cat >> confdefs.h <<EOF
3398 #define $ac_tr_hdr 1
3402 echo "$ac_t""no" 1>&6
3407 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3408 echo "configure:3409: checking for uid_t in sys/types.h" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418 egrep "uid_t" >/dev/null 2>&1; then
3420 ac_cv_type_uid_t=yes
3429 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3430 if test $ac_cv_type_uid_t = no; then
3431 cat >> confdefs.h <<\EOF
3435 cat >> confdefs.h <<\EOF
3441 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3442 echo "configure:3443: checking type of array argument to getgroups" >&5
3443 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 if test "$cross_compiling" = yes; then
3447 ac_cv_type_getgroups=cross
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3453 /* Thanks to Mike Rendell for this test. */
3454 #include <sys/types.h>
3457 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3462 union { gid_t gval; long lval; } val;
3465 for (i = 0; i < NGID; i++)
3466 gidset[i] = val.gval;
3467 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3469 /* Exit non-zero if getgroups seems to require an array of ints. This
3470 happens when gid_t is short but getgroups modifies an array of ints. */
3471 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3477 ac_cv_type_getgroups=gid_t
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 ac_cv_type_getgroups=int
3487 if test $ac_cv_type_getgroups = cross; then
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3496 ac_cv_type_getgroups=gid_t
3499 ac_cv_type_getgroups=int
3506 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3507 cat >> confdefs.h <<EOF
3508 #define GETGROUPS_T $ac_cv_type_getgroups
3512 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3513 echo "configure:3514: checking for mode_t" >&5
3514 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <sys/types.h>
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3529 ac_cv_type_mode_t=yes
3532 ac_cv_type_mode_t=no
3537 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3538 if test $ac_cv_type_mode_t = no; then
3539 cat >> confdefs.h <<\EOF
3545 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3546 echo "configure:3547: checking for off_t" >&5
3547 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3553 #include <sys/types.h>
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3562 ac_cv_type_off_t=yes
3570 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3571 if test $ac_cv_type_off_t = no; then
3572 cat >> confdefs.h <<\EOF
3578 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3579 echo "configure:3580: checking for pid_t" >&5
3580 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <sys/types.h>
3592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3595 ac_cv_type_pid_t=yes
3603 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3604 if test $ac_cv_type_pid_t = no; then
3605 cat >> confdefs.h <<\EOF
3611 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3612 echo "configure:3613: checking return type of signal handlers" >&5
3613 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 #include <sys/types.h>
3625 extern "C" void (*signal (int, void (*)(int)))(int);
3627 void (*signal ()) ();
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3636 ac_cv_type_signal=void
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 ac_cv_type_signal=int
3646 echo "$ac_t""$ac_cv_type_signal" 1>&6
3647 cat >> confdefs.h <<EOF
3648 #define RETSIGTYPE $ac_cv_type_signal
3652 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3653 echo "configure:3654: checking for size_t" >&5
3654 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 #include <sys/types.h>
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3669 ac_cv_type_size_t=yes
3672 ac_cv_type_size_t=no
3677 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3678 if test $ac_cv_type_size_t = no; then
3679 cat >> confdefs.h <<\EOF
3680 #define size_t unsigned
3685 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3686 echo "configure:3687: checking for uid_t in sys/types.h" >&5
3687 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <sys/types.h>
3695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 egrep "uid_t" >/dev/null 2>&1; then
3698 ac_cv_type_uid_t=yes
3707 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3708 if test $ac_cv_type_uid_t = no; then
3709 cat >> confdefs.h <<\EOF
3713 cat >> confdefs.h <<\EOF
3719 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3720 echo "configure:3721: checking for st_blksize in struct stat" >&5
3721 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+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"
3727 #include <sys/types.h>
3728 #include <sys/stat.h>
3730 struct stat s; s.st_blksize;
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735 ac_cv_struct_st_blksize=yes
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 ac_cv_struct_st_blksize=no
3745 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3746 if test $ac_cv_struct_st_blksize = yes; then
3747 cat >> confdefs.h <<\EOF
3748 #define HAVE_ST_BLKSIZE 1
3753 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3754 echo "configure:3755: checking whether time.h and sys/time.h may both be included" >&5
3755 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <sys/types.h>
3762 #include <sys/time.h>
3768 if { (eval echo configure:3769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3770 ac_cv_header_time=yes
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 ac_cv_header_time=no
3780 echo "$ac_t""$ac_cv_header_time" 1>&6
3781 if test $ac_cv_header_time = yes; then
3782 cat >> confdefs.h <<\EOF
3783 #define TIME_WITH_SYS_TIME 1
3788 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3789 echo "configure:3790: checking whether struct tm is in sys/time.h or time.h" >&5
3790 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3799 struct tm *tp; tp->tm_sec;
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 ac_cv_struct_tm=time.h
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3809 ac_cv_struct_tm=sys/time.h
3814 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3815 if test $ac_cv_struct_tm = sys/time.h; then
3816 cat >> confdefs.h <<\EOF
3817 #define TM_IN_SYS_TIME 1
3823 echo $ac_n "checking for working const""... $ac_c" 1>&6
3824 echo "configure:3825: checking for working const" >&5
3825 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3834 /* Ultrix mips cc rejects this. */
3835 typedef int charset[2]; const charset x;
3836 /* SunOS 4.1.1 cc rejects this. */
3837 char const *const *ccp;
3839 /* NEC SVR4.0.2 mips cc rejects this. */
3840 struct point {int x, y;};
3841 static struct point const zero = {0,0};
3842 /* AIX XL C 1.02.0.0 rejects this.
3843 It does not let you subtract one const X* pointer from another in an arm
3844 of an if-expression whose if-part is not a constant expression */
3845 const char *g = "string";
3846 ccp = &g + (g ? g-g : 0);
3847 /* HPUX 7.0 cc rejects these. */
3850 ccp = (char const *const *) p;
3851 { /* SCO 3.2v4 cc rejects this. */
3853 char const *s = 0 ? (char *) 0 : (char const *) 0;
3857 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3859 const int *foo = &x[0];
3862 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3863 typedef const int *iptr;
3867 { /* AIX XL C 1.02.0.0 rejects this saying
3868 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3869 struct s { int j; const int *ap[3]; };
3870 struct s *b; b->j = 5;
3872 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3890 echo "$ac_t""$ac_cv_c_const" 1>&6
3891 if test $ac_cv_c_const = no; then
3892 cat >> confdefs.h <<\EOF
3899 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3900 echo "configure:3901: checking for 8-bit clean memcmp" >&5
3901 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 if test "$cross_compiling" = yes; then
3905 ac_cv_func_memcmp_clean=no
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3913 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3914 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3920 ac_cv_func_memcmp_clean=yes
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 ac_cv_func_memcmp_clean=no
3932 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3933 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3935 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3936 echo "configure:3937: checking return type of signal handlers" >&5
3937 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <sys/types.h>
3949 extern "C" void (*signal (int, void (*)(int)))(int);
3951 void (*signal ()) ();
3958 if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3960 ac_cv_type_signal=void
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3965 ac_cv_type_signal=int
3970 echo "$ac_t""$ac_cv_type_signal" 1>&6
3971 cat >> confdefs.h <<EOF
3972 #define RETSIGTYPE $ac_cv_type_signal
3976 echo $ac_n "checking for strftime""... $ac_c" 1>&6
3977 echo "configure:3978: checking for strftime" >&5
3978 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char strftime(); below. */
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3994 /* The GNU C library defines this for functions which it implements
3995 to always fail with ENOSYS. Some functions are actually named
3996 something starting with __ and the normal name is an alias. */
3997 #if defined (__stub_strftime) || defined (__stub___strftime)
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4007 eval "ac_cv_func_strftime=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 eval "ac_cv_func_strftime=no"
4017 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_STRFTIME 1
4024 echo "$ac_t""no" 1>&6
4025 # strftime is in -lintl on SCO UNIX.
4026 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4027 echo "configure:4028: checking for strftime in -lintl" >&5
4028 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4032 ac_save_LIBS="$LIBS"
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4037 /* Override any gcc2 internal prototype to avoid an error. */
4038 /* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4046 if { (eval echo configure:4047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4048 eval "ac_cv_lib_$ac_lib_var=yes"
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4053 eval "ac_cv_lib_$ac_lib_var=no"
4056 LIBS="$ac_save_LIBS"
4059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_STRFTIME 1
4067 echo "$ac_t""no" 1>&6
4072 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4073 echo "configure:4074: checking for vprintf" >&5
4074 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* System header to define __stub macros and hopefully few prototypes,
4081 which can conflict with char vprintf(); below. */
4083 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4090 /* The GNU C library defines this for functions which it implements
4091 to always fail with ENOSYS. Some functions are actually named
4092 something starting with __ and the normal name is an alias. */
4093 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4103 eval "ac_cv_func_vprintf=yes"
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 eval "ac_cv_func_vprintf=no"
4113 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_VPRINTF 1
4120 echo "$ac_t""no" 1>&6
4123 if test "$ac_cv_func_vprintf" != yes; then
4124 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4125 echo "configure:4126: checking for _doprnt" >&5
4126 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 /* System header to define __stub macros and hopefully few prototypes,
4133 which can conflict with char _doprnt(); below. */
4135 /* Override any gcc2 internal prototype to avoid an error. */
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4142 /* The GNU C library defines this for functions which it implements
4143 to always fail with ENOSYS. Some functions are actually named
4144 something starting with __ and the normal name is an alias. */
4145 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4155 eval "ac_cv_func__doprnt=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 eval "ac_cv_func__doprnt=no"
4165 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4166 echo "$ac_t""yes" 1>&6
4167 cat >> confdefs.h <<\EOF
4168 #define HAVE_DOPRNT 1
4172 echo "$ac_t""no" 1>&6
4177 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
4178 echo "configure:4179: checking for wait3 that fills in rusage" >&5
4179 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 if test "$cross_compiling" = yes; then
4183 ac_cv_func_wait3_rusage=no
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <sys/types.h>
4189 #include <sys/time.h>
4190 #include <sys/resource.h>
4192 /* HP-UX has wait3 but does not fill in rusage at all. */
4196 /* Use a field that we can force nonzero --
4197 voluntary context switches.
4198 For systems like NeXT and OSF/1 that don't set it,
4199 also use the system CPU time. And page faults (I/O) for Linux. */
4201 r.ru_stime.tv_sec = 0;
4202 r.ru_stime.tv_usec = 0;
4203 r.ru_majflt = r.ru_minflt = 0;
4205 case 0: /* Child. */
4206 sleep(1); /* Give up the CPU. */
4208 case -1: _exit(0); /* What can we do? */
4209 default: /* Parent. */
4211 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
4212 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
4213 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4219 ac_cv_func_wait3_rusage=yes
4221 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4224 ac_cv_func_wait3_rusage=no
4231 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
4232 if test $ac_cv_func_wait3_rusage = yes; then
4233 cat >> confdefs.h <<\EOF
4234 #define HAVE_WAIT3 1
4257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_func" >&5
4259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 /* System header to define __stub macros and hopefully few prototypes,
4266 which can conflict with char $ac_func(); below. */
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4275 /* The GNU C library defines this for functions which it implements
4276 to always fail with ENOSYS. Some functions are actually named
4277 something starting with __ and the normal name is an alias. */
4278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4286 if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4288 eval "ac_cv_func_$ac_func=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 eval "ac_cv_func_$ac_func=no"
4298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4299 echo "$ac_t""yes" 1>&6
4300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4301 cat >> confdefs.h <<EOF
4302 #define $ac_tr_func 1
4306 echo "$ac_t""no" 1>&6
4311 for ac_func in strdup
4313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_func" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* System header to define __stub macros and hopefully few prototypes,
4322 which can conflict with char $ac_func(); below. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4331 /* The GNU C library defines this for functions which it implements
4332 to always fail with ENOSYS. Some functions are actually named
4333 something starting with __ and the normal name is an alias. */
4334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4344 eval "ac_cv_func_$ac_func=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4349 eval "ac_cv_func_$ac_func=no"
4354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_func 1
4362 echo "$ac_t""no" 1>&6
4363 LIBOBJS="$LIBOBJS ${ac_func}.o"
4369 # Check Configuration
4371 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
4372 echo "configure:4373: checking declaration of sys_errlist" >&5
4373 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4382 #include <sys/types.h>
4385 char *c = (char *) *sys_errlist
4388 if { (eval echo configure:4389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 ol_cv_dcl_sys_errlist=yes
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 ol_cv_dcl_sys_errlist=no
4400 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
4402 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
4403 if test $ol_cv_dcl_sys_errlist = no ; then
4404 cat >> confdefs.h <<\EOF
4405 #define DECL_SYS_ERRLIST 1
4408 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
4409 echo "configure:4410: checking existence of sys_errlist" >&5
4410 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4419 char *c = (char *) *sys_errlist
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4424 ol_cv_have_sys_errlist=yes
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 ol_cv_have_sys_errlist=no
4434 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
4439 if test $ol_enable_debug != no ; then
4440 LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
4442 #if test $ol_enable_syslog != no ; then
4443 # LDAP_DEFS="$LDAP_DEFS -DLDAP_SYSLOG"
4445 if test $ol_enable_libui = no ; then
4446 LDAP_DEFS="$LDAP_DEFS -DNO_USERINTERFACE"
4448 if test $ol_enable_cache = no ; then
4449 LDAP_DEFS="$LDAP_DEFS -DNO_CACHE"
4451 if test $ol_enable_dns != no ; then
4452 LDAP_DEFS="$LDAP_DEFS -DLDAP_DNS"
4454 if test $ol_enable_referrals != no ; then
4455 LDAP_DEFS="$LDAP_DEFS -DLDAP_REFERRALS"
4457 if test $ol_enable_cldap != no ; then
4458 LDAP_DEFS="$LDAP_DEFS -DCLDAP"
4461 if test $ol_enable_aclgroup != no ; then
4462 cat >> confdefs.h <<\EOF
4463 #define SLAPD_ACLGROUP 1
4466 SLAPD_DEFS="$SLAPD_DEFS -DACLGROUP"
4469 if test $ol_enable_md5 != no ; then
4470 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
4473 if test $ol_enable_sha1 != no ; then
4474 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
4477 if test $ol_enable_phonetic != no ; then
4478 cat >> confdefs.h <<\EOF
4479 #define SLAPD_PHONETIC 1
4482 SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
4485 if test $ol_enable_rlookups != no ; then
4486 cat >> confdefs.h <<\EOF
4487 #define SLAPD_RLOOKUPS 1
4490 SLAPD_DEFS="$SLAPD_DEFS -DREVERSE_LOOKUPS"
4493 if test $ol_link_ldbm != no ; then
4496 LDBM_DEFS="-DLDAP_LDBM $LDBM_DEFS"
4499 if test $ol_enable_passwd != no ; then
4502 SLAPD_DEFS="-DLDAP_PASSWD $SLAPD_DEFS"
4505 if test $ol_enable_shell != no ; then
4508 SLAPD_DEFS="-DLDAP_SHELL $SLAPD_DEFS"
4511 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
4512 $BUILD_SLAPD = yes ; then
4543 cat > confcache <<\EOF
4544 # This file is a shell script that caches the results of configure
4545 # tests run on this system so they can be shared between configure
4546 # scripts and configure runs. It is not useful on other systems.
4547 # If it contains results you don't want to keep, you may remove or edit it.
4549 # By default, configure uses ./config.cache as the cache file,
4550 # creating it if it does not exist already. You can give configure
4551 # the --cache-file=FILE option to use a different cache file; that is
4552 # what configure does when it calls configure scripts in
4553 # subdirectories, so they share the cache.
4554 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4555 # config.status only pays attention to the cache file if you give it the
4556 # --recheck option to rerun configure.
4559 # The following way of writing the cache mishandles newlines in values,
4560 # but we know of no workaround that is simple, portable, and efficient.
4561 # So, don't put newlines in cache variables' values.
4562 # Ultrix sh set writes to stderr and can't be redirected directly,
4563 # and sets the high bit in the cache file unless we assign to the vars.
4565 case `(ac_space=' '; set) 2>&1` in
4567 # `set' does not quote correctly, so add quotes (double-quote substitution
4568 # turns \\\\ into \\, and sed turns \\ into \).
4570 -e "s/'/'\\\\''/g" \
4571 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4574 # `set' quotes correctly as required by POSIX, so do not add quotes.
4575 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4578 if cmp -s $cache_file confcache; then
4581 if test -w $cache_file; then
4582 echo "updating cache $cache_file"
4583 cat confcache > $cache_file
4585 echo "not updating unwritable cache $cache_file"
4590 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4593 # Let make expand exec_prefix.
4594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4596 # Any assignment to VPATH causes Sun make to only execute
4597 # the first set of double-colon rules, so remove it if not needed.
4598 # If there is a colon in the path, we need to keep it.
4599 if test "x$srcdir" = x.; then
4600 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4603 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4605 DEFS=-DHAVE_CONFIG_H
4607 # Without the "./", some shells look in PATH for config.status.
4608 : ${CONFIG_STATUS=./config.status}
4610 echo creating $CONFIG_STATUS
4611 rm -f $CONFIG_STATUS
4612 cat > $CONFIG_STATUS <<EOF
4614 # Generated automatically by configure.
4615 # Run this file to recreate the current configuration.
4616 # This directory was configured as follows,
4617 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4619 # $0 $ac_configure_args
4621 # Compiler output produced by configure, useful for debugging
4622 # configure, is in ./config.log if it exists.
4624 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4627 case "\$ac_option" in
4628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4629 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4630 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4631 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4632 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4634 -help | --help | --hel | --he | --h)
4635 echo "\$ac_cs_usage"; exit 0 ;;
4636 *) echo "\$ac_cs_usage"; exit 1 ;;
4640 ac_given_srcdir=$srcdir
4641 ac_given_INSTALL="$INSTALL"
4643 trap 'rm -fr `echo "\
4644 Makefile:build/top.mk:Makefile.in:build/dir.mk \
4645 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
4646 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
4647 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
4648 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
4649 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
4650 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
4651 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
4652 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
4653 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
4654 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
4655 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
4656 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
4657 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
4658 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
4659 include/Makefile:build/top.mk:include/Makefile.in \
4660 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
4661 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
4662 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
4663 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
4664 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
4665 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
4666 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
4667 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
4668 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
4669 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
4670 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
4671 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
4672 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
4673 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
4674 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
4675 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
4676 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
4677 tests/Makefile:build/top.mk:tests/Makefile.in \
4678 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4680 cat >> $CONFIG_STATUS <<EOF
4682 # Protect against being on the right side of a sed subst in config.status.
4683 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4684 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4687 s%@CFLAGS@%$CFLAGS%g
4688 s%@CPPFLAGS@%$CPPFLAGS%g
4689 s%@CXXFLAGS@%$CXXFLAGS%g
4691 s%@LDFLAGS@%$LDFLAGS%g
4693 s%@exec_prefix@%$exec_prefix%g
4694 s%@prefix@%$prefix%g
4695 s%@program_transform_name@%$program_transform_name%g
4696 s%@bindir@%$bindir%g
4697 s%@sbindir@%$sbindir%g
4698 s%@libexecdir@%$libexecdir%g
4699 s%@datadir@%$datadir%g
4700 s%@sysconfdir@%$sysconfdir%g
4701 s%@sharedstatedir@%$sharedstatedir%g
4702 s%@localstatedir@%$localstatedir%g
4703 s%@libdir@%$libdir%g
4704 s%@includedir@%$includedir%g
4705 s%@oldincludedir@%$oldincludedir%g
4706 s%@infodir@%$infodir%g
4707 s%@mandir@%$mandir%g
4711 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4712 s%@INSTALL_DATA@%$INSTALL_DATA%g
4713 s%@RANLIB@%$RANLIB%g
4714 s%@SET_MAKE@%$SET_MAKE%g
4715 s%@SENDMAIL@%$SENDMAIL%g
4716 s%@EDITOR@%$EDITOR%g
4717 s%@FINGER@%$FINGER%g
4718 s%@LIBTERMCAP@%$LIBTERMCAP%g
4719 s%@LIBOBJS@%$LIBOBJS%g
4720 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
4721 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
4722 s%@BUILD_LDBM@%$BUILD_LDBM%g
4723 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
4724 s%@BUILD_SHELL@%$BUILD_SHELL%g
4725 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
4726 s%@LDAP_DEFS@%$LDAP_DEFS%g
4727 s%@LDAP_LIBS@%$LDAP_LIBS%g
4728 s%@LDAPD_DEFS@%$LDAPD_DEFS%g
4729 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
4730 s%@SLAPD_DEFS@%$SLAPD_DEFS%g
4731 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
4732 s%@SLURPD_DEFS@%$SLURPD_DEFS%g
4733 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
4734 s%@LDBM_DEFS@%$LDBM_DEFS%g
4735 s%@LDBM_LIBS@%$LDBM_LIBS%g
4736 s%@LTHREAD_DEFS@%$LTHREAD_DEFS%g
4737 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
4738 s%@LUTIL_DEFS@%$LUTIL_DEFS%g
4739 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
4744 cat >> $CONFIG_STATUS <<\EOF
4746 # Split the substitutions into bite-sized pieces for seds with
4747 # small command number limits, like on Digital OSF/1 and HP-UX.
4748 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4749 ac_file=1 # Number of current file.
4750 ac_beg=1 # First line for current file.
4751 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4754 while $ac_more_lines; do
4755 if test $ac_beg -gt 1; then
4756 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4758 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4760 if test ! -s conftest.s$ac_file; then
4762 rm -f conftest.s$ac_file
4764 if test -z "$ac_sed_cmds"; then
4765 ac_sed_cmds="sed -f conftest.s$ac_file"
4767 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4769 ac_file=`expr $ac_file + 1`
4771 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4774 if test -z "$ac_sed_cmds"; then
4779 cat >> $CONFIG_STATUS <<EOF
4781 CONFIG_FILES=\${CONFIG_FILES-"\
4782 Makefile:build/top.mk:Makefile.in:build/dir.mk \
4783 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
4784 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
4785 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
4786 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
4787 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
4788 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
4789 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
4790 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
4791 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
4792 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
4793 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
4794 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
4795 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
4796 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
4797 include/Makefile:build/top.mk:include/Makefile.in \
4798 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
4799 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
4800 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
4801 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
4802 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
4803 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
4804 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
4805 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
4806 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
4807 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
4808 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
4809 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
4810 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
4811 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
4812 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
4813 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
4814 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
4815 tests/Makefile:build/top.mk:tests/Makefile.in \
4818 cat >> $CONFIG_STATUS <<\EOF
4819 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4822 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4823 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4824 *) ac_file_in="${ac_file}.in" ;;
4827 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4829 # Remove last slash and all that follows it. Not all systems have dirname.
4830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4832 # The file is in a subdirectory.
4833 test ! -d "$ac_dir" && mkdir "$ac_dir"
4834 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4835 # A "../" for each directory in $ac_dir_suffix.
4836 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4838 ac_dir_suffix= ac_dots=
4841 case "$ac_given_srcdir" in
4843 if test -z "$ac_dots"; then top_srcdir=.
4844 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4845 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4847 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4848 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4851 case "$ac_given_INSTALL" in
4852 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4853 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4856 echo creating "$ac_file"
4858 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4860 *Makefile*) ac_comsub="1i\\
4861 # $configure_input" ;;
4865 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4867 s%@configure_input@%$configure_input%g
4868 s%@srcdir@%$srcdir%g
4869 s%@top_srcdir@%$top_srcdir%g
4870 s%@INSTALL@%$INSTALL%g
4871 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4875 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4876 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4878 # ac_d sets the value in "#define NAME VALUE" lines.
4879 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4880 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4883 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4884 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4885 ac_uB='\([ ]\)%\1#\2define\3'
4888 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4889 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4890 ac_eB='$%\1#\2define\3'
4894 if test "${CONFIG_HEADERS+set}" != set; then
4896 cat >> $CONFIG_STATUS <<EOF
4897 CONFIG_HEADERS="include/portable.h"
4899 cat >> $CONFIG_STATUS <<\EOF
4901 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4906 *) ac_file_in="${ac_file}.in" ;;
4909 echo creating $ac_file
4911 rm -f conftest.frag conftest.in conftest.out
4912 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4913 cat $ac_file_inputs > conftest.in
4917 # Transform confdefs.h into a sed script conftest.vals that substitutes
4918 # the proper values into config.h.in to produce config.h. And first:
4919 # Protect against being on the right side of a sed subst in config.status.
4920 # Protect against being in an unquoted here document in config.status.
4922 cat > conftest.hdr <<\EOF
4925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4929 sed -n -f conftest.hdr confdefs.h > conftest.vals
4932 # This sed command replaces #undef with comments. This is necessary, for
4933 # example, in the case of _POSIX_SOURCE, which is predefined and required
4934 # on some systems where configure will not decide to define it.
4935 cat >> conftest.vals <<\EOF
4936 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4939 # Break up conftest.vals because some shells have a limit on
4940 # the size of here documents, and old seds have small limits too.
4945 ac_lines=`grep -c . conftest.vals`
4946 # grep -c gives empty output for an empty file on some AIX systems.
4947 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4948 # Write a limited-size here document to conftest.frag.
4949 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4950 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4952 sed -f conftest.frag conftest.in > conftest.out
4954 mv conftest.out conftest.in
4956 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4958 mv conftest.tail conftest.vals
4962 cat >> $CONFIG_STATUS <<\EOF
4963 rm -f conftest.frag conftest.h
4964 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4965 cat conftest.in >> conftest.h
4967 if cmp -s $ac_file conftest.h 2>/dev/null; then
4968 echo "$ac_file is unchanged"
4971 # Remove last slash and all that follows it. Not all systems have dirname.
4972 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4973 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4974 # The file is in a subdirectory.
4975 test ! -d "$ac_dir" && mkdir "$ac_dir"
4978 mv conftest.h $ac_file
4983 cat >> $CONFIG_STATUS <<EOF
4986 cat >> $CONFIG_STATUS <<\EOF
4990 chmod +x $CONFIG_STATUS
4991 rm -fr confdefs* $ac_clean_files
4992 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1