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 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-libui enable library user interface (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-crypt enable crypt(3) passwords (auto)"
52 --enable-md5 enable MD5 passwords (auto)"
54 --enable-sha1 enable SHA1 passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd backend (no)"
70 --enable-shell enable shell backend (no)"
74 --enable-slurpd enable building slurpd (auto)"
76 Library Generation & Linking Options"
78 --enable-static build static libraries [default=yes]
79 --enable-static=PKGS only build shared libraries if the current package
80 appears as an element in the PKGS list"
82 --enable-shared build shared libraries [default=yes]
83 --enable-shared=PKGS only build shared libraries if the current package
84 appears as an element in the PKGS list"
86 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host | --host | --hos | --ho)
263 -host=* | --host=* | --hos=* | --ho=*)
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
384 -site=* | --site=* | --sit=*)
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.12"
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=include/ldap.h
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
581 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
582 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
583 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
590 ac_n= ac_c='\c' ac_t=
594 for ac_dir in build $srcdir/build; do
595 if test -f $ac_dir/install-sh; then
597 ac_install_sh="$ac_aux_dir/install-sh -c"
599 elif test -f $ac_dir/install.sh; then
601 ac_install_sh="$ac_aux_dir/install.sh -c"
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
608 ac_config_guess=$ac_aux_dir/config.guess
609 ac_config_sub=$ac_aux_dir/config.sub
610 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 # Find a good install program. We prefer a C program (faster),
612 # so one script is as good as another. But avoid the broken or
613 # incompatible versions:
614 # SysV /etc/install, /usr/sbin/install
615 # SunOS /usr/etc/install
618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
620 # ./install, which can be erroneously created by make from ./install.sh.
621 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
622 echo "configure:623: checking for a BSD compatible install" >&5
623 if test -z "$INSTALL"; then
624 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
625 echo $ac_n "(cached) $ac_c" 1>&6
627 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
628 for ac_dir in $PATH; do
629 # Account for people who put trailing slashes in PATH elements.
631 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
633 # OSF1 and SCO ODT 3.0 have their own names for install.
634 for ac_prog in ginstall installbsd scoinst install; do
635 if test -f $ac_dir/$ac_prog; then
636 if test $ac_prog = install &&
637 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
638 # AIX install. It has an incompatible calling convention.
639 # OSF/1 installbsd also uses dspmsg, but is usable.
642 ac_cv_path_install="$ac_dir/$ac_prog -c"
653 if test "${ac_cv_path_install+set}" = set; then
654 INSTALL="$ac_cv_path_install"
656 # As a last resort, use the slow shell script. We don't cache a
657 # path for INSTALL within a source directory, because that will
658 # break other packages using the cache if that directory is
659 # removed, or if the path is relative.
660 INSTALL="$ac_install_sh"
663 echo "$ac_t""$INSTALL" 1>&6
665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
666 # It thinks the first close brace ends the variable substitution.
667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
674 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
675 echo "configure:676: checking whether build environment is sane" >&5
678 echo timestamp > conftestfile
679 # Do `set' in a subshell so we don't clobber the current shell's
680 # arguments. Must try -L first in case configure is actually a
681 # symlink; some systems play weird games with the mod time of symlinks
682 # (eg FreeBSD returns the mod time of the symlink's containing
685 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
686 if test "$*" = "X"; then
688 set X `ls -t $srcdir/configure conftestfile`
690 if test "$*" != "X $srcdir/configure conftestfile" \
691 && test "$*" != "X conftestfile $srcdir/configure"; then
693 # If neither matched, then we have a broken ls. This can happen
694 # if, for instance, CONFIG_SHELL is bash and it inherits a
695 # broken ls alias from the environment. This has actually
696 # happened. Such a system could not be considered "sane".
697 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
698 alias in your environment" 1>&2; exit 1; }
701 test "$2" = conftestfile
707 { echo "configure: error: newly created file is older than distributed files!
708 Check your system clock" 1>&2; exit 1; }
711 echo "$ac_t""yes" 1>&6
712 if test "$program_transform_name" = s,x,x,; then
713 program_transform_name=
715 # Double any \ or $. echo might interpret backslashes.
716 cat <<\EOF_SED > conftestsed
717 s,\\,\\\\,g; s,\$,$$,g
719 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
722 test "$program_prefix" != NONE &&
723 program_transform_name="s,^,${program_prefix},; $program_transform_name"
724 # Use a double $ so make ignores it.
725 test "$program_suffix" != NONE &&
726 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
728 # sed with no file args requires a program.
729 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
731 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
732 echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5
733 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
734 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 cat > conftestmake <<\EOF
739 @echo 'ac_maketemp="${MAKE}"'
741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
742 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
743 if test -n "$ac_maketemp"; then
744 eval ac_cv_prog_make_${ac_make}_set=yes
746 eval ac_cv_prog_make_${ac_make}_set=no
750 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
751 echo "$ac_t""yes" 1>&6
754 echo "$ac_t""no" 1>&6
755 SET_MAKE="MAKE=${MAKE-make}"
763 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
764 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
769 missing_dir=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
777 echo "$ac_t""found" 1>&6
779 ACLOCAL="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 AUTOCONF="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake --version) < /dev/null > /dev/null 2>&1; then
803 echo "$ac_t""found" 1>&6
805 AUTOMAKE="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815 AUTOHEADER=autoheader
816 echo "$ac_t""found" 1>&6
818 AUTOHEADER="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
829 echo "$ac_t""found" 1>&6
831 MAKEINFO="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
839 echo "configure:840: checking configure arguments" >&5
844 ldap_subdir="openldap"
846 # Check whether --with-subdir or --without-subdir was given.
847 if test "${with_subdir+set}" = set; then
848 withval="$with_subdir"
850 if test "$withval" = "no"; then
852 elif test "$withval" != "yes"; then
853 ldap_subdir="$withval"
859 # OpenLDAP --enable-debug
860 # Check whether --enable-debug or --disable-debug was given.
861 if test "${enable_debug+set}" = set; then
862 enableval="$enable_debug"
865 for ol_val in auto yes no ; do
866 if test "$enableval" = "$ol_val" ; then
870 if test "$ol_arg" = "invalid" ; then
871 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
873 ol_enable_debug="$ol_arg"
876 ol_enable_debug="yes"
879 # OpenLDAP --enable-proctitle
880 # Check whether --enable-proctitle or --disable-proctitle was given.
881 if test "${enable_proctitle+set}" = set; then
882 enableval="$enable_proctitle"
885 for ol_val in auto yes no ; do
886 if test "$enableval" = "$ol_val" ; then
890 if test "$ol_arg" = "invalid" ; then
891 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
893 ol_enable_proctitle="$ol_arg"
896 ol_enable_proctitle="yes"
898 # end --enable-proctitle
899 # OpenLDAP --enable-libui
900 # Check whether --enable-libui or --disable-libui was given.
901 if test "${enable_libui+set}" = set; then
902 enableval="$enable_libui"
905 for ol_val in auto yes no ; do
906 if test "$enableval" = "$ol_val" ; then
910 if test "$ol_arg" = "invalid" ; then
911 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
913 ol_enable_libui="$ol_arg"
916 ol_enable_libui="yes"
919 # OpenLDAP --enable-cache
920 # Check whether --enable-cache or --disable-cache was given.
921 if test "${enable_cache+set}" = set; then
922 enableval="$enable_cache"
925 for ol_val in auto yes no ; do
926 if test "$enableval" = "$ol_val" ; then
930 if test "$ol_arg" = "invalid" ; then
931 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
933 ol_enable_cache="$ol_arg"
936 ol_enable_cache="yes"
939 # OpenLDAP --enable-dns
940 # Check whether --enable-dns or --disable-dns was given.
941 if test "${enable_dns+set}" = set; then
942 enableval="$enable_dns"
945 for ol_val in auto yes no ; do
946 if test "$enableval" = "$ol_val" ; then
950 if test "$ol_arg" = "invalid" ; then
951 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
953 ol_enable_dns="$ol_arg"
959 # OpenLDAP --enable-referrals
960 # Check whether --enable-referrals or --disable-referrals was given.
961 if test "${enable_referrals+set}" = set; then
962 enableval="$enable_referrals"
965 for ol_val in auto yes no ; do
966 if test "$enableval" = "$ol_val" ; then
970 if test "$ol_arg" = "invalid" ; then
971 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
973 ol_enable_referrals="$ol_arg"
976 ol_enable_referrals="yes"
978 # end --enable-referrals
979 # OpenLDAP --enable-cldap
980 # Check whether --enable-cldap or --disable-cldap was given.
981 if test "${enable_cldap+set}" = set; then
982 enableval="$enable_cldap"
985 for ol_val in auto yes no ; do
986 if test "$enableval" = "$ol_val" ; then
990 if test "$ol_arg" = "invalid" ; then
991 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
993 ol_enable_cldap="$ol_arg"
999 # OpenLDAP --enable-x_compile
1000 # Check whether --enable-x_compile or --disable-x_compile was given.
1001 if test "${enable_x_compile+set}" = set; then
1002 enableval="$enable_x_compile"
1005 for ol_val in yes no ; do
1006 if test "$enableval" = "$ol_val" ; then
1010 if test "$ol_arg" = "invalid" ; then
1011 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1013 ol_enable_x_compile="$ol_arg"
1016 ol_enable_x_compile="no"
1018 # end --enable-x_compile
1020 # OpenLDAP --with-kerberos
1021 # Check whether --with-kerberos or --without-kerberos was given.
1022 if test "${with_kerberos+set}" = set; then
1023 withval="$with_kerberos"
1026 for ol_val in auto k5 k4 afs yes no ; do
1027 if test "$withval" = "$ol_val" ; then
1031 if test "$ol_arg" = "invalid" ; then
1032 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1034 ol_with_kerberos="$ol_arg"
1037 ol_with_kerberos="auto"
1039 # end --with-kerberos
1041 # OpenLDAP --with-threads
1042 # Check whether --with-threads or --without-threads was given.
1043 if test "${with_threads+set}" = set; then
1044 withval="$with_threads"
1047 for ol_val in auto posix mach lwp yes no manual ; do
1048 if test "$withval" = "$ol_val" ; then
1052 if test "$ol_arg" = "invalid" ; then
1053 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1055 ol_with_threads="$ol_arg"
1058 ol_with_threads="auto"
1060 # end --with-threads
1062 # OpenLDAP --with-yielding_select
1063 # Check whether --with-yielding_select or --without-yielding_select was given.
1064 if test "${with_yielding_select+set}" = set; then
1065 withval="$with_yielding_select"
1068 for ol_val in auto yes no manual ; do
1069 if test "$withval" = "$ol_val" ; then
1073 if test "$ol_arg" = "invalid" ; then
1074 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1076 ol_with_yielding_select="$ol_arg"
1079 ol_with_yielding_select="auto"
1081 # end --with-yielding_select
1085 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1086 if test "${with_xxldapdoptions+set}" = set; then
1087 withval="$with_xxldapdoptions"
1091 # OpenLDAP --enable-ldapd
1092 # Check whether --enable-ldapd or --disable-ldapd was given.
1093 if test "${enable_ldapd+set}" = set; then
1094 enableval="$enable_ldapd"
1097 for ol_val in auto yes no ; do
1098 if test "$enableval" = "$ol_val" ; then
1102 if test "$ol_arg" = "invalid" ; then
1103 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1105 ol_enable_ldapd="$ol_arg"
1108 ol_enable_ldapd="no"
1110 # end --enable-ldapd
1112 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1113 if test "${with_xxslapdoptions+set}" = set; then
1114 withval="$with_xxslapdoptions"
1118 # OpenLDAP --enable-slapd
1119 # Check whether --enable-slapd or --disable-slapd was given.
1120 if test "${enable_slapd+set}" = set; then
1121 enableval="$enable_slapd"
1124 for ol_val in auto yes no ; do
1125 if test "$enableval" = "$ol_val" ; then
1129 if test "$ol_arg" = "invalid" ; then
1130 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1132 ol_enable_slapd="$ol_arg"
1135 ol_enable_slapd="yes"
1137 # end --enable-slapd
1138 # OpenLDAP --enable-aclgroups
1139 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1140 if test "${enable_aclgroups+set}" = set; then
1141 enableval="$enable_aclgroups"
1144 for ol_val in auto yes no ; do
1145 if test "$enableval" = "$ol_val" ; then
1149 if test "$ol_arg" = "invalid" ; then
1150 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1152 ol_enable_aclgroups="$ol_arg"
1155 ol_enable_aclgroups="auto"
1157 # end --enable-aclgroups
1158 # OpenLDAP --enable-crypt
1159 # Check whether --enable-crypt or --disable-crypt was given.
1160 if test "${enable_crypt+set}" = set; then
1161 enableval="$enable_crypt"
1164 for ol_val in auto yes no ; do
1165 if test "$enableval" = "$ol_val" ; then
1169 if test "$ol_arg" = "invalid" ; then
1170 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1172 ol_enable_crypt="$ol_arg"
1175 ol_enable_crypt="auto"
1177 # end --enable-crypt
1178 # OpenLDAP --enable-md5
1179 # Check whether --enable-md5 or --disable-md5 was given.
1180 if test "${enable_md5+set}" = set; then
1181 enableval="$enable_md5"
1184 for ol_val in auto yes no ; do
1185 if test "$enableval" = "$ol_val" ; then
1189 if test "$ol_arg" = "invalid" ; then
1190 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
1192 ol_enable_md5="$ol_arg"
1195 ol_enable_md5="auto"
1198 # OpenLDAP --enable-sha1
1199 # Check whether --enable-sha1 or --disable-sha1 was given.
1200 if test "${enable_sha1+set}" = set; then
1201 enableval="$enable_sha1"
1204 for ol_val in auto yes no ; do
1205 if test "$enableval" = "$ol_val" ; then
1209 if test "$ol_arg" = "invalid" ; then
1210 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
1212 ol_enable_sha1="$ol_arg"
1215 ol_enable_sha1="auto"
1218 # OpenLDAP --enable-wrappers
1219 # Check whether --enable-wrappers or --disable-wrappers was given.
1220 if test "${enable_wrappers+set}" = set; then
1221 enableval="$enable_wrappers"
1224 for ol_val in auto yes no ; do
1225 if test "$enableval" = "$ol_val" ; then
1229 if test "$ol_arg" = "invalid" ; then
1230 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1232 ol_enable_wrappers="$ol_arg"
1235 ol_enable_wrappers="no"
1237 # end --enable-wrappers
1238 # OpenLDAP --enable-phonetic
1239 # Check whether --enable-phonetic or --disable-phonetic was given.
1240 if test "${enable_phonetic+set}" = set; then
1241 enableval="$enable_phonetic"
1244 for ol_val in auto yes no ; do
1245 if test "$enableval" = "$ol_val" ; then
1249 if test "$ol_arg" = "invalid" ; then
1250 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1252 ol_enable_phonetic="$ol_arg"
1255 ol_enable_phonetic="no"
1257 # end --enable-phonetic
1258 # OpenLDAP --enable-rlookups
1259 # Check whether --enable-rlookups or --disable-rlookups was given.
1260 if test "${enable_rlookups+set}" = set; then
1261 enableval="$enable_rlookups"
1264 for ol_val in auto yes no ; do
1265 if test "$enableval" = "$ol_val" ; then
1269 if test "$ol_arg" = "invalid" ; then
1270 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1272 ol_enable_rlookups="$ol_arg"
1275 ol_enable_rlookups="auto"
1277 # end --enable-rlookups
1279 # OpenLDAP --enable-ldbm
1280 # Check whether --enable-ldbm or --disable-ldbm was given.
1281 if test "${enable_ldbm+set}" = set; then
1282 enableval="$enable_ldbm"
1285 for ol_val in auto yes no ; do
1286 if test "$enableval" = "$ol_val" ; then
1290 if test "$ol_arg" = "invalid" ; then
1291 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1293 ol_enable_ldbm="$ol_arg"
1296 ol_enable_ldbm="yes"
1299 # OpenLDAP --with-ldbm_api
1300 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1301 if test "${with_ldbm_api+set}" = set; then
1302 withval="$with_ldbm_api"
1305 for ol_val in auto db2 db gdbm ndbm manual ; do
1306 if test "$withval" = "$ol_val" ; then
1310 if test "$ol_arg" = "invalid" ; then
1311 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1313 ol_with_ldbm_api="$ol_arg"
1316 ol_with_ldbm_api="auto"
1318 # end --with-ldbm_api
1320 # OpenLDAP --with-ldbm_type
1321 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1322 if test "${with_ldbm_type+set}" = set; then
1323 withval="$with_ldbm_type"
1326 for ol_val in auto btree hash ; do
1327 if test "$withval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1334 ol_with_ldbm_type="$ol_arg"
1337 ol_with_ldbm_type="auto"
1339 # end --with-ldbm_type
1342 # OpenLDAP --enable-passwd
1343 # Check whether --enable-passwd or --disable-passwd was given.
1344 if test "${enable_passwd+set}" = set; then
1345 enableval="$enable_passwd"
1348 for ol_val in auto yes no ; do
1349 if test "$enableval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1356 ol_enable_passwd="$ol_arg"
1359 ol_enable_passwd="no"
1361 # end --enable-passwd
1362 # OpenLDAP --enable-shell
1363 # Check whether --enable-shell or --disable-shell was given.
1364 if test "${enable_shell+set}" = set; then
1365 enableval="$enable_shell"
1368 for ol_val in auto yes no ; do
1369 if test "$enableval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1376 ol_enable_shell="$ol_arg"
1379 ol_enable_shell="no"
1381 # end --enable-shell
1383 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1384 if test "${with_xxslurpdoptions+set}" = set; then
1385 withval="$with_xxslurpdoptions"
1389 # OpenLDAP --enable-slurpd
1390 # Check whether --enable-slurpd or --disable-slurpd was given.
1391 if test "${enable_slurpd+set}" = set; then
1392 enableval="$enable_slurpd"
1395 for ol_val in auto yes no ; do
1396 if test "$enableval" = "$ol_val" ; then
1400 if test "$ol_arg" = "invalid" ; then
1401 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1403 ol_enable_slurpd="$ol_arg"
1406 ol_enable_slurpd="auto"
1408 # end --enable-slurpd
1410 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1411 if test "${with_xxliboptions+set}" = set; then
1412 withval="$with_xxliboptions"
1416 # Check whether --enable-static or --disable-static was given.
1417 if test "${enable_static+set}" = set; then
1418 enableval="$enable_static"
1419 p=${PACKAGE-default}
1420 case "$enableval" in
1421 yes) enable_static=yes ;;
1422 no) enable_static=no ;;
1425 # Look at the argument we got. We use all the common list separators.
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1427 for pkg in $enableval; do
1428 if test "X$pkg" = "X$p"; then
1439 # Check whether --enable-shared or --disable-shared was given.
1440 if test "${enable_shared+set}" = set; then
1441 enableval="$enable_shared"
1442 p=${PACKAGE-default}
1443 case "$enableval" in
1444 yes) enable_shared=yes ;;
1445 no) enable_shared=no ;;
1448 # Look at the argument we got. We use all the common list separators.
1449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1450 for pkg in $enableval; do
1451 if test "X$pkg" = "X$p"; then
1464 if test $ol_enable_referrals = no ; then
1465 if test $ol_enable_dns = yes ; then
1466 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1471 if test $ol_enable_slapd = no ; then
1472 if test $ol_enable_ldbm = yes ; then
1473 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1475 if test $ol_enable_passwd = yes ; then
1476 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1478 if test $ol_enable_shell = yes ; then
1479 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1481 if test $ol_enable_aclgroups = yes ; then
1482 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1484 if test $ol_enable_crypt = yes ; then
1485 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1487 if test $ol_enable_md5 = yes ; then
1488 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1490 if test $ol_enable_sha1 = yes ; then
1491 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1493 if test $ol_enable_wrappers = yes ; then
1494 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1496 if test $ol_enable_phonetic = yes ; then
1497 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1499 if test $ol_enable_rlookups = yes ; then
1500 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1502 if test $ol_with_ldbm_api != auto ; then
1503 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1505 if test $ol_with_ldbm_type != auto ; then
1506 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1508 if test $ol_enable_slurpd = yes ; then
1509 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1512 # force settings to no
1516 ol_enable_aclgroups=no
1520 ol_enable_wrappers=no
1521 ol_enable_phonetic=no
1522 ol_enable_rlookups=no
1524 ol_with_ldbm_type=no
1527 elif test $ol_enable_ldbm = no ; then
1529 if test $ol_with_ldbm_api != auto ; then
1530 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1533 if test $ol_with_ldbm_type != auto ; then
1534 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1537 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1538 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1542 ol_with_ldbm_type=no
1546 if test $ol_with_ldbm_api = gdbm -a \
1547 $ol_with_ldbm_type = btree ; then
1548 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1550 if test $ol_with_ldbm_api = ndbm -a \
1551 $ol_with_ldbm_type = btree ; then
1552 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1556 if test $ol_enable_slurpd = yes ; then
1557 if test $ol_with_threads = no ; then
1558 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1562 echo "$ac_t""done" 1>&6
1565 # Make sure we can run config.sub.
1566 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1567 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1570 echo $ac_n "checking host system type""... $ac_c" 1>&6
1571 echo "configure:1572: checking host system type" >&5
1574 case "$host_alias" in
1578 if host_alias=`$ac_config_guess`; then :
1579 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1581 *) host_alias=$nonopt ;;
1585 host=`$ac_config_sub $host_alias`
1586 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 echo "$ac_t""$host" 1>&6
1615 # Find a good install program. We prefer a C program (faster),
1616 # so one script is as good as another. But avoid the broken or
1617 # incompatible versions:
1618 # SysV /etc/install, /usr/sbin/install
1619 # SunOS /usr/etc/install
1620 # IRIX /sbin/install
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # ./install, which can be erroneously created by make from ./install.sh.
1625 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1626 echo "configure:1627: checking for a BSD compatible install" >&5
1627 if test -z "$INSTALL"; then
1628 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1632 for ac_dir in $PATH; do
1633 # Account for people who put trailing slashes in PATH elements.
1635 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1637 # OSF1 and SCO ODT 3.0 have their own names for install.
1638 for ac_prog in ginstall installbsd scoinst install; do
1639 if test -f $ac_dir/$ac_prog; then
1640 if test $ac_prog = install &&
1641 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1642 # AIX install. It has an incompatible calling convention.
1643 # OSF/1 installbsd also uses dspmsg, but is usable.
1646 ac_cv_path_install="$ac_dir/$ac_prog -c"
1657 if test "${ac_cv_path_install+set}" = set; then
1658 INSTALL="$ac_cv_path_install"
1660 # As a last resort, use the slow shell script. We don't cache a
1661 # path for INSTALL within a source directory, because that will
1662 # break other packages using the cache if that directory is
1663 # removed, or if the path is relative.
1664 INSTALL="$ac_install_sh"
1667 echo "$ac_t""$INSTALL" 1>&6
1669 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1670 # It thinks the first close brace ends the variable substitution.
1671 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1675 # Extract the first word of "ranlib", so it can be a program name with args.
1676 set dummy ranlib; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test -n "$RANLIB"; then
1683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1686 for ac_dir in $PATH; do
1687 test -z "$ac_dir" && ac_dir=.
1688 if test -f $ac_dir/$ac_word; then
1689 ac_cv_prog_RANLIB="ranlib"
1694 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1697 RANLIB="$ac_cv_prog_RANLIB"
1698 if test -n "$RANLIB"; then
1699 echo "$ac_t""$RANLIB" 1>&6
1701 echo "$ac_t""no" 1>&6
1704 # Extract the first word of "gcc", so it can be a program name with args.
1705 set dummy gcc; ac_word=$2
1706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_word" >&5
1708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 if test -n "$CC"; then
1712 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1715 for ac_dir in $PATH; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/$ac_word; then
1726 if test -n "$CC"; then
1727 echo "$ac_t""$CC" 1>&6
1729 echo "$ac_t""no" 1>&6
1732 if test -z "$CC"; then
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1745 for ac_dir in $PATH; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1749 ac_prog_rejected=yes
1757 if test $ac_prog_rejected = yes; then
1758 # We found a bogon in the path, so make sure we never use it.
1759 set dummy $ac_cv_prog_CC
1761 if test $# -gt 0; then
1762 # We chose a different compiler from the bogus one.
1763 # However, it has the same basename, so the bogon will be chosen
1764 # first if we set CC to just the basename; use the full file name.
1766 set dummy "$ac_dir/$ac_word" "$@"
1774 if test -n "$CC"; then
1775 echo "$ac_t""$CC" 1>&6
1777 echo "$ac_t""no" 1>&6
1780 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1790 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1791 cross_compiling=$ac_cv_prog_cc_cross
1793 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1799 ac_cv_prog_cc_works=yes
1800 # If we can't run a trivial program, we are probably using a cross compiler.
1801 if (./conftest; exit) 2>/dev/null; then
1802 ac_cv_prog_cc_cross=no
1804 ac_cv_prog_cc_cross=yes
1807 echo "configure: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1809 ac_cv_prog_cc_works=no
1813 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1814 if test $ac_cv_prog_cc_works = no; then
1815 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1819 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1820 cross_compiling=$ac_cv_prog_cc_cross
1822 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether we are using GNU C" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.c <<EOF
1832 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1839 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1841 if test $ac_cv_prog_gcc = yes; then
1843 ac_test_CFLAGS="${CFLAGS+set}"
1844 ac_save_CFLAGS="$CFLAGS"
1846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether ${CC-cc} accepts -g" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 echo 'void f(){}' > conftest.c
1852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1862 if test "$ac_test_CFLAGS" = set; then
1863 CFLAGS="$ac_save_CFLAGS"
1864 elif test $ac_cv_prog_cc_g = yes; then
1871 test "${CFLAGS+set}" = set || CFLAGS="-g"
1874 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1875 if test "${with_gnu_ld+set}" = set; then
1876 withval="$with_gnu_ld"
1877 test "$withval" = no || with_gnu_ld=yes
1884 if test "$ac_cv_prog_gcc" = yes; then
1885 # Check if gcc -print-prog-name=ld gives a path.
1886 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1887 echo "configure:1888: checking for ld used by GCC" >&5
1888 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1890 # Accept absolute paths.
1892 test -z "$LD" && LD="$ac_prog"
1895 # If it fails, then pretend we aren't using GCC.
1899 # If it is relative, then search for the first ld in PATH.
1903 elif test "$with_gnu_ld" = yes; then
1904 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1905 echo "configure:1906: checking for GNU ld" >&5
1907 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1908 echo "configure:1909: checking for non-GNU ld" >&5
1910 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 if test -z "$LD"; then
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1915 for ac_dir in $PATH; do
1916 test -z "$ac_dir" && ac_dir=.
1917 if test -f "$ac_dir/$ac_prog"; then
1918 ac_cv_path_LD="$ac_dir/$ac_prog"
1919 # Check to see if the program is GNU ld. I'd rather use --version,
1920 # but apparently some GNU ld's only accept -v.
1921 # Break only if it was the GNU/non-GNU ld that we prefer.
1922 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1923 test "$with_gnu_ld" != no && break
1925 test "$with_gnu_ld" != yes && break
1931 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1936 if test -n "$LD"; then
1937 echo "$ac_t""$LD" 1>&6
1939 echo "$ac_t""no" 1>&6
1941 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1943 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1944 echo "configure:1945: checking if the linker ($LD) is GNU ld" >&5
1945 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1949 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1950 ac_cv_prog_gnu_ld=yes
1952 ac_cv_prog_gnu_ld=no
1956 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1959 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1960 echo "configure:1961: checking for BSD-compatible nm" >&5
1961 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1966 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1970 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/nm; then
1973 # Check to see if the nm accepts a BSD-compat flag.
1974 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1975 # nm: unknown option "B" ignored
1976 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1977 ac_cv_path_NM="$ac_dir/nm -B"
1978 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1979 ac_cv_path_NM="$ac_dir/nm -p"
1981 ac_cv_path_NM="$ac_dir/nm"
1987 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1993 echo "$ac_t""$NM" 1>&6
1996 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1997 echo "configure:1998: checking whether ln -s works" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2002 if ln -s X conftestdata 2>/dev/null
2005 ac_cv_prog_LN_S="ln -s"
2010 LN_S="$ac_cv_prog_LN_S"
2011 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2012 echo "$ac_t""yes" 1>&6
2014 echo "$ac_t""no" 1>&6
2017 # Always use our own libtool.
2018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2020 # Check for any special flags to pass to ltconfig.
2022 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2023 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2024 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2025 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2026 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2028 # Some flags need to be propagated to the compiler or linker for good
2032 # Find out which ABI we are using.
2033 echo '#line 2034 "configure"' > conftest.$ac_ext
2034 if { (eval echo configure:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2035 case "`/usr/bin/file conftest.o`" in
2051 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2052 CFLAGS="$CFLAGS -belf"
2056 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2057 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2058 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2059 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2060 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2061 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2064 # Extract the first word of "sendmail", so it can be a program name with args.
2065 set dummy sendmail; ac_word=$2
2066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_word" >&5
2068 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2073 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2077 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2078 test -z "$ac_dir" && ac_dir=.
2079 if test -f $ac_dir/$ac_word; then
2080 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2085 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2089 SENDMAIL="$ac_cv_path_SENDMAIL"
2090 if test -n "$SENDMAIL"; then
2091 echo "$ac_t""$SENDMAIL" 1>&6
2093 echo "$ac_t""no" 1>&6
2096 # Extract the first word of "vi", so it can be a program name with args.
2097 set dummy vi; ac_word=$2
2098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_word" >&5
2100 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2105 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2109 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2117 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2121 EDITOR="$ac_cv_path_EDITOR"
2122 if test -n "$EDITOR"; then
2123 echo "$ac_t""$EDITOR" 1>&6
2125 echo "$ac_t""no" 1>&6
2128 # Extract the first word of "finger", so it can be a program name with args.
2129 set dummy finger; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5
2132 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2137 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2141 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2142 test -z "$ac_dir" && ac_dir=.
2143 if test -f $ac_dir/$ac_word; then
2144 ac_cv_path_FINGER="$ac_dir/$ac_word"
2149 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2153 FINGER="$ac_cv_path_FINGER"
2154 if test -n "$FINGER"; then
2155 echo "$ac_t""$FINGER" 1>&6
2157 echo "$ac_t""no" 1>&6
2162 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2163 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2165 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2166 echo "configure: warning: programs compiled here do run here..." 1>&2
2167 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2169 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2170 echo "configure: warning: programs compiled here do not run here..." 1>&2
2171 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2174 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2175 echo "configure:2176: checking how to run the C preprocessor" >&5
2176 # On Suns, sometimes $CPP names a directory.
2177 if test -n "$CPP" && test -d "$CPP"; then
2180 if test -z "$CPP"; then
2181 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 # This must be in double quotes, not single quotes, because CPP may get
2185 # substituted into the Makefile and "${CC-cc}" will confuse make.
2187 # On the NeXT, cc -E runs the code through the compiler's parser,
2188 # not just through cpp.
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out`
2198 if test -z "$ac_err"; then
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 CPP="${CC-cc} -E -traditional-cpp"
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err=`grep -v '^ *+' conftest.out`
2215 if test -z "$ac_err"; then
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2227 ac_cv_prog_CPP="$CPP"
2229 CPP="$ac_cv_prog_CPP"
2231 ac_cv_prog_CPP="$CPP"
2233 echo "$ac_t""$CPP" 1>&6
2236 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2237 echo "configure:2238: checking for AIX" >&5
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2247 egrep "yes" >/dev/null 2>&1; then
2249 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2250 #define _ALL_SOURCE 1
2255 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2261 echo "configure:2262: checking for POSIXized ISC" >&5
2262 if test -d /etc/conf/kconfig.d &&
2263 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2265 echo "$ac_t""yes" 1>&6
2266 ISC=yes # If later tests want to check for ISC.
2267 cat >> confdefs.h <<\EOF
2268 #define _POSIX_SOURCE 1
2271 if test "$GCC" = yes; then
2277 echo "$ac_t""no" 1>&6
2281 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2282 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2283 echo "configure:2284: checking for minix/config.h" >&5
2284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 #include <minix/config.h>
2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2294 ac_err=`grep -v '^ *+' conftest.out`
2295 if test -z "$ac_err"; then
2297 eval "ac_cv_header_$ac_safe=yes"
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 eval "ac_cv_header_$ac_safe=no"
2307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2311 echo "$ac_t""no" 1>&6
2315 if test "$MINIX" = yes; then
2316 cat >> confdefs.h <<\EOF
2317 #define _POSIX_SOURCE 1
2320 cat >> confdefs.h <<\EOF
2321 #define _POSIX_1_SOURCE 2
2324 cat >> confdefs.h <<\EOF
2334 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2335 echo "configure:2336: checking for ${CC-cc} option to accept ANSI C" >&5
2336 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 am_cv_prog_cc_stdc=no
2341 # Don't try gcc -ansi; that turns off useful extensions and
2342 # breaks some systems' header files.
2343 # AIX -qlanglvl=ansi
2344 # Ultrix and OSF/1 -std1
2345 # HP-UX -Aa -D_HPUX_SOURCE
2346 # SVR4 -Xc -D__EXTENSIONS__
2347 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2349 CC="$ac_save_CC $ac_arg"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 #include <sys/types.h>
2356 #include <sys/stat.h>
2357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2358 struct buf { int x; };
2359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2360 static char *e (p, i)
2366 static char *f (char * (*g) (char **, int), char **p, ...)
2371 s = g (p, va_arg (v,int));
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2388 if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 am_cv_prog_cc_stdc="$ac_arg"; break
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2401 if test -z "$am_cv_prog_cc_stdc"; then
2402 echo "$ac_t""none needed" 1>&6
2404 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2406 case "x$am_cv_prog_cc_stdc" in
2408 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2411 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2412 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2418 echo $ac_n "checking for socket""... $ac_c" 1>&6
2419 echo "configure:2420: checking for socket" >&5
2420 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* System header to define __stub macros and hopefully few prototypes,
2427 which can conflict with char socket(); below. */
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2436 /* The GNU C library defines this for functions which it implements
2437 to always fail with ENOSYS. Some functions are actually named
2438 something starting with __ and the normal name is an alias. */
2439 #if defined (__stub_socket) || defined (__stub___socket)
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2449 eval "ac_cv_func_socket=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_func_socket=no"
2459 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2463 echo "$ac_t""no" 1>&6
2465 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2466 echo "configure:2467: checking for main in -lsocket" >&5
2467 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 ac_save_LIBS="$LIBS"
2472 LIBS="-lsocket $LIBS"
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2483 eval "ac_cv_lib_$ac_lib_var=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 eval "ac_cv_lib_$ac_lib_var=no"
2491 LIBS="$ac_save_LIBS"
2494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2497 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2498 cat >> confdefs.h <<EOF
2499 #define $ac_tr_lib 1
2502 LIBS="-lsocket $LIBS"
2505 echo "$ac_t""no" 1>&6
2508 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2509 echo "configure:2510: checking for main in -lnet" >&5
2510 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 ac_save_LIBS="$LIBS"
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2526 eval "ac_cv_lib_$ac_lib_var=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_lib_$ac_lib_var=no"
2534 LIBS="$ac_save_LIBS"
2537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2539 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2540 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2541 cat >> confdefs.h <<EOF
2542 #define $ac_tr_lib 1
2548 echo "$ac_t""no" 1>&6
2551 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2552 echo "configure:2553: checking for main in -lnsl_s" >&5
2553 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 ac_save_LIBS="$LIBS"
2558 LIBS="-lnsl_s $LIBS"
2559 cat > conftest.$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2569 eval "ac_cv_lib_$ac_lib_var=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_lib_$ac_lib_var=no"
2577 LIBS="$ac_save_LIBS"
2580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2583 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2584 cat >> confdefs.h <<EOF
2585 #define $ac_tr_lib 1
2588 LIBS="-lnsl_s $LIBS"
2591 echo "$ac_t""no" 1>&6
2594 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2595 echo "configure:2596: checking for main in -lnsl" >&5
2596 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 ac_save_LIBS="$LIBS"
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2612 eval "ac_cv_lib_$ac_lib_var=yes"
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2617 eval "ac_cv_lib_$ac_lib_var=no"
2620 LIBS="$ac_save_LIBS"
2623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2626 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2627 cat >> confdefs.h <<EOF
2628 #define $ac_tr_lib 1
2634 echo "$ac_t""no" 1>&6
2637 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2638 echo "configure:2639: checking for socket in -linet" >&5
2639 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_save_LIBS="$LIBS"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 /* Override any gcc2 internal prototype to avoid an error. */
2649 /* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2659 eval "ac_cv_lib_$ac_lib_var=yes"
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 eval "ac_cv_lib_$ac_lib_var=no"
2667 LIBS="$ac_save_LIBS"
2670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2671 echo "$ac_t""yes" 1>&6
2672 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2673 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2674 cat >> confdefs.h <<EOF
2675 #define $ac_tr_lib 1
2681 echo "$ac_t""no" 1>&6
2684 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2685 echo "configure:2686: checking for main in -lgen" >&5
2686 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 ac_save_LIBS="$LIBS"
2692 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2700 if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2702 eval "ac_cv_lib_$ac_lib_var=yes"
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2707 eval "ac_cv_lib_$ac_lib_var=no"
2710 LIBS="$ac_save_LIBS"
2713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2716 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2717 cat >> confdefs.h <<EOF
2718 #define $ac_tr_lib 1
2724 echo "$ac_t""no" 1>&6
2731 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2732 echo "configure:2733: checking for res_search in -lresolv" >&5
2733 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 ac_save_LIBS="$LIBS"
2738 LIBS="-lresolv $LIBS"
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 /* Override any gcc2 internal prototype to avoid an error. */
2743 /* We use char because int might match the return type of a gcc2
2744 builtin and then its argument prototype would still apply. */
2751 if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2753 eval "ac_cv_lib_$ac_lib_var=yes"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "ac_cv_lib_$ac_lib_var=no"
2761 LIBS="$ac_save_LIBS"
2764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2766 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2768 cat >> confdefs.h <<EOF
2769 #define $ac_tr_lib 1
2772 LIBS="-lresolv $LIBS"
2775 echo "$ac_t""no" 1>&6
2779 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2780 echo "configure:2781: checking for sigset in -lV3" >&5
2781 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_save_LIBS="$LIBS"
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 /* Override any gcc2 internal prototype to avoid an error. */
2791 /* We use char because int might match the return type of a gcc2
2792 builtin and then its argument prototype would still apply. */
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2801 eval "ac_cv_lib_$ac_lib_var=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2806 eval "ac_cv_lib_$ac_lib_var=no"
2809 LIBS="$ac_save_LIBS"
2812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2816 cat >> confdefs.h <<EOF
2817 #define $ac_tr_lib 1
2823 echo "$ac_t""no" 1>&6
2829 if test $ol_enable_ldapd != no ; then
2830 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2831 echo "configure:2832: checking for main in -lxtpp" >&5
2832 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_save_LIBS="$LIBS"
2837 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2846 if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2848 eval "ac_cv_lib_$ac_lib_var=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 eval "ac_cv_lib_$ac_lib_var=no"
2856 LIBS="$ac_save_LIBS"
2859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2863 cat >> confdefs.h <<\EOF
2867 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2870 echo "$ac_t""no" 1>&6
2874 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2875 echo "configure:2876: checking for main in -ldsap" >&5
2876 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_save_LIBS="$LIBS"
2881 LIBS="-ldsap -lisode $LIBS"
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2892 eval "ac_cv_lib_$ac_lib_var=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_lib_$ac_lib_var=no"
2900 LIBS="$ac_save_LIBS"
2903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2907 cat >> confdefs.h <<\EOF
2911 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2914 echo "$ac_t""no" 1>&6
2918 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2919 echo "configure:2920: checking for main in -lisode" >&5
2920 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 ac_save_LIBS="$LIBS"
2925 LIBS="-lisode $LIBS"
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2936 eval "ac_cv_lib_$ac_lib_var=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 eval "ac_cv_lib_$ac_lib_var=no"
2944 LIBS="$ac_save_LIBS"
2947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2948 echo "$ac_t""yes" 1>&6
2951 cat >> confdefs.h <<\EOF
2952 #define HAVE_ISODE 1
2955 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2958 echo "$ac_t""no" 1>&6
2964 if test $ol_link_isode != no; then
2965 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2966 echo "configure:2967: checking for main in -lpp" >&5
2967 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 ac_save_LIBS="$LIBS"
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2981 if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2983 eval "ac_cv_lib_$ac_lib_var=yes"
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2988 eval "ac_cv_lib_$ac_lib_var=no"
2991 LIBS="$ac_save_LIBS"
2994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2995 echo "$ac_t""yes" 1>&6
2997 cat >> confdefs.h <<\EOF
3001 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3004 echo "$ac_t""no" 1>&6
3009 # Extract the first word of "pepsy", so it can be a program name with args.
3010 set dummy pepsy; ac_word=$2
3011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3012 echo "configure:3013: checking for $ac_word" >&5
3013 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3018 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3022 for ac_dir in $PATH; do
3023 test -z "$ac_dir" && ac_dir=.
3024 if test -f $ac_dir/$ac_word; then
3025 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3033 PEPSY="$ac_cv_path_PEPSY"
3034 if test -n "$PEPSY"; then
3035 echo "$ac_t""$PEPSY" 1>&6
3037 echo "$ac_t""no" 1>&6
3042 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3043 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_hdr" >&5
3048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3057 { (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3058 ac_err=`grep -v '^ *+' conftest.out`
3059 if test -z "$ac_err"; then
3061 eval "ac_cv_header_$ac_safe=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3067 eval "ac_cv_header_$ac_safe=no"
3071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3074 cat >> confdefs.h <<EOF
3075 #define $ac_tr_hdr 1
3079 echo "$ac_t""no" 1>&6
3084 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3085 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3086 echo "configure:3087: checking for main in -lkrb4" >&5
3087 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 ac_save_LIBS="$LIBS"
3092 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_lib_$ac_lib_var=no"
3111 LIBS="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3118 echo "$ac_t""no" 1>&6
3123 if test $have_k5 = yes ; then
3124 ol_with_kerberos=found
3125 ol_link_kerberos=yes
3127 cat >> confdefs.h <<\EOF
3128 #define HAVE_KERBEROS 1
3132 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3136 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3137 for ac_hdr in krb.h des.h
3139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_hdr" >&5
3142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3151 { (eval echo configure:3152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3152 ac_err=`grep -v '^ *+' conftest.out`
3153 if test -z "$ac_err"; then
3155 eval "ac_cv_header_$ac_safe=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3161 eval "ac_cv_header_$ac_safe=no"
3165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3166 echo "$ac_t""yes" 1>&6
3167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3168 cat >> confdefs.h <<EOF
3169 #define $ac_tr_hdr 1
3173 echo "$ac_t""no" 1>&6
3178 if test $ac_cv_header_krb_h = yes ; then
3179 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3180 echo "configure:3181: checking for main in -lkrb" >&5
3181 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 ac_save_LIBS="$LIBS"
3186 LIBS="-lkrb -ldes $LIBS"
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3197 eval "ac_cv_lib_$ac_lib_var=yes"
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 eval "ac_cv_lib_$ac_lib_var=no"
3205 LIBS="$ac_save_LIBS"
3208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3209 echo "$ac_t""yes" 1>&6
3212 echo "$ac_t""no" 1>&6
3217 if test $have_k4 = yes ; then
3218 ol_with_kerberos=found
3219 ol_link_kerberos=yes
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_KERBEROS 1
3225 KRB_LIBS="-lkrb -ldes"
3227 for ac_func in des_string_to_key
3229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_func" >&5
3231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 /* System header to define __stub macros and hopefully few prototypes,
3238 which can conflict with char $ac_func(); below. */
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3247 /* The GNU C library defines this for functions which it implements
3248 to always fail with ENOSYS. Some functions are actually named
3249 something starting with __ and the normal name is an alias. */
3250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3260 eval "ac_cv_func_$ac_func=yes"
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 eval "ac_cv_func_$ac_func=no"
3270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3273 cat >> confdefs.h <<EOF
3274 #define $ac_tr_func 1
3278 echo "$ac_t""no" 1>&6
3287 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
3288 for ac_hdr in pthread.h sched.h
3290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_hdr" >&5
3293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3302 { (eval echo configure:3303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3303 ac_err=`grep -v '^ *+' conftest.out`
3304 if test -z "$ac_err"; then
3306 eval "ac_cv_header_$ac_safe=yes"
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3312 eval "ac_cv_header_$ac_safe=no"
3316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3319 cat >> confdefs.h <<EOF
3320 #define $ac_tr_hdr 1
3324 echo "$ac_t""no" 1>&6
3329 if test $ac_cv_header_pthread_h = yes ; then
3330 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3331 echo "configure:3332: checking POSIX thread version" >&5
3332 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3340 # include <pthread.h>
3341 /* this check could be improved */
3342 # ifdef PTHREAD_ONCE_INIT
3347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3348 egrep "final" >/dev/null 2>&1; then
3350 ol_pthread_final=yes
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3362 # include <pthread.h>
3363 /* this check could be improved */
3364 # ifdef pthread_once_init
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 egrep "draft4" >/dev/null 2>&1; then
3372 ol_pthread_draft4=yes
3375 ol_pthread_draft4=no
3380 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3381 ol_cv_pthread_version=final
3382 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3383 ol_cv_pthread_version=draft4
3385 ol_cv_pthread_version=unknown
3390 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3393 if test $ol_cv_pthread_version = final ; then
3394 cat >> confdefs.h <<\EOF
3395 #define HAVE_PTHREADS_FINAL 1
3398 elif test $ol_cv_pthread_version = draft4 ; then
3399 cat >> confdefs.h <<\EOF
3400 #define HAVE_PTHREADS_D4 1
3404 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3407 # consider threads found
3408 ol_with_threads=found
3411 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3412 echo "configure:3413: checking for LinuxThreads" >&5
3413 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3417 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3418 if test "$res" -gt 0 ; then
3419 ol_cv_linux_threads=yes
3421 ol_cv_linux_threads=no
3426 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3429 if test $ol_cv_linux_threads = yes ; then
3430 cat >> confdefs.h <<\EOF
3431 #define HAVE_LINUX_THREADS 1
3437 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3438 echo "configure:3439: checking for pthread_create" >&5
3439 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* System header to define __stub macros and hopefully few prototypes,
3446 which can conflict with char pthread_create(); below. */
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451 char pthread_create();
3455 /* The GNU C library defines this for functions which it implements
3456 to always fail with ENOSYS. Some functions are actually named
3457 something starting with __ and the normal name is an alias. */
3458 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3468 eval "ac_cv_func_pthread_create=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3473 eval "ac_cv_func_pthread_create=no"
3478 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3482 echo "$ac_t""no" 1>&6
3486 if test $ol_link_threads = no ; then
3487 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3488 echo "configure:3489: checking for pthread_create with -pthread" >&5
3489 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3494 LIBS="-pthread $LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3507 ol_cv_pthread_flag=yes
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 ol_cv_pthread_flag=no
3519 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3521 if test $ol_cv_pthread_flag = yes ; then
3522 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3523 ol_link_threads=posix
3527 if test $ol_link_threads = no ; then
3528 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3529 echo "configure:3530: checking for pthread_create with -thread" >&5
3530 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3535 LIBS="-thread $LIBS"
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3546 if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3548 ol_cv_thread_flag=yes
3550 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3553 ol_cv_thread_flag=no
3560 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3562 if test $ol_cv_thread_flag = yes ; then
3563 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3564 ol_link_threads=posix
3568 if test $ol_link_threads = no ; then
3570 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
3571 echo "configure:3572: checking for pthread_join in -lpthread" >&5
3572 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
3573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 ac_save_LIBS="$LIBS"
3577 LIBS="-lpthread -lexc $LIBS"
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3584 char pthread_join();
3590 if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3592 eval "ac_cv_lib_$ac_lib_var=yes"
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3597 eval "ac_cv_lib_$ac_lib_var=no"
3600 LIBS="$ac_save_LIBS"
3603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3606 ol_link_threads=posix
3607 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3608 if test $ol_with_yielding_select = auto ; then
3609 ol_with_yielding_select=yes
3613 echo "$ac_t""no" 1>&6
3619 if test $ol_link_threads = no ; then
3621 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3622 echo "configure:3623: checking for pthread_join in -lpthreads" >&5
3623 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 ac_save_LIBS="$LIBS"
3628 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 /* Override any gcc2 internal prototype to avoid an error. */
3633 /* We use char because int might match the return type of a gcc2
3634 builtin and then its argument prototype would still apply. */
3635 char pthread_join();
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3643 eval "ac_cv_lib_$ac_lib_var=yes"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 eval "ac_cv_lib_$ac_lib_var=no"
3651 LIBS="$ac_save_LIBS"
3654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3657 ol_link_threads=posix
3658 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3659 if test $ol_with_yielding_select = auto ; then
3660 ol_with_yielding_select=yes
3664 echo "$ac_t""no" 1>&6
3670 if test $ol_link_threads = no ; then
3672 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3673 echo "configure:3674: checking for pthread_create in -lpthread" >&5
3674 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS="$LIBS"
3679 LIBS="-lpthread $LIBS"
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686 char pthread_create();
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3708 ol_link_threads=posix
3709 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3711 echo "$ac_t""no" 1>&6
3717 if test $ol_link_threads = no ; then
3719 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3720 echo "configure:3721: checking for pthread_create in -lc_r" >&5
3721 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 ac_save_LIBS="$LIBS"
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3733 char pthread_create();
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3741 eval "ac_cv_lib_$ac_lib_var=yes"
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3746 eval "ac_cv_lib_$ac_lib_var=no"
3749 LIBS="$ac_save_LIBS"
3752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3755 ol_link_threads=posix
3756 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3758 echo "$ac_t""no" 1>&6
3764 if test $ol_link_threads != no ; then
3765 cat >> confdefs.h <<\EOF
3766 #define HAVE_PTHREADS 1
3770 save_CPPFLAGS="$CPPFLAGS"
3772 LIBS="$LTHREAD_LIBS $LIBS"
3774 for ac_func in sched_yield pthread_yield
3776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3777 echo "configure:3778: checking for $ac_func" >&5
3778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 /* System header to define __stub macros and hopefully few prototypes,
3785 which can conflict with char $ac_func(); below. */
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3794 /* The GNU C library defines this for functions which it implements
3795 to always fail with ENOSYS. Some functions are actually named
3796 something starting with __ and the normal name is an alias. */
3797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3805 if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3807 eval "ac_cv_func_$ac_func=yes"
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 eval "ac_cv_func_$ac_func=no"
3817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3818 echo "$ac_t""yes" 1>&6
3819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3820 cat >> confdefs.h <<EOF
3821 #define $ac_tr_func 1
3825 echo "$ac_t""no" 1>&6
3830 if test $ac_cv_func_sched_yield = no -a \
3831 $ac_cv_func_pthread_yield = no ; then
3832 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3833 echo "configure:3834: checking for sched_yield in -lrt" >&5
3834 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3838 ac_save_LIBS="$LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3868 cat >> confdefs.h <<\EOF
3869 #define HAVE_SCHED_YIELD 1
3872 ac_cv_func_sched_yield=yes
3874 echo "$ac_t""no" 1>&6
3875 ac_cv_func_sched_yield=no
3879 if test $ac_cv_func_sched_yield = no -a \
3880 $ac_cv_func_pthread_yield = no ; then
3881 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3882 echo "configure:3883: checking for sched_yield in -lposix4" >&5
3883 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 ac_save_LIBS="$LIBS"
3888 LIBS="-lposix4 $LIBS"
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 eval "ac_cv_lib_$ac_lib_var=no"
3911 LIBS="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3917 cat >> confdefs.h <<\EOF
3918 #define HAVE_SCHED_YIELD 1
3921 ac_cv_func_sched_yield=yes
3923 echo "$ac_t""no" 1>&6
3924 ac_cv_func_sched_yield=no
3928 if test $ac_cv_func_sched_yield = no -a \
3929 $ac_cv_func_pthread_yield = no ; then
3930 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3931 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3934 for ac_func in pthread_kill
3936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3937 echo "configure:3938: checking for $ac_func" >&5
3938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 /* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char $ac_func(); below. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 /* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3954 /* The GNU C library defines this for functions which it implements
3955 to always fail with ENOSYS. Some functions are actually named
3956 something starting with __ and the normal name is an alias. */
3957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3967 eval "ac_cv_func_$ac_func=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 eval "ac_cv_func_$ac_func=no"
3977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3980 cat >> confdefs.h <<EOF
3981 #define $ac_tr_func 1
3985 echo "$ac_t""no" 1>&6
3990 pthread_attr_create pthread_attr_init \
3991 pthread_attr_destroy pthread_attr_delete \
3992 pthread_attr_setdetachstate pthread_attr_setdetach_np \
3995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_func" >&5
3997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func(); below. */
4006 /* Override any gcc2 internal prototype to avoid an error. */
4007 /* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4013 /* The GNU C library defines this for functions which it implements
4014 to always fail with ENOSYS. Some functions are actually named
4015 something starting with __ and the normal name is an alias. */
4016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4026 eval "ac_cv_func_$ac_func=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_func_$ac_func=no"
4036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4039 cat >> confdefs.h <<EOF
4040 #define $ac_tr_func 1
4044 echo "$ac_t""no" 1>&6
4050 pthread_setconcurrency \
4051 thr_setconcurrency \
4054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4055 echo "configure:4056: checking for $ac_func" >&5
4056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 /* System header to define __stub macros and hopefully few prototypes,
4063 which can conflict with char $ac_func(); below. */
4065 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4072 /* The GNU C library defines this for functions which it implements
4073 to always fail with ENOSYS. Some functions are actually named
4074 something starting with __ and the normal name is an alias. */
4075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4085 eval "ac_cv_func_$ac_func=yes"
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4090 eval "ac_cv_func_$ac_func=no"
4095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4098 cat >> confdefs.h <<EOF
4099 #define $ac_tr_func 1
4103 echo "$ac_t""no" 1>&6
4108 if test $ol_with_yielding_select = auto ; then
4109 echo $ac_n "checking if select yields""... $ac_c" 1>&6
4110 echo "configure:4111: checking if select yields" >&5
4111 if test "$cross_compiling" = yes; then
4113 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4119 #include <sys/types.h>
4120 #include <sys/time.h>
4122 #include <pthread.h>
4141 FD_SET(fildes[0], &rfds);
4143 /* we're not interested in any fds */
4144 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4151 exit(1); /* if we exit here, the select blocked the whole process */
4154 int main(argc, argv)
4160 /* create a pipe to select */
4161 if(pipe(&fildes[0])) {
4166 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4167 (void) pthread_setconcurrency(2);
4169 #ifdef HAVE_THR_SETCONCURRENCY
4170 /* Set Solaris LWP concurrency to 2 */
4171 thr_setconcurrency(2);
4175 pthread_create(&t, NULL, (void *) task, NULL);
4177 #if HAVE_SCHED_YIELD
4178 sched_yield(); /* make sure task runs first */
4180 #ifdef HAVE_PTHREAD_YIELD
4181 pthread_yield(); /* make sure task runs first */
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4190 ol_pthread_select_yields=yes
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 ol_pthread_select_yields=no
4200 echo "$ac_t""$ol_pthread_select_yields" 1>&6
4202 if test $ol_pthread_select_yields = yes ; then
4203 ol_with_yielding_select=yes
4208 CPPFLAGS="$save_CPPFLAGS"
4211 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4215 if test $ol_with_threads = posix ; then
4216 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4220 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
4221 for ac_hdr in mach/cthreads.h
4223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_hdr" >&5
4226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4235 { (eval echo configure:4236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4236 ac_err=`grep -v '^ *+' conftest.out`
4237 if test -z "$ac_err"; then
4239 eval "ac_cv_header_$ac_safe=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_header_$ac_safe=no"
4249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_hdr 1
4257 echo "$ac_t""no" 1>&6
4261 if test $ac_cv_header_mach_cthreads_h = yes ; then
4262 ol_with_threads=found
4264 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4265 echo "configure:4266: checking for cthread_fork" >&5
4266 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4272 /* System header to define __stub macros and hopefully few prototypes,
4273 which can conflict with char cthread_fork(); below. */
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4278 char cthread_fork();
4282 /* The GNU C library defines this for functions which it implements
4283 to always fail with ENOSYS. Some functions are actually named
4284 something starting with __ and the normal name is an alias. */
4285 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4295 eval "ac_cv_func_cthread_fork=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_func_cthread_fork=no"
4305 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4306 echo "$ac_t""yes" 1>&6
4309 echo "$ac_t""no" 1>&6
4313 if test $ol_link_threads = no ; then
4314 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4315 echo "configure:4316: checking for cthread_fork with -all_load" >&5
4316 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4321 LIBS="-all_load $LIBS"
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 #include <mach/cthreads.h>
4328 cthread_fork((void *)0, (void *)0);
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4334 ol_cv_cthread_all_load=yes
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 ol_cv_cthread_all_load=no
4346 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4348 if test $ol_cv_cthread_all_load = yes ; then
4349 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4350 ol_link_threads=mach
4354 if test $ol_link_threads != no ; then
4355 : check for cthread specific functionality here
4356 cat >> confdefs.h <<\EOF
4357 #define HAVE_MACH_CTHREADS 1
4361 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4365 if test $ol_with_threads = mach ; then
4366 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4370 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
4371 for ac_hdr in thread.h synch.h
4373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_hdr" >&5
4376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err=`grep -v '^ *+' conftest.out`
4387 if test -z "$ac_err"; then
4389 eval "ac_cv_header_$ac_safe=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_header_$ac_safe=no"
4399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4402 cat >> confdefs.h <<EOF
4403 #define $ac_tr_hdr 1
4407 echo "$ac_t""no" 1>&6
4411 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4412 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4413 echo "configure:4414: checking for thr_create in -lthread" >&5
4414 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 ac_save_LIBS="$LIBS"
4419 LIBS="-lthread $LIBS"
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4434 eval "ac_cv_lib_$ac_lib_var=yes"
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4439 eval "ac_cv_lib_$ac_lib_var=no"
4442 LIBS="$ac_save_LIBS"
4445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4449 echo "$ac_t""no" 1>&6
4454 if test $have_thr = yes ; then
4455 cat >> confdefs.h <<\EOF
4459 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4462 if test $ol_with_yielding_select = auto ; then
4463 ol_with_yielding_select=yes
4468 for ac_hdr in lwp/lwp.h
4470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_hdr" >&5
4473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4482 { (eval echo configure:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4483 ac_err=`grep -v '^ *+' conftest.out`
4484 if test -z "$ac_err"; then
4486 eval "ac_cv_header_$ac_safe=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4492 eval "ac_cv_header_$ac_safe=no"
4496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_hdr 1
4504 echo "$ac_t""no" 1>&6
4508 if test $ac_cv_header_lwp_lwp_h = yes ; then
4509 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4510 echo "configure:4511: checking for lwp_create in -llwp" >&5
4511 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 ac_save_LIBS="$LIBS"
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 /* Override any gcc2 internal prototype to avoid an error. */
4521 /* We use char because int might match the return type of a gcc2
4522 builtin and then its argument prototype would still apply. */
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4531 eval "ac_cv_lib_$ac_lib_var=yes"
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 eval "ac_cv_lib_$ac_lib_var=no"
4539 LIBS="$ac_save_LIBS"
4542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4543 echo "$ac_t""yes" 1>&6
4546 echo "$ac_t""no" 1>&6
4551 if test $have_lwp = yes ; then
4552 cat >> confdefs.h <<\EOF
4556 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4559 if test $ol_with_yielding_select = auto ; then
4560 ol_with_yielding_select=no
4566 if test $ol_with_yielding_select = yes ; then
4567 cat >> confdefs.h <<\EOF
4568 #define HAVE_YIELDING_SELECT 1
4573 if test $ol_with_threads = manual ; then
4576 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4578 for ac_hdr in pthread.h sched.h
4580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4582 echo "configure:4583: checking for $ac_hdr" >&5
4583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4592 { (eval echo configure:4593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4593 ac_err=`grep -v '^ *+' conftest.out`
4594 if test -z "$ac_err"; then
4596 eval "ac_cv_header_$ac_safe=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_header_$ac_safe=no"
4606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4609 cat >> confdefs.h <<EOF
4610 #define $ac_tr_hdr 1
4614 echo "$ac_t""no" 1>&6
4618 for ac_func in sched_yield pthread_yield
4620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4621 echo "configure:4622: checking for $ac_func" >&5
4622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 /* System header to define __stub macros and hopefully few prototypes,
4629 which can conflict with char $ac_func(); below. */
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4638 /* The GNU C library defines this for functions which it implements
4639 to always fail with ENOSYS. Some functions are actually named
4640 something starting with __ and the normal name is an alias. */
4641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4651 eval "ac_cv_func_$ac_func=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 eval "ac_cv_func_$ac_func=no"
4661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4662 echo "$ac_t""yes" 1>&6
4663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4664 cat >> confdefs.h <<EOF
4665 #define $ac_tr_func 1
4669 echo "$ac_t""no" 1>&6
4674 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4675 echo "configure:4676: checking for LinuxThreads" >&5
4676 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4680 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4681 if test "$res" -gt 0 ; then
4682 ol_cv_linux_threads=yes
4684 ol_cv_linux_threads=no
4689 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4692 for ac_hdr in mach/cthreads.h
4694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_hdr" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err=`grep -v '^ *+' conftest.out`
4708 if test -z "$ac_err"; then
4710 eval "ac_cv_header_$ac_safe=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_header_$ac_safe=no"
4720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4723 cat >> confdefs.h <<EOF
4724 #define $ac_tr_hdr 1
4728 echo "$ac_t""no" 1>&6
4732 for ac_hdr in lwp/lwp.h
4734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_hdr" >&5
4737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4746 { (eval echo configure:4747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4747 ac_err=`grep -v '^ *+' conftest.out`
4748 if test -z "$ac_err"; then
4750 eval "ac_cv_header_$ac_safe=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 eval "ac_cv_header_$ac_safe=no"
4760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4763 cat >> confdefs.h <<EOF
4764 #define $ac_tr_hdr 1
4768 echo "$ac_t""no" 1>&6
4772 for ac_hdr in thread.h synch.h
4774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_hdr" >&5
4777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4786 { (eval echo configure:4787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4787 ac_err=`grep -v '^ *+' conftest.out`
4788 if test -z "$ac_err"; then
4790 eval "ac_cv_header_$ac_safe=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_header_$ac_safe=no"
4800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_hdr 1
4808 echo "$ac_t""no" 1>&6
4814 if test $ol_with_threads != no ; then
4815 cat >> confdefs.h <<\EOF
4816 #define _REENTRANT 1
4819 cat >> confdefs.h <<\EOF
4820 #define _THREAD_SAFE 1
4823 cat >> confdefs.h <<\EOF
4824 #define _THREADSAFE 1
4828 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4829 echo "configure:4830: checking for thread specific errno" >&5
4830 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4848 ol_cv_errno_thread_specific=yes
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4853 ol_cv_errno_thread_specific=no
4859 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4861 if test $ol_cv_errno_thread_specific != yes ; then
4862 LIBS="$LTHREAD_LIBS $LIBS"
4868 if test $ol_link_threads = no ; then
4869 if test $ol_with_threads = yes ; then
4870 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4873 if test $ol_with_threads = auto ; then
4874 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4878 cat >> confdefs.h <<\EOF
4879 #define NO_THREADS 1
4886 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4887 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4888 echo "configure:4889: checking for DB2 library" >&5
4889 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4893 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4894 echo "configure:4895: checking for db_open in -ldb" >&5
4895 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 ac_save_LIBS="$LIBS"
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4915 eval "ac_cv_lib_$ac_lib_var=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 eval "ac_cv_lib_$ac_lib_var=no"
4923 LIBS="$ac_save_LIBS"
4926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4930 echo "$ac_t""no" 1>&6
4938 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4944 echo "configure:4945: checking for $ac_hdr" >&5
4945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4954 { (eval echo configure:4955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4955 ac_err=`grep -v '^ *+' conftest.out`
4956 if test -z "$ac_err"; then
4958 eval "ac_cv_header_$ac_safe=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_header_$ac_safe=no"
4968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4971 cat >> confdefs.h <<EOF
4972 #define $ac_tr_hdr 1
4976 echo "$ac_t""no" 1>&6
4980 if test $ac_cv_header_db_h = yes ; then
4981 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4982 echo "configure:4983: checking if db.h is DB2" >&5
4983 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4992 /* this check could be improved */
4993 # ifdef DB_VERSION_MAJOR
4994 # if DB_VERSION_MAJOR == 2
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 egrep "__db_version_2" >/dev/null 2>&1; then
5003 ol_cv_header_db2=yes
5012 echo "$ac_t""$ol_cv_header_db2" 1>&6
5019 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5020 echo "configure:5021: checking for Berkeley DB2" >&5
5021 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5025 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
5026 ol_cv_berkeley_db2=no
5028 ol_cv_berkeley_db2=yes
5033 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5034 if test $ol_cv_berkeley_db2 = yes ; then
5035 cat >> confdefs.h <<\EOF
5036 #define HAVE_BERKELEY_DB2 1
5042 if test $ol_cv_berkeley_db2 = yes ; then
5044 ol_with_ldbm_api=db2
5046 if test $ol_with_ldbm_type = hash ; then
5047 cat >> confdefs.h <<\EOF
5048 #define LDBM_USE_DBHASH 1
5052 cat >> confdefs.h <<\EOF
5053 #define LDBM_USE_DBBTREE 1
5058 if test $ol_cv_lib_db2 != yes ; then
5059 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5064 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5065 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5066 echo "configure:5067: checking for Berkeley DB library" >&5
5067 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5071 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5072 echo "configure:5073: checking for dbopen" >&5
5073 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 /* System header to define __stub macros and hopefully few prototypes,
5080 which can conflict with char dbopen(); below. */
5082 /* Override any gcc2 internal prototype to avoid an error. */
5083 /* We use char because int might match the return type of a gcc2
5084 builtin and then its argument prototype would still apply. */
5089 /* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5102 eval "ac_cv_func_dbopen=yes"
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 eval "ac_cv_func_dbopen=no"
5112 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5113 echo "$ac_t""yes" 1>&6
5116 echo "$ac_t""no" 1>&6
5118 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5119 echo "configure:5120: checking for dbopen in -ldb" >&5
5120 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 ac_save_LIBS="$LIBS"
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5140 eval "ac_cv_lib_$ac_lib_var=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_lib_$ac_lib_var=no"
5148 LIBS="$ac_save_LIBS"
5151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5155 echo "$ac_t""no" 1>&6
5166 echo "$ac_t""$ol_cv_lib_db" 1>&6
5169 for ac_hdr in db_185.h
5171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5173 echo "configure:5174: checking for $ac_hdr" >&5
5174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5183 { (eval echo configure:5184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5184 ac_err=`grep -v '^ *+' conftest.out`
5185 if test -z "$ac_err"; then
5187 eval "ac_cv_header_$ac_safe=yes"
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5193 eval "ac_cv_header_$ac_safe=no"
5197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5200 cat >> confdefs.h <<EOF
5201 #define $ac_tr_hdr 1
5205 echo "$ac_t""no" 1>&6
5209 if test $ol_cv_header_db2 = yes ; then
5211 ol_cv_header_db=$ac_cv_header_db_185_h
5213 ol_cv_header_db=$ac_cv_header_db_h
5218 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5219 echo "configure:5220: checking for Berkeley DB" >&5
5220 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5224 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5225 ol_cv_berkeley_db=no
5227 ol_cv_berkeley_db=yes
5232 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5233 if test $ol_cv_berkeley_db = yes ; then
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_BERKELEY_DB 1
5241 if test $ol_cv_berkeley_db = yes ; then
5245 if test $ol_with_ldbm_type = hash ; then
5246 cat >> confdefs.h <<\EOF
5247 #define LDBM_USE_DBHASH 1
5251 cat >> confdefs.h <<\EOF
5252 #define LDBM_USE_DBBTREE 1
5257 if test $ol_cv_lib_db != yes ; then
5258 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5263 if test $ol_with_ldbm_api = manual ; then
5266 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5268 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5272 echo "configure:5273: checking for $ac_hdr" >&5
5273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5282 { (eval echo configure:5283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5283 ac_err=`grep -v '^ *+' conftest.out`
5284 if test -z "$ac_err"; then
5286 eval "ac_cv_header_$ac_safe=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_header_$ac_safe=no"
5296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5297 echo "$ac_t""yes" 1>&6
5298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5299 cat >> confdefs.h <<EOF
5300 #define $ac_tr_hdr 1
5304 echo "$ac_t""no" 1>&6
5310 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5311 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5312 ol_with_ldbm_api=none
5315 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5316 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5317 echo "configure:5318: checking for GDBM library" >&5
5318 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5322 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5323 echo "configure:5324: checking for gdbm_open" >&5
5324 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5330 /* System header to define __stub macros and hopefully few prototypes,
5331 which can conflict with char gdbm_open(); below. */
5333 /* Override any gcc2 internal prototype to avoid an error. */
5334 /* We use char because int might match the return type of a gcc2
5335 builtin and then its argument prototype would still apply. */
5340 /* The GNU C library defines this for functions which it implements
5341 to always fail with ENOSYS. Some functions are actually named
5342 something starting with __ and the normal name is an alias. */
5343 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5353 eval "ac_cv_func_gdbm_open=yes"
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 eval "ac_cv_func_gdbm_open=no"
5363 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5364 echo "$ac_t""yes" 1>&6
5367 echo "$ac_t""no" 1>&6
5369 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5370 echo "configure:5371: checking for gdbm_open in -lgdbm" >&5
5371 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 ac_save_LIBS="$LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5391 eval "ac_cv_lib_$ac_lib_var=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_lib_$ac_lib_var=no"
5399 LIBS="$ac_save_LIBS"
5402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ol_cv_lib_gdbm=-lgdbm
5406 echo "$ac_t""no" 1>&6
5417 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5420 for ac_hdr in gdbm.h
5422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5424 echo "configure:5425: checking for $ac_hdr" >&5
5425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5434 { (eval echo configure:5435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5435 ac_err=`grep -v '^ *+' conftest.out`
5436 if test -z "$ac_err"; then
5438 eval "ac_cv_header_$ac_safe=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 eval "ac_cv_header_$ac_safe=no"
5448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5451 cat >> confdefs.h <<EOF
5452 #define $ac_tr_hdr 1
5456 echo "$ac_t""no" 1>&6
5460 echo $ac_n "checking for db""... $ac_c" 1>&6
5461 echo "configure:5462: checking for db" >&5
5462 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5466 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5474 echo "$ac_t""$ol_cv_gdbm" 1>&6
5475 if test $ol_cv_gdbm = yes ; then
5476 cat >> confdefs.h <<\EOF
5483 if test $ol_cv_gdbm = yes ; then
5485 ol_with_ldbm_api=gdbm
5487 if test $ol_cv_lib_gdbm != yes ; then
5488 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5493 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
5494 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5495 echo "configure:5496: checking for NDBM library" >&5
5496 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5500 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5501 echo "configure:5502: checking for dbm_open" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char dbm_open(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5531 eval "ac_cv_func_dbm_open=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 eval "ac_cv_func_dbm_open=no"
5541 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5545 echo "$ac_t""no" 1>&6
5547 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5548 echo "configure:5549: checking for dbm_open in -lndbm" >&5
5549 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 ac_save_LIBS="$LIBS"
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5569 eval "ac_cv_lib_$ac_lib_var=yes"
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5574 eval "ac_cv_lib_$ac_lib_var=no"
5577 LIBS="$ac_save_LIBS"
5580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ol_cv_lib_ndbm=-lndbm
5584 echo "$ac_t""no" 1>&6
5586 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5587 echo "configure:5588: checking for dbm_open in -ldbm" >&5
5588 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 ac_save_LIBS="$LIBS"
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5608 eval "ac_cv_lib_$ac_lib_var=yes"
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5613 eval "ac_cv_lib_$ac_lib_var=no"
5616 LIBS="$ac_save_LIBS"
5619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5620 echo "$ac_t""yes" 1>&6
5621 ol_cv_lib_ndbm=-ldbm
5623 echo "$ac_t""no" 1>&6
5636 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5639 for ac_hdr in ndbm.h
5641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_hdr" >&5
5644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5653 { (eval echo configure:5654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5654 ac_err=`grep -v '^ *+' conftest.out`
5655 if test -z "$ac_err"; then
5657 eval "ac_cv_header_$ac_safe=yes"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5663 eval "ac_cv_header_$ac_safe=no"
5667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5668 echo "$ac_t""yes" 1>&6
5669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5670 cat >> confdefs.h <<EOF
5671 #define $ac_tr_hdr 1
5675 echo "$ac_t""no" 1>&6
5679 echo $ac_n "checking for db""... $ac_c" 1>&6
5680 echo "configure:5681: checking for db" >&5
5681 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5685 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5693 echo "$ac_t""$ol_cv_ndbm" 1>&6
5694 if test $ol_cv_ndbm = yes ; then
5695 cat >> confdefs.h <<\EOF
5702 if test $ol_cv_ndbm = yes ; then
5703 if test $ol_with_ldbm_api = auto ; then
5704 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
5708 ol_with_ldbm_api=ndbm
5710 if test $ol_cv_lib_ndbm != yes ; then
5711 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5716 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5717 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5718 if test $ol_enable_ldbm = yes ; then
5719 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5722 echo "configure: warning: disabling LDBM" 1>&2
5726 if test $ol_enable_wrappers = yes ; then
5727 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5728 echo "configure:5729: checking for hosts_access in -lwrap" >&5
5729 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 ac_save_LIBS="$LIBS"
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5738 /* Override any gcc2 internal prototype to avoid an error. */
5739 /* We use char because int might match the return type of a gcc2
5740 builtin and then its argument prototype would still apply. */
5741 char hosts_access();
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5749 eval "ac_cv_lib_$ac_lib_var=yes"
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 eval "ac_cv_lib_$ac_lib_var=no"
5757 LIBS="$ac_save_LIBS"
5760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5764 echo "$ac_t""no" 1>&6
5769 if test $have_wrappers = yes ; then
5770 cat >> confdefs.h <<\EOF
5774 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5776 echo "configure: warning: could not find -lwrap" 1>&2
5777 if test $ol_enable_wrappers = yes ; then
5778 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5781 echo "configure: warning: disabling wrappers support" 1>&2
5782 ol_enable_wrappers=no
5787 # ud needs termcap (should insert check here)
5789 for ac_hdr in termcap.h ncurses.h
5791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5793 echo "configure:5794: checking for $ac_hdr" >&5
5794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5803 { (eval echo configure:5804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5804 ac_err=`grep -v '^ *+' conftest.out`
5805 if test -z "$ac_err"; then
5807 eval "ac_cv_header_$ac_safe=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 eval "ac_cv_header_$ac_safe=no"
5817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5818 echo "$ac_t""yes" 1>&6
5819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5820 cat >> confdefs.h <<EOF
5821 #define $ac_tr_hdr 1
5825 echo "$ac_t""no" 1>&6
5830 if test $ol_link_termcap = no ; then
5831 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5832 echo "configure:5833: checking for tputs in -ltermcap" >&5
5833 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 ac_save_LIBS="$LIBS"
5838 LIBS="-ltermcap $LIBS"
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* Override any gcc2 internal prototype to avoid an error. */
5843 /* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5851 if { (eval echo configure:5852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5853 eval "ac_cv_lib_$ac_lib_var=yes"
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 eval "ac_cv_lib_$ac_lib_var=no"
5861 LIBS="$ac_save_LIBS"
5864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5865 echo "$ac_t""yes" 1>&6
5868 echo "$ac_t""no" 1>&6
5872 if test $have_termcap = yes ; then
5873 cat >> confdefs.h <<\EOF
5874 #define HAVE_TERMCAP 1
5878 TERMCAP_LIBS=-ltermcap
5882 if test $ol_link_termcap = no ; then
5883 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5884 echo "configure:5885: checking for initscr in -lncurses" >&5
5885 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 ac_save_LIBS="$LIBS"
5890 LIBS="-lncurses $LIBS"
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 /* Override any gcc2 internal prototype to avoid an error. */
5895 /* We use char because int might match the return type of a gcc2
5896 builtin and then its argument prototype would still apply. */
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5905 eval "ac_cv_lib_$ac_lib_var=yes"
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5910 eval "ac_cv_lib_$ac_lib_var=no"
5913 LIBS="$ac_save_LIBS"
5916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5917 echo "$ac_t""yes" 1>&6
5920 echo "$ac_t""no" 1>&6
5924 if test $have_ncurses = yes ; then
5925 cat >> confdefs.h <<\EOF
5926 #define HAVE_NCURSES 1
5930 TERMCAP_LIBS=-lncurses
5934 if test $ol_link_termcap = no ; then
5935 cat >> confdefs.h <<\EOF
5936 #define NO_TERMCAP 1
5942 # FreeBSD (and others) have crypt(3) in -lcrypt
5943 if test $ol_enable_crypt != no ; then
5944 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5945 echo "configure:5946: checking for crypt" >&5
5946 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char crypt(); below. */
5955 /* Override any gcc2 internal prototype to avoid an error. */
5956 /* We use char because int might match the return type of a gcc2
5957 builtin and then its argument prototype would still apply. */
5962 /* The GNU C library defines this for functions which it implements
5963 to always fail with ENOSYS. Some functions are actually named
5964 something starting with __ and the normal name is an alias. */
5965 #if defined (__stub_crypt) || defined (__stub___crypt)
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5975 eval "ac_cv_func_crypt=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 eval "ac_cv_func_crypt=no"
5985 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5989 echo "$ac_t""no" 1>&6
5991 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5992 echo "configure:5993: checking for crypt in -lcrypt" >&5
5993 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5997 ac_save_LIBS="$LIBS"
5998 LIBS="-lcrypt $LIBS"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6013 eval "ac_cv_lib_$ac_lib_var=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_lib_$ac_lib_var=no"
6021 LIBS="$ac_save_LIBS"
6024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6029 echo "$ac_t""no" 1>&6
6036 if test $have_crypt = yes ; then
6037 cat >> confdefs.h <<\EOF
6038 #define HAVE_CRYPT 1
6042 echo "configure: warning: could not find crypt" 1>&2
6043 if test $ol_enable_crypt = yes ; then
6044 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6047 echo "configure: warning: disabling crypt support" 1>&2
6052 # FreeBSD (and others) have setproctitle(3) in -lutil
6053 if test $ol_enable_proctitle != no ; then
6054 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6055 echo "configure:6056: checking for setproctitle" >&5
6056 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char setproctitle(); below. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char setproctitle();
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6085 eval "ac_cv_func_setproctitle=yes"
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6090 eval "ac_cv_func_setproctitle=no"
6095 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
6097 have_setproctitle=yes
6099 echo "$ac_t""no" 1>&6
6101 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6102 echo "configure:6103: checking for setproctitle in -lutil" >&5
6103 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6107 ac_save_LIBS="$LIBS"
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6115 char setproctitle();
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6123 eval "ac_cv_lib_$ac_lib_var=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_lib_$ac_lib_var=no"
6131 LIBS="$ac_save_LIBS"
6134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6136 have_setproctitle=yes
6137 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6139 echo "$ac_t""no" 1>&6
6140 have_setproctitle=no
6141 LIBOBJS="$LIBOBJS setproctitle.o"
6147 if test $have_setproctitle = yes ; then
6148 cat >> confdefs.h <<\EOF
6149 #define HAVE_SETPROCTITLE 1
6155 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6156 echo "configure:6157: checking for ANSI C header files" >&5
6157 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6169 { (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6170 ac_err=`grep -v '^ *+' conftest.out`
6171 if test -z "$ac_err"; then
6173 ac_cv_header_stdc=yes
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 ac_cv_header_stdc=no
6183 if test $ac_cv_header_stdc = yes; then
6184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 egrep "memchr" >/dev/null 2>&1; then
6195 ac_cv_header_stdc=no
6201 if test $ac_cv_header_stdc = yes; then
6202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 egrep "free" >/dev/null 2>&1; then
6213 ac_cv_header_stdc=no
6219 if test $ac_cv_header_stdc = yes; then
6220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6221 if test "$cross_compiling" = yes; then
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6228 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6229 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6231 int main () { int i; for (i = 0; i < 256; i++)
6232 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 ac_cv_header_stdc=no
6251 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6252 if test $ac_cv_header_stdc = yes; then
6253 cat >> confdefs.h <<\EOF
6254 #define STDC_HEADERS 1
6260 if test $ac_cv_header_stdc != yes; then
6261 echo "configure: warning: could not Standard C compliant headers" 1>&2
6265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6268 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_hdr that defines DIR" >&5
6270 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 #include <sys/types.h>
6282 if { (eval echo configure:6283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6284 eval "ac_cv_header_dirent_$ac_safe=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_header_dirent_$ac_safe=no"
6293 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_hdr 1
6299 ac_header_dirent=$ac_hdr; break
6301 echo "$ac_t""no" 1>&6
6304 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6305 if test $ac_header_dirent = dirent.h; then
6306 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6307 echo "configure:6308: checking for opendir in -ldir" >&5
6308 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6312 ac_save_LIBS="$LIBS"
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6328 eval "ac_cv_lib_$ac_lib_var=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval "ac_cv_lib_$ac_lib_var=no"
6336 LIBS="$ac_save_LIBS"
6339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6343 echo "$ac_t""no" 1>&6
6347 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6348 echo "configure:6349: checking for opendir in -lx" >&5
6349 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 ac_save_LIBS="$LIBS"
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6367 if { (eval echo configure:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6369 eval "ac_cv_lib_$ac_lib_var=yes"
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 eval "ac_cv_lib_$ac_lib_var=no"
6377 LIBS="$ac_save_LIBS"
6380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6384 echo "$ac_t""no" 1>&6
6389 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6390 echo "configure:6391: checking for sys/wait.h that is POSIX.1 compatible" >&5
6391 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6397 #include <sys/types.h>
6398 #include <sys/wait.h>
6400 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6403 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6408 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6411 if { (eval echo configure:6412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6413 ac_cv_header_sys_wait_h=yes
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 ac_cv_header_sys_wait_h=no
6423 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6424 if test $ac_cv_header_sys_wait_h = yes; then
6425 cat >> confdefs.h <<\EOF
6426 #define HAVE_SYS_WAIT_H 1
6431 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6432 echo "configure:6433: checking POSIX termios" >&5
6433 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 #include <sys/types.h>
6441 #include <termios.h>
6443 /* SunOS 4.0.3 has termios.h but not the library calls. */
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6449 am_cv_sys_posix_termios=yes
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6454 am_cv_sys_posix_termios=no
6459 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6462 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6463 echo "configure:6464: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6464 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6465 echo $ac_n "(cached) $ac_c" 1>&6
6467 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6469 gwinsz_in_termios_h=no
6470 if test $am_cv_sys_posix_termios = yes; then
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6474 #include <sys/types.h>
6475 # include <termios.h>
6481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6482 egrep "yes" >/dev/null 2>&1; then
6484 gwinsz_in_termios_h=yes
6490 if test $gwinsz_in_termios_h = no; then
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 #include <sys/types.h>
6495 # include <sys/ioctl.h>
6501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 egrep "yes" >/dev/null 2>&1; then
6504 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6512 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6513 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6514 cat >> confdefs.h <<\EOF
6515 #define GWINSZ_IN_SYS_IOCTL 1
6520 if test $am_cv_sys_posix_termios = yes ; then
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_POSIX_TERMIOS 1
6560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6562 echo "configure:6563: checking for $ac_hdr" >&5
6563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6572 { (eval echo configure:6573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6573 ac_err=`grep -v '^ *+' conftest.out`
6574 if test -z "$ac_err"; then
6576 eval "ac_cv_header_$ac_safe=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 eval "ac_cv_header_$ac_safe=no"
6586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6587 echo "$ac_t""yes" 1>&6
6588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6589 cat >> confdefs.h <<EOF
6590 #define $ac_tr_hdr 1
6594 echo "$ac_t""no" 1>&6
6599 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6600 echo "configure:6601: checking for uid_t in sys/types.h" >&5
6601 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 #include <sys/types.h>
6609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6610 egrep "uid_t" >/dev/null 2>&1; then
6612 ac_cv_type_uid_t=yes
6621 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6622 if test $ac_cv_type_uid_t = no; then
6623 cat >> confdefs.h <<\EOF
6627 cat >> confdefs.h <<\EOF
6633 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6634 echo "configure:6635: checking type of array argument to getgroups" >&5
6635 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6638 if test "$cross_compiling" = yes; then
6639 ac_cv_type_getgroups=cross
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6645 /* Thanks to Mike Rendell for this test. */
6646 #include <sys/types.h>
6649 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6654 union { gid_t gval; long lval; } val;
6657 for (i = 0; i < NGID; i++)
6658 gidset[i] = val.gval;
6659 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6661 /* Exit non-zero if getgroups seems to require an array of ints. This
6662 happens when gid_t is short but getgroups modifies an array of ints. */
6663 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6669 ac_cv_type_getgroups=gid_t
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 ac_cv_type_getgroups=int
6679 if test $ac_cv_type_getgroups = cross; then
6680 cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6686 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6688 ac_cv_type_getgroups=gid_t
6691 ac_cv_type_getgroups=int
6698 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
6699 cat >> confdefs.h <<EOF
6700 #define GETGROUPS_T $ac_cv_type_getgroups
6703 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6704 echo "configure:6705: checking for mode_t" >&5
6705 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6720 ac_cv_type_mode_t=yes
6723 ac_cv_type_mode_t=no
6728 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6729 if test $ac_cv_type_mode_t = no; then
6730 cat >> confdefs.h <<\EOF
6736 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6737 echo "configure:6738: checking for off_t" >&5
6738 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 #include <sys/types.h>
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6753 ac_cv_type_off_t=yes
6761 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6762 if test $ac_cv_type_off_t = no; then
6763 cat >> confdefs.h <<\EOF
6769 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6770 echo "configure:6771: checking for pid_t" >&5
6771 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <sys/types.h>
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6786 ac_cv_type_pid_t=yes
6794 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6795 if test $ac_cv_type_pid_t = no; then
6796 cat >> confdefs.h <<\EOF
6802 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
6803 echo "configure:6804: checking for ptrdiff_t" >&5
6804 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6815 if { (eval echo configure:6816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6817 am_cv_type_ptrdiff_t=yes
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 am_cv_type_ptrdiff_t=no
6827 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
6828 if test $am_cv_type_ptrdiff_t = yes; then
6829 cat >> confdefs.h <<\EOF
6830 #define HAVE_PTRDIFF_T 1
6835 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6836 echo "configure:6837: checking return type of signal handlers" >&5
6837 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 #include <sys/types.h>
6849 extern "C" void (*signal (int, void (*)(int)))(int);
6851 void (*signal ()) ();
6858 if { (eval echo configure:6859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6860 ac_cv_type_signal=void
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 ac_cv_type_signal=int
6870 echo "$ac_t""$ac_cv_type_signal" 1>&6
6871 cat >> confdefs.h <<EOF
6872 #define RETSIGTYPE $ac_cv_type_signal
6876 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6877 echo "configure:6878: checking for size_t" >&5
6878 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 #include <sys/types.h>
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6893 ac_cv_type_size_t=yes
6896 ac_cv_type_size_t=no
6901 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6902 if test $ac_cv_type_size_t = no; then
6903 cat >> confdefs.h <<\EOF
6904 #define size_t unsigned
6909 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6910 echo "configure:6911: checking for st_blksize in struct stat" >&5
6911 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 #include <sys/types.h>
6918 #include <sys/stat.h>
6920 struct stat s; s.st_blksize;
6923 if { (eval echo configure:6924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6925 ac_cv_struct_st_blksize=yes
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 ac_cv_struct_st_blksize=no
6935 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6936 if test $ac_cv_struct_st_blksize = yes; then
6937 cat >> confdefs.h <<\EOF
6938 #define HAVE_ST_BLKSIZE 1
6943 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6944 echo "configure:6945: checking whether time.h and sys/time.h may both be included" >&5
6945 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 #include <sys/types.h>
6952 #include <sys/time.h>
6958 if { (eval echo configure:6959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6960 ac_cv_header_time=yes
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6965 ac_cv_header_time=no
6970 echo "$ac_t""$ac_cv_header_time" 1>&6
6971 if test $ac_cv_header_time = yes; then
6972 cat >> confdefs.h <<\EOF
6973 #define TIME_WITH_SYS_TIME 1
6978 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6979 echo "configure:6980: checking whether struct tm is in sys/time.h or time.h" >&5
6980 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6983 cat > conftest.$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6986 #include <sys/types.h>
6989 struct tm *tp; tp->tm_sec;
6992 if { (eval echo configure:6993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6994 ac_cv_struct_tm=time.h
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6999 ac_cv_struct_tm=sys/time.h
7004 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7005 if test $ac_cv_struct_tm = sys/time.h; then
7006 cat >> confdefs.h <<\EOF
7007 #define TM_IN_SYS_TIME 1
7014 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7015 echo "configure:7016: checking if toupper() requires islower()" >&5
7016 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7020 if test "$cross_compiling" = yes; then
7021 ol_cv_c_upper_lower=safe
7023 cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7030 if ('C' == toupper('C'))
7036 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7038 ol_cv_c_upper_lower=no
7040 echo "configure: failed program was:" >&5
7041 cat conftest.$ac_ext >&5
7043 ol_cv_c_upper_lower=yes
7050 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7051 if test $ol_cv_c_upper_lower != no ; then
7052 cat >> confdefs.h <<\EOF
7053 #define C_UPPER_LOWER 1
7058 echo $ac_n "checking for working const""... $ac_c" 1>&6
7059 echo "configure:7060: checking for working const" >&5
7060 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7069 /* Ultrix mips cc rejects this. */
7070 typedef int charset[2]; const charset x;
7071 /* SunOS 4.1.1 cc rejects this. */
7072 char const *const *ccp;
7074 /* NEC SVR4.0.2 mips cc rejects this. */
7075 struct point {int x, y;};
7076 static struct point const zero = {0,0};
7077 /* AIX XL C 1.02.0.0 rejects this.
7078 It does not let you subtract one const X* pointer from another in an arm
7079 of an if-expression whose if-part is not a constant expression */
7080 const char *g = "string";
7081 ccp = &g + (g ? g-g : 0);
7082 /* HPUX 7.0 cc rejects these. */
7085 ccp = (char const *const *) p;
7086 { /* SCO 3.2v4 cc rejects this. */
7088 char const *s = 0 ? (char *) 0 : (char const *) 0;
7092 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7094 const int *foo = &x[0];
7097 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7098 typedef const int *iptr;
7102 { /* AIX XL C 1.02.0.0 rejects this saying
7103 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7104 struct s { int j; const int *ap[3]; };
7105 struct s *b; b->j = 5;
7107 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7113 if { (eval echo configure:7114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7125 echo "$ac_t""$ac_cv_c_const" 1>&6
7126 if test $ac_cv_c_const = no; then
7127 cat >> confdefs.h <<\EOF
7134 if test $cross_compiling = yes ; then
7135 cat >> confdefs.h <<\EOF
7136 #define CROSS_COMPILING 1
7140 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7141 echo "configure:7142: checking whether byte ordering is bigendian" >&5
7142 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7145 ac_cv_c_bigendian=unknown
7146 # See if sys/param.h defines the BYTE_ORDER macro.
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 #include <sys/types.h>
7151 #include <sys/param.h>
7154 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7159 if { (eval echo configure:7160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7161 # It does; now see whether it defined to BIG_ENDIAN or not.
7162 cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7165 #include <sys/types.h>
7166 #include <sys/param.h>
7169 #if BYTE_ORDER != BIG_ENDIAN
7174 if { (eval echo configure:7175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7176 ac_cv_c_bigendian=yes
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 ac_cv_c_bigendian=no
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7189 if test $ac_cv_c_bigendian = unknown; then
7190 if test "$cross_compiling" = yes; then
7191 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7197 /* Are we little or big endian? From Harbison&Steele. */
7201 char c[sizeof (long)];
7204 exit (u.c[sizeof (long) - 1] == 1);
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7209 ac_cv_c_bigendian=no
7211 echo "configure: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7214 ac_cv_c_bigendian=yes
7222 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7223 if test $ac_cv_c_bigendian = yes; then
7224 cat >> confdefs.h <<\EOF
7225 #define WORDS_BIGENDIAN 1
7230 echo $ac_n "checking size of short""... $ac_c" 1>&6
7231 echo "configure:7232: checking size of short" >&5
7232 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7235 if test "$cross_compiling" = yes; then
7236 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7244 FILE *f=fopen("conftestval", "w");
7246 fprintf(f, "%d\n", sizeof(short));
7250 if { (eval echo configure:7251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7252 ac_cv_sizeof_short=`cat conftestval`
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7257 ac_cv_sizeof_short=0
7263 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7264 cat >> confdefs.h <<EOF
7265 #define SIZEOF_SHORT $ac_cv_sizeof_short
7269 echo $ac_n "checking size of int""... $ac_c" 1>&6
7270 echo "configure:7271: checking size of int" >&5
7271 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7274 if test "$cross_compiling" = yes; then
7275 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7277 cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7283 FILE *f=fopen("conftestval", "w");
7285 fprintf(f, "%d\n", sizeof(int));
7289 if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7291 ac_cv_sizeof_int=`cat conftestval`
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7302 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7303 cat >> confdefs.h <<EOF
7304 #define SIZEOF_INT $ac_cv_sizeof_int
7308 echo $ac_n "checking size of long""... $ac_c" 1>&6
7309 echo "configure:7310: checking size of long" >&5
7310 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7311 echo $ac_n "(cached) $ac_c" 1>&6
7313 if test "$cross_compiling" = yes; then
7314 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7322 FILE *f=fopen("conftestval", "w");
7324 fprintf(f, "%d\n", sizeof(long));
7328 if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7330 ac_cv_sizeof_long=`cat conftestval`
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7341 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7342 cat >> confdefs.h <<EOF
7343 #define SIZEOF_LONG $ac_cv_sizeof_long
7349 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7350 echo "configure:7351: checking for 8-bit clean memcmp" >&5
7351 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7354 if test "$cross_compiling" = yes; then
7355 ac_cv_func_memcmp_clean=no
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7363 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7364 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7370 ac_cv_func_memcmp_clean=yes
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7375 ac_cv_func_memcmp_clean=no
7382 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7383 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7385 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7386 echo "configure:7387: checking for strftime" >&5
7387 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char strftime(); below. */
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7403 /* The GNU C library defines this for functions which it implements
7404 to always fail with ENOSYS. Some functions are actually named
7405 something starting with __ and the normal name is an alias. */
7406 #if defined (__stub_strftime) || defined (__stub___strftime)
7414 if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7416 eval "ac_cv_func_strftime=yes"
7418 echo "configure: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7421 eval "ac_cv_func_strftime=no"
7426 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 cat >> confdefs.h <<\EOF
7429 #define HAVE_STRFTIME 1
7433 echo "$ac_t""no" 1>&6
7434 # strftime is in -lintl on SCO UNIX.
7435 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7436 echo "configure:7437: checking for strftime in -lintl" >&5
7437 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7439 echo $ac_n "(cached) $ac_c" 1>&6
7441 ac_save_LIBS="$LIBS"
7443 cat > conftest.$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 /* Override any gcc2 internal prototype to avoid an error. */
7447 /* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7455 if { (eval echo configure:7456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7457 eval "ac_cv_lib_$ac_lib_var=yes"
7459 echo "configure: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7462 eval "ac_cv_lib_$ac_lib_var=no"
7465 LIBS="$ac_save_LIBS"
7468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7469 echo "$ac_t""yes" 1>&6
7470 cat >> confdefs.h <<\EOF
7471 #define HAVE_STRFTIME 1
7476 echo "$ac_t""no" 1>&6
7481 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7482 echo "configure:7483: checking for vprintf" >&5
7483 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7489 /* System header to define __stub macros and hopefully few prototypes,
7490 which can conflict with char vprintf(); below. */
7492 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7499 /* The GNU C library defines this for functions which it implements
7500 to always fail with ENOSYS. Some functions are actually named
7501 something starting with __ and the normal name is an alias. */
7502 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7512 eval "ac_cv_func_vprintf=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 eval "ac_cv_func_vprintf=no"
7522 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7523 echo "$ac_t""yes" 1>&6
7524 cat >> confdefs.h <<\EOF
7525 #define HAVE_VPRINTF 1
7529 echo "$ac_t""no" 1>&6
7532 if test "$ac_cv_func_vprintf" != yes; then
7533 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7534 echo "configure:7535: checking for _doprnt" >&5
7535 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7536 echo $ac_n "(cached) $ac_c" 1>&6
7538 cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 /* System header to define __stub macros and hopefully few prototypes,
7542 which can conflict with char _doprnt(); below. */
7544 /* Override any gcc2 internal prototype to avoid an error. */
7545 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */
7551 /* The GNU C library defines this for functions which it implements
7552 to always fail with ENOSYS. Some functions are actually named
7553 something starting with __ and the normal name is an alias. */
7554 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7564 eval "ac_cv_func__doprnt=yes"
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7569 eval "ac_cv_func__doprnt=no"
7574 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7575 echo "$ac_t""yes" 1>&6
7576 cat >> confdefs.h <<\EOF
7577 #define HAVE_DOPRNT 1
7581 echo "$ac_t""no" 1>&6
7587 if test $ac_cv_func_vprintf = yes ; then
7588 for ac_func in vsnprintf
7590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7591 echo "configure:7592: checking for $ac_func" >&5
7592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7593 echo $ac_n "(cached) $ac_c" 1>&6
7595 cat > conftest.$ac_ext <<EOF
7596 #line 7597 "configure"
7597 #include "confdefs.h"
7598 /* System header to define __stub macros and hopefully few prototypes,
7599 which can conflict with char $ac_func(); below. */
7601 /* Override any gcc2 internal prototype to avoid an error. */
7602 /* We use char because int might match the return type of a gcc2
7603 builtin and then its argument prototype would still apply. */
7608 /* The GNU C library defines this for functions which it implements
7609 to always fail with ENOSYS. Some functions are actually named
7610 something starting with __ and the normal name is an alias. */
7611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7619 if { (eval echo configure:7620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7621 eval "ac_cv_func_$ac_func=yes"
7623 echo "configure: failed program was:" >&5
7624 cat conftest.$ac_ext >&5
7626 eval "ac_cv_func_$ac_func=no"
7631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7632 echo "$ac_t""yes" 1>&6
7633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7634 cat >> confdefs.h <<EOF
7635 #define $ac_tr_func 1
7639 echo "$ac_t""no" 1>&6
7645 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
7646 echo "configure:7647: checking for wait3 that fills in rusage" >&5
7647 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7650 if test "$cross_compiling" = yes; then
7651 ac_cv_func_wait3_rusage=no
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 #include <sys/types.h>
7657 #include <sys/time.h>
7658 #include <sys/resource.h>
7660 /* HP-UX has wait3 but does not fill in rusage at all. */
7664 /* Use a field that we can force nonzero --
7665 voluntary context switches.
7666 For systems like NeXT and OSF/1 that don't set it,
7667 also use the system CPU time. And page faults (I/O) for Linux. */
7669 r.ru_stime.tv_sec = 0;
7670 r.ru_stime.tv_usec = 0;
7671 r.ru_majflt = r.ru_minflt = 0;
7673 case 0: /* Child. */
7674 sleep(1); /* Give up the CPU. */
7676 case -1: _exit(0); /* What can we do? */
7677 default: /* Parent. */
7679 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
7680 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
7681 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7687 ac_cv_func_wait3_rusage=yes
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 ac_cv_func_wait3_rusage=no
7699 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
7700 if test $ac_cv_func_wait3_rusage = yes; then
7701 cat >> confdefs.h <<\EOF
7702 #define HAVE_WAIT3 1
7739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7740 echo "configure:7741: checking for $ac_func" >&5
7741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7742 echo $ac_n "(cached) $ac_c" 1>&6
7744 cat > conftest.$ac_ext <<EOF
7745 #line 7746 "configure"
7746 #include "confdefs.h"
7747 /* System header to define __stub macros and hopefully few prototypes,
7748 which can conflict with char $ac_func(); below. */
7750 /* Override any gcc2 internal prototype to avoid an error. */
7751 /* We use char because int might match the return type of a gcc2
7752 builtin and then its argument prototype would still apply. */
7757 /* The GNU C library defines this for functions which it implements
7758 to always fail with ENOSYS. Some functions are actually named
7759 something starting with __ and the normal name is an alias. */
7760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7770 eval "ac_cv_func_$ac_func=yes"
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 eval "ac_cv_func_$ac_func=no"
7780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7781 echo "$ac_t""yes" 1>&6
7782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7783 cat >> confdefs.h <<EOF
7784 #define $ac_tr_func 1
7788 echo "$ac_t""no" 1>&6
7793 for ac_func in getopt strdup tempnam
7795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7796 echo "configure:7797: checking for $ac_func" >&5
7797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* System header to define __stub macros and hopefully few prototypes,
7804 which can conflict with char $ac_func(); below. */
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7813 /* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7826 eval "ac_cv_func_$ac_func=yes"
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7831 eval "ac_cv_func_$ac_func=no"
7836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7837 echo "$ac_t""yes" 1>&6
7838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7839 cat >> confdefs.h <<EOF
7840 #define $ac_tr_func 1
7844 echo "$ac_t""no" 1>&6
7845 LIBOBJS="$LIBOBJS ${ac_func}.o"
7851 # Check Configuration
7853 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
7854 echo "configure:7855: checking declaration of sys_errlist" >&5
7855 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7859 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7864 #include <sys/types.h>
7867 char *c = (char *) *sys_errlist
7870 if { (eval echo configure:7871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7872 ol_cv_dcl_sys_errlist=yes
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7877 ol_cv_dcl_sys_errlist=no
7882 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
7884 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
7885 if test $ol_cv_dcl_sys_errlist = no ; then
7886 cat >> confdefs.h <<\EOF
7887 #define DECL_SYS_ERRLIST 1
7890 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
7891 echo "configure:7892: checking existence of sys_errlist" >&5
7892 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7901 char *c = (char *) *sys_errlist
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7906 ol_cv_have_sys_errlist=yes
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 ol_cv_have_sys_errlist=no
7916 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
7921 if test $ol_enable_debug != no ; then
7922 cat >> confdefs.h <<\EOF
7923 #define LDAP_DEBUG 1
7927 if test $ol_enable_libui = yes ; then
7928 cat >> confdefs.h <<\EOF
7929 #define LDAP_LIBUI 1
7933 if test $ol_enable_cache = no ; then
7934 cat >> confdefs.h <<\EOF
7935 #define LDAP_NOCACHE 1
7939 if test $ol_enable_dns != no ; then
7940 cat >> confdefs.h <<\EOF
7941 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS 1
7945 if test $ol_enable_proctitle != no ; then
7946 cat >> confdefs.h <<\EOF
7947 #define LDAP_PROCTITLE 1
7951 if test $ol_enable_referrals != no ; then
7952 cat >> confdefs.h <<\EOF
7953 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS 1
7957 if test $ol_enable_cldap != no ; then
7958 cat >> confdefs.h <<\EOF
7959 #define LDAP_CONNECTIONLESS 1
7964 if test $ol_enable_aclgroups != no ; then
7965 cat >> confdefs.h <<\EOF
7966 #define SLAPD_ACLGROUPS 1
7970 if test $ol_enable_crypt != no ; then
7971 cat >> confdefs.h <<\EOF
7972 #define SLAPD_CRYPT 1
7976 if test $ol_enable_md5 != no ; then
7977 cat >> confdefs.h <<\EOF
7982 if test $ol_enable_sha1 != no ; then
7983 cat >> confdefs.h <<\EOF
7984 #define SLAPD_SHA1 1
7988 if test $ol_enable_phonetic != no ; then
7989 cat >> confdefs.h <<\EOF
7990 #define SLAPD_PHONETIC 1
7994 if test $ol_enable_rlookups != no ; then
7995 cat >> confdefs.h <<\EOF
7996 #define SLAPD_RLOOKUPS 1
8001 if test $ol_link_ldbm != no ; then
8002 cat >> confdefs.h <<\EOF
8003 #define SLAPD_LDBM 1
8010 if test $ol_enable_passwd != no ; then
8011 cat >> confdefs.h <<\EOF
8012 #define SLAPD_PASSWD 1
8019 if test $ol_enable_shell != no ; then
8020 cat >> confdefs.h <<\EOF
8021 #define SLAPD_SHELL 1
8028 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
8029 $BUILD_SLAPD = yes ; then
8033 if test $ol_link_isode != no ; then
8059 cat > confcache <<\EOF
8060 # This file is a shell script that caches the results of configure
8061 # tests run on this system so they can be shared between configure
8062 # scripts and configure runs. It is not useful on other systems.
8063 # If it contains results you don't want to keep, you may remove or edit it.
8065 # By default, configure uses ./config.cache as the cache file,
8066 # creating it if it does not exist already. You can give configure
8067 # the --cache-file=FILE option to use a different cache file; that is
8068 # what configure does when it calls configure scripts in
8069 # subdirectories, so they share the cache.
8070 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8071 # config.status only pays attention to the cache file if you give it the
8072 # --recheck option to rerun configure.
8075 # The following way of writing the cache mishandles newlines in values,
8076 # but we know of no workaround that is simple, portable, and efficient.
8077 # So, don't put newlines in cache variables' values.
8078 # Ultrix sh set writes to stderr and can't be redirected directly,
8079 # and sets the high bit in the cache file unless we assign to the vars.
8081 case `(ac_space=' '; set) 2>&1` in
8083 # `set' does not quote correctly, so add quotes (double-quote substitution
8084 # turns \\\\ into \\, and sed turns \\ into \).
8086 -e "s/'/'\\\\''/g" \
8087 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8090 # `set' quotes correctly as required by POSIX, so do not add quotes.
8091 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8094 if cmp -s $cache_file confcache; then
8097 if test -w $cache_file; then
8098 echo "updating cache $cache_file"
8099 cat confcache > $cache_file
8101 echo "not updating unwritable cache $cache_file"
8106 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8109 # Let make expand exec_prefix.
8110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8112 # Any assignment to VPATH causes Sun make to only execute
8113 # the first set of double-colon rules, so remove it if not needed.
8114 # If there is a colon in the path, we need to keep it.
8115 if test "x$srcdir" = x.; then
8116 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8119 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8121 DEFS=-DHAVE_CONFIG_H
8123 # Without the "./", some shells look in PATH for config.status.
8124 : ${CONFIG_STATUS=./config.status}
8126 echo creating $CONFIG_STATUS
8127 rm -f $CONFIG_STATUS
8128 cat > $CONFIG_STATUS <<EOF
8130 # Generated automatically by configure.
8131 # Run this file to recreate the current configuration.
8132 # This directory was configured as follows,
8133 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8135 # $0 $ac_configure_args
8137 # Compiler output produced by configure, useful for debugging
8138 # configure, is in ./config.log if it exists.
8140 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8143 case "\$ac_option" in
8144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8145 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8146 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8147 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8148 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8150 -help | --help | --hel | --he | --h)
8151 echo "\$ac_cs_usage"; exit 0 ;;
8152 *) echo "\$ac_cs_usage"; exit 1 ;;
8156 ac_given_srcdir=$srcdir
8157 ac_given_INSTALL="$INSTALL"
8159 trap 'rm -fr `echo "\
8160 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8161 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8162 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8163 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8164 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8165 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8166 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8167 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8168 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8169 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8170 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8171 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8172 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8173 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8174 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8175 include/Makefile:build/top.mk:include/Makefile.in \
8176 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8177 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8178 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8179 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8180 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8181 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8182 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8183 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8184 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8185 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8186 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8187 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8188 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8189 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8190 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8191 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8192 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8193 tests/Makefile:build/top.mk:tests/Makefile.in \
8194 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8196 cat >> $CONFIG_STATUS <<EOF
8198 # Protect against being on the right side of a sed subst in config.status.
8199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8203 s%@CFLAGS@%$CFLAGS%g
8204 s%@CPPFLAGS@%$CPPFLAGS%g
8205 s%@CXXFLAGS@%$CXXFLAGS%g
8207 s%@LDFLAGS@%$LDFLAGS%g
8209 s%@exec_prefix@%$exec_prefix%g
8210 s%@prefix@%$prefix%g
8211 s%@program_transform_name@%$program_transform_name%g
8212 s%@bindir@%$bindir%g
8213 s%@sbindir@%$sbindir%g
8214 s%@libexecdir@%$libexecdir%g
8215 s%@datadir@%$datadir%g
8216 s%@sysconfdir@%$sysconfdir%g
8217 s%@sharedstatedir@%$sharedstatedir%g
8218 s%@localstatedir@%$localstatedir%g
8219 s%@libdir@%$libdir%g
8220 s%@includedir@%$includedir%g
8221 s%@oldincludedir@%$oldincludedir%g
8222 s%@infodir@%$infodir%g
8223 s%@mandir@%$mandir%g
8224 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8225 s%@INSTALL_DATA@%$INSTALL_DATA%g
8226 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8227 s%@PACKAGE@%$PACKAGE%g
8228 s%@VERSION@%$VERSION%g
8229 s%@ACLOCAL@%$ACLOCAL%g
8230 s%@AUTOCONF@%$AUTOCONF%g
8231 s%@AUTOMAKE@%$AUTOMAKE%g
8232 s%@AUTOHEADER@%$AUTOHEADER%g
8233 s%@MAKEINFO@%$MAKEINFO%g
8234 s%@SET_MAKE@%$SET_MAKE%g
8235 s%@top_builddir@%$top_builddir%g
8236 s%@ldap_subdir@%$ldap_subdir%g
8238 s%@host_alias@%$host_alias%g
8239 s%@host_cpu@%$host_cpu%g
8240 s%@host_vendor@%$host_vendor%g
8241 s%@host_os@%$host_os%g
8242 s%@RANLIB@%$RANLIB%g
8247 s%@LIBTOOL@%$LIBTOOL%g
8248 s%@SENDMAIL@%$SENDMAIL%g
8249 s%@EDITOR@%$EDITOR%g
8250 s%@FINGER@%$FINGER%g
8253 s%@LIBOBJS@%$LIBOBJS%g
8254 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8255 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8256 s%@BUILD_LDBM@%$BUILD_LDBM%g
8257 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8258 s%@BUILD_SHELL@%$BUILD_SHELL%g
8259 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8260 s%@LDAP_LIBS@%$LDAP_LIBS%g
8261 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8262 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8263 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8264 s%@LDBM_LIBS@%$LDBM_LIBS%g
8265 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8266 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8267 s%@KRB_LIBS@%$KRB_LIBS%g
8268 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8273 cat >> $CONFIG_STATUS <<\EOF
8275 # Split the substitutions into bite-sized pieces for seds with
8276 # small command number limits, like on Digital OSF/1 and HP-UX.
8277 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8278 ac_file=1 # Number of current file.
8279 ac_beg=1 # First line for current file.
8280 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8283 while $ac_more_lines; do
8284 if test $ac_beg -gt 1; then
8285 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8287 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8289 if test ! -s conftest.s$ac_file; then
8291 rm -f conftest.s$ac_file
8293 if test -z "$ac_sed_cmds"; then
8294 ac_sed_cmds="sed -f conftest.s$ac_file"
8296 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8298 ac_file=`expr $ac_file + 1`
8300 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8303 if test -z "$ac_sed_cmds"; then
8308 cat >> $CONFIG_STATUS <<EOF
8310 CONFIG_FILES=\${CONFIG_FILES-"\
8311 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8312 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8313 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8314 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8315 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8316 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8317 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8318 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8319 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8320 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8321 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8322 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8323 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8324 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8325 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8326 include/Makefile:build/top.mk:include/Makefile.in \
8327 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8328 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8329 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8330 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8331 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8332 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8333 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8334 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8335 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8336 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8337 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8338 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8339 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8340 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8341 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8342 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8343 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8344 tests/Makefile:build/top.mk:tests/Makefile.in \
8347 cat >> $CONFIG_STATUS <<\EOF
8348 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8351 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8352 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8353 *) ac_file_in="${ac_file}.in" ;;
8356 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8358 # Remove last slash and all that follows it. Not all systems have dirname.
8359 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8360 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8361 # The file is in a subdirectory.
8362 test ! -d "$ac_dir" && mkdir "$ac_dir"
8363 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8364 # A "../" for each directory in $ac_dir_suffix.
8365 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8367 ac_dir_suffix= ac_dots=
8370 case "$ac_given_srcdir" in
8372 if test -z "$ac_dots"; then top_srcdir=.
8373 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8374 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8376 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8377 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8380 case "$ac_given_INSTALL" in
8381 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8382 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8385 echo creating "$ac_file"
8387 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8389 *Makefile*) ac_comsub="1i\\
8390 # $configure_input" ;;
8394 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8396 s%@configure_input@%$configure_input%g
8397 s%@srcdir@%$srcdir%g
8398 s%@top_srcdir@%$top_srcdir%g
8399 s%@INSTALL@%$INSTALL%g
8400 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8404 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8405 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8407 # ac_d sets the value in "#define NAME VALUE" lines.
8408 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8409 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8412 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8413 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8414 ac_uB='\([ ]\)%\1#\2define\3'
8417 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8418 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8419 ac_eB='$%\1#\2define\3'
8423 if test "${CONFIG_HEADERS+set}" != set; then
8425 cat >> $CONFIG_STATUS <<EOF
8426 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
8428 cat >> $CONFIG_STATUS <<\EOF
8430 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8433 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8434 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8435 *) ac_file_in="${ac_file}.in" ;;
8438 echo creating $ac_file
8440 rm -f conftest.frag conftest.in conftest.out
8441 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8442 cat $ac_file_inputs > conftest.in
8446 # Transform confdefs.h into a sed script conftest.vals that substitutes
8447 # the proper values into config.h.in to produce config.h. And first:
8448 # Protect against being on the right side of a sed subst in config.status.
8449 # Protect against being in an unquoted here document in config.status.
8451 cat > conftest.hdr <<\EOF
8454 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8458 sed -n -f conftest.hdr confdefs.h > conftest.vals
8461 # This sed command replaces #undef with comments. This is necessary, for
8462 # example, in the case of _POSIX_SOURCE, which is predefined and required
8463 # on some systems where configure will not decide to define it.
8464 cat >> conftest.vals <<\EOF
8465 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8468 # Break up conftest.vals because some shells have a limit on
8469 # the size of here documents, and old seds have small limits too.
8474 ac_lines=`grep -c . conftest.vals`
8475 # grep -c gives empty output for an empty file on some AIX systems.
8476 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8477 # Write a limited-size here document to conftest.frag.
8478 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8479 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8481 sed -f conftest.frag conftest.in > conftest.out
8483 mv conftest.out conftest.in
8485 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8487 mv conftest.tail conftest.vals
8491 cat >> $CONFIG_STATUS <<\EOF
8492 rm -f conftest.frag conftest.h
8493 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8494 cat conftest.in >> conftest.h
8496 if cmp -s $ac_file conftest.h 2>/dev/null; then
8497 echo "$ac_file is unchanged"
8500 # Remove last slash and all that follows it. Not all systems have dirname.
8501 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8502 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8503 # The file is in a subdirectory.
8504 test ! -d "$ac_dir" && mkdir "$ac_dir"
8507 mv conftest.h $ac_file
8512 cat >> $CONFIG_STATUS <<EOF
8515 cat >> $CONFIG_STATUS <<\EOF
8518 echo Please \"make depend\" to build dependencies
8522 chmod +x $CONFIG_STATUS
8523 rm -fr confdefs* $ac_clean_files
8524 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1