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-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-ldbm enable ldbm backend (yes)"
62 --with-ldbm-api use LDBM API (auto)"
64 --with-ldbm-type use LDBM type (auto)"
66 --enable-passwd enable passwd backend (no)"
68 --enable-shell enable shell backend (no)"
72 --enable-slurpd enable building slurpd (auto)"
74 Library Generation & Linking Options"
76 --enable-static build static libraries [default=yes]
77 --enable-static=PKGS only build shared libraries if the current package
78 appears as an element in the PKGS list"
80 --enable-shared build shared libraries [default=yes]
81 --enable-shared=PKGS only build shared libraries if the current package
82 appears as an element in the PKGS list"
84 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 # Maximum number of lines to put in a shell here document.
130 # If the previous option needs an argument, assign it.
131 if test -n "$ac_prev"; then
132 eval "$ac_prev=\$ac_option"
138 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 # Accept the important Cygnus configure options, so we can diagnose typos.
146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
149 bindir="$ac_optarg" ;;
151 -build | --build | --buil | --bui | --bu)
153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
154 build="$ac_optarg" ;;
156 -cache-file | --cache-file | --cache-fil | --cache-fi \
157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
158 ac_prev=cache_file ;;
159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
161 cache_file="$ac_optarg" ;;
163 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
165 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
167 datadir="$ac_optarg" ;;
169 -disable-* | --disable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}=no" ;;
178 -enable-* | --enable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}='$ac_optarg'" ;;
191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
193 | --exec | --exe | --ex)
194 ac_prev=exec_prefix ;;
195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
197 | --exec=* | --exe=* | --ex=*)
198 exec_prefix="$ac_optarg" ;;
200 -gas | --gas | --ga | --g)
201 # Obsolete; use --with-gas.
204 -help | --help | --hel | --he)
205 # Omit some internal or obsolete options to make the list less imposing.
206 # This message is too long to be a string in the A/UX 3.1 sh.
208 Usage: configure [options] [host]
209 Options: [defaults in brackets after descriptions]
211 --cache-file=FILE cache test results in FILE
212 --help print this message
213 --no-create do not create output files
214 --quiet, --silent do not print \`checking...' messages
215 --version print the version of autoconf that created configure
216 Directory and file names:
217 --prefix=PREFIX install architecture-independent files in PREFIX
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
221 --bindir=DIR user executables in DIR [EPREFIX/bin]
222 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
223 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
224 --datadir=DIR read-only architecture-independent data in DIR
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
229 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
230 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
231 --includedir=DIR C header files in DIR [PREFIX/include]
232 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
233 --infodir=DIR info documentation in DIR [PREFIX/info]
234 --mandir=DIR man documentation in DIR [PREFIX/man]
235 --srcdir=DIR find the sources in DIR [configure dir or ..]
236 --program-prefix=PREFIX prepend PREFIX to installed program names
237 --program-suffix=SUFFIX append SUFFIX to installed program names
238 --program-transform-name=PROGRAM
239 run sed PROGRAM on installed program names
243 --build=BUILD configure for building on BUILD [BUILD=HOST]
244 --host=HOST configure for HOST [guessed]
245 --target=TARGET configure for TARGET [TARGET=HOST]
246 Features and packages:
247 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
248 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
251 --x-includes=DIR X include files are in DIR
252 --x-libraries=DIR X library files are in DIR
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
259 -host | --host | --hos | --ho)
261 -host=* | --host=* | --hos=* | --ho=*)
264 -includedir | --includedir | --includedi | --included | --include \
265 | --includ | --inclu | --incl | --inc)
266 ac_prev=includedir ;;
267 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268 | --includ=* | --inclu=* | --incl=* | --inc=*)
269 includedir="$ac_optarg" ;;
271 -infodir | --infodir | --infodi | --infod | --info | --inf)
273 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
274 infodir="$ac_optarg" ;;
276 -libdir | --libdir | --libdi | --libd)
278 -libdir=* | --libdir=* | --libdi=* | --libd=*)
279 libdir="$ac_optarg" ;;
281 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282 | --libexe | --libex | --libe)
283 ac_prev=libexecdir ;;
284 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285 | --libexe=* | --libex=* | --libe=*)
286 libexecdir="$ac_optarg" ;;
288 -localstatedir | --localstatedir | --localstatedi | --localstated \
289 | --localstate | --localstat | --localsta | --localst \
290 | --locals | --local | --loca | --loc | --lo)
291 ac_prev=localstatedir ;;
292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
295 localstatedir="$ac_optarg" ;;
297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 mandir="$ac_optarg" ;;
303 # Obsolete; use --without-fp.
306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
316 | --oldin | --oldi | --old | --ol | --o)
317 ac_prev=oldincludedir ;;
318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
321 oldincludedir="$ac_optarg" ;;
323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
326 prefix="$ac_optarg" ;;
328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
329 | --program-pre | --program-pr | --program-p)
330 ac_prev=program_prefix ;;
331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
333 program_prefix="$ac_optarg" ;;
335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
336 | --program-suf | --program-su | --program-s)
337 ac_prev=program_suffix ;;
338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
340 program_suffix="$ac_optarg" ;;
342 -program-transform-name | --program-transform-name \
343 | --program-transform-nam | --program-transform-na \
344 | --program-transform-n | --program-transform- \
345 | --program-transform | --program-transfor \
346 | --program-transfo | --program-transf \
347 | --program-trans | --program-tran \
348 | --progr-tra | --program-tr | --program-t)
349 ac_prev=program_transform_name ;;
350 -program-transform-name=* | --program-transform-name=* \
351 | --program-transform-nam=* | --program-transform-na=* \
352 | --program-transform-n=* | --program-transform-=* \
353 | --program-transform=* | --program-transfor=* \
354 | --program-transfo=* | --program-transf=* \
355 | --program-trans=* | --program-tran=* \
356 | --progr-tra=* | --program-tr=* | --program-t=*)
357 program_transform_name="$ac_optarg" ;;
359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360 | -silent | --silent | --silen | --sile | --sil)
363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
367 sbindir="$ac_optarg" ;;
369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
371 | --sharedst | --shareds | --shared | --share | --shar \
373 ac_prev=sharedstatedir ;;
374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
378 sharedstatedir="$ac_optarg" ;;
380 -site | --site | --sit)
382 -site=* | --site=* | --sit=*)
385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
388 srcdir="$ac_optarg" ;;
390 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
391 | --syscon | --sysco | --sysc | --sys | --sy)
392 ac_prev=sysconfdir ;;
393 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
394 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
395 sysconfdir="$ac_optarg" ;;
397 -target | --target | --targe | --targ | --tar | --ta | --t)
399 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
400 target="$ac_optarg" ;;
402 -v | -verbose | --verbose | --verbos | --verbo | --verb)
405 -version | --version | --versio | --versi | --vers)
406 echo "configure generated by autoconf version 2.12"
410 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}='$ac_optarg'" ;;
422 -without-* | --without-*)
423 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}=no" ;;
432 # Obsolete; use --with-x.
435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
436 | --x-incl | --x-inc | --x-in | --x-i)
437 ac_prev=x_includes ;;
438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
440 x_includes="$ac_optarg" ;;
442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
444 ac_prev=x_libraries ;;
445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
447 x_libraries="$ac_optarg" ;;
449 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
453 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
454 echo "configure: warning: $ac_option: invalid host type" 1>&2
456 if test "x$nonopt" != xNONE; then
457 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465 if test -n "$ac_prev"; then
466 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
471 # File descriptor usage:
474 # 2 errors and warnings
475 # 3 some systems may open it to /dev/tty
476 # 4 used on the Kubota Titan
477 # 6 checking for... messages and results
478 # 5 compiler messages saved in config.log
479 if test "$silent" = yes; then
487 This file contains any messages produced by compilers while
488 running configure, to aid debugging if configure makes a mistake.
491 # Strip out --no-create and --no-recursion so they do not pile up.
492 # Also quote any args containing shell metacharacters.
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c) ;;
499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
502 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508 # Only set these to C if already set. These must not be set unconditionally
509 # because not all systems understand e.g. LANG=C (notably SCO).
510 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
511 # Non-C LC_CTYPE values break the ctype check.
512 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
513 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
514 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
515 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
518 rm -rf conftest* confdefs.h
519 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
522 # A filename unique to this package, relative to the directory that
523 # configure is in, which we can look for to find out if srcdir is correct.
524 ac_unique_file=include/ldap.h
526 # Find the source files, if location was not specified.
527 if test -z "$srcdir"; then
528 ac_srcdir_defaulted=yes
529 # Try the directory containing this script, then its parent.
531 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
532 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
534 if test ! -r $srcdir/$ac_unique_file; then
538 ac_srcdir_defaulted=no
540 if test ! -r $srcdir/$ac_unique_file; then
541 if test "$ac_srcdir_defaulted" = yes; then
542 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
544 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
547 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
549 # Prefer explicitly selected file to automatically selected ones.
550 if test -z "$CONFIG_SITE"; then
551 if test "x$prefix" != xNONE; then
552 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
554 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
557 for ac_site_file in $CONFIG_SITE; do
558 if test -r "$ac_site_file"; then
559 echo "loading site script $ac_site_file"
564 if test -r "$cache_file"; then
565 echo "loading cache $cache_file"
568 echo "creating cache $cache_file"
573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
574 ac_cpp='$CPP $CPPFLAGS'
575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
576 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
577 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
592 for ac_dir in build $srcdir/build; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
618 # ./install, which can be erroneously created by make from ./install.sh.
619 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
620 echo "configure:621: checking for a BSD compatible install" >&5
621 if test -z "$INSTALL"; then
622 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
626 for ac_dir in $PATH; do
627 # Account for people who put trailing slashes in PATH elements.
629 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
631 # OSF1 and SCO ODT 3.0 have their own names for install.
632 for ac_prog in ginstall installbsd scoinst install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636 # AIX install. It has an incompatible calling convention.
637 # OSF/1 installbsd also uses dspmsg, but is usable.
640 ac_cv_path_install="$ac_dir/$ac_prog -c"
651 if test "${ac_cv_path_install+set}" = set; then
652 INSTALL="$ac_cv_path_install"
654 # As a last resort, use the slow shell script. We don't cache a
655 # path for INSTALL within a source directory, because that will
656 # break other packages using the cache if that directory is
657 # removed, or if the path is relative.
658 INSTALL="$ac_install_sh"
661 echo "$ac_t""$INSTALL" 1>&6
663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
664 # It thinks the first close brace ends the variable substitution.
665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
670 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
672 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
673 echo "configure:674: checking whether build environment is sane" >&5
676 echo timestamp > conftestfile
677 # Do `set' in a subshell so we don't clobber the current shell's
678 # arguments. Must try -L first in case configure is actually a
679 # symlink; some systems play weird games with the mod time of symlinks
680 # (eg FreeBSD returns the mod time of the symlink's containing
683 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
684 if test "$*" = "X"; then
686 set X `ls -t $srcdir/configure conftestfile`
688 if test "$*" != "X $srcdir/configure conftestfile" \
689 && test "$*" != "X conftestfile $srcdir/configure"; then
691 # If neither matched, then we have a broken ls. This can happen
692 # if, for instance, CONFIG_SHELL is bash and it inherits a
693 # broken ls alias from the environment. This has actually
694 # happened. Such a system could not be considered "sane".
695 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
696 alias in your environment" 1>&2; exit 1; }
699 test "$2" = conftestfile
705 { echo "configure: error: newly created file is older than distributed files!
706 Check your system clock" 1>&2; exit 1; }
709 echo "$ac_t""yes" 1>&6
710 if test "$program_transform_name" = s,x,x,; then
711 program_transform_name=
713 # Double any \ or $. echo might interpret backslashes.
714 cat <<\EOF_SED > conftestsed
715 s,\\,\\\\,g; s,\$,$$,g
717 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
720 test "$program_prefix" != NONE &&
721 program_transform_name="s,^,${program_prefix},; $program_transform_name"
722 # Use a double $ so make ignores it.
723 test "$program_suffix" != NONE &&
724 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
726 # sed with no file args requires a program.
727 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
729 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
730 echo "configure:731: checking whether ${MAKE-make} sets \${MAKE}" >&5
731 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
732 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 cat > conftestmake <<\EOF
737 @echo 'ac_maketemp="${MAKE}"'
739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
740 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
741 if test -n "$ac_maketemp"; then
742 eval ac_cv_prog_make_${ac_make}_set=yes
744 eval ac_cv_prog_make_${ac_make}_set=no
748 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
749 echo "$ac_t""yes" 1>&6
752 echo "$ac_t""no" 1>&6
753 SET_MAKE="MAKE=${MAKE-make}"
761 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
762 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
767 missing_dir=`cd $ac_aux_dir && pwd`
768 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
769 echo "configure:770: checking for working aclocal" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
775 echo "$ac_t""found" 1>&6
777 ACLOCAL="$missing_dir/missing aclocal"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
782 echo "configure:783: checking for working autoconf" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
788 echo "$ac_t""found" 1>&6
790 AUTOCONF="$missing_dir/missing autoconf"
791 echo "$ac_t""missing" 1>&6
794 echo $ac_n "checking for working automake""... $ac_c" 1>&6
795 echo "configure:796: checking for working automake" >&5
796 # Run test in a subshell; some versions of sh will print an error if
797 # an executable is not found, even if stderr is redirected.
798 # Redirect stdin to placate older versions of autoconf. Sigh.
799 if (automake --version) < /dev/null > /dev/null 2>&1; then
801 echo "$ac_t""found" 1>&6
803 AUTOMAKE="$missing_dir/missing automake"
804 echo "$ac_t""missing" 1>&6
807 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
808 echo "configure:809: checking for working autoheader" >&5
809 # Run test in a subshell; some versions of sh will print an error if
810 # an executable is not found, even if stderr is redirected.
811 # Redirect stdin to placate older versions of autoconf. Sigh.
812 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
813 AUTOHEADER=autoheader
814 echo "$ac_t""found" 1>&6
816 AUTOHEADER="$missing_dir/missing autoheader"
817 echo "$ac_t""missing" 1>&6
820 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
821 echo "configure:822: checking for working makeinfo" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
827 echo "$ac_t""found" 1>&6
829 MAKEINFO="$missing_dir/missing makeinfo"
830 echo "$ac_t""missing" 1>&6
836 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
837 echo "configure:838: checking configure arguments" >&5
842 ldap_subdir="openldap"
844 # Check whether --with-subdir or --without-subdir was given.
845 if test "${with_subdir+set}" = set; then
846 withval="$with_subdir"
848 if test "$withval" = "no"; then
850 elif test "$withval" != "yes"; then
851 ldap_subdir="$withval"
857 # OpenLDAP --enable-debug
858 # Check whether --enable-debug or --disable-debug was given.
859 if test "${enable_debug+set}" = set; then
860 enableval="$enable_debug"
863 for ol_val in auto yes no ; do
864 if test "$enableval" = "$ol_val" ; then
868 if test "$ol_arg" = "invalid" ; then
869 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
871 ol_enable_debug="$ol_arg"
874 ol_enable_debug="yes"
877 # OpenLDAP --enable-proctitle
878 # Check whether --enable-proctitle or --disable-proctitle was given.
879 if test "${enable_proctitle+set}" = set; then
880 enableval="$enable_proctitle"
883 for ol_val in auto yes no ; do
884 if test "$enableval" = "$ol_val" ; then
888 if test "$ol_arg" = "invalid" ; then
889 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
891 ol_enable_proctitle="$ol_arg"
894 ol_enable_proctitle="yes"
896 # end --enable-proctitle
897 # OpenLDAP --enable-libui
898 # Check whether --enable-libui or --disable-libui was given.
899 if test "${enable_libui+set}" = set; then
900 enableval="$enable_libui"
903 for ol_val in auto yes no ; do
904 if test "$enableval" = "$ol_val" ; then
908 if test "$ol_arg" = "invalid" ; then
909 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
911 ol_enable_libui="$ol_arg"
914 ol_enable_libui="yes"
917 # OpenLDAP --enable-cache
918 # Check whether --enable-cache or --disable-cache was given.
919 if test "${enable_cache+set}" = set; then
920 enableval="$enable_cache"
923 for ol_val in auto yes no ; do
924 if test "$enableval" = "$ol_val" ; then
928 if test "$ol_arg" = "invalid" ; then
929 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
931 ol_enable_cache="$ol_arg"
934 ol_enable_cache="yes"
937 # OpenLDAP --enable-dns
938 # Check whether --enable-dns or --disable-dns was given.
939 if test "${enable_dns+set}" = set; then
940 enableval="$enable_dns"
943 for ol_val in auto yes no ; do
944 if test "$enableval" = "$ol_val" ; then
948 if test "$ol_arg" = "invalid" ; then
949 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
951 ol_enable_dns="$ol_arg"
957 # OpenLDAP --enable-referrals
958 # Check whether --enable-referrals or --disable-referrals was given.
959 if test "${enable_referrals+set}" = set; then
960 enableval="$enable_referrals"
963 for ol_val in auto yes no ; do
964 if test "$enableval" = "$ol_val" ; then
968 if test "$ol_arg" = "invalid" ; then
969 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
971 ol_enable_referrals="$ol_arg"
974 ol_enable_referrals="yes"
976 # end --enable-referrals
977 # OpenLDAP --enable-cldap
978 # Check whether --enable-cldap or --disable-cldap was given.
979 if test "${enable_cldap+set}" = set; then
980 enableval="$enable_cldap"
983 for ol_val in auto yes no ; do
984 if test "$enableval" = "$ol_val" ; then
988 if test "$ol_arg" = "invalid" ; then
989 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
991 ol_enable_cldap="$ol_arg"
997 # OpenLDAP --enable-x_compile
998 # Check whether --enable-x_compile or --disable-x_compile was given.
999 if test "${enable_x_compile+set}" = set; then
1000 enableval="$enable_x_compile"
1003 for ol_val in yes no ; do
1004 if test "$enableval" = "$ol_val" ; then
1008 if test "$ol_arg" = "invalid" ; then
1009 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1011 ol_enable_x_compile="$ol_arg"
1014 ol_enable_x_compile="no"
1016 # end --enable-x_compile
1018 # OpenLDAP --with-kerberos
1019 # Check whether --with-kerberos or --without-kerberos was given.
1020 if test "${with_kerberos+set}" = set; then
1021 withval="$with_kerberos"
1024 for ol_val in auto k5 k4 afs yes no ; do
1025 if test "$withval" = "$ol_val" ; then
1029 if test "$ol_arg" = "invalid" ; then
1030 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1032 ol_with_kerberos="$ol_arg"
1035 ol_with_kerberos="auto"
1037 # end --with-kerberos
1039 # OpenLDAP --with-threads
1040 # Check whether --with-threads or --without-threads was given.
1041 if test "${with_threads+set}" = set; then
1042 withval="$with_threads"
1045 for ol_val in auto posix mach lwp yes no manual ; do
1046 if test "$withval" = "$ol_val" ; then
1050 if test "$ol_arg" = "invalid" ; then
1051 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1053 ol_with_threads="$ol_arg"
1056 ol_with_threads="auto"
1058 # end --with-threads
1060 # OpenLDAP --with-yielding_select
1061 # Check whether --with-yielding_select or --without-yielding_select was given.
1062 if test "${with_yielding_select+set}" = set; then
1063 withval="$with_yielding_select"
1066 for ol_val in auto yes no manual ; do
1067 if test "$withval" = "$ol_val" ; then
1071 if test "$ol_arg" = "invalid" ; then
1072 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1074 ol_with_yielding_select="$ol_arg"
1077 ol_with_yielding_select="auto"
1079 # end --with-yielding_select
1083 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1084 if test "${with_xxldapdoptions+set}" = set; then
1085 withval="$with_xxldapdoptions"
1089 # OpenLDAP --enable-ldapd
1090 # Check whether --enable-ldapd or --disable-ldapd was given.
1091 if test "${enable_ldapd+set}" = set; then
1092 enableval="$enable_ldapd"
1095 for ol_val in auto yes no ; do
1096 if test "$enableval" = "$ol_val" ; then
1100 if test "$ol_arg" = "invalid" ; then
1101 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1103 ol_enable_ldapd="$ol_arg"
1106 ol_enable_ldapd="no"
1108 # end --enable-ldapd
1110 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1111 if test "${with_xxslapdoptions+set}" = set; then
1112 withval="$with_xxslapdoptions"
1116 # OpenLDAP --enable-slapd
1117 # Check whether --enable-slapd or --disable-slapd was given.
1118 if test "${enable_slapd+set}" = set; then
1119 enableval="$enable_slapd"
1122 for ol_val in auto yes no ; do
1123 if test "$enableval" = "$ol_val" ; then
1127 if test "$ol_arg" = "invalid" ; then
1128 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1130 ol_enable_slapd="$ol_arg"
1133 ol_enable_slapd="yes"
1135 # end --enable-slapd
1136 # OpenLDAP --enable-aclgroups
1137 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1138 if test "${enable_aclgroups+set}" = set; then
1139 enableval="$enable_aclgroups"
1142 for ol_val in auto yes no ; do
1143 if test "$enableval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1150 ol_enable_aclgroups="$ol_arg"
1153 ol_enable_aclgroups="auto"
1155 # end --enable-aclgroups
1156 # OpenLDAP --enable-cleartext
1157 # Check whether --enable-cleartext or --disable-cleartext was given.
1158 if test "${enable_cleartext+set}" = set; then
1159 enableval="$enable_cleartext"
1162 for ol_val in auto yes no ; do
1163 if test "$enableval" = "$ol_val" ; then
1167 if test "$ol_arg" = "invalid" ; then
1168 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1170 ol_enable_cleartext="$ol_arg"
1173 ol_enable_cleartext="yes"
1175 # end --enable-cleartext
1176 # OpenLDAP --enable-crypt
1177 # Check whether --enable-crypt or --disable-crypt was given.
1178 if test "${enable_crypt+set}" = set; then
1179 enableval="$enable_crypt"
1182 for ol_val in auto yes no ; do
1183 if test "$enableval" = "$ol_val" ; then
1187 if test "$ol_arg" = "invalid" ; then
1188 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1190 ol_enable_crypt="$ol_arg"
1193 ol_enable_crypt="auto"
1195 # end --enable-crypt
1196 # OpenLDAP --enable-wrappers
1197 # Check whether --enable-wrappers or --disable-wrappers was given.
1198 if test "${enable_wrappers+set}" = set; then
1199 enableval="$enable_wrappers"
1202 for ol_val in auto yes no ; do
1203 if test "$enableval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1210 ol_enable_wrappers="$ol_arg"
1213 ol_enable_wrappers="no"
1215 # end --enable-wrappers
1216 # OpenLDAP --enable-phonetic
1217 # Check whether --enable-phonetic or --disable-phonetic was given.
1218 if test "${enable_phonetic+set}" = set; then
1219 enableval="$enable_phonetic"
1222 for ol_val in auto yes no ; do
1223 if test "$enableval" = "$ol_val" ; then
1227 if test "$ol_arg" = "invalid" ; then
1228 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1230 ol_enable_phonetic="$ol_arg"
1233 ol_enable_phonetic="no"
1235 # end --enable-phonetic
1236 # OpenLDAP --enable-rlookups
1237 # Check whether --enable-rlookups or --disable-rlookups was given.
1238 if test "${enable_rlookups+set}" = set; then
1239 enableval="$enable_rlookups"
1242 for ol_val in auto yes no ; do
1243 if test "$enableval" = "$ol_val" ; then
1247 if test "$ol_arg" = "invalid" ; then
1248 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1250 ol_enable_rlookups="$ol_arg"
1253 ol_enable_rlookups="auto"
1255 # end --enable-rlookups
1257 # OpenLDAP --enable-ldbm
1258 # Check whether --enable-ldbm or --disable-ldbm was given.
1259 if test "${enable_ldbm+set}" = set; then
1260 enableval="$enable_ldbm"
1263 for ol_val in auto yes no ; do
1264 if test "$enableval" = "$ol_val" ; then
1268 if test "$ol_arg" = "invalid" ; then
1269 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1271 ol_enable_ldbm="$ol_arg"
1274 ol_enable_ldbm="yes"
1277 # OpenLDAP --with-ldbm_api
1278 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1279 if test "${with_ldbm_api+set}" = set; then
1280 withval="$with_ldbm_api"
1283 for ol_val in auto db2 db gdbm ndbm manual ; do
1284 if test "$withval" = "$ol_val" ; then
1288 if test "$ol_arg" = "invalid" ; then
1289 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1291 ol_with_ldbm_api="$ol_arg"
1294 ol_with_ldbm_api="auto"
1296 # end --with-ldbm_api
1298 # OpenLDAP --with-ldbm_type
1299 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1300 if test "${with_ldbm_type+set}" = set; then
1301 withval="$with_ldbm_type"
1304 for ol_val in auto btree hash ; do
1305 if test "$withval" = "$ol_val" ; then
1309 if test "$ol_arg" = "invalid" ; then
1310 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1312 ol_with_ldbm_type="$ol_arg"
1315 ol_with_ldbm_type="auto"
1317 # end --with-ldbm_type
1320 # OpenLDAP --enable-passwd
1321 # Check whether --enable-passwd or --disable-passwd was given.
1322 if test "${enable_passwd+set}" = set; then
1323 enableval="$enable_passwd"
1326 for ol_val in auto yes no ; do
1327 if test "$enableval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1334 ol_enable_passwd="$ol_arg"
1337 ol_enable_passwd="no"
1339 # end --enable-passwd
1340 # OpenLDAP --enable-shell
1341 # Check whether --enable-shell or --disable-shell was given.
1342 if test "${enable_shell+set}" = set; then
1343 enableval="$enable_shell"
1346 for ol_val in auto yes no ; do
1347 if test "$enableval" = "$ol_val" ; then
1351 if test "$ol_arg" = "invalid" ; then
1352 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1354 ol_enable_shell="$ol_arg"
1357 ol_enable_shell="no"
1359 # end --enable-shell
1361 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1362 if test "${with_xxslurpdoptions+set}" = set; then
1363 withval="$with_xxslurpdoptions"
1367 # OpenLDAP --enable-slurpd
1368 # Check whether --enable-slurpd or --disable-slurpd was given.
1369 if test "${enable_slurpd+set}" = set; then
1370 enableval="$enable_slurpd"
1373 for ol_val in auto yes no ; do
1374 if test "$enableval" = "$ol_val" ; then
1378 if test "$ol_arg" = "invalid" ; then
1379 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1381 ol_enable_slurpd="$ol_arg"
1384 ol_enable_slurpd="auto"
1386 # end --enable-slurpd
1388 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1389 if test "${with_xxliboptions+set}" = set; then
1390 withval="$with_xxliboptions"
1394 # Check whether --enable-static or --disable-static was given.
1395 if test "${enable_static+set}" = set; then
1396 enableval="$enable_static"
1397 p=${PACKAGE-default}
1398 case "$enableval" in
1399 yes) enable_static=yes ;;
1400 no) enable_static=no ;;
1403 # Look at the argument we got. We use all the common list separators.
1404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1405 for pkg in $enableval; do
1406 if test "X$pkg" = "X$p"; then
1417 # Check whether --enable-shared or --disable-shared was given.
1418 if test "${enable_shared+set}" = set; then
1419 enableval="$enable_shared"
1420 p=${PACKAGE-default}
1421 case "$enableval" in
1422 yes) enable_shared=yes ;;
1423 no) enable_shared=no ;;
1426 # Look at the argument we got. We use all the common list separators.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1428 for pkg in $enableval; do
1429 if test "X$pkg" = "X$p"; then
1442 if test $ol_enable_referrals = no ; then
1443 if test $ol_enable_dns = yes ; then
1444 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1449 if test $ol_enable_slapd = no ; then
1450 if test $ol_enable_ldbm = yes ; then
1451 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1453 if test $ol_enable_passwd = yes ; then
1454 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1456 if test $ol_enable_shell = yes ; then
1457 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1459 if test $ol_enable_aclgroups = yes ; then
1460 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1462 if test $ol_enable_wrappers = yes ; then
1463 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1465 if test $ol_enable_phonetic = yes ; then
1466 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1468 if test $ol_enable_rlookups = yes ; then
1469 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1471 if test $ol_with_ldbm_api != auto ; then
1472 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1474 if test $ol_with_ldbm_type != auto ; then
1475 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1477 if test $ol_enable_slurpd = yes ; then
1478 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1481 # force settings to no
1485 ol_enable_aclgroups=no
1486 ol_enable_wrappers=no
1487 ol_enable_phonetic=no
1488 ol_enable_rlookups=no
1490 ol_with_ldbm_type=no
1493 elif test $ol_enable_ldbm = no ; then
1495 if test $ol_with_ldbm_api != auto ; then
1496 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1499 if test $ol_with_ldbm_type != auto ; then
1500 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1503 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1504 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1508 ol_with_ldbm_type=no
1512 if test $ol_with_ldbm_api = gdbm -a \
1513 $ol_with_ldbm_type = btree ; then
1514 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1516 if test $ol_with_ldbm_api = ndbm -a \
1517 $ol_with_ldbm_type = btree ; then
1518 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1522 if test $ol_enable_slurpd = yes ; then
1523 if test $ol_with_threads = no ; then
1524 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1528 echo "$ac_t""done" 1>&6
1531 # Make sure we can run config.sub.
1532 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1533 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1536 echo $ac_n "checking host system type""... $ac_c" 1>&6
1537 echo "configure:1538: checking host system type" >&5
1540 case "$host_alias" in
1544 if host_alias=`$ac_config_guess`; then :
1545 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1547 *) host_alias=$nonopt ;;
1551 host=`$ac_config_sub $host_alias`
1552 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 echo "$ac_t""$host" 1>&6
1581 # Find a good install program. We prefer a C program (faster),
1582 # so one script is as good as another. But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1590 # ./install, which can be erroneously created by make from ./install.sh.
1591 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1592 echo "configure:1593: checking for a BSD compatible install" >&5
1593 if test -z "$INSTALL"; then
1594 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1598 for ac_dir in $PATH; do
1599 # Account for people who put trailing slashes in PATH elements.
1601 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1603 # OSF1 and SCO ODT 3.0 have their own names for install.
1604 for ac_prog in ginstall installbsd scoinst install; do
1605 if test -f $ac_dir/$ac_prog; then
1606 if test $ac_prog = install &&
1607 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention.
1609 # OSF/1 installbsd also uses dspmsg, but is usable.
1612 ac_cv_path_install="$ac_dir/$ac_prog -c"
1623 if test "${ac_cv_path_install+set}" = set; then
1624 INSTALL="$ac_cv_path_install"
1626 # As a last resort, use the slow shell script. We don't cache a
1627 # path for INSTALL within a source directory, because that will
1628 # break other packages using the cache if that directory is
1629 # removed, or if the path is relative.
1630 INSTALL="$ac_install_sh"
1633 echo "$ac_t""$INSTALL" 1>&6
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641 # Extract the first word of "ranlib", so it can be a program name with args.
1642 set dummy ranlib; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5
1645 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 if test -n "$RANLIB"; then
1649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1652 for ac_dir in $PATH; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if test -f $ac_dir/$ac_word; then
1655 ac_cv_prog_RANLIB="ranlib"
1660 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1663 RANLIB="$ac_cv_prog_RANLIB"
1664 if test -n "$RANLIB"; then
1665 echo "$ac_t""$RANLIB" 1>&6
1667 echo "$ac_t""no" 1>&6
1670 # Extract the first word of "gcc", so it can be a program name with args.
1671 set dummy gcc; ac_word=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1681 for ac_dir in $PATH; do
1682 test -z "$ac_dir" && ac_dir=.
1683 if test -f $ac_dir/$ac_word; then
1692 if test -n "$CC"; then
1693 echo "$ac_t""$CC" 1>&6
1695 echo "$ac_t""no" 1>&6
1698 if test -z "$CC"; then
1699 # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1702 echo "configure:1703: checking for $ac_word" >&5
1703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1711 for ac_dir in $PATH; do
1712 test -z "$ac_dir" && ac_dir=.
1713 if test -f $ac_dir/$ac_word; then
1714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1715 ac_prog_rejected=yes
1723 if test $ac_prog_rejected = yes; then
1724 # We found a bogon in the path, so make sure we never use it.
1725 set dummy $ac_cv_prog_CC
1727 if test $# -gt 0; then
1728 # We chose a different compiler from the bogus one.
1729 # However, it has the same basename, so the bogon will be chosen
1730 # first if we set CC to just the basename; use the full file name.
1732 set dummy "$ac_dir/$ac_word" "$@"
1740 if test -n "$CC"; then
1741 echo "$ac_t""$CC" 1>&6
1743 echo "$ac_t""no" 1>&6
1746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1750 echo "configure:1751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1756 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1757 cross_compiling=$ac_cv_prog_cc_cross
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1765 ac_cv_prog_cc_works=yes
1766 # If we can't run a trivial program, we are probably using a cross compiler.
1767 if (./conftest; exit) 2>/dev/null; then
1768 ac_cv_prog_cc_cross=no
1770 ac_cv_prog_cc_cross=yes
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 ac_cv_prog_cc_works=no
1779 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1780 if test $ac_cv_prog_cc_works = no; then
1781 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1785 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1786 cross_compiling=$ac_cv_prog_cc_cross
1788 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1789 echo "configure:1790: checking whether we are using GNU C" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 cat > conftest.c <<EOF
1798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1805 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1807 if test $ac_cv_prog_gcc = yes; then
1809 ac_test_CFLAGS="${CFLAGS+set}"
1810 ac_save_CFLAGS="$CFLAGS"
1812 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ${CC-cc} accepts -g" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 echo 'void f(){}' > conftest.c
1818 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1827 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1828 if test "$ac_test_CFLAGS" = set; then
1829 CFLAGS="$ac_save_CFLAGS"
1830 elif test $ac_cv_prog_cc_g = yes; then
1837 test "${CFLAGS+set}" = set || CFLAGS="-g"
1840 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1841 if test "${with_gnu_ld+set}" = set; then
1842 withval="$with_gnu_ld"
1843 test "$withval" = no || with_gnu_ld=yes
1850 if test "$ac_cv_prog_gcc" = yes; then
1851 # Check if gcc -print-prog-name=ld gives a path.
1852 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1853 echo "configure:1854: checking for ld used by GCC" >&5
1854 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1856 # Accept absolute paths.
1858 test -z "$LD" && LD="$ac_prog"
1861 # If it fails, then pretend we aren't using GCC.
1865 # If it is relative, then search for the first ld in PATH.
1869 elif test "$with_gnu_ld" = yes; then
1870 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1871 echo "configure:1872: checking for GNU ld" >&5
1873 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1874 echo "configure:1875: checking for non-GNU ld" >&5
1876 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -z "$LD"; then
1880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1881 for ac_dir in $PATH; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f "$ac_dir/$ac_prog"; then
1884 ac_cv_path_LD="$ac_dir/$ac_prog"
1885 # Check to see if the program is GNU ld. I'd rather use --version,
1886 # but apparently some GNU ld's only accept -v.
1887 # Break only if it was the GNU/non-GNU ld that we prefer.
1888 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1889 test "$with_gnu_ld" != no && break
1891 test "$with_gnu_ld" != yes && break
1897 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1902 if test -n "$LD"; then
1903 echo "$ac_t""$LD" 1>&6
1905 echo "$ac_t""no" 1>&6
1907 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1909 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1910 echo "configure:1911: checking if the linker ($LD) is GNU ld" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1915 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1916 ac_cv_prog_gnu_ld=yes
1918 ac_cv_prog_gnu_ld=no
1922 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1925 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1926 echo "configure:1927: checking for BSD-compatible nm" >&5
1927 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1932 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1936 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1937 test -z "$ac_dir" && ac_dir=.
1938 if test -f $ac_dir/nm; then
1939 # Check to see if the nm accepts a BSD-compat flag.
1940 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1941 # nm: unknown option "B" ignored
1942 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1943 ac_cv_path_NM="$ac_dir/nm -B"
1944 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1945 ac_cv_path_NM="$ac_dir/nm -p"
1947 ac_cv_path_NM="$ac_dir/nm"
1953 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1959 echo "$ac_t""$NM" 1>&6
1962 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether ln -s works" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1968 if ln -s X conftestdata 2>/dev/null
1971 ac_cv_prog_LN_S="ln -s"
1976 LN_S="$ac_cv_prog_LN_S"
1977 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1978 echo "$ac_t""yes" 1>&6
1980 echo "$ac_t""no" 1>&6
1983 # Always use our own libtool.
1984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1986 # Check for any special flags to pass to ltconfig.
1988 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1989 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1990 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1991 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1992 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1994 # Some flags need to be propagated to the compiler or linker for good
1998 # Find out which ABI we are using.
1999 echo '#line 2000 "configure"' > conftest.$ac_ext
2000 if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 case "`/usr/bin/file conftest.o`" in
2017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2018 CFLAGS="$CFLAGS -belf"
2022 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2023 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2024 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2025 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2026 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2027 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2030 # Extract the first word of "sendmail", so it can be a program name with args.
2031 set dummy sendmail; ac_word=$2
2032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_word" >&5
2034 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2039 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2043 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2051 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2055 SENDMAIL="$ac_cv_path_SENDMAIL"
2056 if test -n "$SENDMAIL"; then
2057 echo "$ac_t""$SENDMAIL" 1>&6
2059 echo "$ac_t""no" 1>&6
2062 # Extract the first word of "vi", so it can be a program name with args.
2063 set dummy vi; ac_word=$2
2064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_word" >&5
2066 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2075 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2076 test -z "$ac_dir" && ac_dir=.
2077 if test -f $ac_dir/$ac_word; then
2078 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2083 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2087 EDITOR="$ac_cv_path_EDITOR"
2088 if test -n "$EDITOR"; then
2089 echo "$ac_t""$EDITOR" 1>&6
2091 echo "$ac_t""no" 1>&6
2094 # Extract the first word of "finger", so it can be a program name with args.
2095 set dummy finger; ac_word=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2098 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2103 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2107 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2108 test -z "$ac_dir" && ac_dir=.
2109 if test -f $ac_dir/$ac_word; then
2110 ac_cv_path_FINGER="$ac_dir/$ac_word"
2115 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2119 FINGER="$ac_cv_path_FINGER"
2120 if test -n "$FINGER"; then
2121 echo "$ac_t""$FINGER" 1>&6
2123 echo "$ac_t""no" 1>&6
2128 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2129 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2131 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2132 echo "configure: warning: programs compiled here do run here..." 1>&2
2133 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2135 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2136 echo "configure: warning: programs compiled here do not run here..." 1>&2
2137 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2140 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2141 echo "configure:2142: checking how to run the C preprocessor" >&5
2142 # On Suns, sometimes $CPP names a directory.
2143 if test -n "$CPP" && test -d "$CPP"; then
2146 if test -z "$CPP"; then
2147 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 # This must be in double quotes, not single quotes, because CPP may get
2151 # substituted into the Makefile and "${CC-cc}" will confuse make.
2153 # On the NeXT, cc -E runs the code through the compiler's parser,
2154 # not just through cpp.
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2162 { (eval echo configure:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2163 ac_err=`grep -v '^ *+' conftest.out`
2164 if test -z "$ac_err"; then
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2171 CPP="${CC-cc} -E -traditional-cpp"
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err=`grep -v '^ *+' conftest.out`
2181 if test -z "$ac_err"; then
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2193 ac_cv_prog_CPP="$CPP"
2195 CPP="$ac_cv_prog_CPP"
2197 ac_cv_prog_CPP="$CPP"
2199 echo "$ac_t""$CPP" 1>&6
2202 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2203 echo "configure:2204: checking for AIX" >&5
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "yes" >/dev/null 2>&1; then
2215 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2216 #define _ALL_SOURCE 1
2221 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2227 echo "configure:2228: checking for POSIXized ISC" >&5
2228 if test -d /etc/conf/kconfig.d &&
2229 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2231 echo "$ac_t""yes" 1>&6
2232 ISC=yes # If later tests want to check for ISC.
2233 cat >> confdefs.h <<\EOF
2234 #define _POSIX_SOURCE 1
2237 if test "$GCC" = yes; then
2243 echo "$ac_t""no" 1>&6
2247 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2248 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2249 echo "configure:2250: checking for minix/config.h" >&5
2250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <minix/config.h>
2258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2259 { (eval echo configure:2260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2260 ac_err=`grep -v '^ *+' conftest.out`
2261 if test -z "$ac_err"; then
2263 eval "ac_cv_header_$ac_safe=yes"
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 eval "ac_cv_header_$ac_safe=no"
2273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2277 echo "$ac_t""no" 1>&6
2281 if test "$MINIX" = yes; then
2282 cat >> confdefs.h <<\EOF
2283 #define _POSIX_SOURCE 1
2286 cat >> confdefs.h <<\EOF
2287 #define _POSIX_1_SOURCE 2
2290 cat >> confdefs.h <<\EOF
2300 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2301 echo "configure:2302: checking for ${CC-cc} option to accept ANSI C" >&5
2302 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 am_cv_prog_cc_stdc=no
2307 # Don't try gcc -ansi; that turns off useful extensions and
2308 # breaks some systems' header files.
2309 # AIX -qlanglvl=ansi
2310 # Ultrix and OSF/1 -std1
2311 # HP-UX -Aa -D_HPUX_SOURCE
2312 # SVR4 -Xc -D__EXTENSIONS__
2313 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2315 CC="$ac_save_CC $ac_arg"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2321 #include <sys/types.h>
2322 #include <sys/stat.h>
2323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2324 struct buf { int x; };
2325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2326 static char *e (p, i)
2332 static char *f (char * (*g) (char **, int), char **p, ...)
2337 s = g (p, va_arg (v,int));
2341 int test (int i, double x);
2342 struct s1 {int (*f) (int a);};
2343 struct s2 {int (*f) (double a);};
2344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 if { (eval echo configure:2355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2356 am_cv_prog_cc_stdc="$ac_arg"; break
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2367 if test -z "$am_cv_prog_cc_stdc"; then
2368 echo "$ac_t""none needed" 1>&6
2370 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2372 case "x$am_cv_prog_cc_stdc" in
2374 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2377 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2378 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2384 echo $ac_n "checking for socket""... $ac_c" 1>&6
2385 echo "configure:2386: checking for socket" >&5
2386 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 /* System header to define __stub macros and hopefully few prototypes,
2393 which can conflict with char socket(); below. */
2395 /* Override any gcc2 internal prototype to avoid an error. */
2396 /* We use char because int might match the return type of a gcc2
2397 builtin and then its argument prototype would still apply. */
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined (__stub_socket) || defined (__stub___socket)
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2415 eval "ac_cv_func_socket=yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2420 eval "ac_cv_func_socket=no"
2425 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2429 echo "$ac_t""no" 1>&6
2431 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2432 echo "configure:2433: checking for main in -lsocket" >&5
2433 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 ac_save_LIBS="$LIBS"
2438 LIBS="-lsocket $LIBS"
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_lib_$ac_lib_var=no"
2457 LIBS="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2464 cat >> confdefs.h <<EOF
2465 #define $ac_tr_lib 1
2468 LIBS="-lsocket $LIBS"
2471 echo "$ac_t""no" 1>&6
2474 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2475 echo "configure:2476: checking for main in -lnet" >&5
2476 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 ac_save_LIBS="$LIBS"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2492 eval "ac_cv_lib_$ac_lib_var=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 eval "ac_cv_lib_$ac_lib_var=no"
2500 LIBS="$ac_save_LIBS"
2503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2506 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2507 cat >> confdefs.h <<EOF
2508 #define $ac_tr_lib 1
2514 echo "$ac_t""no" 1>&6
2517 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2518 echo "configure:2519: checking for main in -lnsl_s" >&5
2519 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 ac_save_LIBS="$LIBS"
2524 LIBS="-lnsl_s $LIBS"
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2535 eval "ac_cv_lib_$ac_lib_var=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_lib_$ac_lib_var=no"
2543 LIBS="$ac_save_LIBS"
2546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2547 echo "$ac_t""yes" 1>&6
2548 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2549 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2550 cat >> confdefs.h <<EOF
2551 #define $ac_tr_lib 1
2554 LIBS="-lnsl_s $LIBS"
2557 echo "$ac_t""no" 1>&6
2560 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2561 echo "configure:2562: checking for main in -lnsl" >&5
2562 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 ac_save_LIBS="$LIBS"
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2576 if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2578 eval "ac_cv_lib_$ac_lib_var=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 eval "ac_cv_lib_$ac_lib_var=no"
2586 LIBS="$ac_save_LIBS"
2589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2591 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2593 cat >> confdefs.h <<EOF
2594 #define $ac_tr_lib 1
2600 echo "$ac_t""no" 1>&6
2603 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2604 echo "configure:2605: checking for socket in -linet" >&5
2605 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 ac_save_LIBS="$LIBS"
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 /* Override any gcc2 internal prototype to avoid an error. */
2615 /* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2625 eval "ac_cv_lib_$ac_lib_var=yes"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 eval "ac_cv_lib_$ac_lib_var=no"
2633 LIBS="$ac_save_LIBS"
2636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2638 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2639 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2640 cat >> confdefs.h <<EOF
2641 #define $ac_tr_lib 1
2647 echo "$ac_t""no" 1>&6
2650 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2651 echo "configure:2652: checking for main in -lgen" >&5
2652 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 ac_save_LIBS="$LIBS"
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2668 eval "ac_cv_lib_$ac_lib_var=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_lib_$ac_lib_var=no"
2676 LIBS="$ac_save_LIBS"
2679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2683 cat >> confdefs.h <<EOF
2684 #define $ac_tr_lib 1
2690 echo "$ac_t""no" 1>&6
2697 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2698 echo "configure:2699: checking for res_search in -lresolv" >&5
2699 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 ac_save_LIBS="$LIBS"
2704 LIBS="-lresolv $LIBS"
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 /* Override any gcc2 internal prototype to avoid an error. */
2709 /* We use char because int might match the return type of a gcc2
2710 builtin and then its argument prototype would still apply. */
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2719 eval "ac_cv_lib_$ac_lib_var=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2724 eval "ac_cv_lib_$ac_lib_var=no"
2727 LIBS="$ac_save_LIBS"
2730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2732 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2733 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2734 cat >> confdefs.h <<EOF
2735 #define $ac_tr_lib 1
2738 LIBS="-lresolv $LIBS"
2741 echo "$ac_t""no" 1>&6
2745 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2746 echo "configure:2747: checking for sigset in -lV3" >&5
2747 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 ac_save_LIBS="$LIBS"
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2765 if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2767 eval "ac_cv_lib_$ac_lib_var=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2772 eval "ac_cv_lib_$ac_lib_var=no"
2775 LIBS="$ac_save_LIBS"
2778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2780 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2781 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2782 cat >> confdefs.h <<EOF
2783 #define $ac_tr_lib 1
2789 echo "$ac_t""no" 1>&6
2795 if test $ol_enable_ldapd != no ; then
2796 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2797 echo "configure:2798: checking for main in -lxtpp" >&5
2798 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 ac_save_LIBS="$LIBS"
2803 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2812 if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2814 eval "ac_cv_lib_$ac_lib_var=yes"
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2819 eval "ac_cv_lib_$ac_lib_var=no"
2822 LIBS="$ac_save_LIBS"
2825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2829 cat >> confdefs.h <<\EOF
2833 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2836 echo "$ac_t""no" 1>&6
2840 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2841 echo "configure:2842: checking for main in -ldsap" >&5
2842 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 ac_save_LIBS="$LIBS"
2847 LIBS="-ldsap -lisode $LIBS"
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2858 eval "ac_cv_lib_$ac_lib_var=yes"
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 eval "ac_cv_lib_$ac_lib_var=no"
2866 LIBS="$ac_save_LIBS"
2869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2873 cat >> confdefs.h <<\EOF
2877 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2880 echo "$ac_t""no" 1>&6
2884 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2885 echo "configure:2886: checking for main in -lisode" >&5
2886 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 ac_save_LIBS="$LIBS"
2891 LIBS="-lisode $LIBS"
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2902 eval "ac_cv_lib_$ac_lib_var=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 eval "ac_cv_lib_$ac_lib_var=no"
2910 LIBS="$ac_save_LIBS"
2913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2914 echo "$ac_t""yes" 1>&6
2917 cat >> confdefs.h <<\EOF
2918 #define HAVE_ISODE 1
2921 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2924 echo "$ac_t""no" 1>&6
2930 if test $ol_link_isode != no; then
2931 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2932 echo "configure:2933: checking for main in -lpp" >&5
2933 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 ac_save_LIBS="$LIBS"
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2949 eval "ac_cv_lib_$ac_lib_var=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_lib_$ac_lib_var=no"
2957 LIBS="$ac_save_LIBS"
2960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2963 cat >> confdefs.h <<\EOF
2967 LDAPD_LIBS="-lpp $LDAPD_LIBS"
2970 echo "$ac_t""no" 1>&6
2975 # Extract the first word of "pepsy", so it can be a program name with args.
2976 set dummy pepsy; ac_word=$2
2977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2978 echo "configure:2979: checking for $ac_word" >&5
2979 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2984 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
2987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2988 for ac_dir in $PATH; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_path_PEPSY="$ac_dir/$ac_word"
2999 PEPSY="$ac_cv_path_PEPSY"
3000 if test -n "$PEPSY"; then
3001 echo "$ac_t""$PEPSY" 1>&6
3003 echo "$ac_t""no" 1>&6
3008 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3009 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3013 echo "configure:3014: checking for $ac_hdr" >&5
3014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3023 { (eval echo configure:3024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3024 ac_err=`grep -v '^ *+' conftest.out`
3025 if test -z "$ac_err"; then
3027 eval "ac_cv_header_$ac_safe=yes"
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3033 eval "ac_cv_header_$ac_safe=no"
3037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3040 cat >> confdefs.h <<EOF
3041 #define $ac_tr_hdr 1
3045 echo "$ac_t""no" 1>&6
3050 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3051 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3052 echo "configure:3053: checking for main in -lkrb4" >&5
3053 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 ac_save_LIBS="$LIBS"
3058 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3069 eval "ac_cv_lib_$ac_lib_var=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_lib_$ac_lib_var=no"
3077 LIBS="$ac_save_LIBS"
3080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3084 echo "$ac_t""no" 1>&6
3089 if test $have_k5 = yes ; then
3090 ol_with_kerberos=found
3091 ol_link_kerberos=yes
3093 cat >> confdefs.h <<\EOF
3094 #define HAVE_KERBEROS 1
3098 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3102 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3103 for ac_hdr in krb.h des.h
3105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_hdr" >&5
3108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3117 { (eval echo configure:3118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3118 ac_err=`grep -v '^ *+' conftest.out`
3119 if test -z "$ac_err"; then
3121 eval "ac_cv_header_$ac_safe=yes"
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 eval "ac_cv_header_$ac_safe=no"
3131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3132 echo "$ac_t""yes" 1>&6
3133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3134 cat >> confdefs.h <<EOF
3135 #define $ac_tr_hdr 1
3139 echo "$ac_t""no" 1>&6
3144 if test $ac_cv_header_krb_h = yes ; then
3145 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3146 echo "configure:3147: checking for main in -lkrb" >&5
3147 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 ac_save_LIBS="$LIBS"
3152 LIBS="-lkrb -ldes $LIBS"
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3163 eval "ac_cv_lib_$ac_lib_var=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3168 eval "ac_cv_lib_$ac_lib_var=no"
3171 LIBS="$ac_save_LIBS"
3174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3178 echo "$ac_t""no" 1>&6
3183 if test $have_k4 = yes ; then
3184 ol_with_kerberos=found
3185 ol_link_kerberos=yes
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_KERBEROS 1
3191 KRB_LIBS="-lkrb -ldes"
3193 for ac_func in des_string_to_key
3195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_func" >&5
3197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* System header to define __stub macros and hopefully few prototypes,
3204 which can conflict with char $ac_func(); below. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 /* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3213 /* The GNU C library defines this for functions which it implements
3214 to always fail with ENOSYS. Some functions are actually named
3215 something starting with __ and the normal name is an alias. */
3216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3226 eval "ac_cv_func_$ac_func=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 eval "ac_cv_func_$ac_func=no"
3236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3239 cat >> confdefs.h <<EOF
3240 #define $ac_tr_func 1
3244 echo "$ac_t""no" 1>&6
3253 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3254 -o $ol_with_threads = posix ; then
3256 for ac_hdr in pthread.h sched.h
3258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3260 echo "configure:3261: checking for $ac_hdr" >&5
3261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3270 { (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3271 ac_err=`grep -v '^ *+' conftest.out`
3272 if test -z "$ac_err"; then
3274 eval "ac_cv_header_$ac_safe=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_header_$ac_safe=no"
3284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3287 cat >> confdefs.h <<EOF
3288 #define $ac_tr_hdr 1
3292 echo "$ac_t""no" 1>&6
3297 if test $ac_cv_header_pthread_h = yes ; then
3298 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3299 echo "configure:3300: checking POSIX thread version" >&5
3300 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3308 # include <pthread.h>
3309 /* this check could be improved */
3310 # ifdef PTHREAD_ONCE_INIT
3311 pthread_version_final
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 egrep "pthread_version_final" >/dev/null 2>&1; then
3318 ol_pthread_final=yes
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3330 # include <pthread.h>
3331 /* this check could be improved */
3332 # ifdef pthread_once_init
3333 pthread_version_draft4
3337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3338 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3340 ol_pthread_draft4=yes
3343 ol_pthread_draft4=no
3348 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3349 ol_cv_pthread_version=final
3350 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3351 ol_cv_pthread_version=draft4
3353 ol_cv_pthread_version=unknown
3358 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3361 if test $ol_cv_pthread_version = final ; then
3362 cat >> confdefs.h <<\EOF
3363 #define HAVE_PTHREADS_FINAL 1
3366 elif test $ol_cv_pthread_version = draft4 ; then
3367 cat >> confdefs.h <<\EOF
3368 #define HAVE_PTHREADS_D4 1
3372 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3375 # consider threads found
3376 ol_with_threads=found
3379 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3380 echo "configure:3381: checking for LinuxThreads" >&5
3381 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3385 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3386 if test "$res" -gt 0 ; then
3387 ol_cv_linux_threads=yes
3389 ol_cv_linux_threads=no
3394 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3397 if test $ol_cv_linux_threads = yes ; then
3398 cat >> confdefs.h <<\EOF
3399 #define HAVE_LINUX_THREADS 1
3405 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3406 echo "configure:3407: checking for pthread_create" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char pthread_create(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419 char pthread_create();
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3436 eval "ac_cv_func_pthread_create=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 eval "ac_cv_func_pthread_create=no"
3446 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3450 echo "$ac_t""no" 1>&6
3454 if test $ol_link_threads = no ; then
3455 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3456 echo "configure:3457: checking for pthread_create with -pthread" >&5
3457 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3462 LIBS="-pthread $LIBS"
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3475 ol_cv_pthread_flag=yes
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 ol_cv_pthread_flag=no
3487 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3489 if test $ol_cv_pthread_flag = yes ; then
3490 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3491 ol_link_threads=posix
3495 if test $ol_link_threads = no ; then
3496 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3497 echo "configure:3498: checking for pthread_create with -pthreads" >&5
3498 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3503 LIBS="-pthreads $LIBS"
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3516 ol_cv_pthreads_flag=yes
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 ol_cv_pthreads_flag=no
3528 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3530 if test $ol_cv_pthreads_flag = yes ; then
3531 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3532 ol_link_threads=posix
3536 if test $ol_link_threads = no ; then
3537 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3538 echo "configure:3539: checking for pthread_create with -thread" >&5
3539 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3544 LIBS="-thread $LIBS"
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3557 ol_cv_thread_flag=yes
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3562 ol_cv_thread_flag=no
3569 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3571 if test $ol_cv_thread_flag = yes ; then
3572 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3573 ol_link_threads=posix
3577 if test $ol_link_threads = no ; then
3579 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
3580 echo "configure:3581: checking for pthread_join in -lpthread" >&5
3581 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 ac_save_LIBS="$LIBS"
3586 LIBS="-lpthread -lexc $LIBS"
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3593 char pthread_join();
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3601 eval "ac_cv_lib_$ac_lib_var=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_lib_$ac_lib_var=no"
3609 LIBS="$ac_save_LIBS"
3612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3613 echo "$ac_t""yes" 1>&6
3615 ol_link_threads=posix
3616 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3617 if test $ol_with_yielding_select = auto ; then
3618 ol_with_yielding_select=yes
3622 echo "$ac_t""no" 1>&6
3628 if test $ol_link_threads = no ; then
3630 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3631 echo "configure:3632: checking for pthread_join in -lpthreads" >&5
3632 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 ac_save_LIBS="$LIBS"
3637 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3644 char pthread_join();
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3652 eval "ac_cv_lib_$ac_lib_var=yes"
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 eval "ac_cv_lib_$ac_lib_var=no"
3660 LIBS="$ac_save_LIBS"
3663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3666 ol_link_threads=posix
3667 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3668 if test $ol_with_yielding_select = auto ; then
3669 ol_with_yielding_select=yes
3673 echo "$ac_t""no" 1>&6
3679 if test $ol_link_threads = no ; then
3681 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3682 echo "configure:3683: checking for pthread_create in -lpthread" >&5
3683 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 ac_save_LIBS="$LIBS"
3688 LIBS="-lpthread $LIBS"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char pthread_create();
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3703 eval "ac_cv_lib_$ac_lib_var=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 eval "ac_cv_lib_$ac_lib_var=no"
3711 LIBS="$ac_save_LIBS"
3714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3717 ol_link_threads=posix
3718 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3720 echo "$ac_t""no" 1>&6
3726 if test $ol_link_threads = no ; then
3728 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3729 echo "configure:3730: checking for pthread_create in -lc_r" >&5
3730 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 ac_save_LIBS="$LIBS"
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 /* Override any gcc2 internal prototype to avoid an error. */
3740 /* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3742 char pthread_create();
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3750 eval "ac_cv_lib_$ac_lib_var=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 eval "ac_cv_lib_$ac_lib_var=no"
3758 LIBS="$ac_save_LIBS"
3761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3764 ol_link_threads=posix
3765 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3767 echo "$ac_t""no" 1>&6
3773 if test $ol_link_threads != no ; then
3774 cat >> confdefs.h <<\EOF
3775 #define HAVE_PTHREADS 1
3779 save_CPPFLAGS="$CPPFLAGS"
3781 LIBS="$LTHREAD_LIBS $LIBS"
3783 for ac_func in sched_yield pthread_yield
3785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3786 echo "configure:3787: checking for $ac_func" >&5
3787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* System header to define __stub macros and hopefully few prototypes,
3794 which can conflict with char $ac_func(); below. */
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3816 eval "ac_cv_func_$ac_func=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 eval "ac_cv_func_$ac_func=no"
3826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3829 cat >> confdefs.h <<EOF
3830 #define $ac_tr_func 1
3834 echo "$ac_t""no" 1>&6
3839 if test $ac_cv_func_sched_yield = no -a \
3840 $ac_cv_func_pthread_yield = no ; then
3841 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3842 echo "configure:3843: checking for sched_yield in -lrt" >&5
3843 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 ac_save_LIBS="$LIBS"
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 /* Override any gcc2 internal prototype to avoid an error. */
3853 /* We use char because int might match the return type of a gcc2
3854 builtin and then its argument prototype would still apply. */
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3863 eval "ac_cv_lib_$ac_lib_var=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 eval "ac_cv_lib_$ac_lib_var=no"
3871 LIBS="$ac_save_LIBS"
3874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3875 echo "$ac_t""yes" 1>&6
3876 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_SCHED_YIELD 1
3881 ac_cv_func_sched_yield=yes
3883 echo "$ac_t""no" 1>&6
3884 ac_cv_func_sched_yield=no
3888 if test $ac_cv_func_sched_yield = no -a \
3889 $ac_cv_func_pthread_yield = no ; then
3890 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3891 echo "configure:3892: checking for sched_yield in -lposix4" >&5
3892 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_save_LIBS="$LIBS"
3897 LIBS="-lposix4 $LIBS"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3917 eval "ac_cv_lib_$ac_lib_var=no"
3920 LIBS="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3926 cat >> confdefs.h <<\EOF
3927 #define HAVE_SCHED_YIELD 1
3930 ac_cv_func_sched_yield=yes
3932 echo "$ac_t""no" 1>&6
3933 ac_cv_func_sched_yield=no
3937 if test $ac_cv_func_sched_yield = no -a \
3938 $ac_cv_func_pthread_yield = no ; then
3939 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3940 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3943 for ac_func in pthread_kill
3945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_func" >&5
3947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char $ac_func(); below. */
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3963 /* The GNU C library defines this for functions which it implements
3964 to always fail with ENOSYS. Some functions are actually named
3965 something starting with __ and the normal name is an alias. */
3966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3976 eval "ac_cv_func_$ac_func=yes"
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3981 eval "ac_cv_func_$ac_func=no"
3986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3987 echo "$ac_t""yes" 1>&6
3988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_func 1
3994 echo "$ac_t""no" 1>&6
3999 pthread_attr_create pthread_attr_init \
4000 pthread_attr_destroy pthread_attr_delete \
4001 pthread_attr_setdetachstate pthread_attr_setdetach_np \
4004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4005 echo "configure:4006: checking for $ac_func" >&5
4006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 /* System header to define __stub macros and hopefully few prototypes,
4013 which can conflict with char $ac_func(); below. */
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4022 /* The GNU C library defines this for functions which it implements
4023 to always fail with ENOSYS. Some functions are actually named
4024 something starting with __ and the normal name is an alias. */
4025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4033 if { (eval echo configure:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4035 eval "ac_cv_func_$ac_func=yes"
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4040 eval "ac_cv_func_$ac_func=no"
4045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4048 cat >> confdefs.h <<EOF
4049 #define $ac_tr_func 1
4053 echo "$ac_t""no" 1>&6
4059 pthread_setconcurrency \
4060 thr_setconcurrency \
4063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_func" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char $ac_func(); below. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4094 eval "ac_cv_func_$ac_func=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 eval "ac_cv_func_$ac_func=no"
4104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4107 cat >> confdefs.h <<EOF
4108 #define $ac_tr_func 1
4112 echo "$ac_t""no" 1>&6
4117 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4118 echo "configure:4119: checking if pthread_create() works" >&5
4119 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4123 if test "$cross_compiling" = yes; then
4124 ol_cv_pthread_create_works=yes
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4130 #include <pthread.h>
4132 #define NULL (void*)0
4135 static void *task(p)
4138 return (void *) (p == NULL);
4141 int main(argc, argv)
4146 exit(pthread_create(&t, NULL, task, NULL));
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4152 ol_cv_pthread_create_works=yes
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4157 ol_cv_pthread_create_works=no
4164 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4166 if test $ol_cv_pthread_create_works = no ; then
4167 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4170 if test $ol_with_yielding_select = auto ; then
4171 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4172 echo "configure:4173: checking if select yields when using pthreads" >&5
4173 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4177 if test "$cross_compiling" = yes; then
4179 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4185 #include <sys/types.h>
4186 #include <sys/time.h>
4188 #include <pthread.h>
4190 #define NULL (void*) 0
4193 static int fildes[2];
4195 static void *task(p)
4207 FD_SET(fildes[0], &rfds);
4209 /* we're not interested in any fds */
4210 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4217 exit(1); /* if we exit here, the select blocked the whole process */
4220 int main(argc, argv)
4226 /* create a pipe to select */
4227 if(pipe(&fildes[0])) {
4232 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4233 (void) pthread_setconcurrency(2);
4235 #ifdef HAVE_THR_SETCONCURRENCY
4236 /* Set Solaris LWP concurrency to 2 */
4237 thr_setconcurrency(2);
4241 pthread_create(&t, NULL, task, NULL);
4243 #if HAVE_SCHED_YIELD
4244 sched_yield(); /* make sure task runs first */
4246 #ifdef HAVE_PTHREAD_YIELD
4247 pthread_yield(); /* make sure task runs first */
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4255 ol_cv_pthread_select_yields=yes
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4260 ol_cv_pthread_select_yields=no
4267 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4269 if test $ol_cv_pthread_select_yields = yes ; then
4270 ol_with_yielding_select=yes
4275 CPPFLAGS="$save_CPPFLAGS"
4278 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4282 if test $ol_with_threads = posix ; then
4283 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4287 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4288 -o $ol_with_threads = mach ; then
4290 for ac_hdr in mach/cthreads.h
4292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_hdr" >&5
4295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err=`grep -v '^ *+' conftest.out`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_hdr 1
4326 echo "$ac_t""no" 1>&6
4330 if test $ac_cv_header_mach_cthreads_h = yes ; then
4331 ol_with_threads=found
4333 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4334 echo "configure:4335: checking for cthread_fork" >&5
4335 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 /* System header to define __stub macros and hopefully few prototypes,
4342 which can conflict with char cthread_fork(); below. */
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char cthread_fork();
4351 /* The GNU C library defines this for functions which it implements
4352 to always fail with ENOSYS. Some functions are actually named
4353 something starting with __ and the normal name is an alias. */
4354 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4364 eval "ac_cv_func_cthread_fork=yes"
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 eval "ac_cv_func_cthread_fork=no"
4374 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4375 echo "$ac_t""yes" 1>&6
4378 echo "$ac_t""no" 1>&6
4382 if test $ol_link_threads = no ; then
4383 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4384 echo "configure:4385: checking for cthread_fork with -all_load" >&5
4385 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4390 LIBS="-all_load $LIBS"
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 #include <mach/cthreads.h>
4397 cthread_fork((void *)0, (void *)0);
4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4403 ol_cv_cthread_all_load=yes
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4408 ol_cv_cthread_all_load=no
4415 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4417 if test $ol_cv_cthread_all_load = yes ; then
4418 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4419 ol_link_threads=mach
4423 if test $ol_link_threads != no ; then
4424 : check for cthread specific functionality here
4425 cat >> confdefs.h <<\EOF
4426 #define HAVE_MACH_CTHREADS 1
4430 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4434 if test $ol_with_threads = mach ; then
4435 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4439 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4440 -o $ol_with_threads = lwp ; then
4442 for ac_hdr in thread.h synch.h
4444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_hdr" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err=`grep -v '^ *+' conftest.out`
4458 if test -z "$ac_err"; then
4460 eval "ac_cv_header_$ac_safe=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_header_$ac_safe=no"
4470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4473 cat >> confdefs.h <<EOF
4474 #define $ac_tr_hdr 1
4478 echo "$ac_t""no" 1>&6
4482 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4483 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4484 echo "configure:4485: checking for thr_create in -lthread" >&5
4485 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 ac_save_LIBS="$LIBS"
4490 LIBS="-lthread $LIBS"
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 /* Override any gcc2 internal prototype to avoid an error. */
4495 /* We use char because int might match the return type of a gcc2
4496 builtin and then its argument prototype would still apply. */
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4505 eval "ac_cv_lib_$ac_lib_var=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_lib_$ac_lib_var=no"
4513 LIBS="$ac_save_LIBS"
4516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4520 echo "$ac_t""no" 1>&6
4525 if test $have_thr = yes ; then
4526 cat >> confdefs.h <<\EOF
4530 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4533 if test $ol_with_yielding_select = auto ; then
4534 ol_with_yielding_select=yes
4539 for ac_hdr in lwp/lwp.h
4541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_hdr" >&5
4544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4553 { (eval echo configure:4554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4554 ac_err=`grep -v '^ *+' conftest.out`
4555 if test -z "$ac_err"; then
4557 eval "ac_cv_header_$ac_safe=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 eval "ac_cv_header_$ac_safe=no"
4567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4570 cat >> confdefs.h <<EOF
4571 #define $ac_tr_hdr 1
4575 echo "$ac_t""no" 1>&6
4579 if test $ac_cv_header_lwp_lwp_h = yes ; then
4580 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4581 echo "configure:4582: checking for lwp_create in -llwp" >&5
4582 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 ac_save_LIBS="$LIBS"
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 /* Override any gcc2 internal prototype to avoid an error. */
4592 /* We use char because int might match the return type of a gcc2
4593 builtin and then its argument prototype would still apply. */
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4602 eval "ac_cv_lib_$ac_lib_var=yes"
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4607 eval "ac_cv_lib_$ac_lib_var=no"
4610 LIBS="$ac_save_LIBS"
4613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4614 echo "$ac_t""yes" 1>&6
4617 echo "$ac_t""no" 1>&6
4622 if test $have_lwp = yes ; then
4623 cat >> confdefs.h <<\EOF
4627 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4630 if test $ol_with_yielding_select = auto ; then
4631 ol_with_yielding_select=no
4637 if test $ol_with_yielding_select = yes ; then
4638 cat >> confdefs.h <<\EOF
4639 #define HAVE_YIELDING_SELECT 1
4644 if test $ol_with_threads = manual ; then
4647 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4649 for ac_hdr in pthread.h sched.h
4651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_hdr" >&5
4654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4663 { (eval echo configure:4664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4664 ac_err=`grep -v '^ *+' conftest.out`
4665 if test -z "$ac_err"; then
4667 eval "ac_cv_header_$ac_safe=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_header_$ac_safe=no"
4677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4680 cat >> confdefs.h <<EOF
4681 #define $ac_tr_hdr 1
4685 echo "$ac_t""no" 1>&6
4689 for ac_func in sched_yield pthread_yield
4691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4692 echo "configure:4693: checking for $ac_func" >&5
4693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* System header to define __stub macros and hopefully few prototypes,
4700 which can conflict with char $ac_func(); below. */
4702 /* Override any gcc2 internal prototype to avoid an error. */
4703 /* We use char because int might match the return type of a gcc2
4704 builtin and then its argument prototype would still apply. */
4709 /* The GNU C library defines this for functions which it implements
4710 to always fail with ENOSYS. Some functions are actually named
4711 something starting with __ and the normal name is an alias. */
4712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4722 eval "ac_cv_func_$ac_func=yes"
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4727 eval "ac_cv_func_$ac_func=no"
4732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4735 cat >> confdefs.h <<EOF
4736 #define $ac_tr_func 1
4740 echo "$ac_t""no" 1>&6
4745 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4746 echo "configure:4747: checking for LinuxThreads" >&5
4747 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4751 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4752 if test "$res" -gt 0 ; then
4753 ol_cv_linux_threads=yes
4755 ol_cv_linux_threads=no
4760 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4763 for ac_hdr in mach/cthreads.h
4765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4767 echo "configure:4768: checking for $ac_hdr" >&5
4768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777 { (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778 ac_err=`grep -v '^ *+' conftest.out`
4779 if test -z "$ac_err"; then
4781 eval "ac_cv_header_$ac_safe=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_header_$ac_safe=no"
4791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_hdr 1
4799 echo "$ac_t""no" 1>&6
4803 for ac_hdr in lwp/lwp.h
4805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_hdr" >&5
4808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4817 { (eval echo configure:4818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4818 ac_err=`grep -v '^ *+' conftest.out`
4819 if test -z "$ac_err"; then
4821 eval "ac_cv_header_$ac_safe=yes"
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 eval "ac_cv_header_$ac_safe=no"
4831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4832 echo "$ac_t""yes" 1>&6
4833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4834 cat >> confdefs.h <<EOF
4835 #define $ac_tr_hdr 1
4839 echo "$ac_t""no" 1>&6
4843 for ac_hdr in thread.h synch.h
4845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4847 echo "configure:4848: checking for $ac_hdr" >&5
4848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4857 { (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4858 ac_err=`grep -v '^ *+' conftest.out`
4859 if test -z "$ac_err"; then
4861 eval "ac_cv_header_$ac_safe=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_header_$ac_safe=no"
4871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4874 cat >> confdefs.h <<EOF
4875 #define $ac_tr_hdr 1
4879 echo "$ac_t""no" 1>&6
4885 if test $ol_link_threads != no ; then
4886 cat >> confdefs.h <<\EOF
4890 cat >> confdefs.h <<\EOF
4891 #define _REENTRANT 1
4894 cat >> confdefs.h <<\EOF
4895 #define THREAD_SAFE 1
4898 cat >> confdefs.h <<\EOF
4899 #define _THREAD_SAFE 1
4902 cat >> confdefs.h <<\EOF
4903 #define THREADSAFE 1
4906 cat >> confdefs.h <<\EOF
4907 #define _THREADSAFE 1
4911 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4912 echo "configure:4913: checking for thread specific errno" >&5
4913 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4917 cat > conftest.$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4931 ol_cv_errno_thread_specific=yes
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 ol_cv_errno_thread_specific=no
4942 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4944 if test $ol_cv_errno_thread_specific != yes ; then
4945 LIBS="$LTHREAD_LIBS $LIBS"
4951 if test $ol_link_threads = no ; then
4952 if test $ol_with_threads = yes ; then
4953 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4956 if test $ol_with_threads = auto ; then
4957 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4961 cat >> confdefs.h <<\EOF
4962 #define NO_THREADS 1
4969 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4970 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4971 echo "configure:4972: checking for DB2 library" >&5
4972 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6
4976 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4977 echo "configure:4978: checking for db_open in -ldb" >&5
4978 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 ac_save_LIBS="$LIBS"
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5006 LIBS="$ac_save_LIBS"
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5013 echo "$ac_t""no" 1>&6
5021 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5027 echo "configure:5028: checking for $ac_hdr" >&5
5028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5037 { (eval echo configure:5038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5038 ac_err=`grep -v '^ *+' conftest.out`
5039 if test -z "$ac_err"; then
5041 eval "ac_cv_header_$ac_safe=yes"
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5047 eval "ac_cv_header_$ac_safe=no"
5051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5054 cat >> confdefs.h <<EOF
5055 #define $ac_tr_hdr 1
5059 echo "$ac_t""no" 1>&6
5063 if test $ac_cv_header_db_h = yes ; then
5064 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5065 echo "configure:5066: checking if db.h is DB2" >&5
5066 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5075 /* this check could be improved */
5076 # ifdef DB_VERSION_MAJOR
5077 # if DB_VERSION_MAJOR == 2
5083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5084 egrep "__db_version_2" >/dev/null 2>&1; then
5086 ol_cv_header_db2=yes
5095 echo "$ac_t""$ol_cv_header_db2" 1>&6
5102 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5103 echo "configure:5104: checking for Berkeley DB2" >&5
5104 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5108 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
5109 ol_cv_berkeley_db2=no
5111 ol_cv_berkeley_db2=yes
5116 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5117 if test $ol_cv_berkeley_db2 = yes ; then
5118 cat >> confdefs.h <<\EOF
5119 #define HAVE_BERKELEY_DB2 1
5125 if test $ol_cv_berkeley_db2 = yes ; then
5127 ol_with_ldbm_api=db2
5129 if test $ol_with_ldbm_type = hash ; then
5130 cat >> confdefs.h <<\EOF
5131 #define LDBM_USE_DBHASH 1
5135 cat >> confdefs.h <<\EOF
5136 #define LDBM_USE_DBBTREE 1
5141 if test $ol_cv_lib_db2 != yes ; then
5142 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5147 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5148 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5149 echo "configure:5150: checking for Berkeley DB library" >&5
5150 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5154 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5155 echo "configure:5156: checking for dbopen" >&5
5156 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 /* System header to define __stub macros and hopefully few prototypes,
5163 which can conflict with char dbopen(); below. */
5165 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5172 /* The GNU C library defines this for functions which it implements
5173 to always fail with ENOSYS. Some functions are actually named
5174 something starting with __ and the normal name is an alias. */
5175 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5185 eval "ac_cv_func_dbopen=yes"
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5190 eval "ac_cv_func_dbopen=no"
5195 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5199 echo "$ac_t""no" 1>&6
5201 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5202 echo "configure:5203: checking for dbopen in -ldb" >&5
5203 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 ac_save_LIBS="$LIBS"
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5223 eval "ac_cv_lib_$ac_lib_var=yes"
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5228 eval "ac_cv_lib_$ac_lib_var=no"
5231 LIBS="$ac_save_LIBS"
5234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5235 echo "$ac_t""yes" 1>&6
5238 echo "$ac_t""no" 1>&6
5249 echo "$ac_t""$ol_cv_lib_db" 1>&6
5252 for ac_hdr in db_185.h
5254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5256 echo "configure:5257: checking for $ac_hdr" >&5
5257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5266 { (eval echo configure:5267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5267 ac_err=`grep -v '^ *+' conftest.out`
5268 if test -z "$ac_err"; then
5270 eval "ac_cv_header_$ac_safe=yes"
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 eval "ac_cv_header_$ac_safe=no"
5280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5283 cat >> confdefs.h <<EOF
5284 #define $ac_tr_hdr 1
5288 echo "$ac_t""no" 1>&6
5292 if test $ol_cv_header_db2 = yes ; then
5294 ol_cv_header_db=$ac_cv_header_db_185_h
5296 ol_cv_header_db=$ac_cv_header_db_h
5301 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5302 echo "configure:5303: checking for Berkeley DB" >&5
5303 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5307 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5308 ol_cv_berkeley_db=no
5310 ol_cv_berkeley_db=yes
5315 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5316 if test $ol_cv_berkeley_db = yes ; then
5317 cat >> confdefs.h <<\EOF
5318 #define HAVE_BERKELEY_DB 1
5324 if test $ol_cv_berkeley_db = yes ; then
5328 if test $ol_with_ldbm_type = hash ; then
5329 cat >> confdefs.h <<\EOF
5330 #define LDBM_USE_DBHASH 1
5334 cat >> confdefs.h <<\EOF
5335 #define LDBM_USE_DBBTREE 1
5340 if test $ol_cv_lib_db != yes ; then
5341 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5346 if test $ol_with_ldbm_api = manual ; then
5349 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5351 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5355 echo "configure:5356: checking for $ac_hdr" >&5
5356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5365 { (eval echo configure:5366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5366 ac_err=`grep -v '^ *+' conftest.out`
5367 if test -z "$ac_err"; then
5369 eval "ac_cv_header_$ac_safe=yes"
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 eval "ac_cv_header_$ac_safe=no"
5379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5380 echo "$ac_t""yes" 1>&6
5381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5382 cat >> confdefs.h <<EOF
5383 #define $ac_tr_hdr 1
5387 echo "$ac_t""no" 1>&6
5393 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5394 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5395 ol_with_ldbm_api=none
5398 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5399 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5400 echo "configure:5401: checking for GDBM library" >&5
5401 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5405 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5406 echo "configure:5407: checking for gdbm_open" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char gdbm_open(); below. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5436 eval "ac_cv_func_gdbm_open=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 eval "ac_cv_func_gdbm_open=no"
5446 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5450 echo "$ac_t""no" 1>&6
5452 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5453 echo "configure:5454: checking for gdbm_open in -lgdbm" >&5
5454 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 ac_save_LIBS="$LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5474 eval "ac_cv_lib_$ac_lib_var=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 eval "ac_cv_lib_$ac_lib_var=no"
5482 LIBS="$ac_save_LIBS"
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ol_cv_lib_gdbm=-lgdbm
5489 echo "$ac_t""no" 1>&6
5500 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5503 for ac_hdr in gdbm.h
5505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5507 echo "configure:5508: checking for $ac_hdr" >&5
5508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5517 { (eval echo configure:5518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5518 ac_err=`grep -v '^ *+' conftest.out`
5519 if test -z "$ac_err"; then
5521 eval "ac_cv_header_$ac_safe=yes"
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 eval "ac_cv_header_$ac_safe=no"
5531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5532 echo "$ac_t""yes" 1>&6
5533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5534 cat >> confdefs.h <<EOF
5535 #define $ac_tr_hdr 1
5539 echo "$ac_t""no" 1>&6
5543 echo $ac_n "checking for db""... $ac_c" 1>&6
5544 echo "configure:5545: checking for db" >&5
5545 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5549 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5557 echo "$ac_t""$ol_cv_gdbm" 1>&6
5558 if test $ol_cv_gdbm = yes ; then
5559 cat >> confdefs.h <<\EOF
5566 if test $ol_cv_gdbm = yes ; then
5568 ol_with_ldbm_api=gdbm
5570 if test $ol_cv_lib_gdbm != yes ; then
5571 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5576 if test $ol_with_ldbm_api = auto ; then
5577 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
5578 elif test $ol_with_ldbm_api = ndbm ; then
5579 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5580 echo "configure:5581: checking for NDBM library" >&5
5581 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5585 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5586 echo "configure:5587: checking for dbm_open" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char dbm_open(); below. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5616 eval "ac_cv_func_dbm_open=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 eval "ac_cv_func_dbm_open=no"
5626 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5630 echo "$ac_t""no" 1>&6
5632 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5633 echo "configure:5634: checking for dbm_open in -lndbm" >&5
5634 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 ac_save_LIBS="$LIBS"
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 /* Override any gcc2 internal prototype to avoid an error. */
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5652 if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5654 eval "ac_cv_lib_$ac_lib_var=yes"
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5659 eval "ac_cv_lib_$ac_lib_var=no"
5662 LIBS="$ac_save_LIBS"
5665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5666 echo "$ac_t""yes" 1>&6
5667 ol_cv_lib_ndbm=-lndbm
5669 echo "$ac_t""no" 1>&6
5671 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5672 echo "configure:5673: checking for dbm_open in -ldbm" >&5
5673 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5675 echo $ac_n "(cached) $ac_c" 1>&6
5677 ac_save_LIBS="$LIBS"
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5682 /* Override any gcc2 internal prototype to avoid an error. */
5683 /* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5693 eval "ac_cv_lib_$ac_lib_var=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 eval "ac_cv_lib_$ac_lib_var=no"
5701 LIBS="$ac_save_LIBS"
5704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5706 ol_cv_lib_ndbm=-ldbm
5708 echo "$ac_t""no" 1>&6
5721 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5724 for ac_hdr in ndbm.h
5726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5728 echo "configure:5729: checking for $ac_hdr" >&5
5729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5738 { (eval echo configure:5739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5739 ac_err=`grep -v '^ *+' conftest.out`
5740 if test -z "$ac_err"; then
5742 eval "ac_cv_header_$ac_safe=yes"
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5748 eval "ac_cv_header_$ac_safe=no"
5752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5753 echo "$ac_t""yes" 1>&6
5754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5755 cat >> confdefs.h <<EOF
5756 #define $ac_tr_hdr 1
5760 echo "$ac_t""no" 1>&6
5764 echo $ac_n "checking for db""... $ac_c" 1>&6
5765 echo "configure:5766: checking for db" >&5
5766 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5770 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5778 echo "$ac_t""$ol_cv_ndbm" 1>&6
5779 if test $ol_cv_ndbm = yes ; then
5780 cat >> confdefs.h <<\EOF
5787 if test $ol_cv_ndbm = yes ; then
5789 ol_with_ldbm_api=ndbm
5791 if test $ol_cv_lib_ndbm != yes ; then
5792 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5797 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5798 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5799 if test $ol_enable_ldbm = yes ; then
5800 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5803 echo "configure: warning: disabling LDBM" 1>&2
5807 if test $ol_enable_wrappers = yes ; then
5808 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5809 echo "configure:5810: checking for hosts_access in -lwrap" >&5
5810 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 ac_save_LIBS="$LIBS"
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5822 char hosts_access();
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5830 eval "ac_cv_lib_$ac_lib_var=yes"
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 eval "ac_cv_lib_$ac_lib_var=no"
5838 LIBS="$ac_save_LIBS"
5841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5842 echo "$ac_t""yes" 1>&6
5845 echo "$ac_t""no" 1>&6
5850 if test $have_wrappers = yes ; then
5851 cat >> confdefs.h <<\EOF
5855 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5857 echo "configure: warning: could not find -lwrap" 1>&2
5858 if test $ol_enable_wrappers = yes ; then
5859 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5862 echo "configure: warning: disabling wrappers support" 1>&2
5863 ol_enable_wrappers=no
5868 # ud needs termcap (should insert check here)
5870 for ac_hdr in termcap.h ncurses.h
5872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_hdr" >&5
5875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5884 { (eval echo configure:5885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5885 ac_err=`grep -v '^ *+' conftest.out`
5886 if test -z "$ac_err"; then
5888 eval "ac_cv_header_$ac_safe=yes"
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5894 eval "ac_cv_header_$ac_safe=no"
5898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5901 cat >> confdefs.h <<EOF
5902 #define $ac_tr_hdr 1
5906 echo "$ac_t""no" 1>&6
5911 if test $ol_link_termcap = no ; then
5912 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5913 echo "configure:5914: checking for tputs in -ltermcap" >&5
5914 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 ac_save_LIBS="$LIBS"
5919 LIBS="-ltermcap $LIBS"
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5934 eval "ac_cv_lib_$ac_lib_var=yes"
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 eval "ac_cv_lib_$ac_lib_var=no"
5942 LIBS="$ac_save_LIBS"
5945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5946 echo "$ac_t""yes" 1>&6
5949 echo "$ac_t""no" 1>&6
5953 if test $have_termcap = yes ; then
5954 cat >> confdefs.h <<\EOF
5955 #define HAVE_TERMCAP 1
5959 TERMCAP_LIBS=-ltermcap
5963 if test $ol_link_termcap = no ; then
5964 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5965 echo "configure:5966: checking for initscr in -lncurses" >&5
5966 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 ac_save_LIBS="$LIBS"
5971 LIBS="-lncurses $LIBS"
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5984 if { (eval echo configure:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5986 eval "ac_cv_lib_$ac_lib_var=yes"
5988 echo "configure: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5991 eval "ac_cv_lib_$ac_lib_var=no"
5994 LIBS="$ac_save_LIBS"
5997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
6001 echo "$ac_t""no" 1>&6
6005 if test $have_ncurses = yes ; then
6006 cat >> confdefs.h <<\EOF
6007 #define HAVE_NCURSES 1
6011 TERMCAP_LIBS=-lncurses
6015 if test $ol_link_termcap = no ; then
6016 cat >> confdefs.h <<\EOF
6017 #define NO_TERMCAP 1
6023 # FreeBSD (and others) have crypt(3) in -lcrypt
6024 if test $ol_enable_crypt != no ; then
6025 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6026 echo "configure:6027: checking for crypt" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char crypt(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_crypt) || defined (__stub___crypt)
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6056 eval "ac_cv_func_crypt=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_func_crypt=no"
6066 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6070 echo "$ac_t""no" 1>&6
6072 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6073 echo "configure:6074: checking for crypt in -lcrypt" >&5
6074 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6078 ac_save_LIBS="$LIBS"
6079 LIBS="-lcrypt $LIBS"
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 /* Override any gcc2 internal prototype to avoid an error. */
6084 /* We use char because int might match the return type of a gcc2
6085 builtin and then its argument prototype would still apply. */
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6094 eval "ac_cv_lib_$ac_lib_var=yes"
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 eval "ac_cv_lib_$ac_lib_var=no"
6102 LIBS="$ac_save_LIBS"
6105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6110 echo "$ac_t""no" 1>&6
6117 if test $have_crypt = yes ; then
6118 cat >> confdefs.h <<\EOF
6119 #define HAVE_CRYPT 1
6123 echo "configure: warning: could not find crypt" 1>&2
6124 if test $ol_enable_crypt = yes ; then
6125 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6128 echo "configure: warning: disabling crypt support" 1>&2
6133 # FreeBSD (and others) have setproctitle(3) in -lutil
6134 if test $ol_enable_proctitle != no ; then
6135 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6136 echo "configure:6137: checking for setproctitle" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char setproctitle(); below. */
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char setproctitle();
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6166 eval "ac_cv_func_setproctitle=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_func_setproctitle=no"
6176 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 have_setproctitle=yes
6180 echo "$ac_t""no" 1>&6
6182 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6183 echo "configure:6184: checking for setproctitle in -lutil" >&5
6184 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6186 echo $ac_n "(cached) $ac_c" 1>&6
6188 ac_save_LIBS="$LIBS"
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6193 /* Override any gcc2 internal prototype to avoid an error. */
6194 /* We use char because int might match the return type of a gcc2
6195 builtin and then its argument prototype would still apply. */
6196 char setproctitle();
6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6204 eval "ac_cv_lib_$ac_lib_var=yes"
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6209 eval "ac_cv_lib_$ac_lib_var=no"
6212 LIBS="$ac_save_LIBS"
6215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6216 echo "$ac_t""yes" 1>&6
6217 have_setproctitle=yes
6218 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6220 echo "$ac_t""no" 1>&6
6221 have_setproctitle=no
6222 LIBOBJS="$LIBOBJS setproctitle.o"
6228 if test $have_setproctitle = yes ; then
6229 cat >> confdefs.h <<\EOF
6230 #define HAVE_SETPROCTITLE 1
6236 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6237 echo "configure:6238: checking for ANSI C header files" >&5
6238 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6241 cat > conftest.$ac_ext <<EOF
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6250 { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6251 ac_err=`grep -v '^ *+' conftest.out`
6252 if test -z "$ac_err"; then
6254 ac_cv_header_stdc=yes
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6260 ac_cv_header_stdc=no
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat > conftest.$ac_ext <<EOF
6267 #line 6268 "configure"
6268 #include "confdefs.h"
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 egrep "memchr" >/dev/null 2>&1; then
6276 ac_cv_header_stdc=no
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 egrep "free" >/dev/null 2>&1; then
6294 ac_cv_header_stdc=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6309 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6310 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6312 int main () { int i; for (i = 0; i < 256; i++)
6313 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6317 if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 ac_cv_header_stdc=no
6332 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6333 if test $ac_cv_header_stdc = yes; then
6334 cat >> confdefs.h <<\EOF
6335 #define STDC_HEADERS 1
6341 if test $ac_cv_header_stdc != yes; then
6342 echo "configure: warning: could not Standard C compliant headers" 1>&2
6346 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6349 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6350 echo "configure:6351: checking for $ac_hdr that defines DIR" >&5
6351 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 #include <sys/types.h>
6363 if { (eval echo configure:6364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6365 eval "ac_cv_header_dirent_$ac_safe=yes"
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6370 eval "ac_cv_header_dirent_$ac_safe=no"
6374 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6375 echo "$ac_t""yes" 1>&6
6376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6377 cat >> confdefs.h <<EOF
6378 #define $ac_tr_hdr 1
6380 ac_header_dirent=$ac_hdr; break
6382 echo "$ac_t""no" 1>&6
6385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6386 if test $ac_header_dirent = dirent.h; then
6387 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6388 echo "configure:6389: checking for opendir in -ldir" >&5
6389 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 ac_save_LIBS="$LIBS"
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6409 eval "ac_cv_lib_$ac_lib_var=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_lib_$ac_lib_var=no"
6417 LIBS="$ac_save_LIBS"
6420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6421 echo "$ac_t""yes" 1>&6
6424 echo "$ac_t""no" 1>&6
6428 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6429 echo "configure:6430: checking for opendir in -lx" >&5
6430 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 ac_save_LIBS="$LIBS"
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6450 eval "ac_cv_lib_$ac_lib_var=yes"
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 eval "ac_cv_lib_$ac_lib_var=no"
6458 LIBS="$ac_save_LIBS"
6461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6465 echo "$ac_t""no" 1>&6
6470 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6471 echo "configure:6472: checking for sys/wait.h that is POSIX.1 compatible" >&5
6472 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 #include <sys/types.h>
6479 #include <sys/wait.h>
6481 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6484 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6489 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6492 if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6494 ac_cv_header_sys_wait_h=yes
6496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 ac_cv_header_sys_wait_h=no
6504 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6505 if test $ac_cv_header_sys_wait_h = yes; then
6506 cat >> confdefs.h <<\EOF
6507 #define HAVE_SYS_WAIT_H 1
6512 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6513 echo "configure:6514: checking POSIX termios" >&5
6514 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 #include <sys/types.h>
6522 #include <termios.h>
6524 /* SunOS 4.0.3 has termios.h but not the library calls. */
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6530 am_cv_sys_posix_termios=yes
6532 echo "configure: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 am_cv_sys_posix_termios=no
6540 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6543 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6544 echo "configure:6545: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6545 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6550 gwinsz_in_termios_h=no
6551 if test $am_cv_sys_posix_termios = yes; then
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 #include <sys/types.h>
6556 # include <termios.h>
6562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6563 egrep "yes" >/dev/null 2>&1; then
6565 gwinsz_in_termios_h=yes
6571 if test $gwinsz_in_termios_h = no; then
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 #include <sys/types.h>
6576 # include <sys/ioctl.h>
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 egrep "yes" >/dev/null 2>&1; then
6585 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6593 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6594 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6595 cat >> confdefs.h <<\EOF
6596 #define GWINSZ_IN_SYS_IOCTL 1
6601 if test $am_cv_sys_posix_termios = yes ; then
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_POSIX_TERMIOS 1
6641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6643 echo "configure:6644: checking for $ac_hdr" >&5
6644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6653 { (eval echo configure:6654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6654 ac_err=`grep -v '^ *+' conftest.out`
6655 if test -z "$ac_err"; then
6657 eval "ac_cv_header_$ac_safe=yes"
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 eval "ac_cv_header_$ac_safe=no"
6667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6668 echo "$ac_t""yes" 1>&6
6669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6670 cat >> confdefs.h <<EOF
6671 #define $ac_tr_hdr 1
6675 echo "$ac_t""no" 1>&6
6680 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6681 echo "configure:6682: checking for uid_t in sys/types.h" >&5
6682 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 #include <sys/types.h>
6690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6691 egrep "uid_t" >/dev/null 2>&1; then
6693 ac_cv_type_uid_t=yes
6702 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6703 if test $ac_cv_type_uid_t = no; then
6704 cat >> confdefs.h <<\EOF
6708 cat >> confdefs.h <<\EOF
6714 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6715 echo "configure:6716: checking type of array argument to getgroups" >&5
6716 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6719 if test "$cross_compiling" = yes; then
6720 ac_cv_type_getgroups=cross
6722 cat > conftest.$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6726 /* Thanks to Mike Rendell for this test. */
6727 #include <sys/types.h>
6730 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6735 union { gid_t gval; long lval; } val;
6738 for (i = 0; i < NGID; i++)
6739 gidset[i] = val.gval;
6740 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6742 /* Exit non-zero if getgroups seems to require an array of ints. This
6743 happens when gid_t is short but getgroups modifies an array of ints. */
6744 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6750 ac_cv_type_getgroups=gid_t
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6755 ac_cv_type_getgroups=int
6760 if test $ac_cv_type_getgroups = cross; then
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6769 ac_cv_type_getgroups=gid_t
6772 ac_cv_type_getgroups=int
6779 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
6780 cat >> confdefs.h <<EOF
6781 #define GETGROUPS_T $ac_cv_type_getgroups
6784 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6785 echo "configure:6786: checking for mode_t" >&5
6786 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 #include <sys/types.h>
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6801 ac_cv_type_mode_t=yes
6804 ac_cv_type_mode_t=no
6809 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6810 if test $ac_cv_type_mode_t = no; then
6811 cat >> confdefs.h <<\EOF
6817 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6818 echo "configure:6819: checking for off_t" >&5
6819 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 #include <sys/types.h>
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6834 ac_cv_type_off_t=yes
6842 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6843 if test $ac_cv_type_off_t = no; then
6844 cat >> confdefs.h <<\EOF
6850 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6851 echo "configure:6852: checking for pid_t" >&5
6852 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 #include <sys/types.h>
6864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6867 ac_cv_type_pid_t=yes
6875 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6876 if test $ac_cv_type_pid_t = no; then
6877 cat >> confdefs.h <<\EOF
6883 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
6884 echo "configure:6885: checking for ptrdiff_t" >&5
6885 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6888 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6896 if { (eval echo configure:6897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6898 am_cv_type_ptrdiff_t=yes
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 am_cv_type_ptrdiff_t=no
6908 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
6909 if test $am_cv_type_ptrdiff_t = yes; then
6910 cat >> confdefs.h <<\EOF
6911 #define HAVE_PTRDIFF_T 1
6916 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6917 echo "configure:6918: checking return type of signal handlers" >&5
6918 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 #include <sys/types.h>
6930 extern "C" void (*signal (int, void (*)(int)))(int);
6932 void (*signal ()) ();
6939 if { (eval echo configure:6940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6941 ac_cv_type_signal=void
6943 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6946 ac_cv_type_signal=int
6951 echo "$ac_t""$ac_cv_type_signal" 1>&6
6952 cat >> confdefs.h <<EOF
6953 #define RETSIGTYPE $ac_cv_type_signal
6957 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6958 echo "configure:6959: checking for size_t" >&5
6959 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6960 echo $ac_n "(cached) $ac_c" 1>&6
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 #include <sys/types.h>
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6974 ac_cv_type_size_t=yes
6977 ac_cv_type_size_t=no
6982 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6983 if test $ac_cv_type_size_t = no; then
6984 cat >> confdefs.h <<\EOF
6985 #define size_t unsigned
6990 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6991 echo "configure:6992: checking for st_blksize in struct stat" >&5
6992 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 #include <sys/types.h>
6999 #include <sys/stat.h>
7001 struct stat s; s.st_blksize;
7004 if { (eval echo configure:7005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7006 ac_cv_struct_st_blksize=yes
7008 echo "configure: failed program was:" >&5
7009 cat conftest.$ac_ext >&5
7011 ac_cv_struct_st_blksize=no
7016 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7017 if test $ac_cv_struct_st_blksize = yes; then
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_ST_BLKSIZE 1
7024 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether time.h and sys/time.h may both be included" >&5
7026 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 #include <sys/types.h>
7033 #include <sys/time.h>
7039 if { (eval echo configure:7040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7041 ac_cv_header_time=yes
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 ac_cv_header_time=no
7051 echo "$ac_t""$ac_cv_header_time" 1>&6
7052 if test $ac_cv_header_time = yes; then
7053 cat >> confdefs.h <<\EOF
7054 #define TIME_WITH_SYS_TIME 1
7059 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7060 echo "configure:7061: checking whether struct tm is in sys/time.h or time.h" >&5
7061 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 #include <sys/types.h>
7070 struct tm *tp; tp->tm_sec;
7073 if { (eval echo configure:7074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7075 ac_cv_struct_tm=time.h
7077 echo "configure: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7080 ac_cv_struct_tm=sys/time.h
7085 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7086 if test $ac_cv_struct_tm = sys/time.h; then
7087 cat >> confdefs.h <<\EOF
7088 #define TM_IN_SYS_TIME 1
7095 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7096 echo "configure:7097: checking if toupper() requires islower()" >&5
7097 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7101 if test "$cross_compiling" = yes; then
7102 ol_cv_c_upper_lower=safe
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7111 if ('C' == toupper('C'))
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7119 ol_cv_c_upper_lower=no
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 ol_cv_c_upper_lower=yes
7131 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7132 if test $ol_cv_c_upper_lower != no ; then
7133 cat >> confdefs.h <<\EOF
7134 #define C_UPPER_LOWER 1
7139 echo $ac_n "checking for working const""... $ac_c" 1>&6
7140 echo "configure:7141: checking for working const" >&5
7141 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7150 /* Ultrix mips cc rejects this. */
7151 typedef int charset[2]; const charset x;
7152 /* SunOS 4.1.1 cc rejects this. */
7153 char const *const *ccp;
7155 /* NEC SVR4.0.2 mips cc rejects this. */
7156 struct point {int x, y;};
7157 static struct point const zero = {0,0};
7158 /* AIX XL C 1.02.0.0 rejects this.
7159 It does not let you subtract one const X* pointer from another in an arm
7160 of an if-expression whose if-part is not a constant expression */
7161 const char *g = "string";
7162 ccp = &g + (g ? g-g : 0);
7163 /* HPUX 7.0 cc rejects these. */
7166 ccp = (char const *const *) p;
7167 { /* SCO 3.2v4 cc rejects this. */
7169 char const *s = 0 ? (char *) 0 : (char const *) 0;
7173 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7175 const int *foo = &x[0];
7178 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7179 typedef const int *iptr;
7183 { /* AIX XL C 1.02.0.0 rejects this saying
7184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7185 struct s { int j; const int *ap[3]; };
7186 struct s *b; b->j = 5;
7188 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7194 if { (eval echo configure:7195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7206 echo "$ac_t""$ac_cv_c_const" 1>&6
7207 if test $ac_cv_c_const = no; then
7208 cat >> confdefs.h <<\EOF
7215 if test $cross_compiling = yes ; then
7216 cat >> confdefs.h <<\EOF
7217 #define CROSS_COMPILING 1
7221 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7222 echo "configure:7223: checking whether byte ordering is bigendian" >&5
7223 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7224 echo $ac_n "(cached) $ac_c" 1>&6
7226 ac_cv_c_bigendian=unknown
7227 # See if sys/param.h defines the BYTE_ORDER macro.
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 #include <sys/types.h>
7232 #include <sys/param.h>
7235 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7240 if { (eval echo configure:7241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7242 # It does; now see whether it defined to BIG_ENDIAN or not.
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246 #include <sys/types.h>
7247 #include <sys/param.h>
7250 #if BYTE_ORDER != BIG_ENDIAN
7255 if { (eval echo configure:7256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7257 ac_cv_c_bigendian=yes
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 ac_cv_c_bigendian=no
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7270 if test $ac_cv_c_bigendian = unknown; then
7271 if test "$cross_compiling" = yes; then
7272 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7278 /* Are we little or big endian? From Harbison&Steele. */
7282 char c[sizeof (long)];
7285 exit (u.c[sizeof (long) - 1] == 1);
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7290 ac_cv_c_bigendian=no
7292 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7295 ac_cv_c_bigendian=yes
7303 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7304 if test $ac_cv_c_bigendian = yes; then
7305 cat >> confdefs.h <<\EOF
7306 #define WORDS_BIGENDIAN 1
7311 echo $ac_n "checking size of short""... $ac_c" 1>&6
7312 echo "configure:7313: checking size of short" >&5
7313 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 if test "$cross_compiling" = yes; then
7317 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7319 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7325 FILE *f=fopen("conftestval", "w");
7327 fprintf(f, "%d\n", sizeof(short));
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7333 ac_cv_sizeof_short=`cat conftestval`
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7338 ac_cv_sizeof_short=0
7344 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7345 cat >> confdefs.h <<EOF
7346 #define SIZEOF_SHORT $ac_cv_sizeof_short
7350 echo $ac_n "checking size of int""... $ac_c" 1>&6
7351 echo "configure:7352: checking size of int" >&5
7352 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 if test "$cross_compiling" = yes; then
7356 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7364 FILE *f=fopen("conftestval", "w");
7366 fprintf(f, "%d\n", sizeof(int));
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7372 ac_cv_sizeof_int=`cat conftestval`
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7383 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7384 cat >> confdefs.h <<EOF
7385 #define SIZEOF_INT $ac_cv_sizeof_int
7389 echo $ac_n "checking size of long""... $ac_c" 1>&6
7390 echo "configure:7391: checking size of long" >&5
7391 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 if test "$cross_compiling" = yes; then
7395 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7403 FILE *f=fopen("conftestval", "w");
7405 fprintf(f, "%d\n", sizeof(long));
7409 if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7411 ac_cv_sizeof_long=`cat conftestval`
7413 echo "configure: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7422 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7423 cat >> confdefs.h <<EOF
7424 #define SIZEOF_LONG $ac_cv_sizeof_long
7430 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7431 echo "configure:7432: checking for 8-bit clean memcmp" >&5
7432 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7435 if test "$cross_compiling" = yes; then
7436 ac_cv_func_memcmp_clean=no
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7444 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7445 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7451 ac_cv_func_memcmp_clean=yes
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7456 ac_cv_func_memcmp_clean=no
7463 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7464 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7466 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7467 echo "configure:7468: checking for strftime" >&5
7468 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7471 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char strftime(); below. */
7477 /* Override any gcc2 internal prototype to avoid an error. */
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7484 /* The GNU C library defines this for functions which it implements
7485 to always fail with ENOSYS. Some functions are actually named
7486 something starting with __ and the normal name is an alias. */
7487 #if defined (__stub_strftime) || defined (__stub___strftime)
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7497 eval "ac_cv_func_strftime=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 eval "ac_cv_func_strftime=no"
7507 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 cat >> confdefs.h <<\EOF
7510 #define HAVE_STRFTIME 1
7514 echo "$ac_t""no" 1>&6
7515 # strftime is in -lintl on SCO UNIX.
7516 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7517 echo "configure:7518: checking for strftime in -lintl" >&5
7518 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7522 ac_save_LIBS="$LIBS"
7524 cat > conftest.$ac_ext <<EOF
7525 #line 7526 "configure"
7526 #include "confdefs.h"
7527 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7538 eval "ac_cv_lib_$ac_lib_var=yes"
7540 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7543 eval "ac_cv_lib_$ac_lib_var=no"
7546 LIBS="$ac_save_LIBS"
7549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 cat >> confdefs.h <<\EOF
7552 #define HAVE_STRFTIME 1
7557 echo "$ac_t""no" 1>&6
7562 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7563 echo "configure:7564: checking for vprintf" >&5
7564 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 /* System header to define __stub macros and hopefully few prototypes,
7571 which can conflict with char vprintf(); below. */
7573 /* Override any gcc2 internal prototype to avoid an error. */
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7580 /* The GNU C library defines this for functions which it implements
7581 to always fail with ENOSYS. Some functions are actually named
7582 something starting with __ and the normal name is an alias. */
7583 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7593 eval "ac_cv_func_vprintf=yes"
7595 echo "configure: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7598 eval "ac_cv_func_vprintf=no"
7603 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7604 echo "$ac_t""yes" 1>&6
7605 cat >> confdefs.h <<\EOF
7606 #define HAVE_VPRINTF 1
7610 echo "$ac_t""no" 1>&6
7613 if test "$ac_cv_func_vprintf" != yes; then
7614 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7615 echo "configure:7616: checking for _doprnt" >&5
7616 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char _doprnt(); below. */
7625 /* Override any gcc2 internal prototype to avoid an error. */
7626 /* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7632 /* The GNU C library defines this for functions which it implements
7633 to always fail with ENOSYS. Some functions are actually named
7634 something starting with __ and the normal name is an alias. */
7635 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7645 eval "ac_cv_func__doprnt=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 eval "ac_cv_func__doprnt=no"
7655 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 cat >> confdefs.h <<\EOF
7658 #define HAVE_DOPRNT 1
7662 echo "$ac_t""no" 1>&6
7668 if test $ac_cv_func_vprintf = yes ; then
7669 for ac_func in vsnprintf
7671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7672 echo "configure:7673: checking for $ac_func" >&5
7673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 /* System header to define __stub macros and hopefully few prototypes,
7680 which can conflict with char $ac_func(); below. */
7682 /* Override any gcc2 internal prototype to avoid an error. */
7683 /* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7689 /* The GNU C library defines this for functions which it implements
7690 to always fail with ENOSYS. Some functions are actually named
7691 something starting with __ and the normal name is an alias. */
7692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700 if { (eval echo configure:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7702 eval "ac_cv_func_$ac_func=yes"
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7707 eval "ac_cv_func_$ac_func=no"
7712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7713 echo "$ac_t""yes" 1>&6
7714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7715 cat >> confdefs.h <<EOF
7716 #define $ac_tr_func 1
7720 echo "$ac_t""no" 1>&6
7726 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
7727 echo "configure:7728: checking for wait3 that fills in rusage" >&5
7728 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 if test "$cross_compiling" = yes; then
7732 ac_cv_func_wait3_rusage=no
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 #include <sys/types.h>
7738 #include <sys/time.h>
7739 #include <sys/resource.h>
7741 /* HP-UX has wait3 but does not fill in rusage at all. */
7745 /* Use a field that we can force nonzero --
7746 voluntary context switches.
7747 For systems like NeXT and OSF/1 that don't set it,
7748 also use the system CPU time. And page faults (I/O) for Linux. */
7750 r.ru_stime.tv_sec = 0;
7751 r.ru_stime.tv_usec = 0;
7752 r.ru_majflt = r.ru_minflt = 0;
7754 case 0: /* Child. */
7755 sleep(1); /* Give up the CPU. */
7757 case -1: _exit(0); /* What can we do? */
7758 default: /* Parent. */
7760 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
7761 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
7762 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7768 ac_cv_func_wait3_rusage=yes
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7773 ac_cv_func_wait3_rusage=no
7780 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
7781 if test $ac_cv_func_wait3_rusage = yes; then
7782 cat >> confdefs.h <<\EOF
7783 #define HAVE_WAIT3 1
7820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_func" >&5
7822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char $ac_func(); below. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7851 eval "ac_cv_func_$ac_func=yes"
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7856 eval "ac_cv_func_$ac_func=no"
7861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7864 cat >> confdefs.h <<EOF
7865 #define $ac_tr_func 1
7869 echo "$ac_t""no" 1>&6
7874 for ac_func in getopt strdup tempnam
7876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7877 echo "configure:7878: checking for $ac_func" >&5
7878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 cat > conftest.$ac_ext <<EOF
7882 #line 7883 "configure"
7883 #include "confdefs.h"
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char $ac_func(); below. */
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7894 /* The GNU C library defines this for functions which it implements
7895 to always fail with ENOSYS. Some functions are actually named
7896 something starting with __ and the normal name is an alias. */
7897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7907 eval "ac_cv_func_$ac_func=yes"
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 eval "ac_cv_func_$ac_func=no"
7917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7918 echo "$ac_t""yes" 1>&6
7919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7920 cat >> confdefs.h <<EOF
7921 #define $ac_tr_func 1
7925 echo "$ac_t""no" 1>&6
7926 LIBOBJS="$LIBOBJS ${ac_func}.o"
7932 # Check Configuration
7934 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
7935 echo "configure:7936: checking declaration of sys_errlist" >&5
7936 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7940 cat > conftest.$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7945 #include <sys/types.h>
7948 char *c = (char *) *sys_errlist
7951 if { (eval echo configure:7952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7953 ol_cv_dcl_sys_errlist=yes
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7958 ol_cv_dcl_sys_errlist=no
7963 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
7965 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
7966 if test $ol_cv_dcl_sys_errlist = no ; then
7967 cat >> confdefs.h <<\EOF
7968 #define DECL_SYS_ERRLIST 1
7971 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
7972 echo "configure:7973: checking existence of sys_errlist" >&5
7973 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7982 char *c = (char *) *sys_errlist
7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7987 ol_cv_have_sys_errlist=yes
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7992 ol_cv_have_sys_errlist=no
7997 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8002 if test $ol_enable_debug != no ; then
8003 cat >> confdefs.h <<\EOF
8004 #define LDAP_DEBUG 1
8008 if test $ol_enable_libui = yes ; then
8009 cat >> confdefs.h <<\EOF
8010 #define LDAP_LIBUI 1
8014 if test $ol_enable_cache = no ; then
8015 cat >> confdefs.h <<\EOF
8016 #define LDAP_NOCACHE 1
8020 if test $ol_enable_dns != no ; then
8021 cat >> confdefs.h <<\EOF
8022 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS 1
8026 if test $ol_enable_proctitle != no ; then
8027 cat >> confdefs.h <<\EOF
8028 #define LDAP_PROCTITLE 1
8032 if test $ol_enable_referrals != no ; then
8033 cat >> confdefs.h <<\EOF
8034 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS 1
8038 if test $ol_enable_cldap != no ; then
8039 cat >> confdefs.h <<\EOF
8040 #define LDAP_CONNECTIONLESS 1
8045 if test $ol_enable_aclgroups != no ; then
8046 cat >> confdefs.h <<\EOF
8047 #define SLAPD_ACLGROUPS 1
8051 if test $ol_enable_crypt != no ; then
8052 cat >> confdefs.h <<\EOF
8053 #define SLAPD_CRYPT 1
8057 if test $ol_enable_cleartext != no ; then
8058 cat >> confdefs.h <<\EOF
8059 #define SLAPD_CLEARTEXT 1
8063 if test $ol_enable_phonetic != no ; then
8064 cat >> confdefs.h <<\EOF
8065 #define SLAPD_PHONETIC 1
8069 if test $ol_enable_rlookups != no ; then
8070 cat >> confdefs.h <<\EOF
8071 #define SLAPD_RLOOKUPS 1
8076 if test $ol_link_ldbm != no ; then
8077 cat >> confdefs.h <<\EOF
8078 #define SLAPD_LDBM 1
8085 if test $ol_enable_passwd != no ; then
8086 cat >> confdefs.h <<\EOF
8087 #define SLAPD_PASSWD 1
8094 if test $ol_enable_shell != no ; then
8095 cat >> confdefs.h <<\EOF
8096 #define SLAPD_SHELL 1
8103 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
8104 $BUILD_SLAPD = yes ; then
8108 if test $ol_link_isode != no ; then
8134 cat > confcache <<\EOF
8135 # This file is a shell script that caches the results of configure
8136 # tests run on this system so they can be shared between configure
8137 # scripts and configure runs. It is not useful on other systems.
8138 # If it contains results you don't want to keep, you may remove or edit it.
8140 # By default, configure uses ./config.cache as the cache file,
8141 # creating it if it does not exist already. You can give configure
8142 # the --cache-file=FILE option to use a different cache file; that is
8143 # what configure does when it calls configure scripts in
8144 # subdirectories, so they share the cache.
8145 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8146 # config.status only pays attention to the cache file if you give it the
8147 # --recheck option to rerun configure.
8150 # The following way of writing the cache mishandles newlines in values,
8151 # but we know of no workaround that is simple, portable, and efficient.
8152 # So, don't put newlines in cache variables' values.
8153 # Ultrix sh set writes to stderr and can't be redirected directly,
8154 # and sets the high bit in the cache file unless we assign to the vars.
8156 case `(ac_space=' '; set) 2>&1` in
8158 # `set' does not quote correctly, so add quotes (double-quote substitution
8159 # turns \\\\ into \\, and sed turns \\ into \).
8161 -e "s/'/'\\\\''/g" \
8162 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8165 # `set' quotes correctly as required by POSIX, so do not add quotes.
8166 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8169 if cmp -s $cache_file confcache; then
8172 if test -w $cache_file; then
8173 echo "updating cache $cache_file"
8174 cat confcache > $cache_file
8176 echo "not updating unwritable cache $cache_file"
8181 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8184 # Let make expand exec_prefix.
8185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8187 # Any assignment to VPATH causes Sun make to only execute
8188 # the first set of double-colon rules, so remove it if not needed.
8189 # If there is a colon in the path, we need to keep it.
8190 if test "x$srcdir" = x.; then
8191 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8194 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8196 DEFS=-DHAVE_CONFIG_H
8198 # Without the "./", some shells look in PATH for config.status.
8199 : ${CONFIG_STATUS=./config.status}
8201 echo creating $CONFIG_STATUS
8202 rm -f $CONFIG_STATUS
8203 cat > $CONFIG_STATUS <<EOF
8205 # Generated automatically by configure.
8206 # Run this file to recreate the current configuration.
8207 # This directory was configured as follows,
8208 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8210 # $0 $ac_configure_args
8212 # Compiler output produced by configure, useful for debugging
8213 # configure, is in ./config.log if it exists.
8215 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8218 case "\$ac_option" in
8219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8220 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8221 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8222 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8223 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8225 -help | --help | --hel | --he | --h)
8226 echo "\$ac_cs_usage"; exit 0 ;;
8227 *) echo "\$ac_cs_usage"; exit 1 ;;
8231 ac_given_srcdir=$srcdir
8232 ac_given_INSTALL="$INSTALL"
8234 trap 'rm -fr `echo "\
8235 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8236 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8237 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8238 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8239 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8240 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8241 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8242 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8243 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8244 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8245 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8246 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8247 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8248 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8249 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8250 include/Makefile:build/top.mk:include/Makefile.in \
8251 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8252 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8253 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8254 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8255 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8256 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8257 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8258 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8259 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8260 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8261 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8262 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8263 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8264 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8265 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8266 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8267 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8268 tests/Makefile:build/top.mk:tests/Makefile.in \
8269 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8271 cat >> $CONFIG_STATUS <<EOF
8273 # Protect against being on the right side of a sed subst in config.status.
8274 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8275 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8278 s%@CFLAGS@%$CFLAGS%g
8279 s%@CPPFLAGS@%$CPPFLAGS%g
8280 s%@CXXFLAGS@%$CXXFLAGS%g
8282 s%@LDFLAGS@%$LDFLAGS%g
8284 s%@exec_prefix@%$exec_prefix%g
8285 s%@prefix@%$prefix%g
8286 s%@program_transform_name@%$program_transform_name%g
8287 s%@bindir@%$bindir%g
8288 s%@sbindir@%$sbindir%g
8289 s%@libexecdir@%$libexecdir%g
8290 s%@datadir@%$datadir%g
8291 s%@sysconfdir@%$sysconfdir%g
8292 s%@sharedstatedir@%$sharedstatedir%g
8293 s%@localstatedir@%$localstatedir%g
8294 s%@libdir@%$libdir%g
8295 s%@includedir@%$includedir%g
8296 s%@oldincludedir@%$oldincludedir%g
8297 s%@infodir@%$infodir%g
8298 s%@mandir@%$mandir%g
8299 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8300 s%@INSTALL_DATA@%$INSTALL_DATA%g
8301 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8302 s%@PACKAGE@%$PACKAGE%g
8303 s%@VERSION@%$VERSION%g
8304 s%@ACLOCAL@%$ACLOCAL%g
8305 s%@AUTOCONF@%$AUTOCONF%g
8306 s%@AUTOMAKE@%$AUTOMAKE%g
8307 s%@AUTOHEADER@%$AUTOHEADER%g
8308 s%@MAKEINFO@%$MAKEINFO%g
8309 s%@SET_MAKE@%$SET_MAKE%g
8310 s%@top_builddir@%$top_builddir%g
8311 s%@ldap_subdir@%$ldap_subdir%g
8313 s%@host_alias@%$host_alias%g
8314 s%@host_cpu@%$host_cpu%g
8315 s%@host_vendor@%$host_vendor%g
8316 s%@host_os@%$host_os%g
8317 s%@RANLIB@%$RANLIB%g
8322 s%@LIBTOOL@%$LIBTOOL%g
8323 s%@SENDMAIL@%$SENDMAIL%g
8324 s%@EDITOR@%$EDITOR%g
8325 s%@FINGER@%$FINGER%g
8328 s%@LIBOBJS@%$LIBOBJS%g
8329 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8330 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8331 s%@BUILD_LDBM@%$BUILD_LDBM%g
8332 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8333 s%@BUILD_SHELL@%$BUILD_SHELL%g
8334 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8335 s%@LDAP_LIBS@%$LDAP_LIBS%g
8336 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8337 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8338 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8339 s%@LDBM_LIBS@%$LDBM_LIBS%g
8340 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8341 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8342 s%@KRB_LIBS@%$KRB_LIBS%g
8343 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8348 cat >> $CONFIG_STATUS <<\EOF
8350 # Split the substitutions into bite-sized pieces for seds with
8351 # small command number limits, like on Digital OSF/1 and HP-UX.
8352 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8353 ac_file=1 # Number of current file.
8354 ac_beg=1 # First line for current file.
8355 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8358 while $ac_more_lines; do
8359 if test $ac_beg -gt 1; then
8360 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8362 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8364 if test ! -s conftest.s$ac_file; then
8366 rm -f conftest.s$ac_file
8368 if test -z "$ac_sed_cmds"; then
8369 ac_sed_cmds="sed -f conftest.s$ac_file"
8371 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8373 ac_file=`expr $ac_file + 1`
8375 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8378 if test -z "$ac_sed_cmds"; then
8383 cat >> $CONFIG_STATUS <<EOF
8385 CONFIG_FILES=\${CONFIG_FILES-"\
8386 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8387 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8388 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8389 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8390 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8391 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8392 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8393 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8394 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8395 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8396 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8397 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8398 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8399 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8400 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8401 include/Makefile:build/top.mk:include/Makefile.in \
8402 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8403 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8404 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8405 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8406 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8407 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8408 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8409 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8410 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8411 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8412 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8413 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8414 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8415 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8416 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8417 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8418 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8419 tests/Makefile:build/top.mk:tests/Makefile.in \
8422 cat >> $CONFIG_STATUS <<\EOF
8423 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8426 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8427 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8428 *) ac_file_in="${ac_file}.in" ;;
8431 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8433 # Remove last slash and all that follows it. Not all systems have dirname.
8434 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8435 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8436 # The file is in a subdirectory.
8437 test ! -d "$ac_dir" && mkdir "$ac_dir"
8438 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8439 # A "../" for each directory in $ac_dir_suffix.
8440 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8442 ac_dir_suffix= ac_dots=
8445 case "$ac_given_srcdir" in
8447 if test -z "$ac_dots"; then top_srcdir=.
8448 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8449 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8451 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8452 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8455 case "$ac_given_INSTALL" in
8456 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8457 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8460 echo creating "$ac_file"
8462 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8464 *Makefile*) ac_comsub="1i\\
8465 # $configure_input" ;;
8469 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8471 s%@configure_input@%$configure_input%g
8472 s%@srcdir@%$srcdir%g
8473 s%@top_srcdir@%$top_srcdir%g
8474 s%@INSTALL@%$INSTALL%g
8475 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8479 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8480 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8482 # ac_d sets the value in "#define NAME VALUE" lines.
8483 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8484 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8487 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8488 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8489 ac_uB='\([ ]\)%\1#\2define\3'
8492 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8493 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8494 ac_eB='$%\1#\2define\3'
8498 if test "${CONFIG_HEADERS+set}" != set; then
8500 cat >> $CONFIG_STATUS <<EOF
8501 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
8503 cat >> $CONFIG_STATUS <<\EOF
8505 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8506 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8508 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8509 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8510 *) ac_file_in="${ac_file}.in" ;;
8513 echo creating $ac_file
8515 rm -f conftest.frag conftest.in conftest.out
8516 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8517 cat $ac_file_inputs > conftest.in
8521 # Transform confdefs.h into a sed script conftest.vals that substitutes
8522 # the proper values into config.h.in to produce config.h. And first:
8523 # Protect against being on the right side of a sed subst in config.status.
8524 # Protect against being in an unquoted here document in config.status.
8526 cat > conftest.hdr <<\EOF
8529 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8533 sed -n -f conftest.hdr confdefs.h > conftest.vals
8536 # This sed command replaces #undef with comments. This is necessary, for
8537 # example, in the case of _POSIX_SOURCE, which is predefined and required
8538 # on some systems where configure will not decide to define it.
8539 cat >> conftest.vals <<\EOF
8540 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8543 # Break up conftest.vals because some shells have a limit on
8544 # the size of here documents, and old seds have small limits too.
8549 ac_lines=`grep -c . conftest.vals`
8550 # grep -c gives empty output for an empty file on some AIX systems.
8551 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8552 # Write a limited-size here document to conftest.frag.
8553 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8554 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8556 sed -f conftest.frag conftest.in > conftest.out
8558 mv conftest.out conftest.in
8560 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8562 mv conftest.tail conftest.vals
8566 cat >> $CONFIG_STATUS <<\EOF
8567 rm -f conftest.frag conftest.h
8568 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8569 cat conftest.in >> conftest.h
8571 if cmp -s $ac_file conftest.h 2>/dev/null; then
8572 echo "$ac_file is unchanged"
8575 # Remove last slash and all that follows it. Not all systems have dirname.
8576 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8577 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8578 # The file is in a subdirectory.
8579 test ! -d "$ac_dir" && mkdir "$ac_dir"
8582 mv conftest.h $ac_file
8587 cat >> $CONFIG_STATUS <<EOF
8590 cat >> $CONFIG_STATUS <<\EOF
8593 echo Please \"make depend\" to build dependencies
8597 chmod +x $CONFIG_STATUS
8598 rm -fr confdefs* $ac_clean_files
8599 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1