3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (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 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --with-bdb2-module module type (static)"
72 --enable-ldap enable ldap backend (no)"
74 --with-ldap-module module type (static)"
76 --enable-ldbm enable ldbm backend (yes)"
78 --with-ldbm-module module type (static)"
80 --with-ldbm-api use LDBM API (auto)"
82 --with-ldbm-type use LDBM type (auto)"
84 --enable-passwd enable passwd backend (no)"
86 --with-passwd-module module type (static)"
88 --enable-perl enable perl backend (no)"
90 --with-perl-module module type (static)"
92 --enable-shell enable shell backend (no)"
94 --with-shell-module module type (static)"
96 --enable-tcl enable tcl backend (no)"
98 --with-tcl-module module type (static)"
102 --enable-slurpd enable building slurpd (auto)"
104 Library Generation & Linking Options"
106 --enable-static build static libraries [default=yes]
107 --enable-static=PKGS only build shared libraries if the current package
108 appears as an element in the PKGS list"
110 --enable-shared build shared libraries [default=yes]
111 --enable-shared=PKGS only build shared libraries if the current package
112 appears as an element in the PKGS list"
114 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
116 # Initialize some variables set by options.
117 # The variables have the same names as the options, with
118 # dashes changed to underlines.
120 cache_file=./config.cache
129 program_transform_name=s,x,x,
137 bindir='${exec_prefix}/bin'
138 sbindir='${exec_prefix}/sbin'
139 libexecdir='${exec_prefix}/libexec'
140 datadir='${prefix}/share'
141 sysconfdir='${prefix}/etc'
142 sharedstatedir='${prefix}/com'
143 localstatedir='${prefix}/var'
144 libdir='${exec_prefix}/lib'
145 includedir='${prefix}/include'
146 oldincludedir='/usr/include'
147 infodir='${prefix}/info'
148 mandir='${prefix}/man'
150 # Initialize some other variables.
153 SHELL=${CONFIG_SHELL-/bin/sh}
154 # Maximum number of lines to put in a shell here document.
161 # If the previous option needs an argument, assign it.
162 if test -n "$ac_prev"; then
163 eval "$ac_prev=\$ac_option"
169 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
173 # Accept the important Cygnus configure options, so we can diagnose typos.
177 -bindir | --bindir | --bindi | --bind | --bin | --bi)
179 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
180 bindir="$ac_optarg" ;;
182 -build | --build | --buil | --bui | --bu)
184 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
185 build="$ac_optarg" ;;
187 -cache-file | --cache-file | --cache-fil | --cache-fi \
188 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
189 ac_prev=cache_file ;;
190 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
191 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
192 cache_file="$ac_optarg" ;;
194 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
196 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
198 datadir="$ac_optarg" ;;
200 -disable-* | --disable-*)
201 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
202 # Reject names that are not valid shell variable names.
203 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
204 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
206 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
207 eval "enable_${ac_feature}=no" ;;
209 -enable-* | --enable-*)
210 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
211 # Reject names that are not valid shell variable names.
212 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
213 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
215 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
220 eval "enable_${ac_feature}='$ac_optarg'" ;;
222 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
223 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
224 | --exec | --exe | --ex)
225 ac_prev=exec_prefix ;;
226 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
227 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
228 | --exec=* | --exe=* | --ex=*)
229 exec_prefix="$ac_optarg" ;;
231 -gas | --gas | --ga | --g)
232 # Obsolete; use --with-gas.
235 -help | --help | --hel | --he)
236 # Omit some internal or obsolete options to make the list less imposing.
237 # This message is too long to be a string in the A/UX 3.1 sh.
239 Usage: configure [options] [host]
240 Options: [defaults in brackets after descriptions]
242 --cache-file=FILE cache test results in FILE
243 --help print this message
244 --no-create do not create output files
245 --quiet, --silent do not print \`checking...' messages
246 --version print the version of autoconf that created configure
247 Directory and file names:
248 --prefix=PREFIX install architecture-independent files in PREFIX
250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
252 --bindir=DIR user executables in DIR [EPREFIX/bin]
253 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
254 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
255 --datadir=DIR read-only architecture-independent data in DIR
257 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
258 --sharedstatedir=DIR modifiable architecture-independent data in DIR
260 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
261 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
262 --includedir=DIR C header files in DIR [PREFIX/include]
263 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
264 --infodir=DIR info documentation in DIR [PREFIX/info]
265 --mandir=DIR man documentation in DIR [PREFIX/man]
266 --srcdir=DIR find the sources in DIR [configure dir or ..]
267 --program-prefix=PREFIX prepend PREFIX to installed program names
268 --program-suffix=SUFFIX append SUFFIX to installed program names
269 --program-transform-name=PROGRAM
270 run sed PROGRAM on installed program names
274 --build=BUILD configure for building on BUILD [BUILD=HOST]
275 --host=HOST configure for HOST [guessed]
276 --target=TARGET configure for TARGET [TARGET=HOST]
277 Features and packages:
278 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
279 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
280 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
281 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
282 --x-includes=DIR X include files are in DIR
283 --x-libraries=DIR X library files are in DIR
285 if test -n "$ac_help"; then
286 echo "--enable and --with options recognized:$ac_help"
290 -host | --host | --hos | --ho)
292 -host=* | --host=* | --hos=* | --ho=*)
295 -includedir | --includedir | --includedi | --included | --include \
296 | --includ | --inclu | --incl | --inc)
297 ac_prev=includedir ;;
298 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
299 | --includ=* | --inclu=* | --incl=* | --inc=*)
300 includedir="$ac_optarg" ;;
302 -infodir | --infodir | --infodi | --infod | --info | --inf)
304 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
305 infodir="$ac_optarg" ;;
307 -libdir | --libdir | --libdi | --libd)
309 -libdir=* | --libdir=* | --libdi=* | --libd=*)
310 libdir="$ac_optarg" ;;
312 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
313 | --libexe | --libex | --libe)
314 ac_prev=libexecdir ;;
315 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
316 | --libexe=* | --libex=* | --libe=*)
317 libexecdir="$ac_optarg" ;;
319 -localstatedir | --localstatedir | --localstatedi | --localstated \
320 | --localstate | --localstat | --localsta | --localst \
321 | --locals | --local | --loca | --loc | --lo)
322 ac_prev=localstatedir ;;
323 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
324 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
325 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
326 localstatedir="$ac_optarg" ;;
328 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
330 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
331 mandir="$ac_optarg" ;;
334 # Obsolete; use --without-fp.
337 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
341 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
342 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
345 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
346 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
347 | --oldin | --oldi | --old | --ol | --o)
348 ac_prev=oldincludedir ;;
349 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
350 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
351 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
352 oldincludedir="$ac_optarg" ;;
354 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
356 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
357 prefix="$ac_optarg" ;;
359 -program-prefix | --program-prefix | --program-prefi | --program-pref \
360 | --program-pre | --program-pr | --program-p)
361 ac_prev=program_prefix ;;
362 -program-prefix=* | --program-prefix=* | --program-prefi=* \
363 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
364 program_prefix="$ac_optarg" ;;
366 -program-suffix | --program-suffix | --program-suffi | --program-suff \
367 | --program-suf | --program-su | --program-s)
368 ac_prev=program_suffix ;;
369 -program-suffix=* | --program-suffix=* | --program-suffi=* \
370 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
371 program_suffix="$ac_optarg" ;;
373 -program-transform-name | --program-transform-name \
374 | --program-transform-nam | --program-transform-na \
375 | --program-transform-n | --program-transform- \
376 | --program-transform | --program-transfor \
377 | --program-transfo | --program-transf \
378 | --program-trans | --program-tran \
379 | --progr-tra | --program-tr | --program-t)
380 ac_prev=program_transform_name ;;
381 -program-transform-name=* | --program-transform-name=* \
382 | --program-transform-nam=* | --program-transform-na=* \
383 | --program-transform-n=* | --program-transform-=* \
384 | --program-transform=* | --program-transfor=* \
385 | --program-transfo=* | --program-transf=* \
386 | --program-trans=* | --program-tran=* \
387 | --progr-tra=* | --program-tr=* | --program-t=*)
388 program_transform_name="$ac_optarg" ;;
390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
391 | -silent | --silent | --silen | --sile | --sil)
394 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
396 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
398 sbindir="$ac_optarg" ;;
400 -sharedstatedir | --sharedstatedir | --sharedstatedi \
401 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
402 | --sharedst | --shareds | --shared | --share | --shar \
404 ac_prev=sharedstatedir ;;
405 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
406 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
407 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
409 sharedstatedir="$ac_optarg" ;;
411 -site | --site | --sit)
413 -site=* | --site=* | --sit=*)
416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
419 srcdir="$ac_optarg" ;;
421 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
422 | --syscon | --sysco | --sysc | --sys | --sy)
423 ac_prev=sysconfdir ;;
424 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
425 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
426 sysconfdir="$ac_optarg" ;;
428 -target | --target | --targe | --targ | --tar | --ta | --t)
430 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
431 target="$ac_optarg" ;;
433 -v | -verbose | --verbose | --verbos | --verbo | --verb)
436 -version | --version | --versio | --versi | --vers)
437 echo "configure generated by autoconf version 2.13"
441 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package=`echo $ac_package| sed 's/-/_/g'`
451 eval "with_${ac_package}='$ac_optarg'" ;;
453 -without-* | --without-*)
454 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
455 # Reject names that are not valid shell variable names.
456 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
457 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
459 ac_package=`echo $ac_package| sed 's/-/_/g'`
460 eval "with_${ac_package}=no" ;;
463 # Obsolete; use --with-x.
466 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
467 | --x-incl | --x-inc | --x-in | --x-i)
468 ac_prev=x_includes ;;
469 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
470 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
471 x_includes="$ac_optarg" ;;
473 -x-libraries | --x-libraries | --x-librarie | --x-librari \
474 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
475 ac_prev=x_libraries ;;
476 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
477 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
478 x_libraries="$ac_optarg" ;;
480 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
484 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
485 echo "configure: warning: $ac_option: invalid host type" 1>&2
487 if test "x$nonopt" != xNONE; then
488 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
496 if test -n "$ac_prev"; then
497 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
500 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
502 # File descriptor usage:
505 # 2 errors and warnings
506 # 3 some systems may open it to /dev/tty
507 # 4 used on the Kubota Titan
508 # 6 checking for... messages and results
509 # 5 compiler messages saved in config.log
510 if test "$silent" = yes; then
518 This file contains any messages produced by compilers while
519 running configure, to aid debugging if configure makes a mistake.
522 # Strip out --no-create and --no-recursion so they do not pile up.
523 # Also quote any args containing shell metacharacters.
528 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
529 | --no-cr | --no-c) ;;
530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
532 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
533 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
534 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
539 # Only set these to C if already set. These must not be set unconditionally
540 # because not all systems understand e.g. LANG=C (notably SCO).
541 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
542 # Non-C LC_CTYPE values break the ctype check.
543 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
544 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
545 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
546 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
548 # confdefs.h avoids OS command line length limits that DEFS can exceed.
549 rm -rf conftest* confdefs.h
550 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
553 # A filename unique to this package, relative to the directory that
554 # configure is in, which we can look for to find out if srcdir is correct.
555 ac_unique_file=build/version
557 # Find the source files, if location was not specified.
558 if test -z "$srcdir"; then
559 ac_srcdir_defaulted=yes
560 # Try the directory containing this script, then its parent.
562 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
563 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
565 if test ! -r $srcdir/$ac_unique_file; then
569 ac_srcdir_defaulted=no
571 if test ! -r $srcdir/$ac_unique_file; then
572 if test "$ac_srcdir_defaulted" = yes; then
573 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
575 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
578 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
580 # Prefer explicitly selected file to automatically selected ones.
581 if test -z "$CONFIG_SITE"; then
582 if test "x$prefix" != xNONE; then
583 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
585 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
588 for ac_site_file in $CONFIG_SITE; do
589 if test -r "$ac_site_file"; then
590 echo "loading site script $ac_site_file"
597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
598 ac_cpp='$CPP $CPPFLAGS'
599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
601 cross_compiling=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
614 ac_n= ac_c='\c' ac_t=
618 for ac_dir in build $srcdir/build; do
619 if test -f $ac_dir/install-sh; then
621 ac_install_sh="$ac_aux_dir/install-sh -c"
623 elif test -f $ac_dir/install.sh; then
625 ac_install_sh="$ac_aux_dir/install.sh -c"
629 if test -z "$ac_aux_dir"; then
630 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
632 ac_config_guess=$ac_aux_dir/config.guess
633 ac_config_sub=$ac_aux_dir/config.sub
634 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
636 OL_VERSION=`cat $ac_aux_dir/version`
637 if test -z "$OL_VERSION"; then
638 { echo "configure: error: could not determine version" 1>&2; exit 1; }
642 # Do some error checking and defaulting for the host and target type.
644 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
647 # 1. You are not allowed to specify --host, --target, and nonopt at the
649 # 2. Host defaults to nonopt.
650 # 3. If nonopt is not specified, then host defaults to the current host,
651 # as determined by config.guess.
652 # 4. Target and build default to nonopt.
653 # 5. If nonopt is not specified, then target and build default to host.
655 # The aliases save the names the user supplied, while $host etc.
656 # will get canonicalized.
657 case $host---$target---$nonopt in
658 NONE---*---* | *---NONE---* | *---*---NONE) ;;
659 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
663 # Make sure we can run config.sub.
664 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
665 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
668 echo $ac_n "checking host system type""... $ac_c" 1>&6
669 echo "configure:670: checking host system type" >&5
672 case "$host_alias" in
676 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
677 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679 *) host_alias=$nonopt ;;
683 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
684 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$host" 1>&6
689 echo $ac_n "checking target system type""... $ac_c" 1>&6
690 echo "configure:691: checking target system type" >&5
693 case "$target_alias" in
696 NONE) target_alias=$host_alias ;;
697 *) target_alias=$nonopt ;;
701 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
702 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
703 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
704 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
705 echo "$ac_t""$target" 1>&6
707 echo $ac_n "checking build system type""... $ac_c" 1>&6
708 echo "configure:709: checking build system type" >&5
711 case "$build_alias" in
714 NONE) build_alias=$host_alias ;;
715 *) build_alias=$nonopt ;;
719 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
720 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
721 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
722 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
723 echo "$ac_t""$build" 1>&6
725 test "$host_alias" != "$target_alias" &&
726 test "$program_prefix$program_suffix$program_transform_name" = \
728 program_prefix=${target_alias}-
731 # Find a good install program. We prefer a C program (faster),
732 # so one script is as good as another. But avoid the broken or
733 # incompatible versions:
734 # SysV /etc/install, /usr/sbin/install
735 # SunOS /usr/etc/install
738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
741 # ./install, which can be erroneously created by make from ./install.sh.
742 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
743 echo "configure:744: checking for a BSD compatible install" >&5
744 if test -z "$INSTALL"; then
745 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
749 for ac_dir in $PATH; do
750 # Account for people who put trailing slashes in PATH elements.
752 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
754 # OSF1 and SCO ODT 3.0 have their own names for install.
755 # Don't use installbsd from OSF since it installs stuff as root
757 for ac_prog in ginstall scoinst install; do
758 if test -f $ac_dir/$ac_prog; then
759 if test $ac_prog = install &&
760 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
761 # AIX install. It has an incompatible calling convention.
764 ac_cv_path_install="$ac_dir/$ac_prog -c"
775 if test "${ac_cv_path_install+set}" = set; then
776 INSTALL="$ac_cv_path_install"
778 # As a last resort, use the slow shell script. We don't cache a
779 # path for INSTALL within a source directory, because that will
780 # break other packages using the cache if that directory is
781 # removed, or if the path is relative.
782 INSTALL="$ac_install_sh"
785 echo "$ac_t""$INSTALL" 1>&6
787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
788 # It thinks the first close brace ends the variable substitution.
789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
795 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
796 echo "configure:797: checking whether build environment is sane" >&5
799 echo timestamp > conftestfile
800 # Do `set' in a subshell so we don't clobber the current shell's
801 # arguments. Must try -L first in case configure is actually a
802 # symlink; some systems play weird games with the mod time of symlinks
803 # (eg FreeBSD returns the mod time of the symlink's containing
806 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
807 if test "$*" = "X"; then
809 set X `ls -t $srcdir/configure conftestfile`
811 if test "$*" != "X $srcdir/configure conftestfile" \
812 && test "$*" != "X conftestfile $srcdir/configure"; then
814 # If neither matched, then we have a broken ls. This can happen
815 # if, for instance, CONFIG_SHELL is bash and it inherits a
816 # broken ls alias from the environment. This has actually
817 # happened. Such a system could not be considered "sane".
818 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
819 alias in your environment" 1>&2; exit 1; }
822 test "$2" = conftestfile
828 { echo "configure: error: newly created file is older than distributed files!
829 Check your system clock" 1>&2; exit 1; }
832 echo "$ac_t""yes" 1>&6
833 if test "$program_transform_name" = s,x,x,; then
834 program_transform_name=
836 # Double any \ or $. echo might interpret backslashes.
837 cat <<\EOF_SED > conftestsed
838 s,\\,\\\\,g; s,\$,$$,g
840 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
843 test "$program_prefix" != NONE &&
844 program_transform_name="s,^,${program_prefix},; $program_transform_name"
845 # Use a double $ so make ignores it.
846 test "$program_suffix" != NONE &&
847 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
849 # sed with no file args requires a program.
850 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
852 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
853 echo "configure:854: checking whether ${MAKE-make} sets \${MAKE}" >&5
854 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
855 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 cat > conftestmake <<\EOF
860 @echo 'ac_maketemp="${MAKE}"'
862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
863 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
864 if test -n "$ac_maketemp"; then
865 eval ac_cv_prog_make_${ac_make}_set=yes
867 eval ac_cv_prog_make_${ac_make}_set=no
871 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
872 echo "$ac_t""yes" 1>&6
875 echo "$ac_t""no" 1>&6
876 SET_MAKE="MAKE=${MAKE-make}"
884 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
885 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
890 missing_dir=`cd $ac_aux_dir && pwd`
891 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
892 echo "configure:893: checking for working aclocal" >&5
893 # Run test in a subshell; some versions of sh will print an error if
894 # an executable is not found, even if stderr is redirected.
895 # Redirect stdin to placate older versions of autoconf. Sigh.
896 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
898 echo "$ac_t""found" 1>&6
900 ACLOCAL="$missing_dir/missing aclocal"
901 echo "$ac_t""missing" 1>&6
904 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
905 echo "configure:906: checking for working autoconf" >&5
906 # Run test in a subshell; some versions of sh will print an error if
907 # an executable is not found, even if stderr is redirected.
908 # Redirect stdin to placate older versions of autoconf. Sigh.
909 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
911 echo "$ac_t""found" 1>&6
913 AUTOCONF="$missing_dir/missing autoconf"
914 echo "$ac_t""missing" 1>&6
917 echo $ac_n "checking for working automake""... $ac_c" 1>&6
918 echo "configure:919: checking for working automake" >&5
919 # Run test in a subshell; some versions of sh will print an error if
920 # an executable is not found, even if stderr is redirected.
921 # Redirect stdin to placate older versions of autoconf. Sigh.
922 if (automake --version) < /dev/null > /dev/null 2>&1; then
924 echo "$ac_t""found" 1>&6
926 AUTOMAKE="$missing_dir/missing automake"
927 echo "$ac_t""missing" 1>&6
930 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
931 echo "configure:932: checking for working autoheader" >&5
932 # Run test in a subshell; some versions of sh will print an error if
933 # an executable is not found, even if stderr is redirected.
934 # Redirect stdin to placate older versions of autoconf. Sigh.
935 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
936 AUTOHEADER=autoheader
937 echo "$ac_t""found" 1>&6
939 AUTOHEADER="$missing_dir/missing autoheader"
940 echo "$ac_t""missing" 1>&6
943 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
944 echo "configure:945: checking for working makeinfo" >&5
945 # Run test in a subshell; some versions of sh will print an error if
946 # an executable is not found, even if stderr is redirected.
947 # Redirect stdin to placate older versions of autoconf. Sigh.
948 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
950 echo "$ac_t""found" 1>&6
952 MAKEINFO="$missing_dir/missing makeinfo"
953 echo "$ac_t""missing" 1>&6
958 cat >> confdefs.h <<EOF
959 #define OPENLDAP_PACKAGE "$PACKAGE"
962 cat >> confdefs.h <<EOF
963 #define OPENLDAP_VERSION "$VERSION"
969 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
970 echo "configure:971: checking configure arguments" >&5
975 cat >> confdefs.h <<\EOF
976 #define HAVE_MKVERSION 1
980 ldap_subdir="openldap"
982 # Check whether --with-subdir or --without-subdir was given.
983 if test "${with_subdir+set}" = set; then
984 withval="$with_subdir"
986 if test "$withval" = "no"; then
988 elif test "$withval" != "yes"; then
989 ldap_subdir="$withval"
995 # OpenLDAP --enable-debug
996 # Check whether --enable-debug or --disable-debug was given.
997 if test "${enable_debug+set}" = set; then
998 enableval="$enable_debug"
1001 for ol_val in auto yes no ; do
1002 if test "$enableval" = "$ol_val" ; then
1006 if test "$ol_arg" = "invalid" ; then
1007 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1009 ol_enable_debug="$ol_arg"
1012 ol_enable_debug="yes"
1014 # end --enable-debug
1015 # OpenLDAP --enable-syslog
1016 # Check whether --enable-syslog or --disable-syslog was given.
1017 if test "${enable_syslog+set}" = set; then
1018 enableval="$enable_syslog"
1021 for ol_val in auto yes no ; do
1022 if test "$enableval" = "$ol_val" ; then
1026 if test "$ol_arg" = "invalid" ; then
1027 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1029 ol_enable_syslog="$ol_arg"
1032 ol_enable_syslog="auto"
1034 # end --enable-syslog
1035 # OpenLDAP --enable-proctitle
1036 # Check whether --enable-proctitle or --disable-proctitle was given.
1037 if test "${enable_proctitle+set}" = set; then
1038 enableval="$enable_proctitle"
1041 for ol_val in auto yes no ; do
1042 if test "$enableval" = "$ol_val" ; then
1046 if test "$ol_arg" = "invalid" ; then
1047 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1049 ol_enable_proctitle="$ol_arg"
1052 ol_enable_proctitle="yes"
1054 # end --enable-proctitle
1055 # OpenLDAP --enable-cache
1056 # Check whether --enable-cache or --disable-cache was given.
1057 if test "${enable_cache+set}" = set; then
1058 enableval="$enable_cache"
1061 for ol_val in auto yes no ; do
1062 if test "$enableval" = "$ol_val" ; then
1066 if test "$ol_arg" = "invalid" ; then
1067 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1069 ol_enable_cache="$ol_arg"
1072 ol_enable_cache="yes"
1074 # end --enable-cache
1075 # OpenLDAP --enable-dns
1076 # Check whether --enable-dns or --disable-dns was given.
1077 if test "${enable_dns+set}" = set; then
1078 enableval="$enable_dns"
1081 for ol_val in auto yes no ; do
1082 if test "$enableval" = "$ol_val" ; then
1086 if test "$ol_arg" = "invalid" ; then
1087 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1089 ol_enable_dns="$ol_arg"
1095 # OpenLDAP --enable-referrals
1096 # Check whether --enable-referrals or --disable-referrals was given.
1097 if test "${enable_referrals+set}" = set; then
1098 enableval="$enable_referrals"
1101 for ol_val in auto yes no ; do
1102 if test "$enableval" = "$ol_val" ; then
1106 if test "$ol_arg" = "invalid" ; then
1107 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1109 ol_enable_referrals="$ol_arg"
1112 ol_enable_referrals="yes"
1114 # end --enable-referrals
1115 # OpenLDAP --enable-cldap
1116 # Check whether --enable-cldap or --disable-cldap was given.
1117 if test "${enable_cldap+set}" = set; then
1118 enableval="$enable_cldap"
1121 for ol_val in auto yes no ; do
1122 if test "$enableval" = "$ol_val" ; then
1126 if test "$ol_arg" = "invalid" ; then
1127 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1129 ol_enable_cldap="$ol_arg"
1132 ol_enable_cldap="no"
1134 # end --enable-cldap
1135 # OpenLDAP --enable-x_compile
1136 # Check whether --enable-x_compile or --disable-x_compile was given.
1137 if test "${enable_x_compile+set}" = set; then
1138 enableval="$enable_x_compile"
1141 for ol_val in yes no ; do
1142 if test "$enableval" = "$ol_val" ; then
1146 if test "$ol_arg" = "invalid" ; then
1147 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1149 ol_enable_x_compile="$ol_arg"
1152 ol_enable_x_compile="no"
1154 # end --enable-x_compile
1156 # OpenLDAP --enable-dmalloc
1157 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1158 if test "${enable_dmalloc+set}" = set; then
1159 enableval="$enable_dmalloc"
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-dmalloc" 1>&2; exit 1; }
1170 ol_enable_dmalloc="$ol_arg"
1173 ol_enable_dmalloc="no"
1175 # end --enable-dmalloc
1177 # OpenLDAP --with-kerberos
1178 # Check whether --with-kerberos or --without-kerberos was given.
1179 if test "${with_kerberos+set}" = set; then
1180 withval="$with_kerberos"
1183 for ol_val in auto k5 k4 afs yes no ; do
1184 if test "$withval" = "$ol_val" ; then
1188 if test "$ol_arg" = "invalid" ; then
1189 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1191 ol_with_kerberos="$ol_arg"
1194 ol_with_kerberos="auto"
1196 # end --with-kerberos
1198 # OpenLDAP --with-readline
1199 # Check whether --with-readline or --without-readline was given.
1200 if test "${with_readline+set}" = set; then
1201 withval="$with_readline"
1204 for ol_val in auto yes no ; do
1205 if test "$withval" = "$ol_val" ; then
1209 if test "$ol_arg" = "invalid" ; then
1210 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1212 ol_with_readline="$ol_arg"
1215 ol_with_readline="auto"
1217 # end --with-readline
1219 # OpenLDAP --with-threads
1220 # Check whether --with-threads or --without-threads was given.
1221 if test "${with_threads+set}" = set; then
1222 withval="$with_threads"
1225 for ol_val in auto posix mach lwp yes no manual ; do
1226 if test "$withval" = "$ol_val" ; then
1230 if test "$ol_arg" = "invalid" ; then
1231 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1233 ol_with_threads="$ol_arg"
1236 ol_with_threads="auto"
1238 # end --with-threads
1240 # OpenLDAP --with-tls
1241 # Check whether --with-tls or --without-tls was given.
1242 if test "${with_tls+set}" = set; then
1246 for ol_val in auto ssleay openssl yes no ; do
1247 if test "$withval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1254 ol_with_tls="$ol_arg"
1261 # OpenLDAP --with-yielding_select
1262 # Check whether --with-yielding_select or --without-yielding_select was given.
1263 if test "${with_yielding_select+set}" = set; then
1264 withval="$with_yielding_select"
1267 for ol_val in auto yes no manual ; do
1268 if test "$withval" = "$ol_val" ; then
1272 if test "$ol_arg" = "invalid" ; then
1273 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1275 ol_with_yielding_select="$ol_arg"
1278 ol_with_yielding_select="auto"
1280 # end --with-yielding_select
1284 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1285 if test "${with_xxldapdoptions+set}" = set; then
1286 withval="$with_xxldapdoptions"
1290 # OpenLDAP --enable-ldapd
1291 # Check whether --enable-ldapd or --disable-ldapd was given.
1292 if test "${enable_ldapd+set}" = set; then
1293 enableval="$enable_ldapd"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1304 ol_enable_ldapd="$ol_arg"
1307 ol_enable_ldapd="no"
1309 # end --enable-ldapd
1311 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1312 if test "${with_xxslapdoptions+set}" = set; then
1313 withval="$with_xxslapdoptions"
1317 # OpenLDAP --enable-slapd
1318 # Check whether --enable-slapd or --disable-slapd was given.
1319 if test "${enable_slapd+set}" = set; then
1320 enableval="$enable_slapd"
1323 for ol_val in auto yes no ; do
1324 if test "$enableval" = "$ol_val" ; then
1328 if test "$ol_arg" = "invalid" ; then
1329 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1331 ol_enable_slapd="$ol_arg"
1334 ol_enable_slapd="yes"
1336 # end --enable-slapd
1337 # OpenLDAP --enable-aclgroups
1338 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1339 if test "${enable_aclgroups+set}" = set; then
1340 enableval="$enable_aclgroups"
1343 for ol_val in auto yes no ; do
1344 if test "$enableval" = "$ol_val" ; then
1348 if test "$ol_arg" = "invalid" ; then
1349 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1351 ol_enable_aclgroups="$ol_arg"
1354 ol_enable_aclgroups="auto"
1356 # end --enable-aclgroups
1357 # OpenLDAP --enable-cleartext
1358 # Check whether --enable-cleartext or --disable-cleartext was given.
1359 if test "${enable_cleartext+set}" = set; then
1360 enableval="$enable_cleartext"
1363 for ol_val in auto yes no ; do
1364 if test "$enableval" = "$ol_val" ; then
1368 if test "$ol_arg" = "invalid" ; then
1369 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1371 ol_enable_cleartext="$ol_arg"
1374 ol_enable_cleartext="yes"
1376 # end --enable-cleartext
1377 # OpenLDAP --enable-crypt
1378 # Check whether --enable-crypt or --disable-crypt was given.
1379 if test "${enable_crypt+set}" = set; then
1380 enableval="$enable_crypt"
1383 for ol_val in auto yes no ; do
1384 if test "$enableval" = "$ol_val" ; then
1388 if test "$ol_arg" = "invalid" ; then
1389 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1391 ol_enable_crypt="$ol_arg"
1394 ol_enable_crypt="auto"
1396 # end --enable-crypt
1397 # OpenLDAP --enable-modules
1398 # Check whether --enable-modules or --disable-modules was given.
1399 if test "${enable_modules+set}" = set; then
1400 enableval="$enable_modules"
1403 for ol_val in auto yes no ; do
1404 if test "$enableval" = "$ol_val" ; then
1408 if test "$ol_arg" = "invalid" ; then
1409 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1411 ol_enable_modules="$ol_arg"
1414 ol_enable_modules="no"
1416 # end --enable-modules
1417 # OpenLDAP --enable-phonetic
1418 # Check whether --enable-phonetic or --disable-phonetic was given.
1419 if test "${enable_phonetic+set}" = set; then
1420 enableval="$enable_phonetic"
1423 for ol_val in auto yes no ; do
1424 if test "$enableval" = "$ol_val" ; then
1428 if test "$ol_arg" = "invalid" ; then
1429 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1431 ol_enable_phonetic="$ol_arg"
1434 ol_enable_phonetic="no"
1436 # end --enable-phonetic
1437 # OpenLDAP --enable-rlookups
1438 # Check whether --enable-rlookups or --disable-rlookups was given.
1439 if test "${enable_rlookups+set}" = set; then
1440 enableval="$enable_rlookups"
1443 for ol_val in auto yes no ; do
1444 if test "$enableval" = "$ol_val" ; then
1448 if test "$ol_arg" = "invalid" ; then
1449 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1451 ol_enable_rlookups="$ol_arg"
1454 ol_enable_rlookups="auto"
1456 # end --enable-rlookups
1457 # OpenLDAP --enable-wrappers
1458 # Check whether --enable-wrappers or --disable-wrappers was given.
1459 if test "${enable_wrappers+set}" = set; then
1460 enableval="$enable_wrappers"
1463 for ol_val in auto yes no ; do
1464 if test "$enableval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1471 ol_enable_wrappers="$ol_arg"
1474 ol_enable_wrappers="no"
1476 # end --enable-wrappers
1478 # OpenLDAP --enable-bdb2
1479 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1480 if test "${enable_bdb2+set}" = set; then
1481 enableval="$enable_bdb2"
1484 for ol_val in auto yes no ; do
1485 if test "$enableval" = "$ol_val" ; then
1489 if test "$ol_arg" = "invalid" ; then
1490 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1492 ol_enable_bdb2="$ol_arg"
1498 # OpenLDAP --with-bdb2_module
1499 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1500 if test "${with_bdb2_module+set}" = set; then
1501 withval="$with_bdb2_module"
1504 for ol_val in static dynamic ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1512 ol_with_bdb2_module="$ol_arg"
1515 ol_with_bdb2_module="static"
1517 # end --with-bdb2_module
1519 # OpenLDAP --enable-ldap
1520 # Check whether --enable-ldap or --disable-ldap was given.
1521 if test "${enable_ldap+set}" = set; then
1522 enableval="$enable_ldap"
1525 for ol_val in auto yes no ; do
1526 if test "$enableval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1533 ol_enable_ldap="$ol_arg"
1539 # OpenLDAP --with-ldap_module
1540 # Check whether --with-ldap_module or --without-ldap_module was given.
1541 if test "${with_ldap_module+set}" = set; then
1542 withval="$with_ldap_module"
1545 for ol_val in static dynamic ; do
1546 if test "$withval" = "$ol_val" ; then
1550 if test "$ol_arg" = "invalid" ; then
1551 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1553 ol_with_ldap_module="$ol_arg"
1556 ol_with_ldap_module="static"
1558 # end --with-ldap_module
1560 # OpenLDAP --enable-ldbm
1561 # Check whether --enable-ldbm or --disable-ldbm was given.
1562 if test "${enable_ldbm+set}" = set; then
1563 enableval="$enable_ldbm"
1566 for ol_val in auto yes no ; do
1567 if test "$enableval" = "$ol_val" ; then
1571 if test "$ol_arg" = "invalid" ; then
1572 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1574 ol_enable_ldbm="$ol_arg"
1577 ol_enable_ldbm="yes"
1580 # OpenLDAP --with-ldbm_module
1581 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1582 if test "${with_ldbm_module+set}" = set; then
1583 withval="$with_ldbm_module"
1586 for ol_val in static dynamic ; do
1587 if test "$withval" = "$ol_val" ; then
1591 if test "$ol_arg" = "invalid" ; then
1592 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1594 ol_with_ldbm_module="$ol_arg"
1597 ol_with_ldbm_module="static"
1599 # end --with-ldbm_module
1601 # OpenLDAP --with-ldbm_api
1602 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1603 if test "${with_ldbm_api+set}" = set; then
1604 withval="$with_ldbm_api"
1607 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1608 if test "$withval" = "$ol_val" ; then
1612 if test "$ol_arg" = "invalid" ; then
1613 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1615 ol_with_ldbm_api="$ol_arg"
1618 ol_with_ldbm_api="auto"
1620 # end --with-ldbm_api
1622 # OpenLDAP --with-ldbm_type
1623 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1624 if test "${with_ldbm_type+set}" = set; then
1625 withval="$with_ldbm_type"
1628 for ol_val in auto btree hash ; do
1629 if test "$withval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1636 ol_with_ldbm_type="$ol_arg"
1639 ol_with_ldbm_type="auto"
1641 # end --with-ldbm_type
1644 # OpenLDAP --enable-passwd
1645 # Check whether --enable-passwd or --disable-passwd was given.
1646 if test "${enable_passwd+set}" = set; then
1647 enableval="$enable_passwd"
1650 for ol_val in auto yes no ; do
1651 if test "$enableval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1658 ol_enable_passwd="$ol_arg"
1661 ol_enable_passwd="no"
1663 # end --enable-passwd
1664 # OpenLDAP --with-passwd_module
1665 # Check whether --with-passwd_module or --without-passwd_module was given.
1666 if test "${with_passwd_module+set}" = set; then
1667 withval="$with_passwd_module"
1670 for ol_val in static dynamic ; do
1671 if test "$withval" = "$ol_val" ; then
1675 if test "$ol_arg" = "invalid" ; then
1676 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1678 ol_with_passwd_module="$ol_arg"
1681 ol_with_passwd_module="static"
1683 # end --with-passwd_module
1685 # OpenLDAP --enable-perl
1686 # Check whether --enable-perl or --disable-perl was given.
1687 if test "${enable_perl+set}" = set; then
1688 enableval="$enable_perl"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1699 ol_enable_perl="$ol_arg"
1705 # OpenLDAP --with-perl_module
1706 # Check whether --with-perl_module or --without-perl_module was given.
1707 if test "${with_perl_module+set}" = set; then
1708 withval="$with_perl_module"
1711 for ol_val in static dynamic ; do
1712 if test "$withval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1719 ol_with_perl_module="$ol_arg"
1722 ol_with_perl_module="static"
1724 # end --with-perl_module
1726 # OpenLDAP --enable-shell
1727 # Check whether --enable-shell or --disable-shell was given.
1728 if test "${enable_shell+set}" = set; then
1729 enableval="$enable_shell"
1732 for ol_val in auto yes no ; do
1733 if test "$enableval" = "$ol_val" ; then
1737 if test "$ol_arg" = "invalid" ; then
1738 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1740 ol_enable_shell="$ol_arg"
1743 ol_enable_shell="no"
1745 # end --enable-shell
1746 # OpenLDAP --with-shell_module
1747 # Check whether --with-shell_module or --without-shell_module was given.
1748 if test "${with_shell_module+set}" = set; then
1749 withval="$with_shell_module"
1752 for ol_val in static dynamic ; do
1753 if test "$withval" = "$ol_val" ; then
1757 if test "$ol_arg" = "invalid" ; then
1758 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1760 ol_with_shell_module="$ol_arg"
1763 ol_with_shell_module="static"
1765 # end --with-shell_module
1767 # OpenLDAP --enable-tcl
1768 # Check whether --enable-tcl or --disable-tcl was given.
1769 if test "${enable_tcl+set}" = set; then
1770 enableval="$enable_tcl"
1773 for ol_val in auto yes no ; do
1774 if test "$enableval" = "$ol_val" ; then
1778 if test "$ol_arg" = "invalid" ; then
1779 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1781 ol_enable_tcl="$ol_arg"
1787 # OpenLDAP --with-tcl_module
1788 # Check whether --with-tcl_module or --without-tcl_module was given.
1789 if test "${with_tcl_module+set}" = set; then
1790 withval="$with_tcl_module"
1793 for ol_val in static dynamic ; do
1794 if test "$withval" = "$ol_val" ; then
1798 if test "$ol_arg" = "invalid" ; then
1799 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1801 ol_with_tcl_module="$ol_arg"
1804 ol_with_tcl_module="static"
1806 # end --with-tcl_module
1809 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1810 if test "${with_xxslurpdoptions+set}" = set; then
1811 withval="$with_xxslurpdoptions"
1815 # OpenLDAP --enable-slurpd
1816 # Check whether --enable-slurpd or --disable-slurpd was given.
1817 if test "${enable_slurpd+set}" = set; then
1818 enableval="$enable_slurpd"
1821 for ol_val in auto yes no ; do
1822 if test "$enableval" = "$ol_val" ; then
1826 if test "$ol_arg" = "invalid" ; then
1827 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1829 ol_enable_slurpd="$ol_arg"
1832 ol_enable_slurpd="auto"
1834 # end --enable-slurpd
1836 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1837 if test "${with_xxliboptions+set}" = set; then
1838 withval="$with_xxliboptions"
1842 # Check whether --enable-static or --disable-static was given.
1843 if test "${enable_static+set}" = set; then
1844 enableval="$enable_static"
1845 p=${PACKAGE-default}
1846 case "$enableval" in
1847 yes) enable_static=yes ;;
1848 no) enable_static=no ;;
1851 # Look at the argument we got. We use all the common list separators.
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1853 for pkg in $enableval; do
1854 if test "X$pkg" = "X$p"; then
1865 # Check whether --enable-shared or --disable-shared was given.
1866 if test "${enable_shared+set}" = set; then
1867 enableval="$enable_shared"
1868 p=${PACKAGE-default}
1869 case "$enableval" in
1870 yes) enable_shared=yes ;;
1871 no) enable_shared=no ;;
1874 # Look at the argument we got. We use all the common list separators.
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1876 for pkg in $enableval; do
1877 if test "X$pkg" = "X$p"; then
1890 if test $ol_enable_dns = yes ; then
1891 if test $ol_enable_referrals = no ; then
1892 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1894 if test $ol_enable_referrals = auto ; then
1895 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1896 ol_enable_referrals=yes
1900 if test $ol_enable_slapd = no ; then
1901 if test $ol_enable_bdb2 = yes ; then
1902 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1904 if test $ol_enable_ldap = yes ; then
1905 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1907 if test $ol_enable_ldbm = yes ; then
1908 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1910 if test $ol_enable_passwd = yes ; then
1911 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1913 if test $ol_enable_perl = yes ; then
1914 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1916 if test $ol_enable_shell = yes ; then
1917 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1919 if test $ol_enable_tcl = yes ; then
1920 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1922 if test $ol_enable_aclgroups = yes ; then
1923 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1925 if test $ol_enable_modules = yes ; then
1926 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1928 if test $ol_enable_wrappers = yes ; then
1929 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1931 if test $ol_enable_phonetic = yes ; then
1932 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1934 if test $ol_enable_rlookups = yes ; then
1935 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1937 if test $ol_with_ldbm_api != auto ; then
1938 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1940 if test $ol_with_ldbm_type != auto ; then
1941 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1943 if test $ol_with_bdb2_module != static ; then
1944 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
1946 if test $ol_with_ldap_module != static ; then
1947 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
1949 if test $ol_with_ldbm_module != static ; then
1950 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
1952 if test $ol_with_passwd_module != static ; then
1953 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
1955 if test $ol_with_perl_module != static ; then
1956 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
1958 if test $ol_with_shell_module != static ; then
1959 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
1961 if test $ol_with_tcl_module != static ; then
1962 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
1964 if test $ol_enable_slurpd = yes ; then
1965 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1968 # force settings to no
1977 ol_enable_aclgroups=no
1978 ol_enable_modules=no
1979 ol_enable_phonetic=no
1980 ol_enable_rlookups=no
1981 ol_enable_wrappers=no
1984 ol_with_ldbm_type=no
1986 ol_with_bdb2_module=static
1987 ol_with_ldap_module=static
1988 ol_with_ldbm_module=static
1989 ol_with_passwd_module=static
1990 ol_with_perl_module=static
1991 ol_with_shell_module=static
1992 ol_with_tcl_module=static
1996 elif test $ol_enable_ldbm = no ; then
1998 if test $ol_with_ldbm_api != auto ; then
1999 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2002 if test $ol_with_ldbm_type != auto ; then
2003 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2006 if test $ol_with_ldbm_module != static ; then
2007 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2010 if test $ol_enable_bdb2 = yes ; then
2011 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2014 if test $ol_enable_modules != yes -a \
2015 $ol_enable_ldap = no -a \
2016 $ol_enable_passwd = no -a \
2017 $ol_enable_perl = no -a \
2018 $ol_enable_shell = no -a \
2019 $ol_enable_tcl = no ; then
2020 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2024 ol_with_ldbm_type=no
2025 ol_with_ldbm_module=static
2027 elif test $ol_enable_bdb2 = yes ; then
2029 if test $ol_with_ldbm_api != auto -a \
2030 $ol_with_ldbm_api != db2 ; then
2031 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2034 ol_with_ldbm_api=db2
2038 if test $ol_enable_bdb2 != no ; then
2039 if test $ol_with_ldbm_api != auto -a \
2040 $ol_with_ldbm_api != db2 ; then
2041 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2046 if test $ol_with_ldbm_api = gdbm -a \
2047 $ol_with_ldbm_type = btree ; then
2048 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2050 if test $ol_with_ldbm_api = mdbm -a \
2051 $ol_with_ldbm_type = btree ; then
2052 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2054 if test $ol_with_ldbm_api = ndbm -a \
2055 $ol_with_ldbm_type = btree ; then
2056 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2060 if test $ol_enable_slurpd = yes ; then
2061 if test $ol_with_threads = no ; then
2062 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2066 echo "$ac_t""done" 1>&6
2091 BUILD_BDB2_DYNAMIC=no
2092 BUILD_LDAP_DYNAMIC=no
2093 BUILD_LDBM_DYNAMIC=no
2094 BUILD_PASSWD_DYNAMIC=no
2095 BUILD_PERL_DYNAMIC=no
2096 BUILD_SHELL_DYNAMIC=no
2097 BUILD_TCL_DYNAMIC=no
2099 SLAPD_MODULES_LDFLAGS=
2100 SLAPD_MODULES_CPPFLAGS=
2103 SLAPD_PERL_CPPFLAGS=
2115 *-*-aix*) if test -z "CC" ; then
2116 case "$ol_with_threads" in
2117 auto | yes | posix) ol_aix_threads=yes ;;
2123 if test $ol_aix_threads = yes ; then
2124 if test -z "${CC}" ; then
2125 for ac_prog in cc_r xlc_r cc
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy $ac_prog; ac_word=$2
2129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_word" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2139 for ac_dir in $ac_dummy; do
2140 test -z "$ac_dir" && ac_dir=.
2141 if test -f $ac_dir/$ac_word; then
2142 ac_cv_prog_CC="$ac_prog"
2150 if test -n "$CC"; then
2151 echo "$ac_t""$CC" 1>&6
2153 echo "$ac_t""no" 1>&6
2156 test -n "$CC" && break
2160 if test "$CC" = cc ; then
2161 if test $ol_with_threads != auto ; then
2162 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2164 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2170 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2171 ol_with_threads=posix
2172 ol_cv_pthread_create=yes
2176 if test -z "${CC}"; then
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 for ac_dir in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/$ac_word; then
2194 ac_cv_prog_CC="$ac_prog"
2202 if test -n "$CC"; then
2203 echo "$ac_t""$CC" 1>&6
2205 echo "$ac_t""no" 1>&6
2208 test -n "$CC" && break
2214 # Extract the first word of "ranlib", so it can be a program name with args.
2215 set dummy ranlib; ac_word=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 if test -n "$RANLIB"; then
2222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2226 for ac_dir in $ac_dummy; do
2227 test -z "$ac_dir" && ac_dir=.
2228 if test -f $ac_dir/$ac_word; then
2229 ac_cv_prog_RANLIB="ranlib"
2234 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2237 RANLIB="$ac_cv_prog_RANLIB"
2238 if test -n "$RANLIB"; then
2239 echo "$ac_t""$RANLIB" 1>&6
2241 echo "$ac_t""no" 1>&6
2244 # Extract the first word of "gcc", so it can be a program name with args.
2245 set dummy gcc; ac_word=$2
2246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_word" >&5
2248 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2256 for ac_dir in $ac_dummy; do
2257 test -z "$ac_dir" && ac_dir=.
2258 if test -f $ac_dir/$ac_word; then
2267 if test -n "$CC"; then
2268 echo "$ac_t""$CC" 1>&6
2270 echo "$ac_t""no" 1>&6
2273 if test -z "$CC"; then
2274 # Extract the first word of "cc", so it can be a program name with args.
2275 set dummy cc; ac_word=$2
2276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_word" >&5
2278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2287 for ac_dir in $ac_dummy; do
2288 test -z "$ac_dir" && ac_dir=.
2289 if test -f $ac_dir/$ac_word; then
2290 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2291 ac_prog_rejected=yes
2299 if test $ac_prog_rejected = yes; then
2300 # We found a bogon in the path, so make sure we never use it.
2301 set dummy $ac_cv_prog_CC
2303 if test $# -gt 0; then
2304 # We chose a different compiler from the bogus one.
2305 # However, it has the same basename, so the bogon will be chosen
2306 # first if we set CC to just the basename; use the full file name.
2308 set dummy "$ac_dir/$ac_word" "$@"
2316 if test -n "$CC"; then
2317 echo "$ac_t""$CC" 1>&6
2319 echo "$ac_t""no" 1>&6
2322 if test -z "$CC"; then
2323 case "`uname -s`" in
2325 # Extract the first word of "cl", so it can be a program name with args.
2326 set dummy cl; ac_word=$2
2327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2328 echo "configure:2329: checking for $ac_word" >&5
2329 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2337 for ac_dir in $ac_dummy; do
2338 test -z "$ac_dir" && ac_dir=.
2339 if test -f $ac_dir/$ac_word; then
2348 if test -n "$CC"; then
2349 echo "$ac_t""$CC" 1>&6
2351 echo "$ac_t""no" 1>&6
2356 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2359 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2360 echo "configure:2361: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2367 cross_compiling=$ac_cv_prog_cc_cross
2369 cat > conftest.$ac_ext << EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2377 ac_cv_prog_cc_works=yes
2378 # If we can't run a trivial program, we are probably using a cross compiler.
2379 if (./conftest; exit) 2>/dev/null; then
2380 ac_cv_prog_cc_cross=no
2382 ac_cv_prog_cc_cross=yes
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 ac_cv_prog_cc_works=no
2391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2395 cross_compiling=$ac_cv_prog_cc_cross
2397 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2398 if test $ac_cv_prog_cc_works = no; then
2399 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2402 echo "configure:2403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2403 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2404 cross_compiling=$ac_cv_prog_cc_cross
2406 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2407 echo "configure:2408: checking whether we are using GNU C" >&5
2408 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.c <<EOF
2416 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2423 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2425 if test $ac_cv_prog_gcc = yes; then
2431 ac_test_CFLAGS="${CFLAGS+set}"
2432 ac_save_CFLAGS="$CFLAGS"
2434 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2435 echo "configure:2436: checking whether ${CC-cc} accepts -g" >&5
2436 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 echo 'void f(){}' > conftest.c
2440 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2449 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2450 if test "$ac_test_CFLAGS" = set; then
2451 CFLAGS="$ac_save_CFLAGS"
2452 elif test $ac_cv_prog_cc_g = yes; then
2453 if test "$GCC" = yes; then
2459 if test "$GCC" = yes; then
2466 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2467 if test "${with_gnu_ld+set}" = set; then
2468 withval="$with_gnu_ld"
2469 test "$withval" = no || with_gnu_ld=yes
2476 if test "$ac_cv_prog_gcc" = yes; then
2477 # Check if gcc -print-prog-name=ld gives a path.
2478 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2479 echo "configure:2480: checking for ld used by GCC" >&5
2480 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2482 # Accept absolute paths.
2484 test -z "$LD" && LD="$ac_prog"
2487 # If it fails, then pretend we aren't using GCC.
2491 # If it is relative, then search for the first ld in PATH.
2495 elif test "$with_gnu_ld" = yes; then
2496 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2497 echo "configure:2498: checking for GNU ld" >&5
2499 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2500 echo "configure:2501: checking for non-GNU ld" >&5
2502 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 if test -z "$LD"; then
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2507 for ac_dir in $PATH; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f "$ac_dir/$ac_prog"; then
2510 ac_cv_path_LD="$ac_dir/$ac_prog"
2511 # Check to see if the program is GNU ld. I'd rather use --version,
2512 # but apparently some GNU ld's only accept -v.
2513 # Break only if it was the GNU/non-GNU ld that we prefer.
2514 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2515 test "$with_gnu_ld" != no && break
2517 test "$with_gnu_ld" != yes && break
2523 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2528 if test -n "$LD"; then
2529 echo "$ac_t""$LD" 1>&6
2531 echo "$ac_t""no" 1>&6
2533 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2535 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2536 echo "configure:2537: checking if the linker ($LD) is GNU ld" >&5
2537 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2541 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2542 ac_cv_prog_gnu_ld=yes
2544 ac_cv_prog_gnu_ld=no
2548 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2551 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2552 echo "configure:2553: checking for BSD-compatible nm" >&5
2553 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2558 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2562 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2563 test -z "$ac_dir" && ac_dir=.
2564 if test -f $ac_dir/nm; then
2565 # Check to see if the nm accepts a BSD-compat flag.
2566 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2567 # nm: unknown option "B" ignored
2568 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2569 ac_cv_path_NM="$ac_dir/nm -B"
2570 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2571 ac_cv_path_NM="$ac_dir/nm -p"
2573 ac_cv_path_NM="$ac_dir/nm"
2579 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2585 echo "$ac_t""$NM" 1>&6
2588 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2589 echo "configure:2590: checking whether ln -s works" >&5
2590 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2594 if ln -s X conftestdata 2>/dev/null
2597 ac_cv_prog_LN_S="ln -s"
2602 LN_S="$ac_cv_prog_LN_S"
2603 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2604 echo "$ac_t""yes" 1>&6
2606 echo "$ac_t""no" 1>&6
2609 # Always use our own libtool.
2610 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2612 # Check for any special flags to pass to ltconfig.
2614 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2615 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2616 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2617 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2618 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2620 # Some flags need to be propagated to the compiler or linker for good
2624 # Find out which ABI we are using.
2625 echo '#line 2626 "configure"' > conftest.$ac_ext
2626 if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2627 case "`/usr/bin/file conftest.o`" in
2643 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2644 CFLAGS="$CFLAGS -belf"
2648 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2649 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2650 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2651 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2652 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2653 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2656 for ac_prog in mawk gawk nawk awk
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$AWK"; then
2666 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2670 for ac_dir in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if test -f $ac_dir/$ac_word; then
2673 ac_cv_prog_AWK="$ac_prog"
2680 AWK="$ac_cv_prog_AWK"
2681 if test -n "$AWK"; then
2682 echo "$ac_t""$AWK" 1>&6
2684 echo "$ac_t""no" 1>&6
2687 test -n "$AWK" && break
2690 # test for ln hardlink support
2691 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2692 echo "configure:2693: checking whether ln works" >&5
2693 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 rm -f conftest.src conftest.dst
2697 echo "conftest" > conftest.src
2698 if ln conftest.src conftest.dst 2>/dev/null
2700 ol_cv_prog_LN_H="ln"
2702 ol_cv_prog_LN_H="cp"
2704 rm -f conftest.src conftest.dst
2707 LN_H="$ol_cv_prog_LN_H"
2708 if test "$ol_cv_prog_LN_H" = "ln"; then
2709 echo "$ac_t""yes" 1>&6
2711 echo "$ac_t""no" 1>&6
2714 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2715 echo "configure:2716: checking whether ln -s works" >&5
2716 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2720 if ln -s X conftestdata 2>/dev/null
2723 ac_cv_prog_LN_S="ln -s"
2728 LN_S="$ac_cv_prog_LN_S"
2729 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2730 echo "$ac_t""yes" 1>&6
2732 echo "$ac_t""no" 1>&6
2736 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2740 # Extract the first word of "sendmail", so it can be a program name with args.
2741 set dummy sendmail; ac_word=$2
2742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_word" >&5
2744 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2749 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2752 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2756 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2765 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2769 SENDMAIL="$ac_cv_path_SENDMAIL"
2770 if test -n "$SENDMAIL"; then
2771 echo "$ac_t""$SENDMAIL" 1>&6
2773 echo "$ac_t""no" 1>&6
2776 # Extract the first word of "vi", so it can be a program name with args.
2777 set dummy vi; ac_word=$2
2778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_word" >&5
2780 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2788 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2792 ac_dummy="$PATH:/usr/ucb"
2793 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2801 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2805 EDITOR="$ac_cv_path_EDITOR"
2806 if test -n "$EDITOR"; then
2807 echo "$ac_t""$EDITOR" 1>&6
2809 echo "$ac_t""no" 1>&6
2812 # Extract the first word of "finger", so it can be a program name with args.
2813 set dummy finger; ac_word=$2
2814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_word" >&5
2816 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2821 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2824 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2828 ac_dummy="$PATH:/usr/ucb"
2829 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=.
2831 if test -f $ac_dir/$ac_word; then
2832 ac_cv_path_FINGER="$ac_dir/$ac_word"
2837 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2841 FINGER="$ac_cv_path_FINGER"
2842 if test -n "$FINGER"; then
2843 echo "$ac_t""$FINGER" 1>&6
2845 echo "$ac_t""no" 1>&6
2850 if test $ol_enable_modules != no ; then
2851 # Extract the first word of "glib-config", so it can be a program name with args.
2852 set dummy glib-config; ac_word=$2
2853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_word" >&5
2855 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 case "$GLIBCONFIG" in
2860 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2863 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2868 for ac_dir in $ac_dummy; do
2869 test -z "$ac_dir" && ac_dir=.
2870 if test -f $ac_dir/$ac_word; then
2871 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2879 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2880 if test -n "$GLIBCONFIG"; then
2881 echo "$ac_t""$GLIBCONFIG" 1>&6
2883 echo "$ac_t""no" 1>&6
2887 if test "no$GLIBCONFIG" = "no" ; then
2888 if test $ol_enable_modules = yes ; then
2889 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2893 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2894 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2895 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2900 ol_with_bdb2_module=static
2901 ol_with_ldap_module=static
2902 ol_with_ldbm_module=static
2903 ol_with_passwd_module=static
2904 ol_with_perl_module=static
2905 ol_with_shell_module=static
2906 ol_with_tcl_module=static
2910 if test $ol_enable_perl != no ; then
2911 # Extract the first word of "perl", so it can be a program name with args.
2912 set dummy perl; ac_word=$2
2913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_word" >&5
2915 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2920 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2923 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2931 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2936 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2940 PERLBIN="$ac_cv_path_PERLBIN"
2941 if test -n "$PERLBIN"; then
2942 echo "$ac_t""$PERLBIN" 1>&6
2944 echo "$ac_t""no" 1>&6
2948 if test "no$PERLBIN" = "no" ; then
2949 if test $ol_enable_perl = yes ; then
2950 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2954 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2955 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2961 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2962 echo "configure:2963: checking how to run the C preprocessor" >&5
2963 # On Suns, sometimes $CPP names a directory.
2964 if test -n "$CPP" && test -d "$CPP"; then
2967 if test -z "$CPP"; then
2968 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 # This must be in double quotes, not single quotes, because CPP may get
2972 # substituted into the Makefile and "${CC-cc}" will confuse make.
2974 # On the NeXT, cc -E runs the code through the compiler's parser,
2975 # not just through cpp.
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2983 { (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2985 if test -z "$ac_err"; then
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 CPP="${CC-cc} -E -traditional-cpp"
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3000 { (eval echo configure:3001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3002 if test -z "$ac_err"; then
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 CPP="${CC-cc} -nologo -E"
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3017 { (eval echo configure:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3019 if test -z "$ac_err"; then
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3033 ac_cv_prog_CPP="$CPP"
3035 CPP="$ac_cv_prog_CPP"
3037 ac_cv_prog_CPP="$CPP"
3039 echo "$ac_t""$CPP" 1>&6
3042 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3043 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3045 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3046 echo "configure: warning: programs compiled here do run here..." 1>&2
3047 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3049 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3050 echo "configure: warning: programs compiled here do not run here..." 1>&2
3051 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3054 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3055 echo "configure:3056: checking for AIX" >&5
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065 egrep "yes" >/dev/null 2>&1; then
3067 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3068 #define _ALL_SOURCE 1
3073 echo "$ac_t""no" 1>&6
3078 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3079 echo "configure:3080: checking for POSIXized ISC" >&5
3080 if test -d /etc/conf/kconfig.d &&
3081 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3083 echo "$ac_t""yes" 1>&6
3084 ISC=yes # If later tests want to check for ISC.
3085 cat >> confdefs.h <<\EOF
3086 #define _POSIX_SOURCE 1
3089 if test "$GCC" = yes; then
3095 echo "$ac_t""no" 1>&6
3099 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3100 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3101 echo "configure:3102: checking for minix/config.h" >&5
3102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 #include <minix/config.h>
3110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3111 { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3113 if test -z "$ac_err"; then
3115 eval "ac_cv_header_$ac_safe=yes"
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3121 eval "ac_cv_header_$ac_safe=no"
3125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3129 echo "$ac_t""no" 1>&6
3133 if test "$MINIX" = yes; then
3134 cat >> confdefs.h <<\EOF
3135 #define _POSIX_SOURCE 1
3138 cat >> confdefs.h <<\EOF
3139 #define _POSIX_1_SOURCE 2
3142 cat >> confdefs.h <<\EOF
3149 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3150 echo "configure:3151: checking for be_app in -lbe" >&5
3151 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 ac_save_LIBS="$LIBS"
3156 LIBS="-lbe -lroot -lnet $LIBS"
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3171 eval "ac_cv_lib_$ac_lib_var=yes"
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3176 eval "ac_cv_lib_$ac_lib_var=no"
3179 LIBS="$ac_save_LIBS"
3182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 LIBS="$LIBS -lbe -lroot -lnet"
3186 echo "$ac_t""no" 1>&6
3191 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3192 echo "configure:3193: checking for Cygwin environment" >&5
3193 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3203 #define __CYGWIN__ __CYGWIN32__
3208 if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3221 echo "$ac_t""$ac_cv_cygwin" 1>&6
3223 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3224 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3225 echo "configure:3226: checking for mingw32 environment" >&5
3226 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3250 echo "$ac_t""$ac_cv_mingw32" 1>&6
3252 test "$ac_cv_mingw32" = yes && MINGW32=yes
3255 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3256 echo "configure:3257: checking for executable suffix" >&5
3257 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3264 echo 'int main () { return 0; }' > conftest.$ac_ext
3266 if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3267 for file in conftest.*; do
3269 *.c | *.o | *.obj) ;;
3270 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3274 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3277 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3282 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3283 echo "$ac_t""${ac_cv_exeext}" 1>&6
3286 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3287 echo "configure:3288: checking for object suffix" >&5
3288 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3292 echo 'int i = 1;' > conftest.$ac_ext
3293 if { (eval echo configure:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294 for ac_file in conftest.*; do
3297 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3301 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3306 echo "$ac_t""$ac_cv_objext" 1>&6
3307 OBJEXT=$ac_cv_objext
3308 ac_objext=$ac_cv_objext
3311 cat >> confdefs.h <<EOF
3312 #define EXEEXT "${EXEEXT}"
3319 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3320 echo "configure:3321: checking for ${CC-cc} option to accept ANSI C" >&5
3321 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 am_cv_prog_cc_stdc=no
3326 # Don't try gcc -ansi; that turns off useful extensions and
3327 # breaks some systems' header files.
3328 # AIX -qlanglvl=ansi
3329 # Ultrix and OSF/1 -std1
3330 # HP-UX -Aa -D_HPUX_SOURCE
3331 # SVR4 -Xc -D__EXTENSIONS__
3332 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 CC="$ac_save_CC $ac_arg"
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3340 #include <sys/types.h>
3341 #include <sys/stat.h>
3342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343 struct buf { int x; };
3344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345 static char *e (p, i)
3351 static char *f (char * (*g) (char **, int), char **p, ...)
3356 s = g (p, va_arg (v,int));
3360 int test (int i, double x);
3361 struct s1 {int (*f) (int a);};
3362 struct s2 {int (*f) (double a);};
3363 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3369 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375 am_cv_prog_cc_stdc="$ac_arg"; break
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3386 if test -z "$am_cv_prog_cc_stdc"; then
3387 echo "$ac_t""none needed" 1>&6
3389 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3391 case "x$am_cv_prog_cc_stdc" in
3393 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3396 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3397 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3401 # test for make depend flag
3404 if test -z "${MKDEP}"; then
3406 if test -z "${MKDEP_FLAGS}"; then
3407 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3408 echo "configure:3409: checking for ${OL_MKDEP} depend flag" >&5
3409 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3414 for flag in "-M" "-xM"; do
3415 cat > conftest.c <<EOF
3418 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3419 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3421 if test ! -f conftest."${ac_object}" ; then
3423 OL_MKDEP_FLAGS="$flag"
3432 echo "$ac_t""$ol_cv_mkdep" 1>&6
3435 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3440 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3445 if test "${ol_cv_mkdep}" = no ; then
3446 # this will soon become an error
3447 echo "configure: warning: do not know how to generate dependencies" 1>&2
3452 echo $ac_n "checking for socket""... $ac_c" 1>&6
3453 echo "configure:3454: checking for socket" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char socket(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_socket) || defined (__stub___socket)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_socket=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_socket=no"
3493 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3497 echo "$ac_t""no" 1>&6
3499 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3500 echo "configure:3501: checking for main in -lsocket" >&5
3501 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 ac_save_LIBS="$LIBS"
3506 LIBS="-lsocket $LIBS"
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3517 eval "ac_cv_lib_$ac_lib_var=yes"
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 eval "ac_cv_lib_$ac_lib_var=no"
3525 LIBS="$ac_save_LIBS"
3528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3531 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3532 cat >> confdefs.h <<EOF
3533 #define $ac_tr_lib 1
3536 LIBS="-lsocket $LIBS"
3539 echo "$ac_t""no" 1>&6
3542 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3543 echo "configure:3544: checking for main in -lnet" >&5
3544 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 ac_save_LIBS="$LIBS"
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3560 eval "ac_cv_lib_$ac_lib_var=yes"
3562 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3565 eval "ac_cv_lib_$ac_lib_var=no"
3568 LIBS="$ac_save_LIBS"
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3573 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3574 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3575 cat >> confdefs.h <<EOF
3576 #define $ac_tr_lib 1
3582 echo "$ac_t""no" 1>&6
3585 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3586 echo "configure:3587: checking for socket in -lnet" >&5
3587 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 ac_save_LIBS="$LIBS"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* Override any gcc2 internal prototype to avoid an error. */
3597 /* We use char because int might match the return type of a gcc2
3598 builtin and then its argument prototype would still apply. */
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 eval "ac_cv_lib_$ac_lib_var=yes"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 eval "ac_cv_lib_$ac_lib_var=no"
3615 LIBS="$ac_save_LIBS"
3618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3622 cat >> confdefs.h <<EOF
3623 #define $ac_tr_lib 1
3629 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3633 echo "configure:3634: checking for main in -lnsl_s" >&5
3634 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-lnsl_s $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3648 if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3650 eval "ac_cv_lib_$ac_lib_var=yes"
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3655 eval "ac_cv_lib_$ac_lib_var=no"
3658 LIBS="$ac_save_LIBS"
3661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3663 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3665 cat >> confdefs.h <<EOF
3666 #define $ac_tr_lib 1
3669 LIBS="-lnsl_s $LIBS"
3672 echo "$ac_t""no" 1>&6
3675 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3676 echo "configure:3677: checking for main in -lnsl" >&5
3677 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 ac_save_LIBS="$LIBS"
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3691 if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3693 eval "ac_cv_lib_$ac_lib_var=yes"
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 eval "ac_cv_lib_$ac_lib_var=no"
3701 LIBS="$ac_save_LIBS"
3704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3705 echo "$ac_t""yes" 1>&6
3706 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3708 cat >> confdefs.h <<EOF
3709 #define $ac_tr_lib 1
3715 echo "$ac_t""no" 1>&6
3718 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3719 echo "configure:3720: checking for socket in -linet" >&5
3720 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 ac_save_LIBS="$LIBS"
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 /* Override any gcc2 internal prototype to avoid an error. */
3730 /* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3738 if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 eval "ac_cv_lib_$ac_lib_var=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3745 eval "ac_cv_lib_$ac_lib_var=no"
3748 LIBS="$ac_save_LIBS"
3751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3755 cat >> confdefs.h <<EOF
3756 #define $ac_tr_lib 1
3762 echo "$ac_t""no" 1>&6
3765 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3766 echo "configure:3767: checking for main in -lgen" >&5
3767 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_save_LIBS="$LIBS"
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 eval "ac_cv_lib_$ac_lib_var=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_lib_$ac_lib_var=no"
3791 LIBS="$ac_save_LIBS"
3794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3798 cat >> confdefs.h <<EOF
3799 #define $ac_tr_lib 1
3805 echo "$ac_t""no" 1>&6
3812 for ac_func in res_search
3814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_func" >&5
3816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* System header to define __stub macros and hopefully few prototypes,
3823 which can conflict with char $ac_func(); below. */
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3845 eval "ac_cv_func_$ac_func=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3850 eval "ac_cv_func_$ac_func=no"
3855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3858 cat >> confdefs.h <<EOF
3859 #define $ac_tr_func 1
3863 echo "$ac_t""no" 1>&6
3867 if test $ac_cv_func_res_search = "no" ; then
3868 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3869 echo "configure:3870: checking for res_search in -lbind" >&5
3870 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS="$LIBS"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890 eval "ac_cv_lib_$ac_lib_var=yes"
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3895 eval "ac_cv_lib_$ac_lib_var=no"
3898 LIBS="$ac_save_LIBS"
3901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3902 echo "$ac_t""yes" 1>&6
3903 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3904 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3905 cat >> confdefs.h <<EOF
3906 #define $ac_tr_lib 1
3912 echo "$ac_t""no" 1>&6
3915 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3916 cat >> confdefs.h <<\EOF
3917 #define HAVE_RES_SEARCH 1
3921 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3922 echo "configure:3923: checking for res_search in -lresolv" >&5
3923 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3927 ac_save_LIBS="$LIBS"
3928 LIBS="-lresolv $LIBS"
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 /* Override any gcc2 internal prototype to avoid an error. */
3933 /* We use char because int might match the return type of a gcc2
3934 builtin and then its argument prototype would still apply. */
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943 eval "ac_cv_lib_$ac_lib_var=yes"
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 eval "ac_cv_lib_$ac_lib_var=no"
3951 LIBS="$ac_save_LIBS"
3954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3955 echo "$ac_t""yes" 1>&6
3956 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3957 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3958 cat >> confdefs.h <<EOF
3959 #define $ac_tr_lib 1
3962 LIBS="-lresolv $LIBS"
3965 echo "$ac_t""no" 1>&6
3968 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3969 cat >> confdefs.h <<\EOF
3970 #define HAVE_RES_SEARCH 1
3977 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3978 echo "configure:3979: checking for sigset in -lV3" >&5
3979 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 ac_save_LIBS="$LIBS"
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 eval "ac_cv_lib_$ac_lib_var=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 eval "ac_cv_lib_$ac_lib_var=no"
4007 LIBS="$ac_save_LIBS"
4010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4014 cat >> confdefs.h <<EOF
4015 #define $ac_tr_lib 1
4021 echo "$ac_t""no" 1>&6
4025 for ac_hdr in regex.h
4027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_hdr" >&5
4030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4039 { (eval echo configure:4040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4041 if test -z "$ac_err"; then
4043 eval "ac_cv_header_$ac_safe=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 eval "ac_cv_header_$ac_safe=no"
4053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4056 cat >> confdefs.h <<EOF
4057 #define $ac_tr_hdr 1
4061 echo "$ac_t""no" 1>&6
4065 if test "$ac_cv_header_regex_h" != yes ; then
4066 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4068 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4069 echo "configure:4070: checking for regfree" >&5
4070 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* System header to define __stub macros and hopefully few prototypes,
4077 which can conflict with char regfree(); below. */
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4086 /* The GNU C library defines this for functions which it implements
4087 to always fail with ENOSYS. Some functions are actually named
4088 something starting with __ and the normal name is an alias. */
4089 #if defined (__stub_regfree) || defined (__stub___regfree)
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099 eval "ac_cv_func_regfree=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 eval "ac_cv_func_regfree=no"
4109 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4113 echo "$ac_t""no" 1>&6
4114 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4119 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4120 echo "configure:4121: checking for compatible POSIX regex" >&5
4121 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4125 if test "$cross_compiling" = yes; then
4126 ol_cv_c_posix_regex=cross
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4132 #include <sys/types.h>
4134 static char *pattern, *string;
4142 if(regcomp(&re, pattern, 0)) {
4146 string = "ALL MATCH";
4148 rc = regexec(&re, string, 0, (void*)0, 0);
4155 if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4157 ol_cv_c_posix_regex=yes
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ol_cv_c_posix_regex=no
4169 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4171 if test "$ol_cv_c_posix_regex" = no ; then
4172 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4175 echo $ac_n "checking for select""... $ac_c" 1>&6
4176 echo "configure:4177: checking for select" >&5
4177 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 /* System header to define __stub macros and hopefully few prototypes,
4184 which can conflict with char select(); below. */
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4193 /* The GNU C library defines this for functions which it implements
4194 to always fail with ENOSYS. Some functions are actually named
4195 something starting with __ and the normal name is an alias. */
4196 #if defined (__stub_select) || defined (__stub___select)
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 eval "ac_cv_func_select=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_func_select=no"
4216 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4217 echo "$ac_t""yes" 1>&6
4220 echo "$ac_t""no" 1>&6
4221 { echo "configure: error: select() required." 1>&2; exit 1; }
4225 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4226 echo "configure:4227: checking types of arguments for select()" >&5
4227 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4230 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4233 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4237 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4238 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #ifdef HAVE_SYS_TYPES_H
4243 #include <sys/types.h>
4245 #ifdef HAVE_SYS_TIME_H
4246 #include <sys/time.h>
4248 #ifdef HAVE_SYS_SELECT_H
4249 #include <sys/select.h>
4251 #ifdef HAVE_SYS_SOCKET_H
4252 #include <sys/socket.h>
4254 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
4259 if { (eval echo configure:4260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4261 ac_not_found=no ; break 3
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4278 if test "$ac_not_found" = yes; then
4279 ac_cv_func_select_arg1=int
4280 ac_cv_func_select_arg234='int *'
4281 ac_cv_func_select_arg5='struct timeval *'
4283 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4284 cat >> confdefs.h <<EOF
4285 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4288 cat >> confdefs.h <<EOF
4289 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4292 cat >> confdefs.h <<EOF
4293 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4300 if test $ol_enable_ldapd != no ; then
4301 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
4303 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
4304 echo "configure:4305: checking for main in -lxtpp" >&5
4305 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
4306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 ac_save_LIBS="$LIBS"
4310 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4321 eval "ac_cv_lib_$ac_lib_var=yes"
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 eval "ac_cv_lib_$ac_lib_var=no"
4329 LIBS="$ac_save_LIBS"
4332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4333 echo "$ac_t""yes" 1>&6
4336 cat >> confdefs.h <<\EOF
4340 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4343 echo "$ac_t""no" 1>&6
4347 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4348 echo "configure:4349: checking for main in -ldsap" >&5
4349 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
4350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 ac_save_LIBS="$LIBS"
4354 LIBS="-ldsap -lisode $LIBS"
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 eval "ac_cv_lib_$ac_lib_var=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_lib_$ac_lib_var=no"
4373 LIBS="$ac_save_LIBS"
4376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4377 echo "$ac_t""yes" 1>&6
4380 cat >> confdefs.h <<\EOF
4384 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4387 echo "$ac_t""no" 1>&6
4391 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4392 echo "configure:4393: checking for main in -lisode" >&5
4393 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
4394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 ac_save_LIBS="$LIBS"
4398 LIBS="-lisode $LIBS"
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 eval "ac_cv_lib_$ac_lib_var=no"
4417 LIBS="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4424 cat >> confdefs.h <<\EOF
4425 #define HAVE_ISODE 1
4428 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4431 echo "$ac_t""no" 1>&6
4437 if test $ol_link_isode != no; then
4438 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4439 echo "configure:4440: checking for main in -lpp" >&5
4440 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
4441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 ac_save_LIBS="$LIBS"
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 eval "ac_cv_lib_$ac_lib_var=yes"
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 eval "ac_cv_lib_$ac_lib_var=no"
4464 LIBS="$ac_save_LIBS"
4467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4470 cat >> confdefs.h <<\EOF
4474 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4477 echo "$ac_t""no" 1>&6
4482 # Extract the first word of "pepsy", so it can be a program name with args.
4483 set dummy pepsy; ac_word=$2
4484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_word" >&5
4486 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4491 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4494 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4499 for ac_dir in $ac_dummy; do
4500 test -z "$ac_dir" && ac_dir=.
4501 if test -f $ac_dir/$ac_word; then
4502 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4510 PEPSY="$ac_cv_path_PEPSY"
4511 if test -n "$PEPSY"; then
4512 echo "$ac_t""$PEPSY" 1>&6
4514 echo "$ac_t""no" 1>&6
4521 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4522 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_hdr" >&5
4527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4536 { (eval echo configure:4537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4538 if test -z "$ac_err"; then
4540 eval "ac_cv_header_$ac_safe=yes"
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 eval "ac_cv_header_$ac_safe=no"
4550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_hdr 1
4558 echo "$ac_t""no" 1>&6
4563 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4564 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4565 echo "configure:4566: checking for main in -lkrb4" >&5
4566 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 ac_save_LIBS="$LIBS"
4571 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4582 eval "ac_cv_lib_$ac_lib_var=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 eval "ac_cv_lib_$ac_lib_var=no"
4590 LIBS="$ac_save_LIBS"
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4597 echo "$ac_t""no" 1>&6
4602 if test $have_k5 = yes ; then
4603 ol_with_kerberos=found
4604 ol_link_kerberos=yes
4606 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4608 LIBS="$KRB_LIBS $LIBS"
4610 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4611 echo "configure:4612: checking for des_debug in Kerberos libraries" >&5
4612 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4617 LIBS="$KRB_LIBS $LIBS"
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4622 #include <kerberosIV/krb.h>
4623 #include <kerberosIV/des.h>
4624 extern int des_debug;
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 ol_cv_var_des_debug=yes
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 ol_cv_var_des_debug=no
4646 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4648 if test $ol_cv_var_des_debug = yes ; then
4649 cat >> confdefs.h <<\EOF
4650 #define HAVE_DES_DEBUG 1
4660 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4661 for ac_hdr in krb.h des.h
4663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_hdr" >&5
4666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 eval "ac_cv_header_$ac_safe=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 eval "ac_cv_header_$ac_safe=no"
4689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_hdr 1
4697 echo "$ac_t""no" 1>&6
4702 if test $ac_cv_header_krb_h = yes ; then
4703 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4704 echo "configure:4705: checking for main in -lkrb" >&5
4705 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4709 ac_save_LIBS="$LIBS"
4710 LIBS="-lkrb -ldes $LIBS"
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 eval "ac_cv_lib_$ac_lib_var=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 eval "ac_cv_lib_$ac_lib_var=no"
4729 LIBS="$ac_save_LIBS"
4732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4736 echo "$ac_t""no" 1>&6
4741 if test $have_k4 = yes ; then
4742 ol_with_kerberos=found
4743 ol_link_kerberos=yes
4745 KRB_LIBS="-lkrb -ldes"
4750 if test $ol_link_kerberos = yes ; then
4751 cat >> confdefs.h <<\EOF
4752 #define HAVE_KERBEROS 1
4758 if test $ol_with_tls != no ; then
4762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_hdr" >&5
4765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4778 eval "ac_cv_header_$ac_safe=yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4784 eval "ac_cv_header_$ac_safe=no"
4788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_hdr 1
4796 echo "$ac_t""no" 1>&6
4801 if test $ac_cv_header_ssl_h = yes ; then
4802 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4803 echo "configure:4804: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4804 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 ac_save_LIBS="$LIBS"
4809 LIBS="-lssl -lcrypto $LIBS"
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 /* Override any gcc2 internal prototype to avoid an error. */
4814 /* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4816 char SSLeay_add_ssl_algorithms();
4819 SSLeay_add_ssl_algorithms()
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 eval "ac_cv_lib_$ac_lib_var=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 eval "ac_cv_lib_$ac_lib_var=no"
4832 LIBS="$ac_save_LIBS"
4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4840 echo "$ac_t""no" 1>&6
4845 if test $have_ssleay = no ; then
4846 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4847 echo "configure:4848: checking for ssl3_accept in -lssl" >&5
4848 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4852 ac_save_LIBS="$LIBS"
4853 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 eval "ac_cv_lib_$ac_lib_var=yes"
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 eval "ac_cv_lib_$ac_lib_var=no"
4876 LIBS="$ac_save_LIBS"
4879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4884 echo "$ac_t""no" 1>&6
4890 if test $have_ssleay = yes ; then
4894 cat >> confdefs.h <<\EOF
4895 #define HAVE_SSLEAY 1
4899 if test $need_rsaref = yes; then
4900 cat >> confdefs.h <<\EOF
4901 #define HAVE_RSAREF 1
4905 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4907 TLS_LIBS="-lssl -lcrypto"
4913 if test $ol_link_tls = yes ; then
4914 cat >> confdefs.h <<\EOF
4922 gethostbyname_r gethostbyaddr_r \
4925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4926 echo "configure:4927: checking for $ac_func" >&5
4927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* System header to define __stub macros and hopefully few prototypes,
4934 which can conflict with char $ac_func(); below. */
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4943 /* The GNU C library defines this for functions which it implements
4944 to always fail with ENOSYS. Some functions are actually named
4945 something starting with __ and the normal name is an alias. */
4946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 eval "ac_cv_func_$ac_func=yes"
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 eval "ac_cv_func_$ac_func=no"
4966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4969 cat >> confdefs.h <<EOF
4970 #define $ac_tr_func 1
4974 echo "$ac_t""no" 1>&6
4979 if test "$ac_cv_func_ctime_r" = no ; then
4980 ol_cv_func_ctime_r_nargs=0
4982 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4983 echo "configure:4984: checking number of arguments of ctime_r" >&5
4984 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4992 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4995 if { (eval echo configure:4996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4997 ol_cv_func_ctime_r_nargs=3
4999 echo "configure: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 time_t ti; char *buffer; ctime_r(&ti,buffer);
5010 if { (eval echo configure:5011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5012 ol_cv_func_ctime_r_nargs=2
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5017 ol_cv_func_ctime_r_nargs=0
5024 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5025 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5026 cat >> confdefs.h <<EOF
5027 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5034 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5035 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5036 echo "configure:5037: checking number of arguments of gethostbyname_r" >&5
5037 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 #include <sys/types.h>
5044 #include <sys/socket.h>
5045 #include <netinet/in.h>
5047 #define BUFSIZE (sizeof(struct hostent)+10)
5049 struct hostent hent; char buffer[BUFSIZE];
5050 int bufsize=BUFSIZE;int h_errno;
5051 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5052 buffer, bufsize, &h_errno);
5055 if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5057 ol_cv_func_gethostbyname_r_nargs=5
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5065 #include <sys/types.h>
5066 #include <sys/socket.h>
5067 #include <netinet/in.h>
5069 #define BUFSIZE (sizeof(struct hostent)+10)
5071 struct hostent hent;struct hostent *rhent;
5072 char buffer[BUFSIZE];
5073 int bufsize=BUFSIZE;int h_errno;
5074 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5080 ol_cv_func_gethostbyname_r_nargs=6
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5085 ol_cv_func_gethostbyname_r_nargs=0
5092 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5093 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5094 cat >> confdefs.h <<EOF
5095 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5101 ol_cv_func_gethostbyname_r_nargs=0
5104 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5105 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5106 echo "configure:5107: checking number of arguments of gethostbyaddr_r" >&5
5107 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 #include <sys/types.h>
5114 #include <sys/socket.h>
5115 #include <netinet/in.h>
5117 #define BUFSIZE (sizeof(struct hostent)+10)
5119 struct hostent hent; char buffer[BUFSIZE];
5121 size_t alen=sizeof(struct in_addr);
5122 int bufsize=BUFSIZE;int h_errno;
5123 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5124 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5127 if { (eval echo configure:5128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5129 ol_cv_func_gethostbyaddr_r_nargs=7
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 #include <sys/types.h>
5138 #include <sys/socket.h>
5139 #include <netinet/in.h>
5141 #define BUFSIZE (sizeof(struct hostent)+10)
5143 struct hostent hent;
5144 struct hostent *rhent; char buffer[BUFSIZE];
5146 size_t alen=sizeof(struct in_addr);
5147 int bufsize=BUFSIZE;int h_errno;
5148 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5149 alen, AF_INET, &hent, buffer, bufsize,
5153 if { (eval echo configure:5154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5155 ol_cv_func_gethostbyaddr_r_nargs=8
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 ol_cv_func_gethostbyaddr_r_nargs=0
5167 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5168 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5169 cat >> confdefs.h <<EOF
5170 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5176 ol_cv_func_gethostbyaddr_r_nargs=0
5179 if test "$ac_cv_func_ctime_r" = yes \
5180 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5181 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5182 -a "$ac_cv_func_gethostbyname_r" = yes \
5183 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5184 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5185 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5186 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5187 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5190 cat >> confdefs.h <<\EOF
5191 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5197 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5198 -o $ol_with_threads = posix ; then
5200 for ac_hdr in pthread.h sched.h
5202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_hdr" >&5
5205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5214 { (eval echo configure:5215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5216 if test -z "$ac_err"; then
5218 eval "ac_cv_header_$ac_safe=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_header_$ac_safe=no"
5228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5231 cat >> confdefs.h <<EOF
5232 #define $ac_tr_hdr 1
5236 echo "$ac_t""no" 1>&6
5241 if test $ac_cv_header_pthread_h = yes ; then
5242 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
5243 echo "configure:5244: checking POSIX thread version" >&5
5244 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5252 # include <pthread.h>
5253 /* this check could be improved */
5254 # ifdef PTHREAD_ONCE_INIT
5255 pthread_version_final
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 egrep "pthread_version_final" >/dev/null 2>&1; then
5262 ol_pthread_final=yes
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5274 # include <pthread.h>
5275 /* this check could be improved */
5276 # ifdef pthread_once_init
5277 pthread_version_draft4
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 egrep "pthread_version_draft4" >/dev/null 2>&1; then
5284 ol_pthread_draft4=yes
5287 ol_pthread_draft4=no
5292 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
5293 ol_cv_pthread_version=final
5294 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
5295 ol_cv_pthread_version=draft4
5297 ol_cv_pthread_version=unknown
5302 echo "$ac_t""$ol_cv_pthread_version" 1>&6
5305 if test $ol_cv_pthread_version = final ; then
5306 cat >> confdefs.h <<\EOF
5307 #define HAVE_PTHREADS_FINAL 1
5310 elif test $ol_cv_pthread_version = draft4 ; then
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_PTHREADS_D4 1
5316 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
5319 # consider threads found
5320 ol_with_threads=found
5323 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
5324 echo "configure:5325: checking for LinuxThreads pthread.h" >&5
5325 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 #include <pthread.h>
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5336 ol_cv_header_linux_threads=yes
5339 ol_cv_header_linux_threads=no
5346 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5347 if test $ol_cv_header_linux_threads = yes; then
5348 cat >> confdefs.h <<\EOF
5349 #define HAVE_LINUX_THREADS 1
5356 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5357 echo "configure:5358: checking for pthread_create in default libraries" >&5
5358 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5362 if test "$cross_compiling" = yes; then
5363 ol_cv_pthread_create=yes
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5369 #include <pthread.h>
5371 #define NULL (void*)0
5374 static void *task(p)
5377 return (void *) (p == NULL);
5380 int main(argc, argv)
5387 /* make sure pthread_create() isn't just a stub */
5388 #if HAVE_PTHREADS_D4
5389 status = pthread_create(&t, pthread_attr_default, task, NULL);
5391 status = pthread_create(&t, NULL, task, NULL);
5394 if( status ) return status;
5396 /* make sure pthread_detach() isn't just a stub */
5397 #if HAVE_PTHREADS_D4
5398 status = pthread_detach( &t );
5400 status = pthread_detach( t );
5403 if( status ) return status;
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5411 ol_cv_pthread_create=yes
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5416 ol_cv_pthread_create=no
5423 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5425 if test $ol_cv_pthread_create != no ; then
5426 ol_link_threads=posix
5430 # Pthread try link: -mt (ol_cv_pthread_mt)
5431 if test "$ol_link_threads" = no ; then
5433 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5434 echo "configure:5435: checking for pthread link with -mt" >&5
5435 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5447 #include <pthread.h>
5449 #define NULL (void*)0
5456 #if HAVE_PTHREADS_D4
5457 pthread_create(&t, pthread_attr_default, NULL, NULL);
5458 pthread_detach( &t );
5460 pthread_create(&t, NULL, NULL, NULL);
5461 pthread_detach( t );
5463 #ifdef HAVE_LINUX_THREADS
5464 pthread_kill_other_threads_np();
5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5471 ol_cv_pthread_mt=yes
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5485 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5487 if test $ol_cv_pthread_mt = yes ; then
5488 ol_link_pthreads="-mt"
5489 ol_link_threads=posix
5493 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5494 if test "$ol_link_threads" = no ; then
5496 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5497 echo "configure:5498: checking for pthread link with -kthread" >&5
5498 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5504 LIBS="-kthread $LIBS"
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5510 #include <pthread.h>
5512 #define NULL (void*)0
5519 #if HAVE_PTHREADS_D4
5520 pthread_create(&t, pthread_attr_default, NULL, NULL);
5521 pthread_detach( &t );
5523 pthread_create(&t, NULL, NULL, NULL);
5524 pthread_detach( t );
5526 #ifdef HAVE_LINUX_THREADS
5527 pthread_kill_other_threads_np();
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 ol_cv_pthread_kthread=yes
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 ol_cv_pthread_kthread=no
5548 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5550 if test $ol_cv_pthread_kthread = yes ; then
5551 ol_link_pthreads="-kthread"
5552 ol_link_threads=posix
5556 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5557 if test "$ol_link_threads" = no ; then
5559 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5560 echo "configure:5561: checking for pthread link with -pthread" >&5
5561 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5567 LIBS="-pthread $LIBS"
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5573 #include <pthread.h>
5575 #define NULL (void*)0
5582 #if HAVE_PTHREADS_D4
5583 pthread_create(&t, pthread_attr_default, NULL, NULL);
5584 pthread_detach( &t );
5586 pthread_create(&t, NULL, NULL, NULL);
5587 pthread_detach( t );
5589 #ifdef HAVE_LINUX_THREADS
5590 pthread_kill_other_threads_np();
5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5597 ol_cv_pthread_pthread=yes
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5602 ol_cv_pthread_pthread=no
5611 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5613 if test $ol_cv_pthread_pthread = yes ; then
5614 ol_link_pthreads="-pthread"
5615 ol_link_threads=posix
5619 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5620 if test "$ol_link_threads" = no ; then
5622 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5623 echo "configure:5624: checking for pthread link with -pthreads" >&5
5624 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5630 LIBS="-pthreads $LIBS"
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5636 #include <pthread.h>
5638 #define NULL (void*)0
5645 #if HAVE_PTHREADS_D4
5646 pthread_create(&t, pthread_attr_default, NULL, NULL);
5647 pthread_detach( &t );
5649 pthread_create(&t, NULL, NULL, NULL);
5650 pthread_detach( t );
5652 #ifdef HAVE_LINUX_THREADS
5653 pthread_kill_other_threads_np();
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 ol_cv_pthread_pthreads=yes
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 ol_cv_pthread_pthreads=no
5674 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5676 if test $ol_cv_pthread_pthreads = yes ; then
5677 ol_link_pthreads="-pthreads"
5678 ol_link_threads=posix
5682 # Pthread try link: -thread (ol_cv_pthread_thread)
5683 if test "$ol_link_threads" = no ; then
5685 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5686 echo "configure:5687: checking for pthread link with -thread" >&5
5687 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5693 LIBS="-thread $LIBS"
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5699 #include <pthread.h>
5701 #define NULL (void*)0
5708 #if HAVE_PTHREADS_D4
5709 pthread_create(&t, pthread_attr_default, NULL, NULL);
5710 pthread_detach( &t );
5712 pthread_create(&t, NULL, NULL, NULL);
5713 pthread_detach( t );
5715 #ifdef HAVE_LINUX_THREADS
5716 pthread_kill_other_threads_np();
5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5723 ol_cv_pthread_thread=yes
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 ol_cv_pthread_thread=no
5737 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5739 if test $ol_cv_pthread_thread = yes ; then
5740 ol_link_pthreads="-thread"
5741 ol_link_threads=posix
5746 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5747 if test "$ol_link_threads" = no ; then
5748 # try -lpthread -lmach -lexc -lc_r
5749 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5750 echo "configure:5751: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5751 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5757 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5763 #include <pthread.h>
5765 #define NULL (void*)0
5772 #if HAVE_PTHREADS_D4
5773 pthread_create(&t, pthread_attr_default, NULL, NULL);
5774 pthread_detach( &t );
5776 pthread_create(&t, NULL, NULL, NULL);
5777 pthread_detach( t );
5779 #ifdef HAVE_LINUX_THREADS
5780 pthread_kill_other_threads_np();
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5792 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5801 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5803 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5804 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5805 ol_link_threads=posix
5809 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5810 if test "$ol_link_threads" = no ; then
5811 # try -lpthread -lmach -lexc
5812 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5813 echo "configure:5814: checking for pthread link with -lpthread -lmach -lexc" >&5
5814 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5820 LIBS="-lpthread -lmach -lexc $LIBS"
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5826 #include <pthread.h>
5828 #define NULL (void*)0
5835 #if HAVE_PTHREADS_D4
5836 pthread_create(&t, pthread_attr_default, NULL, NULL);
5837 pthread_detach( &t );
5839 pthread_create(&t, NULL, NULL, NULL);
5840 pthread_detach( t );
5842 #ifdef HAVE_LINUX_THREADS
5843 pthread_kill_other_threads_np();
5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5850 ol_cv_pthread_lpthread_lmach_lexc=yes
5852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 ol_cv_pthread_lpthread_lmach_lexc=no
5864 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5866 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5867 ol_link_pthreads="-lpthread -lmach -lexc"
5868 ol_link_threads=posix
5873 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5874 if test "$ol_link_threads" = no ; then
5875 # try -lpthread -Wl,-woff,85
5876 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5877 echo "configure:5878: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5878 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5884 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5890 #include <pthread.h>
5892 #define NULL (void*)0
5899 #if HAVE_PTHREADS_D4
5900 pthread_create(&t, pthread_attr_default, NULL, NULL);
5901 pthread_detach( &t );
5903 pthread_create(&t, NULL, NULL, NULL);
5904 pthread_detach( t );
5906 #ifdef HAVE_LINUX_THREADS
5907 pthread_kill_other_threads_np();
5912 if { (eval echo configure:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5914 ol_cv_pthread_lib_lpthread_woff=yes
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5919 ol_cv_pthread_lib_lpthread_woff=no
5928 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5930 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5931 ol_link_pthreads="-lpthread -Wl,-woff,85"
5932 ol_link_threads=posix
5937 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5938 if test "$ol_link_threads" = no ; then
5940 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5941 echo "configure:5942: checking for pthread link with -lpthread" >&5
5942 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5948 LIBS="-lpthread $LIBS"
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5954 #include <pthread.h>
5956 #define NULL (void*)0
5963 #if HAVE_PTHREADS_D4
5964 pthread_create(&t, pthread_attr_default, NULL, NULL);
5965 pthread_detach( &t );
5967 pthread_create(&t, NULL, NULL, NULL);
5968 pthread_detach( t );
5970 #ifdef HAVE_LINUX_THREADS
5971 pthread_kill_other_threads_np();
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 ol_cv_pthread_lpthread=yes
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 ol_cv_pthread_lpthread=no
5992 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5994 if test $ol_cv_pthread_lpthread = yes ; then
5995 ol_link_pthreads="-lpthread"
5996 ol_link_threads=posix
6000 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6001 if test "$ol_link_threads" = no ; then
6003 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6004 echo "configure:6005: checking for pthread link with -lc_r" >&5
6005 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6017 #include <pthread.h>
6019 #define NULL (void*)0
6026 #if HAVE_PTHREADS_D4
6027 pthread_create(&t, pthread_attr_default, NULL, NULL);
6028 pthread_detach( &t );
6030 pthread_create(&t, NULL, NULL, NULL);
6031 pthread_detach( t );
6033 #ifdef HAVE_LINUX_THREADS
6034 pthread_kill_other_threads_np();
6039 if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6041 ol_cv_pthread_lc_r=yes
6043 echo "configure: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6046 ol_cv_pthread_lc_r=no
6055 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6057 if test $ol_cv_pthread_lc_r = yes ; then
6058 ol_link_pthreads="-lc_r"
6059 ol_link_threads=posix
6064 # Pthread try link: -threads (ol_cv_pthread_threads)
6065 if test "$ol_link_threads" = no ; then
6067 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6068 echo "configure:6069: checking for pthread link with -threads" >&5
6069 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6075 LIBS="-threads $LIBS"
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6081 #include <pthread.h>
6083 #define NULL (void*)0
6090 #if HAVE_PTHREADS_D4
6091 pthread_create(&t, pthread_attr_default, NULL, NULL);
6092 pthread_detach( &t );
6094 pthread_create(&t, NULL, NULL, NULL);
6095 pthread_detach( t );
6097 #ifdef HAVE_LINUX_THREADS
6098 pthread_kill_other_threads_np();
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 ol_cv_pthread_threads=yes
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6110 ol_cv_pthread_threads=no
6119 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
6121 if test $ol_cv_pthread_threads = yes ; then
6122 ol_link_pthreads="-threads"
6123 ol_link_threads=posix
6128 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
6129 if test "$ol_link_threads" = no ; then
6130 # try -lpthreads -lmach -lexc -lc_r
6131 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
6132 echo "configure:6133: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
6133 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6139 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6145 #include <pthread.h>
6147 #define NULL (void*)0
6154 #if HAVE_PTHREADS_D4
6155 pthread_create(&t, pthread_attr_default, NULL, NULL);
6156 pthread_detach( &t );
6158 pthread_create(&t, NULL, NULL, NULL);
6159 pthread_detach( t );
6161 #ifdef HAVE_LINUX_THREADS
6162 pthread_kill_other_threads_np();
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
6183 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
6185 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
6186 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
6187 ol_link_threads=posix
6191 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
6192 if test "$ol_link_threads" = no ; then
6193 # try -lpthreads -lmach -lexc
6194 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
6195 echo "configure:6196: checking for pthread link with -lpthreads -lmach -lexc" >&5
6196 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6202 LIBS="-lpthreads -lmach -lexc $LIBS"
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6208 #include <pthread.h>
6210 #define NULL (void*)0
6217 #if HAVE_PTHREADS_D4
6218 pthread_create(&t, pthread_attr_default, NULL, NULL);
6219 pthread_detach( &t );
6221 pthread_create(&t, NULL, NULL, NULL);
6222 pthread_detach( t );
6224 #ifdef HAVE_LINUX_THREADS
6225 pthread_kill_other_threads_np();
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 ol_cv_pthread_lpthreads_lmach_lexc=yes
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 ol_cv_pthread_lpthreads_lmach_lexc=no
6246 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
6248 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
6249 ol_link_pthreads="-lpthreads -lmach -lexc"
6250 ol_link_threads=posix
6254 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
6255 if test "$ol_link_threads" = no ; then
6256 # try -lpthreads -lexc
6257 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
6258 echo "configure:6259: checking for pthread link with -lpthreads -lexc" >&5
6259 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6265 LIBS="-lpthreads -lexc $LIBS"
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6271 #include <pthread.h>
6273 #define NULL (void*)0
6280 #if HAVE_PTHREADS_D4
6281 pthread_create(&t, pthread_attr_default, NULL, NULL);
6282 pthread_detach( &t );
6284 pthread_create(&t, NULL, NULL, NULL);
6285 pthread_detach( t );
6287 #ifdef HAVE_LINUX_THREADS
6288 pthread_kill_other_threads_np();
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6295 ol_cv_pthread_lpthreads_lexc=yes
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6300 ol_cv_pthread_lpthreads_lexc=no
6309 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
6311 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
6312 ol_link_pthreads="-lpthreads -lexc"
6313 ol_link_threads=posix
6318 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
6319 if test "$ol_link_threads" = no ; then
6321 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
6322 echo "configure:6323: checking for pthread link with -lpthreads" >&5
6323 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6329 LIBS="-lpthreads $LIBS"
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6335 #include <pthread.h>
6337 #define NULL (void*)0
6344 #if HAVE_PTHREADS_D4
6345 pthread_create(&t, pthread_attr_default, NULL, NULL);
6346 pthread_detach( &t );
6348 pthread_create(&t, NULL, NULL, NULL);
6349 pthread_detach( t );
6351 #ifdef HAVE_LINUX_THREADS
6352 pthread_kill_other_threads_np();
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 ol_cv_pthread_lib_lpthreads=yes
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6364 ol_cv_pthread_lib_lpthreads=no
6373 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6375 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6376 ol_link_pthreads="-lpthreads"
6377 ol_link_threads=posix
6382 if test $ol_link_threads != no ; then
6383 cat >> confdefs.h <<\EOF
6384 #define HAVE_PTHREADS 1
6388 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6390 save_CPPFLAGS="$CPPFLAGS"
6392 LIBS="$LTHREAD_LIBS $LIBS"
6394 for ac_func in sched_yield pthread_yield
6396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6397 echo "configure:6398: checking for $ac_func" >&5
6398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* System header to define __stub macros and hopefully few prototypes,
6405 which can conflict with char $ac_func(); below. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 /* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6414 /* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6425 if { (eval echo configure:6426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6427 eval "ac_cv_func_$ac_func=yes"
6429 echo "configure: failed program was:" >&5
6430 cat conftest.$ac_ext >&5
6432 eval "ac_cv_func_$ac_func=no"
6437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6438 echo "$ac_t""yes" 1>&6
6439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6440 cat >> confdefs.h <<EOF
6441 #define $ac_tr_func 1
6445 echo "$ac_t""no" 1>&6
6450 if test $ac_cv_func_sched_yield = no -a \
6451 $ac_cv_func_pthread_yield = no ; then
6452 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6453 echo "configure:6454: checking for sched_yield in -lrt" >&5
6454 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6456 echo $ac_n "(cached) $ac_c" 1>&6
6458 ac_save_LIBS="$LIBS"
6460 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure"
6462 #include "confdefs.h"
6463 /* Override any gcc2 internal prototype to avoid an error. */
6464 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6472 if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6474 eval "ac_cv_lib_$ac_lib_var=yes"
6476 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6479 eval "ac_cv_lib_$ac_lib_var=no"
6482 LIBS="$ac_save_LIBS"
6485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6486 echo "$ac_t""yes" 1>&6
6487 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6488 cat >> confdefs.h <<\EOF
6489 #define HAVE_SCHED_YIELD 1
6492 ac_cv_func_sched_yield=yes
6494 echo "$ac_t""no" 1>&6
6495 ac_cv_func_sched_yield=no
6499 if test $ac_cv_func_sched_yield = no -a \
6500 $ac_cv_func_pthread_yield = no ; then
6501 for ac_func in thr_yield
6503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6504 echo "configure:6505: checking for $ac_func" >&5
6505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char $ac_func(); below. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534 eval "ac_cv_func_$ac_func=yes"
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 eval "ac_cv_func_$ac_func=no"
6544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6547 cat >> confdefs.h <<EOF
6548 #define $ac_tr_func 1
6552 echo "$ac_t""no" 1>&6
6557 if test $ac_cv_func_sched_yield = no -a \
6558 $ac_cv_func_pthread_yield = no -a \
6559 "$ac_cv_func_thr_yield" = no ; then
6560 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6563 for ac_func in pthread_kill
6565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6566 echo "configure:6567: checking for $ac_func" >&5
6567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* System header to define __stub macros and hopefully few prototypes,
6574 which can conflict with char $ac_func(); below. */
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6596 eval "ac_cv_func_$ac_func=yes"
6598 echo "configure: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6601 eval "ac_cv_func_$ac_func=no"
6606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6607 echo "$ac_t""yes" 1>&6
6608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6609 cat >> confdefs.h <<EOF
6610 #define $ac_tr_func 1
6614 echo "$ac_t""no" 1>&6
6619 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6620 echo "configure:6621: checking for pthread_detach with <pthread.h>" >&5
6621 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6629 #include <pthread.h>
6631 #define NULL (void*)0
6635 pthread_detach(NULL);
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 ol_cv_func_pthread_detach=yes
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 ol_cv_func_pthread_detach=no
6651 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6653 if test $ol_cv_func_pthread_detach = no ; then
6654 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6657 cat >> confdefs.h <<\EOF
6658 #define HAVE_PTHREAD_DETACH 1
6663 pthread_setconcurrency \
6664 pthread_getconcurrency \
6665 thr_setconcurrency \
6666 thr_getconcurrency \
6669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6670 echo "configure:6671: checking for $ac_func" >&5
6671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char $ac_func(); below. */
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6687 /* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
6690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 eval "ac_cv_func_$ac_func=yes"
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_func_$ac_func=no"
6710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6713 cat >> confdefs.h <<EOF
6714 #define $ac_tr_func 1
6718 echo "$ac_t""no" 1>&6
6724 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6725 echo "configure:6726: checking for pthread_kill_other_threads_np" >&5
6726 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 /* System header to define __stub macros and hopefully few prototypes,
6733 which can conflict with char pthread_kill_other_threads_np(); below. */
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char pthread_kill_other_threads_np();
6742 /* The GNU C library defines this for functions which it implements
6743 to always fail with ENOSYS. Some functions are actually named
6744 something starting with __ and the normal name is an alias. */
6745 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6748 pthread_kill_other_threads_np();
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6755 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6760 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6765 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6769 echo "$ac_t""no" 1>&6
6772 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6773 echo "configure:6774: checking for LinuxThreads implementation" >&5
6774 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6780 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6785 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6786 echo "configure:6787: checking for LinuxThreads consistency" >&5
6787 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6791 if test $ol_cv_header_linux_threads = yes -a \
6792 $ol_cv_sys_linux_threads = yes; then
6793 ol_cv_linux_threads=yes
6794 elif test $ol_cv_header_linux_threads = no -a \
6795 $ol_cv_sys_linux_threads = no; then
6796 ol_cv_linux_threads=no
6798 ol_cv_linux_threads=error
6803 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6806 if test $ol_cv_linux_threads = error; then
6807 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6810 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6811 echo "configure:6812: checking if pthread_create() works" >&5
6812 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6816 if test "$cross_compiling" = yes; then
6817 ol_cv_pthread_create_works=yes
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6823 #include <pthread.h>
6825 #define NULL (void*)0
6828 static void *task(p)
6831 return (void *) (p == NULL);
6834 int main(argc, argv)
6839 #if HAVE_PTHREADS_D4
6840 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6842 exit(pthread_create(&t, NULL, task, NULL));
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6849 ol_cv_pthread_create_works=yes
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 ol_cv_pthread_create_works=no
6861 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6863 if test $ol_cv_pthread_create_works = no ; then
6864 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6867 if test $ol_with_yielding_select = auto ; then
6868 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6869 echo "configure:6870: checking if select yields when using pthreads" >&5
6870 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6874 if test "$cross_compiling" = yes; then
6876 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6882 #include <sys/types.h>
6883 #include <sys/time.h>
6885 #include <pthread.h>
6887 #define NULL (void*) 0
6890 static int fildes[2];
6892 static void *task(p)
6904 FD_SET(fildes[0], &rfds);
6906 /* we're not interested in any fds */
6907 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6914 exit(0); /* if we exit here, the select blocked the whole process */
6917 int main(argc, argv)
6923 /* create a pipe to select */
6924 if(pipe(&fildes[0])) {
6929 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6930 (void) pthread_setconcurrency(2);
6932 #ifdef HAVE_THR_SETCONCURRENCY
6933 /* Set Solaris LWP concurrency to 2 */
6934 thr_setconcurrency(2);
6938 #if HAVE_PTHREADS_D4
6939 pthread_create(&t, pthread_attr_default, task, NULL);
6941 pthread_create(&t, NULL, task, NULL);
6944 #if HAVE_SCHED_YIELD
6945 sched_yield(); /* make sure task runs first */
6947 #ifdef HAVE_PTHREAD_YIELD
6948 pthread_yield(); /* make sure task runs first */
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6957 ol_cv_pthread_select_yields=no
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 ol_cv_pthread_select_yields=yes
6969 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6971 if test $ol_cv_pthread_select_yields = yes ; then
6972 ol_with_yielding_select=yes
6976 CPPFLAGS="$save_CPPFLAGS"
6979 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6983 if test $ol_with_threads = posix ; then
6984 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6988 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6989 -o $ol_with_threads = mach ; then
6991 for ac_hdr in mach/cthreads.h
6993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6995 echo "configure:6996: checking for $ac_hdr" >&5
6996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 cat > conftest.$ac_ext <<EOF
7000 #line 7001 "configure"
7001 #include "confdefs.h"
7004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure:7006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7009 eval "ac_cv_header_$ac_safe=yes"
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 eval "ac_cv_header_$ac_safe=no"
7019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7020 echo "$ac_t""yes" 1>&6
7021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7022 cat >> confdefs.h <<EOF
7023 #define $ac_tr_hdr 1
7027 echo "$ac_t""no" 1>&6
7031 if test $ac_cv_header_mach_cthreads_h = yes ; then
7032 ol_with_threads=found
7034 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7035 echo "configure:7036: checking for cthread_fork" >&5
7036 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* System header to define __stub macros and hopefully few prototypes,
7043 which can conflict with char cthread_fork(); below. */
7045 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7048 char cthread_fork();
7052 /* The GNU C library defines this for functions which it implements
7053 to always fail with ENOSYS. Some functions are actually named
7054 something starting with __ and the normal name is an alias. */
7055 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7065 eval "ac_cv_func_cthread_fork=yes"
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 eval "ac_cv_func_cthread_fork=no"
7075 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7076 echo "$ac_t""yes" 1>&6
7079 echo "$ac_t""no" 1>&6
7083 if test $ol_link_threads = no ; then
7084 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7085 echo "configure:7086: checking for cthread_fork with -all_load" >&5
7086 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7091 LIBS="-all_load $LIBS"
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 #include <mach/cthreads.h>
7098 cthread_fork((void *)0, (void *)0);
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7104 ol_cv_cthread_all_load=yes
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 ol_cv_cthread_all_load=no
7116 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
7118 if test $ol_cv_cthread_all_load = yes ; then
7119 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
7120 ol_link_threads=mach
7124 if test $ol_link_threads != no ; then
7125 : check for cthread specific functionality here
7126 cat >> confdefs.h <<\EOF
7127 #define HAVE_MACH_CTHREADS 1
7131 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
7135 if test $ol_with_threads = mach ; then
7136 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
7140 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7141 -o $ol_with_threads = lwp ; then
7143 for ac_hdr in thread.h synch.h
7145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7147 echo "configure:7148: checking for $ac_hdr" >&5
7148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7157 { (eval echo configure:7158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7159 if test -z "$ac_err"; then
7161 eval "ac_cv_header_$ac_safe=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_header_$ac_safe=no"
7171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7174 cat >> confdefs.h <<EOF
7175 #define $ac_tr_hdr 1
7179 echo "$ac_t""no" 1>&6
7183 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
7184 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
7185 echo "configure:7186: checking for thr_create in -lthread" >&5
7186 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
7187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 ac_save_LIBS="$LIBS"
7191 LIBS="-lthread $LIBS"
7192 cat > conftest.$ac_ext <<EOF
7193 #line 7194 "configure"
7194 #include "confdefs.h"
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 eval "ac_cv_lib_$ac_lib_var=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 eval "ac_cv_lib_$ac_lib_var=no"
7214 LIBS="$ac_save_LIBS"
7217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7221 echo "$ac_t""no" 1>&6
7226 if test $have_thr = yes ; then
7227 cat >> confdefs.h <<\EOF
7231 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
7234 if test $ol_with_yielding_select = auto ; then
7235 ol_with_yielding_select=yes
7239 thr_setconcurrency \
7240 thr_getconcurrency \
7243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7244 echo "configure:7245: checking for $ac_func" >&5
7245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 /* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char $ac_func(); below. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7261 /* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 eval "ac_cv_func_$ac_func=yes"
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 eval "ac_cv_func_$ac_func=no"
7284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7287 cat >> confdefs.h <<EOF
7288 #define $ac_tr_func 1
7292 echo "$ac_t""no" 1>&6
7299 for ac_hdr in lwp/lwp.h
7301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7303 echo "configure:7304: checking for $ac_hdr" >&5
7304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7313 { (eval echo configure:7314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7315 if test -z "$ac_err"; then
7317 eval "ac_cv_header_$ac_safe=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_header_$ac_safe=no"
7327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7330 cat >> confdefs.h <<EOF
7331 #define $ac_tr_hdr 1
7335 echo "$ac_t""no" 1>&6
7339 if test $ac_cv_header_lwp_lwp_h = yes ; then
7340 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7341 echo "configure:7342: checking for lwp_create in -llwp" >&5
7342 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
7343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6
7346 ac_save_LIBS="$LIBS"
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* Override any gcc2 internal prototype to avoid an error. */
7352 /* We use char because int might match the return type of a gcc2
7353 builtin and then its argument prototype would still apply. */
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7362 eval "ac_cv_lib_$ac_lib_var=yes"
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 eval "ac_cv_lib_$ac_lib_var=no"
7370 LIBS="$ac_save_LIBS"
7373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7374 echo "$ac_t""yes" 1>&6
7377 echo "$ac_t""no" 1>&6
7382 if test $have_lwp = yes ; then
7383 cat >> confdefs.h <<\EOF
7387 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7390 if test $ol_with_yielding_select = auto ; then
7391 ol_with_yielding_select=no
7397 if test $ol_with_yielding_select = yes ; then
7398 cat >> confdefs.h <<\EOF
7399 #define HAVE_YIELDING_SELECT 1
7404 if test $ol_with_threads = manual ; then
7407 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7409 for ac_hdr in pthread.h sched.h
7411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7413 echo "configure:7414: checking for $ac_hdr" >&5
7414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7423 { (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425 if test -z "$ac_err"; then
7427 eval "ac_cv_header_$ac_safe=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 eval "ac_cv_header_$ac_safe=no"
7437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7440 cat >> confdefs.h <<EOF
7441 #define $ac_tr_hdr 1
7445 echo "$ac_t""no" 1>&6
7449 for ac_func in sched_yield pthread_yield
7451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7452 echo "configure:7453: checking for $ac_func" >&5
7453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 /* System header to define __stub macros and hopefully few prototypes,
7460 which can conflict with char $ac_func(); below. */
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7469 /* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 eval "ac_cv_func_$ac_func=yes"
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 eval "ac_cv_func_$ac_func=no"
7492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7495 cat >> confdefs.h <<EOF
7496 #define $ac_tr_func 1
7500 echo "$ac_t""no" 1>&6
7505 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7506 echo "configure:7507: checking for LinuxThreads pthread.h" >&5
7507 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure"
7512 #include "confdefs.h"
7513 #include <pthread.h>
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7518 ol_cv_header_linux_threads=yes
7521 ol_cv_header_linux_threads=no
7528 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7529 if test $ol_cv_header_linux_threads = yes; then
7530 cat >> confdefs.h <<\EOF
7531 #define HAVE_LINUX_THREADS 1
7537 for ac_hdr in mach/cthreads.h
7539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_hdr" >&5
7542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7551 { (eval echo configure:7552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7553 if test -z "$ac_err"; then
7555 eval "ac_cv_header_$ac_safe=yes"
7558 echo "configure: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7561 eval "ac_cv_header_$ac_safe=no"
7565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_hdr 1
7573 echo "$ac_t""no" 1>&6
7577 for ac_hdr in lwp/lwp.h
7579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7581 echo "configure:7582: checking for $ac_hdr" >&5
7582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then
7595 eval "ac_cv_header_$ac_safe=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 eval "ac_cv_header_$ac_safe=no"
7605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_hdr 1
7613 echo "$ac_t""no" 1>&6
7617 for ac_hdr in thread.h synch.h
7619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7621 echo "configure:7622: checking for $ac_hdr" >&5
7622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7631 { (eval echo configure:7632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7633 if test -z "$ac_err"; then
7635 eval "ac_cv_header_$ac_safe=yes"
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7641 eval "ac_cv_header_$ac_safe=no"
7645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7646 echo "$ac_t""yes" 1>&6
7647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7648 cat >> confdefs.h <<EOF
7649 #define $ac_tr_hdr 1
7653 echo "$ac_t""no" 1>&6
7659 if test $ol_link_threads != no ; then
7660 cat >> confdefs.h <<\EOF
7664 cat >> confdefs.h <<\EOF
7665 #define _REENTRANT 1
7668 cat >> confdefs.h <<\EOF
7669 #define THREAD_SAFE 1
7672 cat >> confdefs.h <<\EOF
7673 #define _THREAD_SAFE 1
7676 cat >> confdefs.h <<\EOF
7677 #define THREADSAFE 1
7680 cat >> confdefs.h <<\EOF
7681 #define _THREADSAFE 1
7684 cat >> confdefs.h <<\EOF
7685 #define _SGI_MP_SOURCE 1
7689 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7690 echo "configure:7691: checking for thread specific errno" >&5
7691 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7705 ol_cv_errno_thread_specific=yes
7707 echo "configure: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7710 ol_cv_errno_thread_specific=no
7716 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7718 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7719 echo "configure:7720: checking for thread specific h_errno" >&5
7720 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7732 if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7734 ol_cv_h_errno_thread_specific=yes
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 ol_cv_h_errno_thread_specific=no
7745 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7747 if test $ol_cv_errno_thread_specific != yes \
7748 -o $ol_cv_h_errno_thread_specific != yes ; then
7749 LIBS="$LTHREAD_LIBS $LIBS"
7755 if test $ol_link_threads = no ; then
7756 if test $ol_with_threads = yes ; then
7757 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7760 if test $ol_with_threads = auto ; then
7761 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7765 cat >> confdefs.h <<\EOF
7766 #define NO_THREADS 1
7772 if test $ol_link_threads != no ; then
7773 cat >> confdefs.h <<\EOF
7774 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7781 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7782 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7783 echo "configure:7784: checking for DB2 library" >&5
7784 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7788 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7789 echo "configure:7790: checking for db_open in -ldb" >&5
7790 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 ac_save_LIBS="$LIBS"
7796 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure"
7798 #include "confdefs.h"
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 eval "ac_cv_lib_$ac_lib_var=no"
7818 LIBS="$ac_save_LIBS"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7825 echo "$ac_t""no" 1>&6
7833 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_hdr" >&5
7840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7841 echo $ac_n "(cached) $ac_c" 1>&6
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7849 { (eval echo configure:7850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7851 if test -z "$ac_err"; then
7853 eval "ac_cv_header_$ac_safe=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7859 eval "ac_cv_header_$ac_safe=no"
7863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7864 echo "$ac_t""yes" 1>&6
7865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7866 cat >> confdefs.h <<EOF
7867 #define $ac_tr_hdr 1
7871 echo "$ac_t""no" 1>&6
7875 if test $ac_cv_header_db_h = yes ; then
7876 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7877 echo "configure:7878: checking if db.h is DB2" >&5
7878 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7887 /* this check could be improved */
7888 # ifdef DB_VERSION_MAJOR
7889 # if DB_VERSION_MAJOR == 2
7895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7896 egrep "__db_version_2" >/dev/null 2>&1; then
7898 ol_cv_header_db2=yes
7907 echo "$ac_t""$ol_cv_header_db2" 1>&6
7914 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7915 echo "configure:7916: checking for Berkeley DB2" >&5
7916 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7920 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7921 ol_cv_berkeley_db2=no
7923 ol_cv_berkeley_db2=yes
7928 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7929 if test $ol_cv_berkeley_db2 = yes ; then
7930 cat >> confdefs.h <<\EOF
7931 #define HAVE_BERKELEY_DB2 1
7937 if test $ol_cv_berkeley_db2 = yes ; then
7939 ol_with_ldbm_api=db2
7941 if test $ol_with_ldbm_type = hash ; then
7942 cat >> confdefs.h <<\EOF
7943 #define LDBM_USE_DBHASH 1
7947 cat >> confdefs.h <<\EOF
7948 #define LDBM_USE_DBBTREE 1
7953 if test $ol_cv_lib_db2 != yes ; then
7954 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7960 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7964 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7965 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7966 echo "configure:7967: checking for Berkeley DB library" >&5
7967 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7968 echo $ac_n "(cached) $ac_c" 1>&6
7971 for ac_hdr in db1/db.h
7973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7975 echo "configure:7976: checking for $ac_hdr" >&5
7976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7985 { (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7987 if test -z "$ac_err"; then
7989 eval "ac_cv_header_$ac_safe=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 eval "ac_cv_header_$ac_safe=no"
7999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8000 echo "$ac_t""yes" 1>&6
8001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8002 cat >> confdefs.h <<EOF
8003 #define $ac_tr_hdr 1
8007 echo "$ac_t""no" 1>&6
8012 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8013 echo "configure:8014: checking for dbopen" >&5
8014 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* System header to define __stub macros and hopefully few prototypes,
8021 which can conflict with char dbopen(); below. */
8023 /* Override any gcc2 internal prototype to avoid an error. */
8024 /* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8030 /* The GNU C library defines this for functions which it implements
8031 to always fail with ENOSYS. Some functions are actually named
8032 something starting with __ and the normal name is an alias. */
8033 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8041 if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8043 eval "ac_cv_func_dbopen=yes"
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8048 eval "ac_cv_func_dbopen=no"
8053 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8057 echo "$ac_t""no" 1>&6
8059 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8060 echo "configure:8061: checking for dbopen in -ldb1" >&5
8061 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
8062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8063 echo $ac_n "(cached) $ac_c" 1>&6
8065 ac_save_LIBS="$LIBS"
8067 cat > conftest.$ac_ext <<EOF
8068 #line 8069 "configure"
8069 #include "confdefs.h"
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 eval "ac_cv_lib_$ac_lib_var=yes"
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8086 eval "ac_cv_lib_$ac_lib_var=no"
8089 LIBS="$ac_save_LIBS"
8092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8096 echo "$ac_t""no" 1>&6
8098 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8099 echo "configure:8100: checking for dbopen in -ldb" >&5
8100 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8104 ac_save_LIBS="$LIBS"
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8118 if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8120 eval "ac_cv_lib_$ac_lib_var=yes"
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8125 eval "ac_cv_lib_$ac_lib_var=no"
8128 LIBS="$ac_save_LIBS"
8131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8132 echo "$ac_t""yes" 1>&6
8135 echo "$ac_t""no" 1>&6
8149 echo "$ac_t""$ol_cv_lib_db" 1>&6
8152 for ac_hdr in db_185.h
8154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8156 echo "configure:8157: checking for $ac_hdr" >&5
8157 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8160 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8166 { (eval echo configure:8167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8168 if test -z "$ac_err"; then
8170 eval "ac_cv_header_$ac_safe=yes"
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8176 eval "ac_cv_header_$ac_safe=no"
8180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8181 echo "$ac_t""yes" 1>&6
8182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8183 cat >> confdefs.h <<EOF
8184 #define $ac_tr_hdr 1
8188 echo "$ac_t""no" 1>&6
8192 if test "$ol_cv_header_db2" = yes ; then
8194 ol_cv_header_db=$ac_cv_header_db_185_h
8196 ol_cv_header_db=$ac_cv_header_db_h
8201 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
8202 echo "configure:8203: checking for Berkeley DB" >&5
8203 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8207 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
8208 ol_cv_berkeley_db=no
8210 ol_cv_berkeley_db=yes
8215 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
8216 if test $ol_cv_berkeley_db = yes ; then
8217 cat >> confdefs.h <<\EOF
8218 #define HAVE_BERKELEY_DB 1
8224 if test $ol_cv_berkeley_db = yes ; then
8228 if test $ol_with_ldbm_type = hash ; then
8229 cat >> confdefs.h <<\EOF
8230 #define LDBM_USE_DBHASH 1
8234 cat >> confdefs.h <<\EOF
8235 #define LDBM_USE_DBBTREE 1
8240 if test $ol_cv_lib_db != yes ; then
8241 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
8246 if test $ol_with_ldbm_api = manual ; then
8249 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
8251 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
8253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8255 echo "configure:8256: checking for $ac_hdr" >&5
8256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8257 echo $ac_n "(cached) $ac_c" 1>&6
8259 cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8265 { (eval echo configure:8266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8267 if test -z "$ac_err"; then
8269 eval "ac_cv_header_$ac_safe=yes"
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8275 eval "ac_cv_header_$ac_safe=no"
8279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8280 echo "$ac_t""yes" 1>&6
8281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8282 cat >> confdefs.h <<EOF
8283 #define $ac_tr_hdr 1
8287 echo "$ac_t""no" 1>&6
8293 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
8294 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
8295 ol_with_ldbm_api=none
8298 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
8299 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
8300 echo "configure:8301: checking for MDBM library" >&5
8301 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8305 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
8306 echo "configure:8307: checking for mdbm_set_chain" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 /* System header to define __stub macros and hopefully few prototypes,
8314 which can conflict with char mdbm_set_chain(); below. */
8316 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319 char mdbm_set_chain();
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 eval "ac_cv_func_mdbm_set_chain=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_func_mdbm_set_chain=no"
8346 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8347 echo "$ac_t""yes" 1>&6
8350 echo "$ac_t""no" 1>&6
8352 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8353 echo "configure:8354: checking for mdbm_set_chain in -lmdbm" >&5
8354 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
8355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8358 ac_save_LIBS="$LIBS"
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8366 char mdbm_set_chain();
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8374 eval "ac_cv_lib_$ac_lib_var=yes"
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8379 eval "ac_cv_lib_$ac_lib_var=no"
8382 LIBS="$ac_save_LIBS"
8385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8386 echo "$ac_t""yes" 1>&6
8387 ol_cv_lib_mdbm=-lmdbm
8389 echo "$ac_t""no" 1>&6
8400 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8403 for ac_hdr in mdbm.h
8405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8407 echo "configure:8408: checking for $ac_hdr" >&5
8408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8409 echo $ac_n "(cached) $ac_c" 1>&6
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8419 if test -z "$ac_err"; then
8421 eval "ac_cv_header_$ac_safe=yes"
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8427 eval "ac_cv_header_$ac_safe=no"
8431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8432 echo "$ac_t""yes" 1>&6
8433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8434 cat >> confdefs.h <<EOF
8435 #define $ac_tr_hdr 1
8439 echo "$ac_t""no" 1>&6
8443 echo $ac_n "checking for db""... $ac_c" 1>&6
8444 echo "configure:8445: checking for db" >&5
8445 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8449 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8457 echo "$ac_t""$ol_cv_mdbm" 1>&6
8458 if test $ol_cv_mdbm = yes ; then
8459 cat >> confdefs.h <<\EOF
8466 if test $ol_cv_mdbm = yes ; then
8468 ol_with_ldbm_api=mdbm
8469 if test $ol_cv_lib_mdbm != yes ; then
8470 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8475 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8476 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8477 echo "configure:8478: checking for GDBM library" >&5
8478 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
8479 echo $ac_n "(cached) $ac_c" 1>&6
8482 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8483 echo "configure:8484: checking for gdbm_open" >&5
8484 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8490 /* System header to define __stub macros and hopefully few prototypes,
8491 which can conflict with char gdbm_open(); below. */
8493 /* Override any gcc2 internal prototype to avoid an error. */
8494 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */
8500 /* The GNU C library defines this for functions which it implements
8501 to always fail with ENOSYS. Some functions are actually named
8502 something starting with __ and the normal name is an alias. */
8503 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8511 if { (eval echo configure:8512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8513 eval "ac_cv_func_gdbm_open=yes"
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8518 eval "ac_cv_func_gdbm_open=no"
8523 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8524 echo "$ac_t""yes" 1>&6
8527 echo "$ac_t""no" 1>&6
8529 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8530 echo "configure:8531: checking for gdbm_open in -lgdbm" >&5
8531 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8535 ac_save_LIBS="$LIBS"
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8540 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8551 eval "ac_cv_lib_$ac_lib_var=yes"
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 eval "ac_cv_lib_$ac_lib_var=no"
8559 LIBS="$ac_save_LIBS"
8562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8563 echo "$ac_t""yes" 1>&6
8564 ol_cv_lib_gdbm=-lgdbm
8566 echo "$ac_t""no" 1>&6
8577 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8580 for ac_hdr in gdbm.h
8582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8584 echo "configure:8585: checking for $ac_hdr" >&5
8585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8588 cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8594 { (eval echo configure:8595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8596 if test -z "$ac_err"; then
8598 eval "ac_cv_header_$ac_safe=yes"
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8604 eval "ac_cv_header_$ac_safe=no"
8608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8609 echo "$ac_t""yes" 1>&6
8610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8611 cat >> confdefs.h <<EOF
8612 #define $ac_tr_hdr 1
8616 echo "$ac_t""no" 1>&6
8620 echo $ac_n "checking for db""... $ac_c" 1>&6
8621 echo "configure:8622: checking for db" >&5
8622 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8623 echo $ac_n "(cached) $ac_c" 1>&6
8626 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8634 echo "$ac_t""$ol_cv_gdbm" 1>&6
8635 if test $ol_cv_gdbm = yes ; then
8636 cat >> confdefs.h <<\EOF
8643 if test $ol_cv_gdbm = yes ; then
8645 ol_with_ldbm_api=gdbm
8647 if test $ol_cv_lib_gdbm != yes ; then
8648 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8653 if test $ol_with_ldbm_api = auto ; then
8654 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8655 elif test $ol_with_ldbm_api = ndbm ; then
8656 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8657 echo "configure:8658: checking for NDBM library" >&5
8658 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8662 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8663 echo "configure:8664: checking for dbm_open" >&5
8664 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char dbm_open(); below. */
8673 /* Override any gcc2 internal prototype to avoid an error. */
8674 /* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8693 eval "ac_cv_func_dbm_open=yes"
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 eval "ac_cv_func_dbm_open=no"
8703 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8704 echo "$ac_t""yes" 1>&6
8707 echo "$ac_t""no" 1>&6
8709 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8710 echo "configure:8711: checking for dbm_open in -lndbm" >&5
8711 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 ac_save_LIBS="$LIBS"
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8731 eval "ac_cv_lib_$ac_lib_var=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_lib_$ac_lib_var=no"
8739 LIBS="$ac_save_LIBS"
8742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8743 echo "$ac_t""yes" 1>&6
8744 ol_cv_lib_ndbm=-lndbm
8746 echo "$ac_t""no" 1>&6
8748 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8749 echo "configure:8750: checking for dbm_open in -ldbm" >&5
8750 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8754 ac_save_LIBS="$LIBS"
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 /* Override any gcc2 internal prototype to avoid an error. */
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8770 eval "ac_cv_lib_$ac_lib_var=yes"
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 eval "ac_cv_lib_$ac_lib_var=no"
8778 LIBS="$ac_save_LIBS"
8781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8782 echo "$ac_t""yes" 1>&6
8783 ol_cv_lib_ndbm=-ldbm
8785 echo "$ac_t""no" 1>&6
8798 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8801 for ac_hdr in ndbm.h
8803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8805 echo "configure:8806: checking for $ac_hdr" >&5
8806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8807 echo $ac_n "(cached) $ac_c" 1>&6
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8815 { (eval echo configure:8816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8817 if test -z "$ac_err"; then
8819 eval "ac_cv_header_$ac_safe=yes"
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8825 eval "ac_cv_header_$ac_safe=no"
8829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8830 echo "$ac_t""yes" 1>&6
8831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8832 cat >> confdefs.h <<EOF
8833 #define $ac_tr_hdr 1
8837 echo "$ac_t""no" 1>&6
8841 echo $ac_n "checking for db""... $ac_c" 1>&6
8842 echo "configure:8843: checking for db" >&5
8843 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8847 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8855 echo "$ac_t""$ol_cv_ndbm" 1>&6
8856 if test $ol_cv_ndbm = yes ; then
8857 cat >> confdefs.h <<\EOF
8864 if test $ol_cv_ndbm = yes ; then
8866 ol_with_ldbm_api=ndbm
8868 if test $ol_cv_lib_ndbm != yes ; then
8869 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8874 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8875 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8876 if test $ol_enable_ldbm = yes ; then
8877 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8880 echo "configure: warning: disabling LDBM" 1>&2
8884 if test $ol_enable_wrappers != no ; then
8885 for ac_hdr in tcpd.h
8887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8889 echo "configure:8890: checking for $ac_hdr" >&5
8890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8899 { (eval echo configure:8900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8901 if test -z "$ac_err"; then
8903 eval "ac_cv_header_$ac_safe=yes"
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8909 eval "ac_cv_header_$ac_safe=no"
8913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8914 echo "$ac_t""yes" 1>&6
8915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8916 cat >> confdefs.h <<EOF
8917 #define $ac_tr_hdr 1
8921 echo "$ac_t""no" 1>&6
8926 if test $ac_cv_header_tcpd_h != yes ; then
8929 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8930 echo "configure:8931: checking for main in -lwrap" >&5
8931 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8933 echo $ac_n "(cached) $ac_c" 1>&6
8935 ac_save_LIBS="$LIBS"
8937 cat > conftest.$ac_ext <<EOF
8938 #line 8939 "configure"
8939 #include "confdefs.h"
8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8947 eval "ac_cv_lib_$ac_lib_var=yes"
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8952 eval "ac_cv_lib_$ac_lib_var=no"
8955 LIBS="$ac_save_LIBS"
8958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8959 echo "$ac_t""yes" 1>&6
8962 echo "$ac_t""no" 1>&6
8968 if test $have_wrappers = yes ; then
8969 cat >> confdefs.h <<\EOF
8973 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8975 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8976 echo "configure:8977: checking for main in -lnsl" >&5
8977 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8981 ac_save_LIBS="$LIBS"
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8993 eval "ac_cv_lib_$ac_lib_var=yes"
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8998 eval "ac_cv_lib_$ac_lib_var=no"
9001 LIBS="$ac_save_LIBS"
9004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9005 echo "$ac_t""yes" 1>&6
9006 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9008 cat >> confdefs.h <<EOF
9009 #define $ac_tr_lib 1
9015 echo "$ac_t""no" 1>&6
9019 echo "configure: warning: could not find -lwrap" 1>&2
9020 if test $ol_enable_wrappers = yes ; then
9021 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9024 echo "configure: warning: disabling wrappers support" 1>&2
9025 ol_enable_wrappers=no
9029 if test $ol_enable_syslog != no ; then
9030 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9031 echo "configure:9032: checking for openlog" >&5
9032 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
9035 cat > conftest.$ac_ext <<EOF
9036 #line 9037 "configure"
9037 #include "confdefs.h"
9038 /* System header to define __stub macros and hopefully few prototypes,
9039 which can conflict with char openlog(); below. */
9041 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9048 /* The GNU C library defines this for functions which it implements
9049 to always fail with ENOSYS. Some functions are actually named
9050 something starting with __ and the normal name is an alias. */
9051 #if defined (__stub_openlog) || defined (__stub___openlog)
9059 if { (eval echo configure:9060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9061 eval "ac_cv_func_openlog=yes"
9063 echo "configure: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9066 eval "ac_cv_func_openlog=no"
9071 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9072 echo "$ac_t""yes" 1>&6
9075 echo "$ac_t""no" 1>&6
9078 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9079 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9081 ol_enable_syslog=$ac_cv_func_openlog
9084 if test $ol_enable_dmalloc != no ; then
9085 for ac_hdr in dmalloc.h
9087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9089 echo "configure:9090: checking for $ac_hdr" >&5
9090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9093 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9099 { (eval echo configure:9100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9101 if test -z "$ac_err"; then
9103 eval "ac_cv_header_$ac_safe=yes"
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 eval "ac_cv_header_$ac_safe=no"
9113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9114 echo "$ac_t""yes" 1>&6
9115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9116 cat >> confdefs.h <<EOF
9117 #define $ac_tr_hdr 1
9121 echo "$ac_t""no" 1>&6
9125 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
9126 echo "configure:9127: checking for dmalloc_shutdown in -ldmalloc" >&5
9127 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
9128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9131 ac_save_LIBS="$LIBS"
9132 LIBS="-ldmalloc $LIBS"
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 /* Override any gcc2 internal prototype to avoid an error. */
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139 char dmalloc_shutdown();
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9147 eval "ac_cv_lib_$ac_lib_var=yes"
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9152 eval "ac_cv_lib_$ac_lib_var=no"
9155 LIBS="$ac_save_LIBS"
9158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9159 echo "$ac_t""yes" 1>&6
9160 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9162 cat >> confdefs.h <<EOF
9163 #define $ac_tr_lib 1
9166 LIBS="-ldmalloc $LIBS"
9169 echo "$ac_t""no" 1>&6
9174 if test $ol_enable_tcl != no ; then
9177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9179 echo "configure:9180: checking for $ac_hdr" >&5
9180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9189 { (eval echo configure:9190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9191 if test -z "$ac_err"; then
9193 eval "ac_cv_header_$ac_safe=yes"
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 eval "ac_cv_header_$ac_safe=no"
9203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9204 echo "$ac_t""yes" 1>&6
9205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9206 cat >> confdefs.h <<EOF
9207 #define $ac_tr_hdr 1
9211 echo "$ac_t""no" 1>&6
9216 if test $ac_cv_header_tcl_h != yes ; then
9219 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
9220 echo "configure:9221: checking for main in -ltcl" >&5
9221 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
9222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9225 ac_save_LIBS="$LIBS"
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9237 eval "ac_cv_lib_$ac_lib_var=yes"
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9242 eval "ac_cv_lib_$ac_lib_var=no"
9245 LIBS="$ac_save_LIBS"
9248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9249 echo "$ac_t""yes" 1>&6
9250 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
9252 echo "$ac_t""no" 1>&6
9257 if test $have_tcl != yes; then
9258 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
9259 echo "configure:9260: checking for main in -ltcl7.6" >&5
9260 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
9261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9264 ac_save_LIBS="$LIBS"
9265 LIBS="-ltcl7.6 $LIBS"
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9274 if { (eval echo configure:9275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9276 eval "ac_cv_lib_$ac_lib_var=yes"
9278 echo "configure: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9281 eval "ac_cv_lib_$ac_lib_var=no"
9284 LIBS="$ac_save_LIBS"
9287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9288 echo "$ac_t""yes" 1>&6
9289 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
9291 echo "$ac_t""no" 1>&6
9297 if test $have_tcl != yes; then
9298 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
9299 echo "configure:9300: checking for main in -ltcl8.0" >&5
9300 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
9301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9304 ac_save_LIBS="$LIBS"
9305 LIBS="-ltcl8.0 $LIBS"
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9314 if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9316 eval "ac_cv_lib_$ac_lib_var=yes"
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9321 eval "ac_cv_lib_$ac_lib_var=no"
9324 LIBS="$ac_save_LIBS"
9327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9328 echo "$ac_t""yes" 1>&6
9329 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
9331 echo "$ac_t""no" 1>&6
9338 if test $have_tcl != yes ; then
9339 echo "configure: warning: could not find -ltcl" 1>&2
9340 if test $ol_enable_tcl = yes ; then
9341 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9348 # ud needs termcap (should insert check here)
9350 for ac_hdr in termcap.h ncurses.h
9352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9354 echo "configure:9355: checking for $ac_hdr" >&5
9355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9358 cat > conftest.$ac_ext <<EOF
9359 #line 9360 "configure"
9360 #include "confdefs.h"
9363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9364 { (eval echo configure:9365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9366 if test -z "$ac_err"; then
9368 eval "ac_cv_header_$ac_safe=yes"
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 eval "ac_cv_header_$ac_safe=no"
9378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9379 echo "$ac_t""yes" 1>&6
9380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9381 cat >> confdefs.h <<EOF
9382 #define $ac_tr_hdr 1
9386 echo "$ac_t""no" 1>&6
9391 if test $ol_link_termcap = no ; then
9392 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9393 echo "configure:9394: checking for tputs in -ltermcap" >&5
9394 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
9395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9398 ac_save_LIBS="$LIBS"
9399 LIBS="-ltermcap $LIBS"
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 eval "ac_cv_lib_$ac_lib_var=yes"
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 eval "ac_cv_lib_$ac_lib_var=no"
9422 LIBS="$ac_save_LIBS"
9425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9426 echo "$ac_t""yes" 1>&6
9429 echo "$ac_t""no" 1>&6
9433 if test $have_termcap = yes ; then
9434 cat >> confdefs.h <<\EOF
9435 #define HAVE_TERMCAP 1
9439 TERMCAP_LIBS=-ltermcap
9443 if test $ol_link_termcap = no ; then
9444 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9445 echo "configure:9446: checking for initscr in -lncurses" >&5
9446 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
9447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9450 ac_save_LIBS="$LIBS"
9451 LIBS="-lncurses $LIBS"
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9455 /* Override any gcc2 internal prototype to avoid an error. */
9456 /* We use char because int might match the return type of a gcc2
9457 builtin and then its argument prototype would still apply. */
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9466 eval "ac_cv_lib_$ac_lib_var=yes"
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9471 eval "ac_cv_lib_$ac_lib_var=no"
9474 LIBS="$ac_save_LIBS"
9477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9478 echo "$ac_t""yes" 1>&6
9481 echo "$ac_t""no" 1>&6
9485 if test $have_ncurses = yes ; then
9486 cat >> confdefs.h <<\EOF
9487 #define HAVE_NCURSES 1
9491 TERMCAP_LIBS=-lncurses
9495 if test $ol_link_termcap = no ; then
9496 cat >> confdefs.h <<\EOF
9497 #define NO_TERMCAP 1
9504 if test $ol_with_readline != no ; then
9505 for ac_hdr in readline/readline.h readline/history.h
9507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9509 echo "configure:9510: checking for $ac_hdr" >&5
9510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9519 { (eval echo configure:9520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9521 if test -z "$ac_err"; then
9523 eval "ac_cv_header_$ac_safe=yes"
9526 echo "configure: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9529 eval "ac_cv_header_$ac_safe=no"
9533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9534 echo "$ac_t""yes" 1>&6
9535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9536 cat >> confdefs.h <<EOF
9537 #define $ac_tr_hdr 1
9541 echo "$ac_t""no" 1>&6
9546 if test $ac_cv_header_readline_readline_h = yes ; then
9548 LIBS="$TERMCAP_LIBS $LIBS"
9549 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9550 echo "configure:9551: checking for readline in -lreadline" >&5
9551 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9555 ac_save_LIBS="$LIBS"
9556 LIBS="-lreadline $LIBS"
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 /* Override any gcc2 internal prototype to avoid an error. */
9561 /* We use char because int might match the return type of a gcc2
9562 builtin and then its argument prototype would still apply. */
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9571 eval "ac_cv_lib_$ac_lib_var=yes"
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9576 eval "ac_cv_lib_$ac_lib_var=no"
9579 LIBS="$ac_save_LIBS"
9582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9583 echo "$ac_t""yes" 1>&6
9586 echo "$ac_t""no" 1>&6
9592 if test $have_readline = yes ; then
9593 ol_with_readline=found
9594 ol_link_readline=yes
9596 READLINE_LIBS="-lreadline"
9601 if test $ol_link_readline = yes ; then
9602 cat >> confdefs.h <<\EOF
9603 #define HAVE_READLINE 1
9609 # FreeBSD (and others) have crypt(3) in -lcrypt
9610 if test $ol_enable_crypt != no ; then
9611 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9612 echo "configure:9613: checking for crypt" >&5
9613 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9619 /* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char crypt(); below. */
9622 /* Override any gcc2 internal prototype to avoid an error. */
9623 /* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9629 /* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
9632 #if defined (__stub_crypt) || defined (__stub___crypt)
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9642 eval "ac_cv_func_crypt=yes"
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 eval "ac_cv_func_crypt=no"
9652 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9653 echo "$ac_t""yes" 1>&6
9656 echo "$ac_t""no" 1>&6
9658 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9659 echo "configure:9660: checking for crypt in -lcrypt" >&5
9660 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9664 ac_save_LIBS="$LIBS"
9665 LIBS="-lcrypt $LIBS"
9666 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9669 /* Override any gcc2 internal prototype to avoid an error. */
9670 /* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */
9678 if { (eval echo configure:9679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9680 eval "ac_cv_lib_$ac_lib_var=yes"
9682 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9685 eval "ac_cv_lib_$ac_lib_var=no"
9688 LIBS="$ac_save_LIBS"
9691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9692 echo "$ac_t""yes" 1>&6
9693 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9696 echo "$ac_t""no" 1>&6
9703 if test $have_crypt = yes ; then
9704 cat >> confdefs.h <<\EOF
9705 #define HAVE_CRYPT 1
9709 echo "configure: warning: could not find crypt" 1>&2
9710 if test $ol_enable_crypt = yes ; then
9711 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9714 echo "configure: warning: disabling crypt support" 1>&2
9719 # FreeBSD (and others) have setproctitle(3) in -lutil
9720 if test $ol_enable_proctitle != no ; then
9721 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9722 echo "configure:9723: checking for setproctitle" >&5
9723 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9726 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure"
9728 #include "confdefs.h"
9729 /* System header to define __stub macros and hopefully few prototypes,
9730 which can conflict with char setproctitle(); below. */
9732 /* Override any gcc2 internal prototype to avoid an error. */
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9735 char setproctitle();
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9750 if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9752 eval "ac_cv_func_setproctitle=yes"
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9757 eval "ac_cv_func_setproctitle=no"
9762 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 have_setproctitle=yes
9766 echo "$ac_t""no" 1>&6
9768 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9769 echo "configure:9770: checking for setproctitle in -lutil" >&5
9770 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9774 ac_save_LIBS="$LIBS"
9776 cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9779 /* Override any gcc2 internal prototype to avoid an error. */
9780 /* We use char because int might match the return type of a gcc2
9781 builtin and then its argument prototype would still apply. */
9782 char setproctitle();
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9790 eval "ac_cv_lib_$ac_lib_var=yes"
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9795 eval "ac_cv_lib_$ac_lib_var=no"
9798 LIBS="$ac_save_LIBS"
9801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9802 echo "$ac_t""yes" 1>&6
9803 have_setproctitle=yes
9804 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9806 echo "$ac_t""no" 1>&6
9807 have_setproctitle=no
9808 LIBOBJS="$LIBOBJS setproctitle.o"
9814 if test $have_setproctitle = yes ; then
9815 cat >> confdefs.h <<\EOF
9816 #define HAVE_SETPROCTITLE 1
9823 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9824 echo "configure:9825: checking for EBCDIC" >&5
9825 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9834 #include <__ASCII__/generate_error.h>
9838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9839 { (eval echo configure:9840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9841 if test -z "$ac_err"; then
9843 ol_cv_cpp_ebcdic=yes
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9854 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9855 if test $ol_cv_cpp_ebcdic = yes ; then
9856 cat >> confdefs.h <<\EOF
9857 #define HAVE_EBCDIC 1
9862 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9863 echo "configure:9864: checking for ANSI C header files" >&5
9864 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9876 { (eval echo configure:9877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9878 if test -z "$ac_err"; then
9880 ol_cv_header_stdc=yes
9883 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9886 ol_cv_header_stdc=no
9890 if test $ol_cv_header_stdc = yes; then
9891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9898 egrep "memchr" >/dev/null 2>&1; then
9902 ol_cv_header_stdc=no
9908 if test $ol_cv_header_stdc = yes; then
9909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9910 cat > conftest.$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9916 egrep "free" >/dev/null 2>&1; then
9920 ol_cv_header_stdc=no
9926 if test $ol_cv_header_stdc = yes; then
9927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9928 if test "$cross_compiling" = yes; then
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9939 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9940 || ('j' <= (c) && (c) <= 'r') \
9941 || ('s' <= (c) && (c) <= 'z'))
9942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9945 int main () { int i; for (i = 0; i < 256; i++)
9946 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9950 if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9957 ol_cv_header_stdc=no
9965 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9966 if test $ol_cv_header_stdc = yes; then
9967 cat >> confdefs.h <<\EOF
9968 #define STDC_HEADERS 1
9972 ac_cv_header_stdc=disable
9975 if test $ol_cv_header_stdc != yes; then
9976 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9980 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9983 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9984 echo "configure:9985: checking for $ac_hdr that defines DIR" >&5
9985 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 #include <sys/types.h>
9997 if { (eval echo configure:9998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9999 eval "ac_cv_header_dirent_$ac_safe=yes"
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10004 eval "ac_cv_header_dirent_$ac_safe=no"
10008 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
10009 echo "$ac_t""yes" 1>&6
10010 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10011 cat >> confdefs.h <<EOF
10012 #define $ac_tr_hdr 1
10014 ac_header_dirent=$ac_hdr; break
10016 echo "$ac_t""no" 1>&6
10019 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10020 if test $ac_header_dirent = dirent.h; then
10021 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
10022 echo "configure:10023: checking for opendir in -ldir" >&5
10023 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
10024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10027 ac_save_LIBS="$LIBS"
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10041 if { (eval echo configure:10042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10043 eval "ac_cv_lib_$ac_lib_var=yes"
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10048 eval "ac_cv_lib_$ac_lib_var=no"
10051 LIBS="$ac_save_LIBS"
10054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10055 echo "$ac_t""yes" 1>&6
10058 echo "$ac_t""no" 1>&6
10062 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
10063 echo "configure:10064: checking for opendir in -lx" >&5
10064 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
10065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10068 ac_save_LIBS="$LIBS"
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 /* Override any gcc2 internal prototype to avoid an error. */
10074 /* We use char because int might match the return type of a gcc2
10075 builtin and then its argument prototype would still apply. */
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084 eval "ac_cv_lib_$ac_lib_var=yes"
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10089 eval "ac_cv_lib_$ac_lib_var=no"
10092 LIBS="$ac_save_LIBS"
10095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10096 echo "$ac_t""yes" 1>&6
10099 echo "$ac_t""no" 1>&6
10104 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
10105 echo "configure:10106: checking for sys/wait.h that is POSIX.1 compatible" >&5
10106 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include <sys/types.h>
10113 #include <sys/wait.h>
10114 #ifndef WEXITSTATUS
10115 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10118 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10126 if { (eval echo configure:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10128 ac_cv_header_sys_wait_h=yes
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 ac_cv_header_sys_wait_h=no
10138 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
10139 if test $ac_cv_header_sys_wait_h = yes; then
10140 cat >> confdefs.h <<\EOF
10141 #define HAVE_SYS_WAIT_H 1
10146 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
10147 echo "configure:10148: checking POSIX termios" >&5
10148 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include <sys/types.h>
10155 #include <unistd.h>
10156 #include <termios.h>
10158 /* SunOS 4.0.3 has termios.h but not the library calls. */
10162 if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10164 am_cv_sys_posix_termios=yes
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10169 am_cv_sys_posix_termios=no
10174 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
10177 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
10178 echo "configure:10179: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
10179 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10182 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
10184 gwinsz_in_termios_h=no
10185 if test $am_cv_sys_posix_termios = yes; then
10186 cat > conftest.$ac_ext <<EOF
10187 #line 10188 "configure"
10188 #include "confdefs.h"
10189 #include <sys/types.h>
10190 # include <termios.h>
10196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10197 egrep "yes" >/dev/null 2>&1; then
10199 gwinsz_in_termios_h=yes
10205 if test $gwinsz_in_termios_h = no; then
10206 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure"
10208 #include "confdefs.h"
10209 #include <sys/types.h>
10210 # include <sys/ioctl.h>
10216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10217 egrep "yes" >/dev/null 2>&1; then
10219 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
10227 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
10228 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
10229 cat >> confdefs.h <<\EOF
10230 #define GWINSZ_IN_SYS_IOCTL 1
10235 if test $am_cv_sys_posix_termios = yes ; then
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_POSIX_TERMIOS 1
10283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10285 echo "configure:10286: checking for $ac_hdr" >&5
10286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10289 cat > conftest.$ac_ext <<EOF
10290 #line 10291 "configure"
10291 #include "confdefs.h"
10294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10295 { (eval echo configure:10296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10297 if test -z "$ac_err"; then
10299 eval "ac_cv_header_$ac_safe=yes"
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10305 eval "ac_cv_header_$ac_safe=no"
10309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10310 echo "$ac_t""yes" 1>&6
10311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10312 cat >> confdefs.h <<EOF
10313 #define $ac_tr_hdr 1
10317 echo "$ac_t""no" 1>&6
10322 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10323 echo "configure:10324: checking for uid_t in sys/types.h" >&5
10324 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10325 echo $ac_n "(cached) $ac_c" 1>&6
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10330 #include <sys/types.h>
10332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10333 egrep "uid_t" >/dev/null 2>&1; then
10335 ac_cv_type_uid_t=yes
10338 ac_cv_type_uid_t=no
10344 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10345 if test $ac_cv_type_uid_t = no; then
10346 cat >> confdefs.h <<\EOF
10350 cat >> confdefs.h <<\EOF
10356 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10357 echo "configure:10358: checking type of array argument to getgroups" >&5
10358 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
10359 echo $ac_n "(cached) $ac_c" 1>&6
10361 if test "$cross_compiling" = yes; then
10362 ac_cv_type_getgroups=cross
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10366 "configure"
10366 #include "confdefs.h"
10368 /* Thanks to Mike Rendell for this test. */
10369 #include <sys/types.h>
10372 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10375 gid_t gidset[NGID];
10377 union { gid_t gval; long lval; } val;
10380 for (i = 0; i < NGID; i++)
10381 gidset[i] = val.gval;
10382 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10384 /* Exit non-zero if getgroups seems to require an array of ints. This
10385 happens when gid_t is short but getgroups modifies an array of ints. */
10386 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10390 if { (eval echo configure:10391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10392 ac_cv_type_getgroups=gid_t
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10397 ac_cv_type_getgroups=int
10402 if test $ac_cv_type_getgroups = cross; then
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10406 #include <unistd.h>
10408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10409 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10411 ac_cv_type_getgroups=gid_t
10414 ac_cv_type_getgroups=int
10421 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10422 cat >> confdefs.h <<EOF
10423 #define GETGROUPS_T $ac_cv_type_getgroups
10426 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10427 echo "configure:10428: checking for ANSI C header files" >&5
10428 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10429 echo $ac_n "(cached) $ac_c" 1>&6
10431 cat > conftest.$ac_ext <<EOF
10432 #line 10433 "configure"
10433 #include "confdefs.h"
10434 #include <stdlib.h>
10435 #include <stdarg.h>
10436 #include <string.h>
10439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10440 { (eval echo configure:10441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10442 if test -z "$ac_err"; then
10444 ac_cv_header_stdc=yes
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10450 ac_cv_header_stdc=no
10454 if test $ac_cv_header_stdc = yes; then
10455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10459 #include <string.h>
10461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10462 egrep "memchr" >/dev/null 2>&1; then
10466 ac_cv_header_stdc=no
10472 if test $ac_cv_header_stdc = yes; then
10473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10474 cat > conftest.$ac_ext <<EOF
10475 #line 10476 "configure"
10476 #include "confdefs.h"
10477 #include <stdlib.h>
10479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10480 egrep "free" >/dev/null 2>&1; then
10484 ac_cv_header_stdc=no
10490 if test $ac_cv_header_stdc = yes; then
10491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10492 if test "$cross_compiling" = yes; then
10495 cat > conftest.$ac_ext <<EOF
10496 #line 10497 "configure"
10497 #include "confdefs.h"
10499 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10500 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10502 int main () { int i; for (i = 0; i < 256; i++)
10503 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 ac_cv_header_stdc=no
10522 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10523 if test $ac_cv_header_stdc = yes; then
10524 cat >> confdefs.h <<\EOF
10525 #define STDC_HEADERS 1
10530 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10531 echo "configure:10532: checking for mode_t" >&5
10532 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538 #include <sys/types.h>
10540 #include <stdlib.h>
10541 #include <stddef.h>
10544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10545 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10547 ac_cv_type_mode_t=yes
10550 ac_cv_type_mode_t=no
10555 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10556 if test $ac_cv_type_mode_t = no; then
10557 cat >> confdefs.h <<\EOF
10563 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10564 echo "configure:10565: checking for off_t" >&5
10565 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <sys/types.h>
10573 #include <stdlib.h>
10574 #include <stddef.h>
10577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10578 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10580 ac_cv_type_off_t=yes
10583 ac_cv_type_off_t=no
10588 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10589 if test $ac_cv_type_off_t = no; then
10590 cat >> confdefs.h <<\EOF
10596 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10597 echo "configure:10598: checking for pid_t" >&5
10598 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10601 cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure"
10603 #include "confdefs.h"
10604 #include <sys/types.h>
10606 #include <stdlib.h>
10607 #include <stddef.h>
10610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10611 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10613 ac_cv_type_pid_t=yes
10616 ac_cv_type_pid_t=no
10621 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10622 if test $ac_cv_type_pid_t = no; then
10623 cat >> confdefs.h <<\EOF
10629 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10630 echo "configure:10631: checking for ptrdiff_t" >&5
10631 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10632 echo $ac_n "(cached) $ac_c" 1>&6
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 #include <stddef.h>
10642 if { (eval echo configure:10643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10644 am_cv_type_ptrdiff_t=yes
10646 echo "configure: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10649 am_cv_type_ptrdiff_t=no
10654 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10655 if test $am_cv_type_ptrdiff_t = yes; then
10656 cat >> confdefs.h <<\EOF
10657 #define HAVE_PTRDIFF_T 1
10662 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10663 echo "configure:10664: checking return type of signal handlers" >&5
10664 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include <sys/types.h>
10671 #include <signal.h>
10676 extern "C" void (*signal (int, void (*)(int)))(int);
10678 void (*signal ()) ();
10685 if { (eval echo configure:10686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10687 ac_cv_type_signal=void
10689 echo "configure: failed program was:" >&5
10690 cat conftest.$ac_ext >&5
10692 ac_cv_type_signal=int
10697 echo "$ac_t""$ac_cv_type_signal" 1>&6
10698 cat >> confdefs.h <<EOF
10699 #define RETSIGTYPE $ac_cv_type_signal
10703 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10704 echo "configure:10705: checking for sig_atomic_t" >&5
10705 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 #include <signal.h>
10713 sig_atomic_t atomic;
10716 if { (eval echo configure:10717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10718 ol_cv_type_sig_atomic_t=yes
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10723 ol_cv_type_sig_atomic_t=no
10728 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10729 if test $ol_cv_type_sig_atomic_t = no; then
10730 cat >> confdefs.h <<\EOF
10731 #define sig_atomic_t int
10736 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10737 echo "configure:10738: checking for size_t" >&5
10738 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10741 cat > conftest.$ac_ext <<EOF
10742 #line 10743 "configure"
10743 #include "confdefs.h"
10744 #include <sys/types.h>
10746 #include <stdlib.h>
10747 #include <stddef.h>
10750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10751 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10753 ac_cv_type_size_t=yes
10756 ac_cv_type_size_t=no
10761 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10762 if test $ac_cv_type_size_t = no; then
10763 cat >> confdefs.h <<\EOF
10764 #define size_t unsigned
10769 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10770 echo "configure:10771: checking for st_blksize in struct stat" >&5
10771 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10772 echo $ac_n "(cached) $ac_c" 1>&6
10774 cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure"
10776 #include "confdefs.h"
10777 #include <sys/types.h>
10778 #include <sys/stat.h>
10780 struct stat s; s.st_blksize;
10783 if { (eval echo configure:10784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10785 ac_cv_struct_st_blksize=yes
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10790 ac_cv_struct_st_blksize=no
10795 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10796 if test $ac_cv_struct_st_blksize = yes; then
10797 cat >> confdefs.h <<\EOF
10798 #define HAVE_ST_BLKSIZE 1
10803 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10804 echo "configure:10805: checking whether time.h and sys/time.h may both be included" >&5
10805 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 #include <sys/types.h>
10812 #include <sys/time.h>
10818 if { (eval echo configure:10819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10820 ac_cv_header_time=yes
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10825 ac_cv_header_time=no
10830 echo "$ac_t""$ac_cv_header_time" 1>&6
10831 if test $ac_cv_header_time = yes; then
10832 cat >> confdefs.h <<\EOF
10833 #define TIME_WITH_SYS_TIME 1
10838 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10839 echo "configure:10840: checking whether struct tm is in sys/time.h or time.h" >&5
10840 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10841 echo $ac_n "(cached) $ac_c" 1>&6
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 #include <sys/types.h>
10849 struct tm *tp; tp->tm_sec;
10852 if { (eval echo configure:10853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10854 ac_cv_struct_tm=time.h
10856 echo "configure: failed program was:" >&5
10857 cat conftest.$ac_ext >&5
10859 ac_cv_struct_tm=sys/time.h
10864 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10865 if test $ac_cv_struct_tm = sys/time.h; then
10866 cat >> confdefs.h <<\EOF
10867 #define TM_IN_SYS_TIME 1
10872 # test for pw_gecos in struct passwd
10873 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10874 echo "configure:10875: checking struct passwd for pw_gecos" >&5
10875 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10879 cat > conftest.$ac_ext <<EOF
10880 #line 10881 "configure"
10881 #include "confdefs.h"
10886 pwd.pw_gecos = pwd.pw_name;
10890 if { (eval echo configure:10891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10892 ol_cv_struct_passwd_pw_gecos=yes
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10897 ol_cv_struct_passwd_pw_gecos=no
10902 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10903 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10904 cat >> confdefs.h <<\EOF
10905 #define HAVE_PW_GECOS 1
10910 # test for pw_passwd in struct passwd
10911 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
10912 echo "configure:10913: checking struct passwd for pw_passwd" >&5
10913 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_passwd'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10924 pwd.pw_passwd = pwd.pw_name;
10928 if { (eval echo configure:10929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10930 ol_cv_struct_passwd_pw_passwd=yes
10932 echo "configure: failed program was:" >&5
10933 cat conftest.$ac_ext >&5
10935 ol_cv_struct_passwd_pw_passwd=no
10940 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
10941 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
10942 cat >> confdefs.h <<\EOF
10943 #define HAVE_PW_PASSWD 1
10950 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10951 echo "configure:10952: checking if toupper() requires islower()" >&5
10952 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10953 echo $ac_n "(cached) $ac_c" 1>&6
10956 if test "$cross_compiling" = yes; then
10957 ol_cv_c_upper_lower=safe
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10966 if ('C' == toupper('C'))
10972 if { (eval echo configure:10973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10974 ol_cv_c_upper_lower=no
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10979 ol_cv_c_upper_lower=yes
10986 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10987 if test $ol_cv_c_upper_lower != no ; then
10988 cat >> confdefs.h <<\EOF
10989 #define C_UPPER_LOWER 1
10994 echo $ac_n "checking for working const""... $ac_c" 1>&6
10995 echo "configure:10996: checking for working const" >&5
10996 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10997 echo $ac_n "(cached) $ac_c" 1>&6
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11005 /* Ultrix mips cc rejects this. */
11006 typedef int charset[2]; const charset x;
11007 /* SunOS 4.1.1 cc rejects this. */
11008 char const *const *ccp;
11010 /* NEC SVR4.0.2 mips cc rejects this. */
11011 struct point {int x, y;};
11012 static struct point const zero = {0,0};
11013 /* AIX XL C 1.02.0.0 rejects this.
11014 It does not let you subtract one const X* pointer from another in an arm
11015 of an if-expression whose if-part is not a constant expression */
11016 const char *g = "string";
11017 ccp = &g + (g ? g-g : 0);
11018 /* HPUX 7.0 cc rejects these. */
11021 ccp = (char const *const *) p;
11022 { /* SCO 3.2v4 cc rejects this. */
11024 char const *s = 0 ? (char *) 0 : (char const *) 0;
11028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11029 int x[] = {25, 17};
11030 const int *foo = &x[0];
11033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11034 typedef const int *iptr;
11038 { /* AIX XL C 1.02.0.0 rejects this saying
11039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11040 struct s { int j; const int *ap[3]; };
11041 struct s *b; b->j = 5;
11043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11044 const int foo = 10;
11049 if { (eval echo configure:11050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11061 echo "$ac_t""$ac_cv_c_const" 1>&6
11062 if test $ac_cv_c_const = no; then
11063 cat >> confdefs.h <<\EOF
11069 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11070 echo "configure:11071: checking if compiler understands volatile" >&5
11071 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11079 volatile int a; int * volatile b = x ? &y : &z;
11080 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11084 if { (eval echo configure:11085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11086 ol_cv_c_volatile=yes
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 ol_cv_c_volatile=no
11096 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11097 if test $ol_cv_c_volatile = yes; then
11100 cat >> confdefs.h <<\EOF
11107 if test $cross_compiling = yes ; then
11108 cat >> confdefs.h <<\EOF
11109 #define CROSS_COMPILING 1
11113 cat >> confdefs.h <<\EOF
11114 #define LBER_INT_T long
11117 cat >> confdefs.h <<\EOF
11118 #define LBER_TAG_T long
11121 cat >> confdefs.h <<\EOF
11122 #define LBER_SOCKET_T int
11127 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11128 echo "configure:11129: checking whether byte ordering is bigendian" >&5
11129 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11132 ac_cv_c_bigendian=unknown
11133 # See if sys/param.h defines the BYTE_ORDER macro.
11134 cat > conftest.$ac_ext <<EOF
11135 #line 11136 "configure"
11136 #include "confdefs.h"
11137 #include <sys/types.h>
11138 #include <sys/param.h>
11141 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11142 bogus endian macros
11146 if { (eval echo configure:11147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11148 # It does; now see whether it defined to BIG_ENDIAN or not.
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 #include <sys/types.h>
11153 #include <sys/param.h>
11156 #if BYTE_ORDER != BIG_ENDIAN
11161 if { (eval echo configure:11162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11163 ac_cv_c_bigendian=yes
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11168 ac_cv_c_bigendian=no
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11176 if test $ac_cv_c_bigendian = unknown; then
11177 if test "$cross_compiling" = yes; then
11178 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11184 /* Are we little or big endian? From Harbison&Steele. */
11188 char c[sizeof (long)];
11191 exit (u.c[sizeof (long) - 1] == 1);
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11196 ac_cv_c_bigendian=no
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11201 ac_cv_c_bigendian=yes
11209 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11210 if test $ac_cv_c_bigendian = yes; then
11211 cat >> confdefs.h <<\EOF
11212 #define WORDS_BIGENDIAN 1
11217 echo $ac_n "checking size of short""... $ac_c" 1>&6
11218 echo "configure:11219: checking size of short" >&5
11219 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11222 if test "$cross_compiling" = yes; then
11223 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11231 FILE *f=fopen("conftestval", "w");
11233 fprintf(f, "%d\n", sizeof(short));
11237 if { (eval echo configure:11238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11239 ac_cv_sizeof_short=`cat conftestval`
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11244 ac_cv_sizeof_short=0
11250 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11251 cat >> confdefs.h <<EOF
11252 #define SIZEOF_SHORT $ac_cv_sizeof_short
11256 echo $ac_n "checking size of int""... $ac_c" 1>&6
11257 echo "configure:11258: checking size of int" >&5
11258 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11259 echo $ac_n "(cached) $ac_c" 1>&6
11261 if test "$cross_compiling" = yes; then
11262 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11264 cat > conftest.$ac_ext <<EOF
11265 #line 11266 "configure"
11266 #include "confdefs.h"
11270 FILE *f=fopen("conftestval", "w");
11272 fprintf(f, "%d\n", sizeof(int));
11276 if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11278 ac_cv_sizeof_int=`cat conftestval`
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11289 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11290 cat >> confdefs.h <<EOF
11291 #define SIZEOF_INT $ac_cv_sizeof_int
11295 echo $ac_n "checking size of long""... $ac_c" 1>&6
11296 echo "configure:11297: checking size of long" >&5
11297 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11300 if test "$cross_compiling" = yes; then
11301 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11309 FILE *f=fopen("conftestval", "w");
11311 fprintf(f, "%d\n", sizeof(long));
11315 if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11317 ac_cv_sizeof_long=`cat conftestval`
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11322 ac_cv_sizeof_long=0
11328 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11329 cat >> confdefs.h <<EOF
11330 #define SIZEOF_LONG $ac_cv_sizeof_long
11335 if test "$ac_cv_sizeof_int" -lt 4 ; then
11336 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11338 cat >> confdefs.h <<\EOF
11339 #define LBER_INT_T long
11342 cat >> confdefs.h <<\EOF
11343 #define LBER_TAG_T long
11346 cat >> confdefs.h <<\EOF
11347 #define LBER_SOCKET_T int
11351 cat >> confdefs.h <<\EOF
11352 #define LBER_INT_T int
11355 cat >> confdefs.h <<\EOF
11356 #define LBER_TAG_T long
11359 cat >> confdefs.h <<\EOF
11360 #define LBER_SOCKET_T int
11366 cat >> confdefs.h <<\EOF
11367 #define LBER_LEN_T long
11371 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11372 echo "configure:11373: checking for 8-bit clean memcmp" >&5
11373 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11376 if test "$cross_compiling" = yes; then
11377 ac_cv_func_memcmp_clean=no
11379 cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11385 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11386 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11392 ac_cv_func_memcmp_clean=yes
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 ac_cv_func_memcmp_clean=no
11404 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11405 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11407 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11408 echo "configure:11409: checking for strftime" >&5
11409 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
11410 echo $ac_n "(cached) $ac_c" 1>&6
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 /* System header to define __stub macros and hopefully few prototypes,
11416 which can conflict with char strftime(); below. */
11417 #include <assert.h>
11418 /* Override any gcc2 internal prototype to avoid an error. */
11419 /* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined (__stub_strftime) || defined (__stub___strftime)
11436 if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11438 eval "ac_cv_func_strftime=yes"
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 eval "ac_cv_func_strftime=no"
11448 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11449 echo "$ac_t""yes" 1>&6
11450 cat >> confdefs.h <<\EOF
11451 #define HAVE_STRFTIME 1
11455 echo "$ac_t""no" 1>&6
11456 # strftime is in -lintl on SCO UNIX.
11457 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11458 echo "configure:11459: checking for strftime in -lintl" >&5
11459 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11461 echo $ac_n "(cached) $ac_c" 1>&6
11463 ac_save_LIBS="$LIBS"
11464 LIBS="-lintl $LIBS"
11465 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11468 /* Override any gcc2 internal prototype to avoid an error. */
11469 /* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11477 if { (eval echo configure:11478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479 eval "ac_cv_lib_$ac_lib_var=yes"
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11484 eval "ac_cv_lib_$ac_lib_var=no"
11487 LIBS="$ac_save_LIBS"
11490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11491 echo "$ac_t""yes" 1>&6
11492 cat >> confdefs.h <<\EOF
11493 #define HAVE_STRFTIME 1
11496 LIBS="-lintl $LIBS"
11498 echo "$ac_t""no" 1>&6
11504 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11505 echo "configure:11506: checking for vprintf" >&5
11506 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 /* System header to define __stub macros and hopefully few prototypes,
11513 which can conflict with char vprintf(); below. */
11514 #include <assert.h>
11515 /* Override any gcc2 internal prototype to avoid an error. */
11516 /* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11535 eval "ac_cv_func_vprintf=yes"
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11540 eval "ac_cv_func_vprintf=no"
11545 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11546 echo "$ac_t""yes" 1>&6
11547 cat >> confdefs.h <<\EOF
11548 #define HAVE_VPRINTF 1
11552 echo "$ac_t""no" 1>&6
11555 if test "$ac_cv_func_vprintf" != yes; then
11556 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11557 echo "configure:11558: checking for _doprnt" >&5
11558 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 /* System header to define __stub macros and hopefully few prototypes,
11565 which can conflict with char _doprnt(); below. */
11566 #include <assert.h>
11567 /* Override any gcc2 internal prototype to avoid an error. */
11568 /* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11574 /* The GNU C library defines this for functions which it implements
11575 to always fail with ENOSYS. Some functions are actually named
11576 something starting with __ and the normal name is an alias. */
11577 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 eval "ac_cv_func__doprnt=yes"
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11592 eval "ac_cv_func__doprnt=no"
11597 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11598 echo "$ac_t""yes" 1>&6
11599 cat >> confdefs.h <<\EOF
11600 #define HAVE_DOPRNT 1
11604 echo "$ac_t""no" 1>&6
11610 if test $ac_cv_func_vprintf = yes ; then
11611 for ac_func in vsnprintf vsprintf
11613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11614 echo "configure:11615: checking for $ac_func" >&5
11615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11618 cat > conftest.$ac_ext <<EOF
11619 #line 11620 "configure"
11620 #include "confdefs.h"
11621 /* System header to define __stub macros and hopefully few prototypes,
11622 which can conflict with char $ac_func(); below. */
11623 #include <assert.h>
11624 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11631 /* The GNU C library defines this for functions which it implements
11632 to always fail with ENOSYS. Some functions are actually named
11633 something starting with __ and the normal name is an alias. */
11634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11644 eval "ac_cv_func_$ac_func=yes"
11646 echo "configure: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11649 eval "ac_cv_func_$ac_func=no"
11654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11655 echo "$ac_t""yes" 1>&6
11656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11657 cat >> confdefs.h <<EOF
11658 #define $ac_tr_func 1
11662 echo "$ac_t""no" 1>&6
11712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11713 echo "configure:11714: checking for $ac_func" >&5
11714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func(); below. */
11722 #include <assert.h>
11723 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11730 /* The GNU C library defines this for functions which it implements
11731 to always fail with ENOSYS. Some functions are actually named
11732 something starting with __ and the normal name is an alias. */
11733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11741 if { (eval echo configure:11742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11743 eval "ac_cv_func_$ac_func=yes"
11745 echo "configure: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11748 eval "ac_cv_func_$ac_func=no"
11753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11754 echo "$ac_t""yes" 1>&6
11755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11756 cat >> confdefs.h <<EOF
11757 #define $ac_tr_func 1
11761 echo "$ac_t""no" 1>&6
11766 for ac_func in getopt tempnam
11768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11769 echo "configure:11770: checking for $ac_func" >&5
11770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func(); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 /* We use char because int might match the return type of a gcc2
11781 builtin and then its argument prototype would still apply. */
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11799 eval "ac_cv_func_$ac_func=yes"
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11804 eval "ac_cv_func_$ac_func=no"
11809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11810 echo "$ac_t""yes" 1>&6
11811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11812 cat >> confdefs.h <<EOF
11813 #define $ac_tr_func 1
11817 echo "$ac_t""no" 1>&6
11818 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11824 # Check Configuration
11826 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11827 echo "configure:11828: checking declaration of sys_errlist" >&5
11828 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11837 #include <sys/types.h>
11840 char *c = (char *) *sys_errlist
11843 if { (eval echo configure:11844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845 ol_cv_dcl_sys_errlist=yes
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 ol_cv_dcl_sys_errlist=no
11855 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11856 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11857 if test $ol_cv_dcl_sys_errlist = no ; then
11858 cat >> confdefs.h <<\EOF
11859 #define DECL_SYS_ERRLIST 1
11862 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11863 echo "configure:11864: checking existence of sys_errlist" >&5
11864 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11873 char *c = (char *) *sys_errlist
11876 if { (eval echo configure:11877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11878 ol_cv_have_sys_errlist=yes
11880 echo "configure: failed program was:" >&5
11881 cat conftest.$ac_ext >&5
11883 ol_cv_have_sys_errlist=no
11888 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11889 if test $ol_cv_have_sys_errlist = yes ; then
11890 cat >> confdefs.h <<\EOF
11891 #define HAVE_SYS_ERRLIST 1
11899 if test "$ol_enable_debug" != no ; then
11900 cat >> confdefs.h <<\EOF
11901 #define LDAP_DEBUG 1
11905 if test "$ol_enable_syslog" = yes ; then
11906 cat >> confdefs.h <<\EOF
11907 #define LDAP_SYSLOG 1
11911 if test "$ol_enable_libui" = yes ; then
11912 cat >> confdefs.h <<\EOF
11913 #define LDAP_LIBUI 1
11917 if test "$ol_enable_cache" = no ; then
11918 cat >> confdefs.h <<\EOF
11919 #define LDAP_NOCACHE 1
11923 if test "$ol_enable_dns" != no ; then
11924 cat >> confdefs.h <<\EOF
11925 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11929 if test "$ol_enable_proctitle" != no ; then
11930 cat >> confdefs.h <<\EOF
11931 #define LDAP_PROCTITLE 1
11935 if test "$ol_enable_referrals" != no ; then
11936 cat >> confdefs.h <<\EOF
11937 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11941 if test "$ol_enable_cldap" != no ; then
11942 cat >> confdefs.h <<\EOF
11943 #define LDAP_CONNECTIONLESS 1
11948 if test "$ol_enable_aclgroups" != no ; then
11949 cat >> confdefs.h <<\EOF
11950 #define SLAPD_ACLGROUPS 1
11954 if test "$ol_enable_crypt" != no ; then
11955 cat >> confdefs.h <<\EOF
11956 #define SLAPD_CRYPT 1
11960 if test "$ol_enable_cleartext" != no ; then
11961 cat >> confdefs.h <<\EOF
11962 #define SLAPD_CLEARTEXT 1
11966 if test "$ol_enable_phonetic" != no ; then
11967 cat >> confdefs.h <<\EOF
11968 #define SLAPD_PHONETIC 1
11972 if test "$ol_enable_rlookups" != no ; then
11973 cat >> confdefs.h <<\EOF
11974 #define SLAPD_RLOOKUPS 1
11979 if test "$ol_link_modules" != no ; then
11980 cat >> confdefs.h <<\EOF
11981 #define SLAPD_MODULES 1
11987 if test "$ol_link_bdb2" != no ; then
11988 cat >> confdefs.h <<\EOF
11989 #define SLAPD_BDB2 1
11994 if test "$ol_with_bdb2_module" != static ; then
11995 cat >> confdefs.h <<\EOF
11996 #define SLAPD_BDB2_DYNAMIC 1
11999 BUILD_BDB2_DYNAMIC=yes
12003 if test "$ol_enable_ldap" != no ; then
12004 cat >> confdefs.h <<\EOF
12005 #define SLAPD_LDAP 1
12010 if test "$ol_with_ldap_module" != static ; then
12011 cat >> confdefs.h <<\EOF
12012 #define SLAPD_LDAP_DYNAMIC 1
12015 BUILD_LDAP_DYNAMIC=yes
12019 if test "$ol_link_ldbm" != no ; then
12020 cat >> confdefs.h <<\EOF
12021 #define SLAPD_LDBM 1
12026 if test "$ol_with_ldbm_module" != static ; then
12027 cat >> confdefs.h <<\EOF
12028 #define SLAPD_LDBM_DYNAMIC 1
12031 BUILD_LDBM_DYNAMIC=yes
12035 if test "$ol_enable_passwd" != no ; then
12036 cat >> confdefs.h <<\EOF
12037 #define SLAPD_PASSWD 1
12042 if test "$ol_with_passwd_module" != static ; then
12043 cat >> confdefs.h <<\EOF
12044 #define SLAPD_PASSWD_DYNAMIC 1
12047 BUILD_PASSWD_DYNAMIC=yes
12051 if test "$ol_link_perl" != no ; then
12052 cat >> confdefs.h <<\EOF
12053 #define SLAPD_PERL 1
12058 if test "$ol_with_perl_module" != static ; then
12059 cat >> confdefs.h <<\EOF
12060 #define SLAPD_PERL_DYNAMIC 1
12063 BUILD_PERL_DYNAMIC=yes
12067 if test "$ol_enable_shell" != no ; then
12068 cat >> confdefs.h <<\EOF
12069 #define SLAPD_SHELL 1
12074 if test "$ol_with_shell_module" != static ; then
12075 cat >> confdefs.h <<\EOF
12076 #define SLAPD_SHELL_DYNAMIC 1
12079 BUILD_SHELL_DYNAMIC=yes
12083 if test "$ol_enable_tcl" != no ; then
12084 cat >> confdefs.h <<\EOF
12085 #define SLAPD_TCL 1
12090 if test "$ol_with_tcl_module" != static; then
12091 cat >> confdefs.h <<\EOF
12092 #define SLAPD_TCL_DYNAMIC 1
12095 BUILD_TCL_DYNAMIC=yes
12099 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12100 $BUILD_SLAPD = yes ; then
12104 if test "$ol_link_isode" != no ; then
12149 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12152 # Let make expand exec_prefix.
12153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12155 # Any assignment to VPATH causes Sun make to only execute
12156 # the first set of double-colon rules, so remove it if not needed.
12157 # If there is a colon in the path, we need to keep it.
12158 if test "x$srcdir" = x.; then
12159 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12162 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12164 DEFS=-DHAVE_CONFIG_H
12166 # Without the "./", some shells look in PATH for config.status.
12167 : ${CONFIG_STATUS=./config.status}
12169 echo creating $CONFIG_STATUS
12170 rm -f $CONFIG_STATUS
12171 cat > $CONFIG_STATUS <<EOF
12173 # Generated automatically by configure.
12174 # Run this file to recreate the current configuration.
12175 # This directory was configured as follows,
12176 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12178 # $0 $ac_configure_args
12180 # Compiler output produced by configure, useful for debugging
12181 # configure, is in ./config.log if it exists.
12183 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12186 case "\$ac_option" in
12187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12188 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12189 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12190 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12191 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12193 -help | --help | --hel | --he | --h)
12194 echo "\$ac_cs_usage"; exit 0 ;;
12195 *) echo "\$ac_cs_usage"; exit 1 ;;
12199 ac_given_srcdir=$srcdir
12200 ac_given_INSTALL="$INSTALL"
12202 trap 'rm -fr `echo "\
12203 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12204 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12205 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12206 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12207 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12208 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12209 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12210 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12211 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12212 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12213 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12214 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12215 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12216 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12217 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12218 include/Makefile:build/top.mk:include/Makefile.in \
12219 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12220 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12221 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12222 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12223 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12224 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12225 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12226 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12227 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12228 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12229 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12230 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12231 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12232 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12233 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12234 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12235 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12236 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12237 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12238 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12239 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12240 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12241 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12242 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12243 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12244 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12245 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12247 cat >> $CONFIG_STATUS <<EOF
12249 # Protect against being on the right side of a sed subst in config.status.
12250 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12251 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12255 s%@CFLAGS@%$CFLAGS%g
12256 s%@CPPFLAGS@%$CPPFLAGS%g
12257 s%@CXXFLAGS@%$CXXFLAGS%g
12258 s%@FFLAGS@%$FFLAGS%g
12260 s%@LDFLAGS@%$LDFLAGS%g
12262 s%@exec_prefix@%$exec_prefix%g
12263 s%@prefix@%$prefix%g
12264 s%@program_transform_name@%$program_transform_name%g
12265 s%@bindir@%$bindir%g
12266 s%@sbindir@%$sbindir%g
12267 s%@libexecdir@%$libexecdir%g
12268 s%@datadir@%$datadir%g
12269 s%@sysconfdir@%$sysconfdir%g
12270 s%@sharedstatedir@%$sharedstatedir%g
12271 s%@localstatedir@%$localstatedir%g
12272 s%@libdir@%$libdir%g
12273 s%@includedir@%$includedir%g
12274 s%@oldincludedir@%$oldincludedir%g
12275 s%@infodir@%$infodir%g
12276 s%@mandir@%$mandir%g
12278 s%@host_alias@%$host_alias%g
12279 s%@host_cpu@%$host_cpu%g
12280 s%@host_vendor@%$host_vendor%g
12281 s%@host_os@%$host_os%g
12282 s%@target@%$target%g
12283 s%@target_alias@%$target_alias%g
12284 s%@target_cpu@%$target_cpu%g
12285 s%@target_vendor@%$target_vendor%g
12286 s%@target_os@%$target_os%g
12288 s%@build_alias@%$build_alias%g
12289 s%@build_cpu@%$build_cpu%g
12290 s%@build_vendor@%$build_vendor%g
12291 s%@build_os@%$build_os%g
12292 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12293 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12294 s%@INSTALL_DATA@%$INSTALL_DATA%g
12295 s%@PACKAGE@%$PACKAGE%g
12296 s%@VERSION@%$VERSION%g
12297 s%@ACLOCAL@%$ACLOCAL%g
12298 s%@AUTOCONF@%$AUTOCONF%g
12299 s%@AUTOMAKE@%$AUTOMAKE%g
12300 s%@AUTOHEADER@%$AUTOHEADER%g
12301 s%@MAKEINFO@%$MAKEINFO%g
12302 s%@SET_MAKE@%$SET_MAKE%g
12303 s%@top_builddir@%$top_builddir%g
12304 s%@ldap_subdir@%$ldap_subdir%g
12306 s%@RANLIB@%$RANLIB%g
12310 s%@LIBTOOL@%$LIBTOOL%g
12313 s%@SENDMAIL@%$SENDMAIL%g
12314 s%@EDITOR@%$EDITOR%g
12315 s%@FINGER@%$FINGER%g
12316 s%@GLIBCONFIG@%$GLIBCONFIG%g
12317 s%@PERLBIN@%$PERLBIN%g
12319 s%@EXEEXT@%$EXEEXT%g
12320 s%@OBJEXT@%$OBJEXT%g
12321 s%@OL_MKDEP@%$OL_MKDEP%g
12322 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12324 s%@LIBOBJS@%$LIBOBJS%g
12325 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12326 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12327 s%@BUILD_BDB2@%$BUILD_BDB2%g
12328 s%@BUILD_LDAP@%$BUILD_LDAP%g
12329 s%@BUILD_LDBM@%$BUILD_LDBM%g
12330 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12331 s%@BUILD_PERL@%$BUILD_PERL%g
12332 s%@BUILD_SHELL@%$BUILD_SHELL%g
12333 s%@BUILD_TCL@%$BUILD_TCL%g
12334 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
12335 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
12336 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
12337 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
12338 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
12339 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
12340 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
12341 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12342 s%@LDAP_LIBS@%$LDAP_LIBS%g
12343 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12344 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12345 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12346 s%@LDBM_LIBS@%$LDBM_LIBS%g
12347 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12348 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12349 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12350 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12351 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12352 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12353 s%@KRB_LIBS@%$KRB_LIBS%g
12354 s%@READLINE_LIBS@%$READLINE_LIBS%g
12355 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12356 s%@TLS_LIBS@%$TLS_LIBS%g
12361 cat >> $CONFIG_STATUS <<\EOF
12363 # Split the substitutions into bite-sized pieces for seds with
12364 # small command number limits, like on Digital OSF/1 and HP-UX.
12365 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12366 ac_file=1 # Number of current file.
12367 ac_beg=1 # First line for current file.
12368 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12371 while $ac_more_lines; do
12372 if test $ac_beg -gt 1; then
12373 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12375 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12377 if test ! -s conftest.s$ac_file; then
12378 ac_more_lines=false
12379 rm -f conftest.s$ac_file
12381 if test -z "$ac_sed_cmds"; then
12382 ac_sed_cmds="sed -f conftest.s$ac_file"
12384 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12386 ac_file=`expr $ac_file + 1`
12388 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12391 if test -z "$ac_sed_cmds"; then
12396 cat >> $CONFIG_STATUS <<EOF
12398 CONFIG_FILES=\${CONFIG_FILES-"\
12399 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12400 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12401 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12402 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12403 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12404 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12405 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12406 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12407 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12408 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12409 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12410 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12411 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12412 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12413 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12414 include/Makefile:build/top.mk:include/Makefile.in \
12415 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12416 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12417 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12418 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12419 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12420 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12421 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12422 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12423 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12424 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12425 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12426 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12427 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12428 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12429 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12430 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12431 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12432 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12433 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12434 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12435 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12436 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12437 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12438 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12439 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12440 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12443 cat >> $CONFIG_STATUS <<\EOF
12444 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12447 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12448 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12449 *) ac_file_in="${ac_file}.in" ;;
12452 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12454 # Remove last slash and all that follows it. Not all systems have dirname.
12455 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12456 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12457 # The file is in a subdirectory.
12458 test ! -d "$ac_dir" && mkdir "$ac_dir"
12459 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12460 # A "../" for each directory in $ac_dir_suffix.
12461 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12463 ac_dir_suffix= ac_dots=
12466 case "$ac_given_srcdir" in
12468 if test -z "$ac_dots"; then top_srcdir=.
12469 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12470 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12471 *) # Relative path.
12472 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12473 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12476 case "$ac_given_INSTALL" in
12477 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12478 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12481 echo creating "$ac_file"
12483 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12485 *Makefile*) ac_comsub="1i\\
12486 # $configure_input" ;;
12490 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12492 s%@configure_input@%$configure_input%g
12493 s%@srcdir@%$srcdir%g
12494 s%@top_srcdir@%$top_srcdir%g
12495 s%@INSTALL@%$INSTALL%g
12496 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12500 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12501 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12503 # ac_d sets the value in "#define NAME VALUE" lines.
12504 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12505 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12508 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12509 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12510 ac_uB='\([ ]\)%\1#\2define\3'
12513 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12514 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12515 ac_eB='$%\1#\2define\3'
12519 if test "${CONFIG_HEADERS+set}" != set; then
12521 cat >> $CONFIG_STATUS <<EOF
12522 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12524 cat >> $CONFIG_STATUS <<\EOF
12526 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12527 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12529 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12530 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12531 *) ac_file_in="${ac_file}.in" ;;
12534 echo creating $ac_file
12536 rm -f conftest.frag conftest.in conftest.out
12537 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12538 cat $ac_file_inputs > conftest.in
12542 # Transform confdefs.h into a sed script conftest.vals that substitutes
12543 # the proper values into config.h.in to produce config.h. And first:
12544 # Protect against being on the right side of a sed subst in config.status.
12545 # Protect against being in an unquoted here document in config.status.
12546 rm -f conftest.vals
12547 cat > conftest.hdr <<\EOF
12550 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12554 sed -n -f conftest.hdr confdefs.h > conftest.vals
12557 # This sed command replaces #undef with comments. This is necessary, for
12558 # example, in the case of _POSIX_SOURCE, which is predefined and required
12559 # on some systems where configure will not decide to define it.
12560 cat >> conftest.vals <<\EOF
12561 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12564 # Break up conftest.vals because some shells have a limit on
12565 # the size of here documents, and old seds have small limits too.
12567 rm -f conftest.tail
12570 ac_lines=`grep -c . conftest.vals`
12571 # grep -c gives empty output for an empty file on some AIX systems.
12572 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12573 # Write a limited-size here document to conftest.frag.
12574 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12575 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12577 sed -f conftest.frag conftest.in > conftest.out
12579 mv conftest.out conftest.in
12580 ' >> $CONFIG_STATUS
12581 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12582 rm -f conftest.vals
12583 mv conftest.tail conftest.vals
12585 rm -f conftest.vals
12587 cat >> $CONFIG_STATUS <<\EOF
12588 rm -f conftest.frag conftest.h
12589 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12590 cat conftest.in >> conftest.h
12592 if cmp -s $ac_file conftest.h 2>/dev/null; then
12593 echo "$ac_file is unchanged"
12596 # Remove last slash and all that follows it. Not all systems have dirname.
12597 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12598 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12599 # The file is in a subdirectory.
12600 test ! -d "$ac_dir" && mkdir "$ac_dir"
12603 mv conftest.h $ac_file
12608 cat >> $CONFIG_STATUS <<EOF
12611 cat >> $CONFIG_STATUS <<\EOF
12614 echo Please \"make depend\" to build dependencies
12618 chmod +x $CONFIG_STATUS
12619 rm -fr confdefs* $ac_clean_files
12620 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1