3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --enable-debug enable debugging (yes)"
18 --enable-libui enable library user interface (yes)"
20 --enable-cache enable caching (yes)"
22 --enable-dns enable dns support (no)"
24 --enable-referrals enable referrals (yes)"
26 --enable-clapd enable connectionless ldap (no)"
28 --with-kerberos use Kerberos (auto)"
30 --with-threads use threads (auto)"
32 --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 # OpenLDAP --enable-libui
612 # Check whether --enable-libui or --disable-libui was given.
613 if test "${enable_libui+set}" = set; then
614 enableval="$enable_libui"
617 for ol_val in auto yes no ; do
618 if test "$enableval" = "$ol_val" ; then
622 if test "$ol_arg" = "invalid" ; then
623 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
625 ol_enable_libui="$ol_arg"
628 ol_enable_libui="yes"
631 # OpenLDAP --enable-cache
632 # Check whether --enable-cache or --disable-cache was given.
633 if test "${enable_cache+set}" = set; then
634 enableval="$enable_cache"
637 for ol_val in auto yes no ; do
638 if test "$enableval" = "$ol_val" ; then
642 if test "$ol_arg" = "invalid" ; then
643 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
645 ol_enable_cache="$ol_arg"
648 ol_enable_cache="yes"
651 # OpenLDAP --enable-dns
652 # Check whether --enable-dns or --disable-dns was given.
653 if test "${enable_dns+set}" = set; then
654 enableval="$enable_dns"
657 for ol_val in auto yes no ; do
658 if test "$enableval" = "$ol_val" ; then
662 if test "$ol_arg" = "invalid" ; then
663 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
665 ol_enable_dns="$ol_arg"
671 # OpenLDAP --enable-referrals
672 # Check whether --enable-referrals or --disable-referrals was given.
673 if test "${enable_referrals+set}" = set; then
674 enableval="$enable_referrals"
677 for ol_val in auto yes no ; do
678 if test "$enableval" = "$ol_val" ; then
682 if test "$ol_arg" = "invalid" ; then
683 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
685 ol_enable_referrals="$ol_arg"
688 ol_enable_referrals="yes"
690 # end --enable-referrals
691 # OpenLDAP --enable-cldap
692 # Check whether --enable-cldap or --disable-cldap was given.
693 if test "${enable_cldap+set}" = set; then
694 enableval="$enable_cldap"
697 for ol_val in auto yes no ; do
698 if test "$enableval" = "$ol_val" ; then
702 if test "$ol_arg" = "invalid" ; then
703 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
705 ol_enable_cldap="$ol_arg"
712 # OpenLDAP --with-kerberos
713 # Check whether --with-kerberos or --without-kerberos was given.
714 if test "${with_kerberos+set}" = set; then
715 withval="$with_kerberos"
718 for ol_val in auto k5 k4 afs yes no ; do
719 if test "$withval" = "$ol_val" ; then
723 if test "$ol_arg" = "invalid" ; then
724 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
726 ol_with_kerberos="$ol_arg"
729 ol_with_kerberos="auto"
731 # end --with-kerberos
733 # OpenLDAP --with-threads
734 # Check whether --with-threads or --without-threads was given.
735 if test "${with_threads+set}" = set; then
736 withval="$with_threads"
739 for ol_val in auto posix dce mach yes no manual ; do
740 if test "$withval" = "$ol_val" ; then
744 if test "$ol_arg" = "invalid" ; then
745 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
747 ol_with_threads="$ol_arg"
750 ol_with_threads="auto"
756 # OpenLDAP --enable-ldapd
757 # Check whether --enable-ldapd or --disable-ldapd was given.
758 if test "${enable_ldapd+set}" = set; then
759 enableval="$enable_ldapd"
762 for ol_val in auto yes no ; do
763 if test "$enableval" = "$ol_val" ; then
767 if test "$ol_arg" = "invalid" ; then
768 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
770 ol_enable_ldapd="$ol_arg"
777 # OpenLDAP --enable-slapd
778 # Check whether --enable-slapd or --disable-slapd was given.
779 if test "${enable_slapd+set}" = set; then
780 enableval="$enable_slapd"
783 for ol_val in auto yes no ; do
784 if test "$enableval" = "$ol_val" ; then
788 if test "$ol_arg" = "invalid" ; then
789 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
791 ol_enable_slapd="$ol_arg"
794 ol_enable_slapd="yes"
797 # OpenLDAP --enable-aclgroup
798 # Check whether --enable-aclgroup or --disable-aclgroup was given.
799 if test "${enable_aclgroup+set}" = set; then
800 enableval="$enable_aclgroup"
803 for ol_val in auto yes no ; do
804 if test "$enableval" = "$ol_val" ; then
808 if test "$ol_arg" = "invalid" ; then
809 { echo "configure: error: bad value $enableval for --enable-aclgroup" 1>&2; exit 1; }
811 ol_enable_aclgroup="$ol_arg"
814 ol_enable_aclgroup="auto"
816 # end --enable-aclgroup
817 # OpenLDAP --enable-crypt
818 # Check whether --enable-crypt or --disable-crypt was given.
819 if test "${enable_crypt+set}" = set; then
820 enableval="$enable_crypt"
823 for ol_val in auto yes no ; do
824 if test "$enableval" = "$ol_val" ; then
828 if test "$ol_arg" = "invalid" ; then
829 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
831 ol_enable_crypt="$ol_arg"
834 ol_enable_crypt="auto"
837 # OpenLDAP --enable-md5
838 # Check whether --enable-md5 or --disable-md5 was given.
839 if test "${enable_md5+set}" = set; then
840 enableval="$enable_md5"
843 for ol_val in auto yes no ; do
844 if test "$enableval" = "$ol_val" ; then
848 if test "$ol_arg" = "invalid" ; then
849 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
851 ol_enable_md5="$ol_arg"
857 # OpenLDAP --enable-sha1
858 # Check whether --enable-sha1 or --disable-sha1 was given.
859 if test "${enable_sha1+set}" = set; then
860 enableval="$enable_sha1"
863 for ol_val in auto yes no ; do
864 if test "$enableval" = "$ol_val" ; then
868 if test "$ol_arg" = "invalid" ; then
869 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
871 ol_enable_sha1="$ol_arg"
874 ol_enable_sha1="auto"
877 # OpenLDAP --enable-wrappers
878 # Check whether --enable-wrappers or --disable-wrappers was given.
879 if test "${enable_wrappers+set}" = set; then
880 enableval="$enable_wrappers"
883 for ol_val in auto yes no ; do
884 if test "$enableval" = "$ol_val" ; then
888 if test "$ol_arg" = "invalid" ; then
889 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
891 ol_enable_wrappers="$ol_arg"
894 ol_enable_wrappers="no"
896 # end --enable-wrappers
897 # OpenLDAP --enable-phonetic
898 # Check whether --enable-phonetic or --disable-phonetic was given.
899 if test "${enable_phonetic+set}" = set; then
900 enableval="$enable_phonetic"
903 for ol_val in auto yes no ; do
904 if test "$enableval" = "$ol_val" ; then
908 if test "$ol_arg" = "invalid" ; then
909 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
911 ol_enable_phonetic="$ol_arg"
914 ol_enable_phonetic="no"
916 # end --enable-phonetic
917 # OpenLDAP --enable-rlookups
918 # Check whether --enable-rlookups or --disable-rlookups was given.
919 if test "${enable_rlookups+set}" = set; then
920 enableval="$enable_rlookups"
923 for ol_val in auto yes no ; do
924 if test "$enableval" = "$ol_val" ; then
928 if test "$ol_arg" = "invalid" ; then
929 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
931 ol_enable_rlookups="$ol_arg"
934 ol_enable_rlookups="auto"
936 # end --enable-rlookups
938 # OpenLDAP --enable-ldbm
939 # Check whether --enable-ldbm or --disable-ldbm was given.
940 if test "${enable_ldbm+set}" = set; then
941 enableval="$enable_ldbm"
944 for ol_val in auto yes no ; do
945 if test "$enableval" = "$ol_val" ; then
949 if test "$ol_arg" = "invalid" ; then
950 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
952 ol_enable_ldbm="$ol_arg"
958 # OpenLDAP --with-ldbm_api
959 # Check whether --with-ldbm_api or --without-ldbm_api was given.
960 if test "${with_ldbm_api+set}" = set; then
961 withval="$with_ldbm_api"
964 for ol_val in auto db2 db gdbm ndbm manual ; do
965 if test "$withval" = "$ol_val" ; then
969 if test "$ol_arg" = "invalid" ; then
970 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
972 ol_with_ldbm_api="$ol_arg"
975 ol_with_ldbm_api="auto"
977 # end --with-ldbm_api
979 # OpenLDAP --with-ldbm_type
980 # Check whether --with-ldbm_type or --without-ldbm_type was given.
981 if test "${with_ldbm_type+set}" = set; then
982 withval="$with_ldbm_type"
985 for ol_val in auto btree hash ; do
986 if test "$withval" = "$ol_val" ; then
990 if test "$ol_arg" = "invalid" ; then
991 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
993 ol_with_ldbm_type="$ol_arg"
996 ol_with_ldbm_type="auto"
998 # end --with-ldbm_type
1001 # OpenLDAP --enable-passwd
1002 # Check whether --enable-passwd or --disable-passwd was given.
1003 if test "${enable_passwd+set}" = set; then
1004 enableval="$enable_passwd"
1007 for ol_val in auto yes no ; do
1008 if test "$enableval" = "$ol_val" ; then
1012 if test "$ol_arg" = "invalid" ; then
1013 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1015 ol_enable_passwd="$ol_arg"
1018 ol_enable_passwd="no"
1020 # end --enable-passwd
1021 # OpenLDAP --enable-shell
1022 # Check whether --enable-shell or --disable-shell was given.
1023 if test "${enable_shell+set}" = set; then
1024 enableval="$enable_shell"
1027 for ol_val in auto yes no ; do
1028 if test "$enableval" = "$ol_val" ; then
1032 if test "$ol_arg" = "invalid" ; then
1033 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1035 ol_enable_shell="$ol_arg"
1038 ol_enable_shell="no"
1040 # end --enable-shell
1042 # OpenLDAP --enable-slurpd
1043 # Check whether --enable-slurpd or --disable-slurpd was given.
1044 if test "${enable_slurpd+set}" = set; then
1045 enableval="$enable_slurpd"
1048 for ol_val in auto yes no ; do
1049 if test "$enableval" = "$ol_val" ; then
1053 if test "$ol_arg" = "invalid" ; then
1054 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1056 ol_enable_slurpd="$ol_arg"
1059 ol_enable_slurpd="auto"
1061 # end --enable-slurpd
1063 if test $ol_enable_slapd = no ; then
1064 if test $ol_enable_ldbm = yes ; then
1065 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2;
1067 if test $ol_enable_passwd = yes ; then
1068 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2;
1070 if test $ol_enable_shell = yes ; then
1071 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2;
1073 if test $ol_enable_aclgroup = yes ; then
1074 echo "configure: warning: slapd disabled, ignoring --enable_aclgroup argument" 1>&2;
1076 if test $ol_enable_crypt = yes ; then
1077 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2;
1079 if test $ol_enable_md5 = yes ; then
1080 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2;
1082 if test $ol_enable_sha1 = yes ; then
1083 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2;
1085 if test $ol_enable_wrappers = yes ; then
1086 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2;
1088 if test $ol_enable_phonetic = yes ; then
1089 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2;
1091 if test $ol_enable_rlookups = yes ; then
1092 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2;
1094 if test $ol_with_ldbm_api != auto ; then
1095 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2;
1097 if test $ol_with_ldbm_type != auto ; then
1098 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2;
1100 if test $ol_enable_slurpd = yes ; then
1101 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; };
1104 # force settings to no
1108 ol_enable_aclgroup=no
1112 ol_enable_wrappers=no
1113 ol_enable_phonetic=no
1114 ol_enable_rlookups=no
1116 ol_with_ldbm_type=no
1119 elif test $ol_enable_ldbm = no ; then
1121 if test $ol_with_ldbm_api != auto ; then
1122 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2;
1125 if test $ol_with_ldbm_type != auto ; then
1126 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2;
1129 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1130 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; };
1134 ol_with_ldbm_type=no
1138 if test $ol_with_ldbm_api = gdbm -a \
1139 $ol_with_ldbm_type = btree ; then
1140 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; };
1142 if test $ol_with_ldbm_api = ndbm -a \
1143 $ol_with_ldbm_type = btree ; then
1144 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; };
1148 if test $ol_enable_slurpd = yes ; then
1149 if test $ol_with_threads = no ; then
1150 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; };
1154 echo "$ac_t""done" 1>&6
1182 # Extract the first word of "gcc", so it can be a program name with args.
1183 set dummy gcc; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$CC"; then
1190 ac_cv_prog_CC="$CC" # Let the user override the test.
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1193 for ac_dir in $PATH; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1204 if test -n "$CC"; then
1205 echo "$ac_t""$CC" 1>&6
1207 echo "$ac_t""no" 1>&6
1210 if test -z "$CC"; then
1211 # Extract the first word of "cc", so it can be a program name with args.
1212 set dummy cc; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test -n "$CC"; then
1219 ac_cv_prog_CC="$CC" # Let the user override the test.
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1223 for ac_dir in $PATH; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1227 ac_prog_rejected=yes
1235 if test $ac_prog_rejected = yes; then
1236 # We found a bogon in the path, so make sure we never use it.
1237 set dummy $ac_cv_prog_CC
1239 if test $# -gt 0; then
1240 # We chose a different compiler from the bogus one.
1241 # However, it has the same basename, so the bogon will be chosen
1242 # first if we set CC to just the basename; use the full file name.
1244 set dummy "$ac_dir/$ac_word" "$@"
1252 if test -n "$CC"; then
1253 echo "$ac_t""$CC" 1>&6
1255 echo "$ac_t""no" 1>&6
1258 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1261 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1266 ac_cpp='$CPP $CPPFLAGS'
1267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1268 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1269 cross_compiling=$ac_cv_prog_cc_cross
1271 cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1276 if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1277 ac_cv_prog_cc_works=yes
1278 # If we can't run a trivial program, we are probably using a cross compiler.
1279 if (./conftest; exit) 2>/dev/null; then
1280 ac_cv_prog_cc_cross=no
1282 ac_cv_prog_cc_cross=yes
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1287 ac_cv_prog_cc_works=no
1291 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1292 if test $ac_cv_prog_cc_works = no; then
1293 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1295 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1297 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1298 cross_compiling=$ac_cv_prog_cc_cross
1300 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether we are using GNU C" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 cat > conftest.c <<EOF
1310 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1317 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1319 if test $ac_cv_prog_gcc = yes; then
1321 ac_test_CFLAGS="${CFLAGS+set}"
1322 ac_save_CFLAGS="$CFLAGS"
1324 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether ${CC-cc} accepts -g" >&5
1326 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 echo 'void f(){}' > conftest.c
1330 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1339 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1340 if test "$ac_test_CFLAGS" = set; then
1341 CFLAGS="$ac_save_CFLAGS"
1342 elif test $ac_cv_prog_cc_g = yes; then
1349 test "${CFLAGS+set}" = set || CFLAGS="-g"
1352 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1353 echo "configure:1354: checking how to run the C preprocessor" >&5
1354 # On Suns, sometimes $CPP names a directory.
1355 if test -n "$CPP" && test -d "$CPP"; then
1358 if test -z "$CPP"; then
1359 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 # This must be in double quotes, not single quotes, because CPP may get
1363 # substituted into the Makefile and "${CC-cc}" will confuse make.
1365 # On the NeXT, cc -E runs the code through the compiler's parser,
1366 # not just through cpp.
1367 cat > conftest.$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1374 { (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1375 ac_err=`grep -v '^ *+' conftest.out`
1376 if test -z "$ac_err"; then
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1383 CPP="${CC-cc} -E -traditional-cpp"
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1391 { (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1392 ac_err=`grep -v '^ *+' conftest.out`
1393 if test -z "$ac_err"; then
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1405 ac_cv_prog_CPP="$CPP"
1407 CPP="$ac_cv_prog_CPP"
1409 ac_cv_prog_CPP="$CPP"
1411 echo "$ac_t""$CPP" 1>&6
1413 if test $ac_cv_prog_gcc = yes; then
1414 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether ${CC-cc} needs -traditional" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 ac_pattern="Autoconf.*'x'"
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1427 egrep "$ac_pattern" >/dev/null 2>&1; then
1429 ac_cv_prog_gcc_traditional=yes
1432 ac_cv_prog_gcc_traditional=no
1437 if test $ac_cv_prog_gcc_traditional = no; then
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1445 egrep "$ac_pattern" >/dev/null 2>&1; then
1447 ac_cv_prog_gcc_traditional=yes
1454 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1455 if test $ac_cv_prog_gcc_traditional = yes; then
1456 CC="$CC -traditional"
1461 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1462 echo "configure:1463: checking whether ln -s works" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1467 if ln -s X conftestdata 2>/dev/null
1470 ac_cv_prog_LN_S="ln -s"
1475 LN_S="$ac_cv_prog_LN_S"
1476 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1477 echo "$ac_t""yes" 1>&6
1479 echo "$ac_t""no" 1>&6
1482 # Find a good install program. We prefer a C program (faster),
1483 # so one script is as good as another. But avoid the broken or
1484 # incompatible versions:
1485 # SysV /etc/install, /usr/sbin/install
1486 # SunOS /usr/etc/install
1487 # IRIX /sbin/install
1489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491 # ./install, which can be erroneously created by make from ./install.sh.
1492 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1493 echo "configure:1494: checking for a BSD compatible install" >&5
1494 if test -z "$INSTALL"; then
1495 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1499 for ac_dir in $PATH; do
1500 # Account for people who put trailing slashes in PATH elements.
1502 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1504 # OSF1 and SCO ODT 3.0 have their own names for install.
1505 for ac_prog in ginstall installbsd scoinst install; do
1506 if test -f $ac_dir/$ac_prog; then
1507 if test $ac_prog = install &&
1508 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1509 # AIX install. It has an incompatible calling convention.
1510 # OSF/1 installbsd also uses dspmsg, but is usable.
1513 ac_cv_path_install="$ac_dir/$ac_prog -c"
1524 if test "${ac_cv_path_install+set}" = set; then
1525 INSTALL="$ac_cv_path_install"
1527 # As a last resort, use the slow shell script. We don't cache a
1528 # path for INSTALL within a source directory, because that will
1529 # break other packages using the cache if that directory is
1530 # removed, or if the path is relative.
1531 INSTALL="$ac_install_sh"
1534 echo "$ac_t""$INSTALL" 1>&6
1536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1537 # It thinks the first close brace ends the variable substitution.
1538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1542 # Extract the first word of "ranlib", so it can be a program name with args.
1543 set dummy ranlib; ac_word=$2
1544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1545 echo "configure:1546: checking for $ac_word" >&5
1546 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 if test -n "$RANLIB"; then
1550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1553 for ac_dir in $PATH; do
1554 test -z "$ac_dir" && ac_dir=.
1555 if test -f $ac_dir/$ac_word; then
1556 ac_cv_prog_RANLIB="ranlib"
1561 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1564 RANLIB="$ac_cv_prog_RANLIB"
1565 if test -n "$RANLIB"; then
1566 echo "$ac_t""$RANLIB" 1>&6
1568 echo "$ac_t""no" 1>&6
1571 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1572 echo "configure:1573: checking whether ${MAKE-make} sets \${MAKE}" >&5
1573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1574 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 cat > conftestmake <<\EOF
1579 @echo 'ac_maketemp="${MAKE}"'
1581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1582 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1583 if test -n "$ac_maketemp"; then
1584 eval ac_cv_prog_make_${ac_make}_set=yes
1586 eval ac_cv_prog_make_${ac_make}_set=no
1590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1594 echo "$ac_t""no" 1>&6
1595 SET_MAKE="MAKE=${MAKE-make}"
1599 # Extract the first word of "sendmail", so it can be a program name with args.
1600 set dummy sendmail; ac_word=$2
1601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1602 echo "configure:1603: checking for $ac_word" >&5
1603 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1608 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1612 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1613 test -z "$ac_dir" && ac_dir=.
1614 if test -f $ac_dir/$ac_word; then
1615 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1620 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1624 SENDMAIL="$ac_cv_path_SENDMAIL"
1625 if test -n "$SENDMAIL"; then
1626 echo "$ac_t""$SENDMAIL" 1>&6
1628 echo "$ac_t""no" 1>&6
1631 # Extract the first word of "vi", so it can be a program name with args.
1632 set dummy vi; ac_word=$2
1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1634 echo "configure:1635: checking for $ac_word" >&5
1635 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1640 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1644 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1645 test -z "$ac_dir" && ac_dir=.
1646 if test -f $ac_dir/$ac_word; then
1647 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1652 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1656 EDITOR="$ac_cv_path_EDITOR"
1657 if test -n "$EDITOR"; then
1658 echo "$ac_t""$EDITOR" 1>&6
1660 echo "$ac_t""no" 1>&6
1663 # Extract the first word of "finger", so it can be a program name with args.
1664 set dummy finger; ac_word=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5
1667 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1672 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1676 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1677 test -z "$ac_dir" && ac_dir=.
1678 if test -f $ac_dir/$ac_word; then
1679 ac_cv_path_FINGER="$ac_dir/$ac_word"
1684 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1688 FINGER="$ac_cv_path_FINGER"
1689 if test -n "$FINGER"; then
1690 echo "$ac_t""$FINGER" 1>&6
1692 echo "$ac_t""no" 1>&6
1697 echo $ac_n "checking for socket""... $ac_c" 1>&6
1698 echo "configure:1699: checking for socket" >&5
1699 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 /* System header to define __stub macros and hopefully few prototypes,
1706 which can conflict with char socket(); below. */
1708 /* Override any gcc2 internal prototype to avoid an error. */
1709 /* We use char because int might match the return type of a gcc2
1710 builtin and then its argument prototype would still apply. */
1715 /* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718 #if defined (__stub_socket) || defined (__stub___socket)
1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1728 eval "ac_cv_func_socket=yes"
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 eval "ac_cv_func_socket=no"
1738 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1739 echo "$ac_t""yes" 1>&6
1742 echo "$ac_t""no" 1>&6
1743 echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
1744 echo "configure:1745: checking for gethostname in -lnsl" >&5
1745 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
1746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 ac_save_LIBS="$LIBS"
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1765 eval "ac_cv_lib_$ac_lib_var=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1770 eval "ac_cv_lib_$ac_lib_var=no"
1773 LIBS="$ac_save_LIBS"
1776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1780 cat >> confdefs.h <<EOF
1781 #define $ac_tr_lib 1
1787 echo "$ac_t""no" 1>&6
1790 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1791 echo "configure:1792: checking for socket in -lsocket" >&5
1792 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 ac_save_LIBS="$LIBS"
1797 LIBS="-lsocket $LIBS"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 /* Override any gcc2 internal prototype to avoid an error. */
1802 /* We use char because int might match the return type of a gcc2
1803 builtin and then its argument prototype would still apply. */
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1812 eval "ac_cv_lib_$ac_lib_var=yes"
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1817 eval "ac_cv_lib_$ac_lib_var=no"
1820 LIBS="$ac_save_LIBS"
1823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1827 cat >> confdefs.h <<EOF
1828 #define $ac_tr_lib 1
1831 LIBS="-lsocket $LIBS"
1834 echo "$ac_t""no" 1>&6
1837 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
1838 echo "configure:1839: checking for socket in -linet" >&5
1839 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
1840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 ac_save_LIBS="$LIBS"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 /* Override any gcc2 internal prototype to avoid an error. */
1849 /* We use char because int might match the return type of a gcc2
1850 builtin and then its argument prototype would still apply. */
1857 if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1859 eval "ac_cv_lib_$ac_lib_var=yes"
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 eval "ac_cv_lib_$ac_lib_var=no"
1867 LIBS="$ac_save_LIBS"
1870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1874 cat >> confdefs.h <<EOF
1875 #define $ac_tr_lib 1
1881 echo "$ac_t""no" 1>&6
1889 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
1890 for ac_hdr in pthread.h sched.h
1892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_hdr" >&5
1895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err=`grep -v '^ *+' conftest.out`
1906 if test -z "$ac_err"; then
1908 eval "ac_cv_header_$ac_safe=yes"
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 eval "ac_cv_header_$ac_safe=no"
1918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1921 cat >> confdefs.h <<EOF
1922 #define $ac_tr_hdr 1
1926 echo "$ac_t""no" 1>&6
1931 if test "$ac_cv_header_pthread_h" = yes ; then
1932 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
1933 echo "configure:1934: checking POSIX thread version" >&5
1934 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1942 # include <pthread.h>
1943 /* this check could be improved */
1944 # ifdef PTHREAD_ONCE_INIT
1949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1950 egrep "final" >/dev/null 2>&1; then
1952 ol_pthread_final=yes
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1964 # include <pthread.h>
1965 /* this check could be improved */
1966 # ifdef pthread_once_init
1971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1972 egrep "draft4" >/dev/null 2>&1; then
1974 ol_pthread_draft4=yes
1977 ol_pthread_draft4=no
1982 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
1983 ol_cv_pthread_version=final
1984 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
1985 ol_cv_pthread_version=draft4
1987 ol_cv_pthread_version=unknown
1992 echo "$ac_t""$ol_cv_pthread_version" 1>&6
1995 if test $ol_cv_pthread_version = final ; then
1996 LTHREAD_DEFS="$LTHREAD_DEFS -DPOSIX_THREADS"
1997 elif test $ol_cv_pthread_version = draft4 ; then
1998 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_MIT_PTHREADS"
2000 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2003 # consider threads found
2004 ol_with_threads=found
2007 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2008 echo "configure:2009: checking for LinuxThreads" >&5
2009 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2013 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2014 if test "$res" -gt 0 ; then
2015 ol_cv_linux_threads=yes
2017 ol_cv_linux_threads=no
2022 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2025 if test $ol_cv_linux_threads = yes ; then
2026 LTHREAD_DEFS="$LTHREAD_DEFS -DHAVE_LINUX_THREADS"
2030 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2031 echo "configure:2032: checking for pthread_create" >&5
2032 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char pthread_create(); below. */
2041 /* Override any gcc2 internal prototype to avoid an error. */
2042 /* We use char because int might match the return type of a gcc2
2043 builtin and then its argument prototype would still apply. */
2044 char pthread_create();
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2061 eval "ac_cv_func_pthread_create=yes"
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 eval "ac_cv_func_pthread_create=no"
2071 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2075 echo "$ac_t""no" 1>&6
2079 if test $ol_link_threads = no ; then
2080 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2081 echo "configure:2082: checking for pthread_create with -pthread" >&5
2082 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2087 LIBS="-pthread $LIBS"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 #include <pthread.h>
2094 pthread_create((pthread_t*) 0,
2095 (pthread_attr_t*) 0, 0, 0);
2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2101 ol_cv_pthread_flag=yes
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 ol_cv_pthread_flag=no
2113 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2115 if test $ol_cv_pthread_flag = yes ; then
2116 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2117 ol_link_threads=posix
2121 if test $ol_link_threads = no ; then
2123 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2124 echo "configure:2125: checking for pthread_create in -lpthread" >&5
2125 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 ac_save_LIBS="$LIBS"
2130 LIBS="-lpthread $LIBS"
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2134 /* Override any gcc2 internal prototype to avoid an error. */
2135 /* We use char because int might match the return type of a gcc2
2136 builtin and then its argument prototype would still apply. */
2137 char pthread_create();
2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2145 eval "ac_cv_lib_$ac_lib_var=yes"
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2150 eval "ac_cv_lib_$ac_lib_var=no"
2153 LIBS="$ac_save_LIBS"
2156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2159 ol_link_threads=posix
2160 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2162 echo "$ac_t""no" 1>&6
2168 if test $ol_link_threads = no ; then
2170 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2171 echo "configure:2172: checking for pthread_create in -lc_r" >&5
2172 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 ac_save_LIBS="$LIBS"
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 /* Override any gcc2 internal prototype to avoid an error. */
2182 /* We use char because int might match the return type of a gcc2
2183 builtin and then its argument prototype would still apply. */
2184 char pthread_create();
2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2192 eval "ac_cv_lib_$ac_lib_var=yes"
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2197 eval "ac_cv_lib_$ac_lib_var=no"
2200 LIBS="$ac_save_LIBS"
2203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2206 ol_link_threads=posix
2207 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2209 echo "$ac_t""no" 1>&6
2215 if test $ol_link_threads = no ; then
2217 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2218 echo "configure:2219: checking for pthread_create in -lpthread" >&5
2219 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 ac_save_LIBS="$LIBS"
2224 LIBS="-lpthread -lmach -lexc -lc $LIBS"
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2231 char pthread_create();
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2239 eval "ac_cv_lib_$ac_lib_var=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 eval "ac_cv_lib_$ac_lib_var=no"
2247 LIBS="$ac_save_LIBS"
2250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2253 ol_link_threads=posix
2254 LTHREAD_DEFS="$LTHREAD_DEFS -DDEC_THREADS"
2255 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2257 echo "$ac_t""no" 1>&6
2263 if test $ol_link_threads != no ; then
2264 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
2265 echo "configure:2266: checking for sched_yield" >&5
2266 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 /* System header to define __stub macros and hopefully few prototypes,
2273 which can conflict with char sched_yield(); below. */
2275 /* Override any gcc2 internal prototype to avoid an error. */
2276 /* We use char because int might match the return type of a gcc2
2277 builtin and then its argument prototype would still apply. */
2282 /* The GNU C library defines this for functions which it implements
2283 to always fail with ENOSYS. Some functions are actually named
2284 something starting with __ and the normal name is an alias. */
2285 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2295 eval "ac_cv_func_sched_yield=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 eval "ac_cv_func_sched_yield=no"
2305 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2309 echo "$ac_t""no" 1>&6
2313 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
2317 if test $ol_with_threads = posix ; then
2318 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
2322 if test $ol_with_threads = manual ; then
2323 $ol_link_threads=yes
2325 echo "configure: warning: thread defines and link options must be set manually" 1>&2
2327 for ac_hdr in pthread.h sched.h
2329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_hdr" >&5
2332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2341 { (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2342 ac_err=`grep -v '^ *+' conftest.out`
2343 if test -z "$ac_err"; then
2345 eval "ac_cv_header_$ac_safe=yes"
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2351 eval "ac_cv_header_$ac_safe=no"
2355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2358 cat >> confdefs.h <<EOF
2359 #define $ac_tr_hdr 1
2363 echo "$ac_t""no" 1>&6
2367 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
2368 echo "configure:2369: checking for sched_yield" >&5
2369 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 /* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char sched_yield(); below. */
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2385 /* The GNU C library defines this for functions which it implements
2386 to always fail with ENOSYS. Some functions are actually named
2387 something starting with __ and the normal name is an alias. */
2388 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2398 eval "ac_cv_func_sched_yield=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2403 eval "ac_cv_func_sched_yield=no"
2408 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2412 echo "$ac_t""no" 1>&6
2416 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2417 echo "configure:2418: checking for LinuxThreads" >&5
2418 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2422 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2423 if test "$res" -gt 0 ; then
2424 ol_cv_linux_threads=yes
2426 ol_cv_linux_threads=no
2431 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2435 if test $ol_link_threads = no ; then
2436 if test $ol_with_threads = yes ; then
2437 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
2440 if test $ol_with_threads = auto ; then
2441 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
2442 $ol_with_threads = no
2445 LTHREAD_DEFS="-DNO_THREADS"
2450 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
2451 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
2452 echo "configure:2453: checking for DB2 library" >&5
2453 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2457 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
2458 echo "configure:2459: checking for db_open in -ldb" >&5
2459 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
2460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 ac_save_LIBS="$LIBS"
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2479 eval "ac_cv_lib_$ac_lib_var=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_lib_$ac_lib_var=no"
2487 LIBS="$ac_save_LIBS"
2490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2494 echo "$ac_t""no" 1>&6
2502 echo "$ac_t""$ol_cv_lib_db2" 1>&6
2506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 eval "ac_cv_header_$ac_safe=no"
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_hdr 1
2540 echo "$ac_t""no" 1>&6
2544 if test $ac_cv_header_db_h = yes ; then
2545 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
2546 echo "configure:2547: checking if db.h is DB2" >&5
2547 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2556 /* this check could be improved */
2557 # ifdef DB_VERSION_MAJOR
2558 # if DB_VERSION_MAJOR == 2
2564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2565 egrep "__db_version_2" >/dev/null 2>&1; then
2567 ol_cv_header_db2=yes
2576 echo "$ac_t""$ol_cv_header_db2" 1>&6
2583 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
2584 echo "configure:2585: checking for Berkeley DB2" >&5
2585 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2589 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
2590 ol_cv_berkeley_db2=no
2592 ol_cv_berkeley_db2=yes
2597 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
2600 if test $ol_cv_berkeley_db2 = yes ; then
2602 ol_with_ldbm_api=db2
2604 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
2606 if test $ol_with_ldbm_type = hash ; then
2607 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
2609 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
2612 if test $ol_cv_lib_db2 != yes ; then
2613 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
2618 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
2619 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
2620 echo "configure:2621: checking for Berkeley DB library" >&5
2621 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2625 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
2626 echo "configure:2627: checking for dbopen" >&5
2627 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 /* System header to define __stub macros and hopefully few prototypes,
2634 which can conflict with char dbopen(); below. */
2636 /* Override any gcc2 internal prototype to avoid an error. */
2637 /* We use char because int might match the return type of a gcc2
2638 builtin and then its argument prototype would still apply. */
2643 /* The GNU C library defines this for functions which it implements
2644 to always fail with ENOSYS. Some functions are actually named
2645 something starting with __ and the normal name is an alias. */
2646 #if defined (__stub_dbopen) || defined (__stub___dbopen)
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2656 eval "ac_cv_func_dbopen=yes"
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2661 eval "ac_cv_func_dbopen=no"
2666 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
2667 echo "$ac_t""yes" 1>&6
2670 echo "$ac_t""no" 1>&6
2672 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
2673 echo "configure:2674: checking for dbopen in -ldb" >&5
2674 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
2675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 ac_save_LIBS="$LIBS"
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 /* Override any gcc2 internal prototype to avoid an error. */
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2692 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2694 eval "ac_cv_lib_$ac_lib_var=yes"
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2699 eval "ac_cv_lib_$ac_lib_var=no"
2702 LIBS="$ac_save_LIBS"
2705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2709 echo "$ac_t""no" 1>&6
2720 echo "$ac_t""$ol_cv_lib_db" 1>&6
2723 for ac_hdr in db_185.h
2725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_hdr" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err=`grep -v '^ *+' conftest.out`
2739 if test -z "$ac_err"; then
2741 eval "ac_cv_header_$ac_safe=yes"
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 eval "ac_cv_header_$ac_safe=no"
2751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2754 cat >> confdefs.h <<EOF
2755 #define $ac_tr_hdr 1
2759 echo "$ac_t""no" 1>&6
2763 if test $ol_cv_header_db2 = yes ; then
2765 ol_cv_header_db=$ac_cv_header_db_185_h
2767 ol_cv_header_db=$ac_cv_header_db_h
2772 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
2773 echo "configure:2774: checking for Berkeley DB" >&5
2774 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2778 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
2779 ol_cv_berkeley_db=no
2781 ol_cv_berkeley_db=yes
2786 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
2789 if test $ol_cv_berkeley_db = yes ; then
2793 if test $ac_cv_header_db_185_h = yes ; then
2794 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
2797 if test $ol_with_ldbm_type = hash ; then
2798 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
2800 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
2803 if test $ol_cv_lib_db != yes ; then
2804 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
2809 if test $ol_with_ldbm_api = manual ; then
2812 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
2814 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
2816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_hdr" >&5
2819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 { (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 ac_err=`grep -v '^ *+' conftest.out`
2830 if test -z "$ac_err"; then
2832 eval "ac_cv_header_$ac_safe=yes"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2838 eval "ac_cv_header_$ac_safe=no"
2842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2845 cat >> confdefs.h <<EOF
2846 #define $ac_tr_hdr 1
2850 echo "$ac_t""no" 1>&6
2856 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
2857 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2;
2858 $ol_with_ldbm_api=none
2861 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
2862 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
2863 echo "configure:2864: checking for GDBM library" >&5
2864 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2868 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
2869 echo "configure:2870: checking for gdbm_open" >&5
2870 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char gdbm_open(); below. */
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2899 eval "ac_cv_func_gdbm_open=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 eval "ac_cv_func_gdbm_open=no"
2909 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2913 echo "$ac_t""no" 1>&6
2915 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
2916 echo "configure:2917: checking for gdbm_open in -lgdbm" >&5
2917 ac_lib_var=`echo gdbm'_'gdbm_open | 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. */
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
2950 ol_cv_lib_gdbm=-lgdbm
2952 echo "$ac_t""no" 1>&6
2963 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
2966 for ac_hdr in gdbm.h
2968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2970 echo "configure:2971: checking for $ac_hdr" >&5
2971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2980 { (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2981 ac_err=`grep -v '^ *+' conftest.out`
2982 if test -z "$ac_err"; then
2984 eval "ac_cv_header_$ac_safe=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 eval "ac_cv_header_$ac_safe=no"
2994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2995 echo "$ac_t""yes" 1>&6
2996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2997 cat >> confdefs.h <<EOF
2998 #define $ac_tr_hdr 1
3002 echo "$ac_t""no" 1>&6
3006 echo $ac_n "checking for db""... $ac_c" 1>&6
3007 echo "configure:3008: checking for db" >&5
3008 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3012 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
3020 echo "$ac_t""$ol_cv_gdbm" 1>&6
3023 if test $ol_cv_gdbm = yes ; then
3025 ol_with_ldbm_api=gdbm
3027 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_GDBM"
3029 if test $ol_cv_lib_gdbm != yes ; then
3030 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
3035 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
3036 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
3037 echo "configure:3038: checking for NDBM library" >&5
3038 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3042 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3043 echo "configure:3044: checking for dbm_open" >&5
3044 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* System header to define __stub macros and hopefully few prototypes,
3051 which can conflict with char dbm_open(); below. */
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3060 /* The GNU C library defines this for functions which it implements
3061 to always fail with ENOSYS. Some functions are actually named
3062 something starting with __ and the normal name is an alias. */
3063 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3073 eval "ac_cv_func_dbm_open=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 eval "ac_cv_func_dbm_open=no"
3083 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3087 echo "$ac_t""no" 1>&6
3089 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3090 echo "configure:3091: checking for dbm_open in -lndbm" >&5
3091 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 ac_save_LIBS="$LIBS"
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 /* Override any gcc2 internal prototype to avoid an error. */
3101 /* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3109 if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3111 eval "ac_cv_lib_$ac_lib_var=yes"
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3116 eval "ac_cv_lib_$ac_lib_var=no"
3119 LIBS="$ac_save_LIBS"
3122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3123 echo "$ac_t""yes" 1>&6
3124 ol_cv_lib_ndbm=-lndbm
3126 echo "$ac_t""no" 1>&6
3128 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3129 echo "configure:3130: checking for dbm_open in -ldbm" >&5
3130 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 ac_save_LIBS="$LIBS"
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* Override any gcc2 internal prototype to avoid an error. */
3140 /* We use char because int might match the return type of a gcc2
3141 builtin and then its argument prototype would still apply. */
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3150 eval "ac_cv_lib_$ac_lib_var=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_lib_$ac_lib_var=no"
3158 LIBS="$ac_save_LIBS"
3161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ol_cv_lib_ndbm=-ldbm
3165 echo "$ac_t""no" 1>&6
3178 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
3181 for ac_hdr in ndbm.h
3183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_hdr" >&5
3186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3195 { (eval echo configure:3196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3196 ac_err=`grep -v '^ *+' conftest.out`
3197 if test -z "$ac_err"; then
3199 eval "ac_cv_header_$ac_safe=yes"
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3205 eval "ac_cv_header_$ac_safe=no"
3209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3210 echo "$ac_t""yes" 1>&6
3211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3212 cat >> confdefs.h <<EOF
3213 #define $ac_tr_hdr 1
3217 echo "$ac_t""no" 1>&6
3221 echo $ac_n "checking for db""... $ac_c" 1>&6
3222 echo "configure:3223: checking for db" >&5
3223 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3227 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
3235 echo "$ac_t""$ol_cv_ndbm" 1>&6
3238 if test $ol_cv_ndbm = yes ; then
3240 ol_with_ldbm_api=ndbm
3242 if test $ol_with_ldbm_api = ndbm ; then
3243 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
3246 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_NDBM"
3248 if test $ol_cv_lib_ndbm != yes ; then
3249 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
3254 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
3255 echo "configure: warning: could not find suitable LDBM backend" 1>&2
3256 if test $ol_enable_ldbm = yes ; then
3257 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
3260 echo "configure: warning: disabling LDBM" 1>&2
3264 if test $ol_enable_wrappers = yes ; then
3265 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
3266 echo "configure:3267: checking for hosts_access in -lwrap" >&5
3267 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
3268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 ac_save_LIBS="$LIBS"
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3279 char hosts_access();
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3287 eval "ac_cv_lib_$ac_lib_var=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_lib_$ac_lib_var=no"
3295 LIBS="$ac_save_LIBS"
3298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3302 echo "$ac_t""no" 1>&6
3307 if test $have_wrappers = yes ; then
3308 SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
3309 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
3311 echo "configure: warning: could not find -lwrap" 1>&2
3312 if test $ol_enable_wrappers = yes ; then
3313 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
3316 echo "configure: warning: disabling wrappers support" 1>&2
3317 ol_enable_wrappers=no
3322 # ud needs termcap (should insert check here)
3328 for ac_hdr in termcap.h ncurses.h
3330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3332 echo "configure:3333: checking for $ac_hdr" >&5
3333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3342 { (eval echo configure:3343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3343 ac_err=`grep -v '^ *+' conftest.out`
3344 if test -z "$ac_err"; then
3346 eval "ac_cv_header_$ac_safe=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_header_$ac_safe=no"
3356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3359 cat >> confdefs.h <<EOF
3360 #define $ac_tr_hdr 1
3364 echo "$ac_t""no" 1>&6
3369 if test $ol_link_termcap = no ; then
3370 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
3371 echo "configure:3372: checking for tputs in -ltermcap" >&5
3372 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
3373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 ac_save_LIBS="$LIBS"
3377 LIBS="-ltermcap $LIBS"
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3392 eval "ac_cv_lib_$ac_lib_var=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 eval "ac_cv_lib_$ac_lib_var=no"
3400 LIBS="$ac_save_LIBS"
3403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3407 echo "$ac_t""no" 1>&6
3411 if test $have_termcap = yes ; then
3413 TERMCAP_LIBS=-ltermcap
3417 if test $ol_link_termcap = no ; then
3418 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3419 echo "configure:3420: checking for initscr in -lncurses" >&5
3420 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 ac_save_LIBS="$LIBS"
3425 LIBS="-lncurses $LIBS"
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3440 eval "ac_cv_lib_$ac_lib_var=yes"
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3445 eval "ac_cv_lib_$ac_lib_var=no"
3448 LIBS="$ac_save_LIBS"
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3455 echo "$ac_t""no" 1>&6
3459 if test $have_ncurses = yes ; then
3461 TERMCAP_LIBS=-lncurses
3465 if test $ol_link_termcap = no ; then
3466 TERMCAP_DEFS="-DNOTERMCAP"
3473 # FreeBSD (and others) have crypt(3) in -lcrypt
3474 if test $ol_enable_crypt != no ; then
3475 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3476 echo "configure:3477: checking for crypt" >&5
3477 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 /* System header to define __stub macros and hopefully few prototypes,
3484 which can conflict with char crypt(); below. */
3486 /* Override any gcc2 internal prototype to avoid an error. */
3487 /* We use char because int might match the return type of a gcc2
3488 builtin and then its argument prototype would still apply. */
3493 /* The GNU C library defines this for functions which it implements
3494 to always fail with ENOSYS. Some functions are actually named
3495 something starting with __ and the normal name is an alias. */
3496 #if defined (__stub_crypt) || defined (__stub___crypt)
3504 if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3506 eval "ac_cv_func_crypt=yes"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3511 eval "ac_cv_func_crypt=no"
3516 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3520 echo "$ac_t""no" 1>&6
3522 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3523 echo "configure:3524: checking for crypt in -lcrypt" >&5
3524 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 ac_save_LIBS="$LIBS"
3529 LIBS="-lcrypt $LIBS"
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3544 eval "ac_cv_lib_$ac_lib_var=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_lib_$ac_lib_var=no"
3552 LIBS="$ac_save_LIBS"
3555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
3560 echo "$ac_t""no" 1>&6
3567 if test $have_crypt = yes ; then
3568 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
3570 echo "configure: warning: could not find crypt" 1>&2
3571 if test $ol_enable_crypt = yes ; then
3572 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
3575 echo "configure: warning: disabling crypt support" 1>&2
3580 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3581 echo "configure:3582: checking for ANSI C header files" >&5
3582 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3594 { (eval echo configure:3595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3595 ac_err=`grep -v '^ *+' conftest.out`
3596 if test -z "$ac_err"; then
3598 ac_cv_header_stdc=yes
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 ac_cv_header_stdc=no
3608 if test $ac_cv_header_stdc = yes; then
3609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 egrep "memchr" >/dev/null 2>&1; then
3620 ac_cv_header_stdc=no
3626 if test $ac_cv_header_stdc = yes; then
3627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 egrep "free" >/dev/null 2>&1; then
3638 ac_cv_header_stdc=no
3644 if test $ac_cv_header_stdc = yes; then
3645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3646 if test "$cross_compiling" = yes; then
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3653 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3654 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3656 int main () { int i; for (i = 0; i < 256; i++)
3657 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 ac_cv_header_stdc=no
3676 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3677 if test $ac_cv_header_stdc = yes; then
3678 cat >> confdefs.h <<\EOF
3679 #define STDC_HEADERS 1
3685 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3688 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_hdr that defines DIR" >&5
3690 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <sys/types.h>
3702 if { (eval echo configure:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704 eval "ac_cv_header_dirent_$ac_safe=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3709 eval "ac_cv_header_dirent_$ac_safe=no"
3713 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3716 cat >> confdefs.h <<EOF
3717 #define $ac_tr_hdr 1
3719 ac_header_dirent=$ac_hdr; break
3721 echo "$ac_t""no" 1>&6
3724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3725 if test $ac_header_dirent = dirent.h; then
3726 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3727 echo "configure:3728: checking for opendir in -ldir" >&5
3728 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 ac_save_LIBS="$LIBS"
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 /* Override any gcc2 internal prototype to avoid an error. */
3738 /* We use char because int might match the return type of a gcc2
3739 builtin and then its argument prototype would still apply. */
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3748 eval "ac_cv_lib_$ac_lib_var=yes"
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 eval "ac_cv_lib_$ac_lib_var=no"
3756 LIBS="$ac_save_LIBS"
3759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3763 echo "$ac_t""no" 1>&6
3767 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3768 echo "configure:3769: checking for opendir in -lx" >&5
3769 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS="$LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3789 eval "ac_cv_lib_$ac_lib_var=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_lib_$ac_lib_var=no"
3797 LIBS="$ac_save_LIBS"
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3804 echo "$ac_t""no" 1>&6
3809 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3810 echo "configure:3811: checking for sys/wait.h that is POSIX.1 compatible" >&5
3811 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 #include <sys/types.h>
3818 #include <sys/wait.h>
3820 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3823 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3828 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3831 if { (eval echo configure:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3833 ac_cv_header_sys_wait_h=yes
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 ac_cv_header_sys_wait_h=no
3843 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3844 if test $ac_cv_header_sys_wait_h = yes; then
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_SYS_WAIT_H 1
3865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3867 echo "configure:3868: checking for $ac_hdr" >&5
3868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3877 { (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3878 ac_err=`grep -v '^ *+' conftest.out`
3879 if test -z "$ac_err"; then
3881 eval "ac_cv_header_$ac_safe=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_header_$ac_safe=no"
3891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3894 cat >> confdefs.h <<EOF
3895 #define $ac_tr_hdr 1
3899 echo "$ac_t""no" 1>&6
3904 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3905 echo "configure:3906: checking for uid_t in sys/types.h" >&5
3906 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 #include <sys/types.h>
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 egrep "uid_t" >/dev/null 2>&1; then
3917 ac_cv_type_uid_t=yes
3926 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3927 if test $ac_cv_type_uid_t = no; then
3928 cat >> confdefs.h <<\EOF
3932 cat >> confdefs.h <<\EOF
3938 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3939 echo "configure:3940: checking type of array argument to getgroups" >&5
3940 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 if test "$cross_compiling" = yes; then
3944 ac_cv_type_getgroups=cross
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3950 /* Thanks to Mike Rendell for this test. */
3951 #include <sys/types.h>
3954 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3959 union { gid_t gval; long lval; } val;
3962 for (i = 0; i < NGID; i++)
3963 gidset[i] = val.gval;
3964 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3966 /* Exit non-zero if getgroups seems to require an array of ints. This
3967 happens when gid_t is short but getgroups modifies an array of ints. */
3968 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3974 ac_cv_type_getgroups=gid_t
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 ac_cv_type_getgroups=int
3984 if test $ac_cv_type_getgroups = cross; then
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3993 ac_cv_type_getgroups=gid_t
3996 ac_cv_type_getgroups=int
4003 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
4004 cat >> confdefs.h <<EOF
4005 #define GETGROUPS_T $ac_cv_type_getgroups
4009 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4010 echo "configure:4011: checking for mode_t" >&5
4011 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 #include <sys/types.h>
4023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4026 ac_cv_type_mode_t=yes
4029 ac_cv_type_mode_t=no
4034 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4035 if test $ac_cv_type_mode_t = no; then
4036 cat >> confdefs.h <<\EOF
4042 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4043 echo "configure:4044: checking for off_t" >&5
4044 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 #include <sys/types.h>
4056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4057 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4059 ac_cv_type_off_t=yes
4067 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4068 if test $ac_cv_type_off_t = no; then
4069 cat >> confdefs.h <<\EOF
4075 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4076 echo "configure:4077: checking for pid_t" >&5
4077 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 #include <sys/types.h>
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4092 ac_cv_type_pid_t=yes
4100 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4101 if test $ac_cv_type_pid_t = no; then
4102 cat >> confdefs.h <<\EOF
4108 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4109 echo "configure:4110: checking return type of signal handlers" >&5
4110 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <sys/types.h>
4122 extern "C" void (*signal (int, void (*)(int)))(int);
4124 void (*signal ()) ();
4131 if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 ac_cv_type_signal=void
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 ac_cv_type_signal=int
4143 echo "$ac_t""$ac_cv_type_signal" 1>&6
4144 cat >> confdefs.h <<EOF
4145 #define RETSIGTYPE $ac_cv_type_signal
4149 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4150 echo "configure:4151: checking for size_t" >&5
4151 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 #include <sys/types.h>
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4166 ac_cv_type_size_t=yes
4169 ac_cv_type_size_t=no
4174 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4175 if test $ac_cv_type_size_t = no; then
4176 cat >> confdefs.h <<\EOF
4177 #define size_t unsigned
4182 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4183 echo "configure:4184: checking for uid_t in sys/types.h" >&5
4184 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 #include <sys/types.h>
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 egrep "uid_t" >/dev/null 2>&1; then
4195 ac_cv_type_uid_t=yes
4204 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4205 if test $ac_cv_type_uid_t = no; then
4206 cat >> confdefs.h <<\EOF
4210 cat >> confdefs.h <<\EOF
4216 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4217 echo "configure:4218: checking for st_blksize in struct stat" >&5
4218 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 #include <sys/types.h>
4225 #include <sys/stat.h>
4227 struct stat s; s.st_blksize;
4230 if { (eval echo configure:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 ac_cv_struct_st_blksize=yes
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 ac_cv_struct_st_blksize=no
4242 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4243 if test $ac_cv_struct_st_blksize = yes; then
4244 cat >> confdefs.h <<\EOF
4245 #define HAVE_ST_BLKSIZE 1
4250 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4251 echo "configure:4252: checking whether time.h and sys/time.h may both be included" >&5
4252 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 #include <sys/types.h>
4259 #include <sys/time.h>
4265 if { (eval echo configure:4266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4267 ac_cv_header_time=yes
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 ac_cv_header_time=no
4277 echo "$ac_t""$ac_cv_header_time" 1>&6
4278 if test $ac_cv_header_time = yes; then
4279 cat >> confdefs.h <<\EOF
4280 #define TIME_WITH_SYS_TIME 1
4285 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4286 echo "configure:4287: checking whether struct tm is in sys/time.h or time.h" >&5
4287 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 #include <sys/types.h>
4296 struct tm *tp; tp->tm_sec;
4299 if { (eval echo configure:4300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4301 ac_cv_struct_tm=time.h
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 ac_cv_struct_tm=sys/time.h
4311 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4312 if test $ac_cv_struct_tm = sys/time.h; then
4313 cat >> confdefs.h <<\EOF
4314 #define TM_IN_SYS_TIME 1
4320 echo $ac_n "checking for working const""... $ac_c" 1>&6
4321 echo "configure:4322: checking for working const" >&5
4322 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4331 /* Ultrix mips cc rejects this. */
4332 typedef int charset[2]; const charset x;
4333 /* SunOS 4.1.1 cc rejects this. */
4334 char const *const *ccp;
4336 /* NEC SVR4.0.2 mips cc rejects this. */
4337 struct point {int x, y;};
4338 static struct point const zero = {0,0};
4339 /* AIX XL C 1.02.0.0 rejects this.
4340 It does not let you subtract one const X* pointer from another in an arm
4341 of an if-expression whose if-part is not a constant expression */
4342 const char *g = "string";
4343 ccp = &g + (g ? g-g : 0);
4344 /* HPUX 7.0 cc rejects these. */
4347 ccp = (char const *const *) p;
4348 { /* SCO 3.2v4 cc rejects this. */
4350 char const *s = 0 ? (char *) 0 : (char const *) 0;
4354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4356 const int *foo = &x[0];
4359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4360 typedef const int *iptr;
4364 { /* AIX XL C 1.02.0.0 rejects this saying
4365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4366 struct s { int j; const int *ap[3]; };
4367 struct s *b; b->j = 5;
4369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4375 if { (eval echo configure:4376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4387 echo "$ac_t""$ac_cv_c_const" 1>&6
4388 if test $ac_cv_c_const = no; then
4389 cat >> confdefs.h <<\EOF
4396 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4397 echo "configure:4398: checking for 8-bit clean memcmp" >&5
4398 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 if test "$cross_compiling" = yes; then
4402 ac_cv_func_memcmp_clean=no
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4410 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4411 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4417 ac_cv_func_memcmp_clean=yes
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4422 ac_cv_func_memcmp_clean=no
4429 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4430 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
4432 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4433 echo "configure:4434: checking return type of signal handlers" >&5
4434 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 #include <sys/types.h>
4446 extern "C" void (*signal (int, void (*)(int)))(int);
4448 void (*signal ()) ();
4455 if { (eval echo configure:4456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4457 ac_cv_type_signal=void
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 ac_cv_type_signal=int
4467 echo "$ac_t""$ac_cv_type_signal" 1>&6
4468 cat >> confdefs.h <<EOF
4469 #define RETSIGTYPE $ac_cv_type_signal
4473 echo $ac_n "checking for strftime""... $ac_c" 1>&6
4474 echo "configure:4475: checking for strftime" >&5
4475 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 /* System header to define __stub macros and hopefully few prototypes,
4482 which can conflict with char strftime(); below. */
4484 /* Override any gcc2 internal prototype to avoid an error. */
4485 /* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4491 /* The GNU C library defines this for functions which it implements
4492 to always fail with ENOSYS. Some functions are actually named
4493 something starting with __ and the normal name is an alias. */
4494 #if defined (__stub_strftime) || defined (__stub___strftime)
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4504 eval "ac_cv_func_strftime=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 eval "ac_cv_func_strftime=no"
4514 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4516 cat >> confdefs.h <<\EOF
4517 #define HAVE_STRFTIME 1
4521 echo "$ac_t""no" 1>&6
4522 # strftime is in -lintl on SCO UNIX.
4523 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4524 echo "configure:4525: checking for strftime in -lintl" >&5
4525 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 ac_save_LIBS="$LIBS"
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 /* Override any gcc2 internal prototype to avoid an error. */
4535 /* We use char because int might match the return type of a gcc2
4536 builtin and then its argument prototype would still apply. */
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4545 eval "ac_cv_lib_$ac_lib_var=yes"
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 eval "ac_cv_lib_$ac_lib_var=no"
4553 LIBS="$ac_save_LIBS"
4556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 cat >> confdefs.h <<\EOF
4559 #define HAVE_STRFTIME 1
4564 echo "$ac_t""no" 1>&6
4569 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4570 echo "configure:4571: checking for vprintf" >&5
4571 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 /* System header to define __stub macros and hopefully few prototypes,
4578 which can conflict with char vprintf(); below. */
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4587 /* The GNU C library defines this for functions which it implements
4588 to always fail with ENOSYS. Some functions are actually named
4589 something starting with __ and the normal name is an alias. */
4590 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4600 eval "ac_cv_func_vprintf=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4605 eval "ac_cv_func_vprintf=no"
4610 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4612 cat >> confdefs.h <<\EOF
4613 #define HAVE_VPRINTF 1
4617 echo "$ac_t""no" 1>&6
4620 if test "$ac_cv_func_vprintf" != yes; then
4621 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4622 echo "configure:4623: checking for _doprnt" >&5
4623 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 /* System header to define __stub macros and hopefully few prototypes,
4630 which can conflict with char _doprnt(); below. */
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4639 /* The GNU C library defines this for functions which it implements
4640 to always fail with ENOSYS. Some functions are actually named
4641 something starting with __ and the normal name is an alias. */
4642 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4650 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4652 eval "ac_cv_func__doprnt=yes"
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4657 eval "ac_cv_func__doprnt=no"
4662 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4664 cat >> confdefs.h <<\EOF
4665 #define HAVE_DOPRNT 1
4669 echo "$ac_t""no" 1>&6
4674 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
4675 echo "configure:4676: checking for wait3 that fills in rusage" >&5
4676 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 if test "$cross_compiling" = yes; then
4680 ac_cv_func_wait3_rusage=no
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 #include <sys/time.h>
4687 #include <sys/resource.h>
4689 /* HP-UX has wait3 but does not fill in rusage at all. */
4693 /* Use a field that we can force nonzero --
4694 voluntary context switches.
4695 For systems like NeXT and OSF/1 that don't set it,
4696 also use the system CPU time. And page faults (I/O) for Linux. */
4698 r.ru_stime.tv_sec = 0;
4699 r.ru_stime.tv_usec = 0;
4700 r.ru_majflt = r.ru_minflt = 0;
4702 case 0: /* Child. */
4703 sleep(1); /* Give up the CPU. */
4705 case -1: _exit(0); /* What can we do? */
4706 default: /* Parent. */
4708 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
4709 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
4710 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4716 ac_cv_func_wait3_rusage=yes
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 ac_cv_func_wait3_rusage=no
4728 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
4729 if test $ac_cv_func_wait3_rusage = yes; then
4730 cat >> confdefs.h <<\EOF
4731 #define HAVE_WAIT3 1
4753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_func" >&5
4755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func(); below. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4771 /* The GNU C library defines this for functions which it implements
4772 to always fail with ENOSYS. Some functions are actually named
4773 something starting with __ and the normal name is an alias. */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4784 eval "ac_cv_func_$ac_func=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4789 eval "ac_cv_func_$ac_func=no"
4794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_func 1
4802 echo "$ac_t""no" 1>&6
4807 for ac_func in strdup
4809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_func" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char $ac_func(); below. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4840 eval "ac_cv_func_$ac_func=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_func_$ac_func=no"
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853 cat >> confdefs.h <<EOF
4854 #define $ac_tr_func 1
4858 echo "$ac_t""no" 1>&6
4859 LIBOBJS="$LIBOBJS ${ac_func}.o"
4865 # Check Configuration
4867 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
4868 echo "configure:4869: checking declaration of sys_errlist" >&5
4869 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 #include <sys/types.h>
4881 char *c = (char *) *sys_errlist
4884 if { (eval echo configure:4885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4886 ol_cv_dcl_sys_errlist=yes
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 ol_cv_dcl_sys_errlist=no
4896 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
4898 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
4899 if test $ol_cv_dcl_sys_errlist = no ; then
4900 cat >> confdefs.h <<\EOF
4901 #define DECL_SYS_ERRLIST 1
4904 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
4905 echo "configure:4906: checking existence of sys_errlist" >&5
4906 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4915 char *c = (char *) *sys_errlist
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4920 ol_cv_have_sys_errlist=yes
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4925 ol_cv_have_sys_errlist=no
4930 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
4935 if test $ol_enable_debug != no ; then
4936 LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
4938 if test $ol_enable_libui = no ; then
4939 LDAP_DEFS="$LDAP_DEFS -DNO_USERINTERFACE"
4941 if test $ol_enable_cache = no ; then
4942 LDAP_DEFS="$LDAP_DEFS -DNO_CACHE"
4944 if test $ol_enable_dns != no ; then
4945 LDAP_DEFS="$LDAP_DEFS -DLDAP_DNS"
4947 if test $ol_enable_referrals != no ; then
4948 LDAP_DEFS="$LDAP_DEFS -DLDAP_REFERRALS"
4950 if test $ol_enable_cldap != no ; then
4951 LDAP_DEFS="$LDAP_DEFS -DCLDAP"
4954 if test $ol_enable_aclgroup != no ; then
4955 cat >> confdefs.h <<\EOF
4956 #define SLAPD_ACLGROUP 1
4959 SLAPD_DEFS="$SLAPD_DEFS -DACLGROUP"
4962 if test $ol_enable_md5 != no ; then
4963 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
4966 if test $ol_enable_sha1 != no ; then
4967 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
4970 if test $ol_enable_phonetic != no ; then
4971 cat >> confdefs.h <<\EOF
4972 #define SLAPD_PHONETIC 1
4975 SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
4978 if test $ol_enable_rlookups != no ; then
4979 cat >> confdefs.h <<\EOF
4980 #define SLAPD_RLOOKUPS 1
4983 SLAPD_DEFS="$SLAPD_DEFS -DREVERSE_LOOKUPS"
4986 if test $ol_link_ldbm != no ; then
4989 LDBM_DEFS="-DLDAP_LDBM $LDBM_DEFS"
4992 if test $ol_enable_passwd != no ; then
4995 SLAPD_DEFS="-DLDAP_PASSWD $SLAPD_DEFS"
4998 if test $ol_enable_shell != no ; then
5001 SLAPD_DEFS="-DLDAP_SHELL $SLAPD_DEFS"
5004 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
5005 $BUILD_SLAPD = yes ; then
5036 cat > confcache <<\EOF
5037 # This file is a shell script that caches the results of configure
5038 # tests run on this system so they can be shared between configure
5039 # scripts and configure runs. It is not useful on other systems.
5040 # If it contains results you don't want to keep, you may remove or edit it.
5042 # By default, configure uses ./config.cache as the cache file,
5043 # creating it if it does not exist already. You can give configure
5044 # the --cache-file=FILE option to use a different cache file; that is
5045 # what configure does when it calls configure scripts in
5046 # subdirectories, so they share the cache.
5047 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5048 # config.status only pays attention to the cache file if you give it the
5049 # --recheck option to rerun configure.
5052 # The following way of writing the cache mishandles newlines in values,
5053 # but we know of no workaround that is simple, portable, and efficient.
5054 # So, don't put newlines in cache variables' values.
5055 # Ultrix sh set writes to stderr and can't be redirected directly,
5056 # and sets the high bit in the cache file unless we assign to the vars.
5058 case `(ac_space=' '; set) 2>&1` in
5060 # `set' does not quote correctly, so add quotes (double-quote substitution
5061 # turns \\\\ into \\, and sed turns \\ into \).
5063 -e "s/'/'\\\\''/g" \
5064 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5067 # `set' quotes correctly as required by POSIX, so do not add quotes.
5068 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5071 if cmp -s $cache_file confcache; then
5074 if test -w $cache_file; then
5075 echo "updating cache $cache_file"
5076 cat confcache > $cache_file
5078 echo "not updating unwritable cache $cache_file"
5083 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5086 # Let make expand exec_prefix.
5087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5089 # Any assignment to VPATH causes Sun make to only execute
5090 # the first set of double-colon rules, so remove it if not needed.
5091 # If there is a colon in the path, we need to keep it.
5092 if test "x$srcdir" = x.; then
5093 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5096 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5098 DEFS=-DHAVE_CONFIG_H
5100 # Without the "./", some shells look in PATH for config.status.
5101 : ${CONFIG_STATUS=./config.status}
5103 echo creating $CONFIG_STATUS
5104 rm -f $CONFIG_STATUS
5105 cat > $CONFIG_STATUS <<EOF
5107 # Generated automatically by configure.
5108 # Run this file to recreate the current configuration.
5109 # This directory was configured as follows,
5110 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5112 # $0 $ac_configure_args
5114 # Compiler output produced by configure, useful for debugging
5115 # configure, is in ./config.log if it exists.
5117 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5120 case "\$ac_option" in
5121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5122 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5123 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5124 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5125 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5127 -help | --help | --hel | --he | --h)
5128 echo "\$ac_cs_usage"; exit 0 ;;
5129 *) echo "\$ac_cs_usage"; exit 1 ;;
5133 ac_given_srcdir=$srcdir
5134 ac_given_INSTALL="$INSTALL"
5136 trap 'rm -fr `echo "\
5137 Makefile:build/top.mk:Makefile.in:build/dir.mk \
5138 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
5139 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
5140 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
5141 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
5142 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
5143 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
5144 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
5145 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
5146 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
5147 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
5148 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
5149 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
5150 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
5151 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
5152 include/Makefile:build/top.mk:include/Makefile.in \
5153 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
5154 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
5155 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
5156 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
5157 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
5158 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
5159 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
5160 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
5161 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
5162 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
5163 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
5164 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
5165 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
5166 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
5167 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
5168 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
5169 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
5170 tests/Makefile:build/top.mk:tests/Makefile.in \
5171 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5173 cat >> $CONFIG_STATUS <<EOF
5175 # Protect against being on the right side of a sed subst in config.status.
5176 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5177 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5180 s%@CFLAGS@%$CFLAGS%g
5181 s%@CPPFLAGS@%$CPPFLAGS%g
5182 s%@CXXFLAGS@%$CXXFLAGS%g
5184 s%@LDFLAGS@%$LDFLAGS%g
5186 s%@exec_prefix@%$exec_prefix%g
5187 s%@prefix@%$prefix%g
5188 s%@program_transform_name@%$program_transform_name%g
5189 s%@bindir@%$bindir%g
5190 s%@sbindir@%$sbindir%g
5191 s%@libexecdir@%$libexecdir%g
5192 s%@datadir@%$datadir%g
5193 s%@sysconfdir@%$sysconfdir%g
5194 s%@sharedstatedir@%$sharedstatedir%g
5195 s%@localstatedir@%$localstatedir%g
5196 s%@libdir@%$libdir%g
5197 s%@includedir@%$includedir%g
5198 s%@oldincludedir@%$oldincludedir%g
5199 s%@infodir@%$infodir%g
5200 s%@mandir@%$mandir%g
5204 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5205 s%@INSTALL_DATA@%$INSTALL_DATA%g
5206 s%@RANLIB@%$RANLIB%g
5207 s%@SET_MAKE@%$SET_MAKE%g
5208 s%@SENDMAIL@%$SENDMAIL%g
5209 s%@EDITOR@%$EDITOR%g
5210 s%@FINGER@%$FINGER%g
5211 s%@TERMCAP_DEFS@%$TERMCAP_DEFS%g
5212 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
5213 s%@LIBOBJS@%$LIBOBJS%g
5214 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
5215 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
5216 s%@BUILD_LDBM@%$BUILD_LDBM%g
5217 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
5218 s%@BUILD_SHELL@%$BUILD_SHELL%g
5219 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
5220 s%@LDAP_DEFS@%$LDAP_DEFS%g
5221 s%@LDAP_LIBS@%$LDAP_LIBS%g
5222 s%@LDAPD_DEFS@%$LDAPD_DEFS%g
5223 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
5224 s%@SLAPD_DEFS@%$SLAPD_DEFS%g
5225 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
5226 s%@SLURPD_DEFS@%$SLURPD_DEFS%g
5227 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
5228 s%@LDBM_DEFS@%$LDBM_DEFS%g
5229 s%@LDBM_LIBS@%$LDBM_LIBS%g
5230 s%@LTHREAD_DEFS@%$LTHREAD_DEFS%g
5231 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
5232 s%@LUTIL_DEFS@%$LUTIL_DEFS%g
5233 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
5238 cat >> $CONFIG_STATUS <<\EOF
5240 # Split the substitutions into bite-sized pieces for seds with
5241 # small command number limits, like on Digital OSF/1 and HP-UX.
5242 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5243 ac_file=1 # Number of current file.
5244 ac_beg=1 # First line for current file.
5245 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5248 while $ac_more_lines; do
5249 if test $ac_beg -gt 1; then
5250 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5252 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5254 if test ! -s conftest.s$ac_file; then
5256 rm -f conftest.s$ac_file
5258 if test -z "$ac_sed_cmds"; then
5259 ac_sed_cmds="sed -f conftest.s$ac_file"
5261 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5263 ac_file=`expr $ac_file + 1`
5265 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5268 if test -z "$ac_sed_cmds"; then
5273 cat >> $CONFIG_STATUS <<EOF
5275 CONFIG_FILES=\${CONFIG_FILES-"\
5276 Makefile:build/top.mk:Makefile.in:build/dir.mk \
5277 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
5278 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
5279 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
5280 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
5281 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
5282 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
5283 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
5284 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
5285 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
5286 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
5287 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
5288 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
5289 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
5290 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
5291 include/Makefile:build/top.mk:include/Makefile.in \
5292 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
5293 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
5294 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
5295 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
5296 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
5297 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
5298 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
5299 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
5300 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
5301 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
5302 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
5303 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
5304 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
5305 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
5306 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
5307 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
5308 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
5309 tests/Makefile:build/top.mk:tests/Makefile.in \
5312 cat >> $CONFIG_STATUS <<\EOF
5313 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5316 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5317 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5318 *) ac_file_in="${ac_file}.in" ;;
5321 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5323 # Remove last slash and all that follows it. Not all systems have dirname.
5324 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5325 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5326 # The file is in a subdirectory.
5327 test ! -d "$ac_dir" && mkdir "$ac_dir"
5328 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5329 # A "../" for each directory in $ac_dir_suffix.
5330 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5332 ac_dir_suffix= ac_dots=
5335 case "$ac_given_srcdir" in
5337 if test -z "$ac_dots"; then top_srcdir=.
5338 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5339 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5341 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5342 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5345 case "$ac_given_INSTALL" in
5346 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5347 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5350 echo creating "$ac_file"
5352 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5354 *Makefile*) ac_comsub="1i\\
5355 # $configure_input" ;;
5359 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5361 s%@configure_input@%$configure_input%g
5362 s%@srcdir@%$srcdir%g
5363 s%@top_srcdir@%$top_srcdir%g
5364 s%@INSTALL@%$INSTALL%g
5365 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5369 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5370 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5372 # ac_d sets the value in "#define NAME VALUE" lines.
5373 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5374 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5377 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5378 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5379 ac_uB='\([ ]\)%\1#\2define\3'
5382 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5383 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5384 ac_eB='$%\1#\2define\3'
5388 if test "${CONFIG_HEADERS+set}" != set; then
5390 cat >> $CONFIG_STATUS <<EOF
5391 CONFIG_HEADERS="include/portable.h"
5393 cat >> $CONFIG_STATUS <<\EOF
5395 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5398 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5399 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5400 *) ac_file_in="${ac_file}.in" ;;
5403 echo creating $ac_file
5405 rm -f conftest.frag conftest.in conftest.out
5406 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5407 cat $ac_file_inputs > conftest.in
5411 # Transform confdefs.h into a sed script conftest.vals that substitutes
5412 # the proper values into config.h.in to produce config.h. And first:
5413 # Protect against being on the right side of a sed subst in config.status.
5414 # Protect against being in an unquoted here document in config.status.
5416 cat > conftest.hdr <<\EOF
5419 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5423 sed -n -f conftest.hdr confdefs.h > conftest.vals
5426 # This sed command replaces #undef with comments. This is necessary, for
5427 # example, in the case of _POSIX_SOURCE, which is predefined and required
5428 # on some systems where configure will not decide to define it.
5429 cat >> conftest.vals <<\EOF
5430 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5433 # Break up conftest.vals because some shells have a limit on
5434 # the size of here documents, and old seds have small limits too.
5439 ac_lines=`grep -c . conftest.vals`
5440 # grep -c gives empty output for an empty file on some AIX systems.
5441 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5442 # Write a limited-size here document to conftest.frag.
5443 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5444 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5446 sed -f conftest.frag conftest.in > conftest.out
5448 mv conftest.out conftest.in
5450 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5452 mv conftest.tail conftest.vals
5456 cat >> $CONFIG_STATUS <<\EOF
5457 rm -f conftest.frag conftest.h
5458 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5459 cat conftest.in >> conftest.h
5461 if cmp -s $ac_file conftest.h 2>/dev/null; then
5462 echo "$ac_file is unchanged"
5465 # Remove last slash and all that follows it. Not all systems have dirname.
5466 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5467 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5468 # The file is in a subdirectory.
5469 test ! -d "$ac_dir" && mkdir "$ac_dir"
5472 mv conftest.h $ac_file
5477 cat >> $CONFIG_STATUS <<EOF
5480 cat >> $CONFIG_STATUS <<\EOF
5484 chmod +x $CONFIG_STATUS
5485 rm -fr confdefs* $ac_clean_files
5486 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1