3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
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 DX Referrals 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-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
50 LDAPD (X.500-to-LDAP Gateway) Options:"
52 --enable-ldapd enable building ldapd (no)"
54 SLAPD (Standalone LDAP Daemon) Options:"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-aci enable per-object ACIs (no)"
74 --enable-discreteaci enable discrete rights in ACIs (no)"
76 --enable-wrappers enable tcp wrapper support (no)"
78 --enable-bdb2 enable bdb2 backend (no)"
80 --with-bdb2-module module type (static)"
82 --enable-ldap enable ldap backend (no)"
84 --with-ldap-module module type (static)"
86 --enable-ldbm enable ldbm backend (yes)"
88 --with-ldbm-api use LDBM API (auto)"
90 --with-ldbm-module module type (static)"
92 --with-ldbm-type use LDBM type (auto)"
94 --enable-passwd enable passwd backend (no)"
96 --with-passwd-module module type (static)"
98 --enable-perl enable perl backend (no)"
100 --with-perl-module module type (static)"
102 --enable-shell enable shell backend (no)"
104 --with-shell-module module type (static)"
106 --enable-tcl enable tcl backend (no)"
108 --with-tcl-module module type (static)"
110 SLURPD (Replication Daemon) Options:"
112 --enable-slurpd enable building slurpd (auto)"
114 Library Generation & Linking Options"
116 --enable-static[=PKGS] build static libraries [default=yes]"
118 --enable-shared[=PKGS] build shared libraries [default=yes]"
120 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
122 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
124 --disable-libtool-lock avoid locking (might break parallel builds)"
126 # Initialize some variables set by options.
127 # The variables have the same names as the options, with
128 # dashes changed to underlines.
130 cache_file=./config.cache
139 program_transform_name=s,x,x,
147 bindir='${exec_prefix}/bin'
148 sbindir='${exec_prefix}/sbin'
149 libexecdir='${exec_prefix}/libexec'
150 datadir='${prefix}/share'
151 sysconfdir='${prefix}/etc'
152 sharedstatedir='${prefix}/com'
153 localstatedir='${prefix}/var'
154 libdir='${exec_prefix}/lib'
155 includedir='${prefix}/include'
156 oldincludedir='/usr/include'
157 infodir='${prefix}/info'
158 mandir='${prefix}/man'
160 # Initialize some other variables.
163 SHELL=${CONFIG_SHELL-/bin/sh}
164 # Maximum number of lines to put in a shell here document.
171 # If the previous option needs an argument, assign it.
172 if test -n "$ac_prev"; then
173 eval "$ac_prev=\$ac_option"
179 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
183 # Accept the important Cygnus configure options, so we can diagnose typos.
187 -bindir | --bindir | --bindi | --bind | --bin | --bi)
189 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
190 bindir="$ac_optarg" ;;
192 -build | --build | --buil | --bui | --bu)
194 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
195 build="$ac_optarg" ;;
197 -cache-file | --cache-file | --cache-fil | --cache-fi \
198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
199 ac_prev=cache_file ;;
200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
202 cache_file="$ac_optarg" ;;
204 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
206 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
208 datadir="$ac_optarg" ;;
210 -disable-* | --disable-*)
211 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
212 # Reject names that are not valid shell variable names.
213 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
214 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
216 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
217 eval "enable_${ac_feature}=no" ;;
219 -enable-* | --enable-*)
220 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
221 # Reject names that are not valid shell variable names.
222 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
223 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
225 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
230 eval "enable_${ac_feature}='$ac_optarg'" ;;
232 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
233 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
234 | --exec | --exe | --ex)
235 ac_prev=exec_prefix ;;
236 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
237 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
238 | --exec=* | --exe=* | --ex=*)
239 exec_prefix="$ac_optarg" ;;
241 -gas | --gas | --ga | --g)
242 # Obsolete; use --with-gas.
245 -help | --help | --hel | --he)
246 # Omit some internal or obsolete options to make the list less imposing.
247 # This message is too long to be a string in the A/UX 3.1 sh.
249 Usage: configure [options] [host]
250 Options: [defaults in brackets after descriptions]
252 --cache-file=FILE cache test results in FILE
253 --help print this message
254 --no-create do not create output files
255 --quiet, --silent do not print \`checking...' messages
256 --version print the version of autoconf that created configure
257 Directory and file names:
258 --prefix=PREFIX install architecture-independent files in PREFIX
260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
262 --bindir=DIR user executables in DIR [EPREFIX/bin]
263 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
264 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
265 --datadir=DIR read-only architecture-independent data in DIR
267 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
268 --sharedstatedir=DIR modifiable architecture-independent data in DIR
270 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
271 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
272 --includedir=DIR C header files in DIR [PREFIX/include]
273 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
274 --infodir=DIR info documentation in DIR [PREFIX/info]
275 --mandir=DIR man documentation in DIR [PREFIX/man]
276 --srcdir=DIR find the sources in DIR [configure dir or ..]
277 --program-prefix=PREFIX prepend PREFIX to installed program names
278 --program-suffix=SUFFIX append SUFFIX to installed program names
279 --program-transform-name=PROGRAM
280 run sed PROGRAM on installed program names
284 --build=BUILD configure for building on BUILD [BUILD=HOST]
285 --host=HOST configure for HOST [guessed]
286 --target=TARGET configure for TARGET [TARGET=HOST]
287 Features and packages:
288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
292 --x-includes=DIR X include files are in DIR
293 --x-libraries=DIR X library files are in DIR
295 if test -n "$ac_help"; then
296 echo "--enable and --with options recognized:$ac_help"
300 -host | --host | --hos | --ho)
302 -host=* | --host=* | --hos=* | --ho=*)
305 -includedir | --includedir | --includedi | --included | --include \
306 | --includ | --inclu | --incl | --inc)
307 ac_prev=includedir ;;
308 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
309 | --includ=* | --inclu=* | --incl=* | --inc=*)
310 includedir="$ac_optarg" ;;
312 -infodir | --infodir | --infodi | --infod | --info | --inf)
314 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
315 infodir="$ac_optarg" ;;
317 -libdir | --libdir | --libdi | --libd)
319 -libdir=* | --libdir=* | --libdi=* | --libd=*)
320 libdir="$ac_optarg" ;;
322 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
323 | --libexe | --libex | --libe)
324 ac_prev=libexecdir ;;
325 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
326 | --libexe=* | --libex=* | --libe=*)
327 libexecdir="$ac_optarg" ;;
329 -localstatedir | --localstatedir | --localstatedi | --localstated \
330 | --localstate | --localstat | --localsta | --localst \
331 | --locals | --local | --loca | --loc | --lo)
332 ac_prev=localstatedir ;;
333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
334 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
335 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
336 localstatedir="$ac_optarg" ;;
338 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
340 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
341 mandir="$ac_optarg" ;;
344 # Obsolete; use --without-fp.
347 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
351 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
352 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
355 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
356 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
357 | --oldin | --oldi | --old | --ol | --o)
358 ac_prev=oldincludedir ;;
359 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
360 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
361 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
362 oldincludedir="$ac_optarg" ;;
364 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
366 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
367 prefix="$ac_optarg" ;;
369 -program-prefix | --program-prefix | --program-prefi | --program-pref \
370 | --program-pre | --program-pr | --program-p)
371 ac_prev=program_prefix ;;
372 -program-prefix=* | --program-prefix=* | --program-prefi=* \
373 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
374 program_prefix="$ac_optarg" ;;
376 -program-suffix | --program-suffix | --program-suffi | --program-suff \
377 | --program-suf | --program-su | --program-s)
378 ac_prev=program_suffix ;;
379 -program-suffix=* | --program-suffix=* | --program-suffi=* \
380 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
381 program_suffix="$ac_optarg" ;;
383 -program-transform-name | --program-transform-name \
384 | --program-transform-nam | --program-transform-na \
385 | --program-transform-n | --program-transform- \
386 | --program-transform | --program-transfor \
387 | --program-transfo | --program-transf \
388 | --program-trans | --program-tran \
389 | --progr-tra | --program-tr | --program-t)
390 ac_prev=program_transform_name ;;
391 -program-transform-name=* | --program-transform-name=* \
392 | --program-transform-nam=* | --program-transform-na=* \
393 | --program-transform-n=* | --program-transform-=* \
394 | --program-transform=* | --program-transfor=* \
395 | --program-transfo=* | --program-transf=* \
396 | --program-trans=* | --program-tran=* \
397 | --progr-tra=* | --program-tr=* | --program-t=*)
398 program_transform_name="$ac_optarg" ;;
400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
401 | -silent | --silent | --silen | --sile | --sil)
404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
408 sbindir="$ac_optarg" ;;
410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
412 | --sharedst | --shareds | --shared | --share | --shar \
414 ac_prev=sharedstatedir ;;
415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
419 sharedstatedir="$ac_optarg" ;;
421 -site | --site | --sit)
423 -site=* | --site=* | --sit=*)
426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
429 srcdir="$ac_optarg" ;;
431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
432 | --syscon | --sysco | --sysc | --sys | --sy)
433 ac_prev=sysconfdir ;;
434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
436 sysconfdir="$ac_optarg" ;;
438 -target | --target | --targe | --targ | --tar | --ta | --t)
440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
441 target="$ac_optarg" ;;
443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
446 -version | --version | --versio | --versi | --vers)
447 echo "configure generated by autoconf version 2.13.1"
451 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
456 ac_package=`echo $ac_package| sed 's/-/_/g'`
461 eval "with_${ac_package}='$ac_optarg'" ;;
463 -without-* | --without-*)
464 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
469 ac_package=`echo $ac_package| sed 's/-/_/g'`
470 eval "with_${ac_package}=no" ;;
473 # Obsolete; use --with-x.
476 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
477 | --x-incl | --x-inc | --x-in | --x-i)
478 ac_prev=x_includes ;;
479 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
480 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
481 x_includes="$ac_optarg" ;;
483 -x-libraries | --x-libraries | --x-librarie | --x-librari \
484 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
485 ac_prev=x_libraries ;;
486 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
487 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
488 x_libraries="$ac_optarg" ;;
490 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
494 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
495 echo "configure: warning: $ac_option: invalid host type" 1>&2
497 if test "x$nonopt" != xNONE; then
498 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
506 if test -n "$ac_prev"; then
507 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
512 # File descriptor usage:
515 # 2 errors and warnings
516 # 3 some systems may open it to /dev/tty
517 # 4 used on the Kubota Titan
518 # 6 checking for... messages and results
519 # 5 compiler messages saved in config.log
520 if test "$silent" = yes; then
528 This file contains any messages produced by compilers while
529 running configure, to aid debugging if configure makes a mistake.
532 # Strip out --no-create and --no-recursion so they do not pile up.
533 # Also quote any args containing shell metacharacters.
538 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
539 | --no-cr | --no-c) ;;
540 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
541 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
542 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
543 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
544 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
549 # Only set these to C if already set. These must not be set unconditionally
550 # because not all systems understand e.g. LANG=C (notably SCO).
551 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
552 # Non-C LC_CTYPE values break the ctype check.
553 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
554 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
555 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
556 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
559 rm -rf conftest* confdefs.h
560 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
563 # A filename unique to this package, relative to the directory that
564 # configure is in, which we can look for to find out if srcdir is correct.
565 ac_unique_file=build/version
567 # Find the source files, if location was not specified.
568 if test -z "$srcdir"; then
569 ac_srcdir_defaulted=yes
570 # Try the directory containing this script, then its parent.
572 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
573 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
575 if test ! -r $srcdir/$ac_unique_file; then
579 ac_srcdir_defaulted=no
581 if test ! -r $srcdir/$ac_unique_file; then
582 if test "$ac_srcdir_defaulted" = yes; then
583 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
585 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
588 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
590 # Prefer explicitly selected file to automatically selected ones.
591 if test -z "$CONFIG_SITE"; then
592 if test "x$prefix" != xNONE; then
593 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
595 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
598 for ac_site_file in $CONFIG_SITE; do
599 if test -r "$ac_site_file"; then
600 echo "loading site script $ac_site_file"
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
615 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
616 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
617 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
624 ac_n= ac_c='\c' ac_t=
628 for ac_dir in build $srcdir/build; do
629 if test -f $ac_dir/install-sh; then
631 ac_install_sh="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh; then
635 ac_install_sh="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
642 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
643 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
644 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
646 OL_VERSION=`cat $ac_aux_dir/version`
647 if test -z "$OL_VERSION"; then
648 { echo "configure: error: could not determine version" 1>&2; exit 1; }
652 echo $ac_n "checking host system type""... $ac_c" 1>&6
653 echo "configure:654: checking host system type" >&5
654 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
656 # Make sure we can run config.sub.
657 if $ac_config_sub sun4 >/dev/null 2>&1; then :
658 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
661 ac_cv_host_alias=$host
662 case "$ac_cv_host_alias" in
666 if ac_cv_host_alias=`$ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) ac_cv_host_alias=$nonopt ;;
673 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
674 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo $ac_n "(cached) $ac_c" 1>&6
681 echo "$ac_t""$ac_cv_host" 1>&6
684 host_alias=$ac_cv_host_alias
685 host_cpu=$ac_cv_host_cpu
686 host_vendor=$ac_cv_host_vendor
687 host_os=$ac_cv_host_os
693 echo $ac_n "checking target system type""... $ac_c" 1>&6
694 echo "configure:695: checking target system type" >&5
695 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
697 # Make sure we can run config.sub.
698 if $ac_config_sub sun4 >/dev/null 2>&1; then :
699 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
702 ac_cv_target_alias=$target
703 case "$ac_cv_target_alias" in
707 ac_cv_target_alias=$host_alias ;;
709 *) ac_cv_target_alias=$nonopt ;;
713 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
714 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
718 echo $ac_n "(cached) $ac_c" 1>&6
721 echo "$ac_t""$ac_cv_target" 1>&6
724 target_alias=$ac_cv_target_alias
725 target_cpu=$ac_cv_target_cpu
726 target_vendor=$ac_cv_target_vendor
727 target_os=$ac_cv_target_os
733 echo $ac_n "checking build system type""... $ac_c" 1>&6
734 echo "configure:735: checking build system type" >&5
735 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
737 # Make sure we can run config.sub.
738 if $ac_config_sub sun4 >/dev/null 2>&1; then :
739 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
742 ac_cv_build_alias=$build
743 case "$ac_cv_build_alias" in
747 ac_cv_build_alias=$host_alias ;;
749 *) ac_cv_build_alias=$nonopt ;;
753 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
754 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
758 echo $ac_n "(cached) $ac_c" 1>&6
761 echo "$ac_t""$ac_cv_build" 1>&6
764 build_alias=$ac_cv_build_alias
765 build_cpu=$ac_cv_build_cpu
766 build_vendor=$ac_cv_build_vendor
767 build_os=$ac_cv_build_os
773 # Do some error checking and defaulting for the host and target type.
775 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
778 # 1. You are not allowed to specify --host, --target, and nonopt at the
780 # 2. Host defaults to nonopt.
781 # 3. If nonopt is not specified, then host defaults to the current host,
782 # as determined by config.guess.
783 # 4. Target and build default to nonopt.
784 # 5. If nonopt is not specified, then target and build default to host.
786 # The aliases save the names the user supplied, while $host etc.
787 # will get canonicalized.
788 case $host---$target---$nonopt in
789 NONE---*---* | *---NONE---* | *---*---NONE) ;;
790 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
793 test "$host_alias" != "$target_alias" &&
794 test "$program_prefix$program_suffix$program_transform_name" = \
796 program_prefix=${target_alias}-
799 # Find a good install program. We prefer a C program (faster),
800 # so one script is as good as another. But avoid the broken or
801 # incompatible versions:
802 # SysV /etc/install, /usr/sbin/install
803 # SunOS /usr/etc/install
806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
809 # ./install, which can be erroneously created by make from ./install.sh.
810 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
811 echo "configure:812: checking for a BSD compatible install" >&5
812 if test -z "$INSTALL"; then
813 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
817 for ac_dir in $PATH; do
818 # Account for people who put trailing slashes in PATH elements.
820 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
822 # OSF1 and SCO ODT 3.0 have their own names for install.
823 # Don't use installbsd from OSF since it installs stuff as root
825 for ac_prog in ginstall scoinst install; do
826 if test -f $ac_dir/$ac_prog; then
827 if test $ac_prog = install &&
828 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
829 # AIX install. It has an incompatible calling convention.
831 elif test $ac_prog = install &&
832 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
833 # program-specific install script used by HP pwplus--don't use.
836 ac_cv_path_install="$ac_dir/$ac_prog -c"
847 if test "${ac_cv_path_install+set}" = set; then
848 INSTALL="$ac_cv_path_install"
850 # As a last resort, use the slow shell script. We don't cache a
851 # path for INSTALL within a source directory, because that will
852 # break other packages using the cache if that directory is
853 # removed, or if the path is relative.
854 INSTALL="$ac_install_sh"
857 echo "$ac_t""$INSTALL" 1>&6
859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
860 # It thinks the first close brace ends the variable substitution.
861 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
863 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
865 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
867 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
868 echo "configure:869: checking whether build environment is sane" >&5
871 echo timestamp > conftestfile
872 # Do `set' in a subshell so we don't clobber the current shell's
873 # arguments. Must try -L first in case configure is actually a
874 # symlink; some systems play weird games with the mod time of symlinks
875 # (eg FreeBSD returns the mod time of the symlink's containing
878 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
879 if test "$*" = "X"; then
881 set X `ls -t $srcdir/configure conftestfile`
883 if test "$*" != "X $srcdir/configure conftestfile" \
884 && test "$*" != "X conftestfile $srcdir/configure"; then
886 # If neither matched, then we have a broken ls. This can happen
887 # if, for instance, CONFIG_SHELL is bash and it inherits a
888 # broken ls alias from the environment. This has actually
889 # happened. Such a system could not be considered "sane".
890 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
891 alias in your environment" 1>&2; exit 1; }
894 test "$2" = conftestfile
900 { echo "configure: error: newly created file is older than distributed files!
901 Check your system clock" 1>&2; exit 1; }
904 echo "$ac_t""yes" 1>&6
905 if test "$program_transform_name" = s,x,x,; then
906 program_transform_name=
908 # Double any \ or $. echo might interpret backslashes.
909 cat <<\EOF_SED > conftestsed
910 s,\\,\\\\,g; s,\$,$$,g
912 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
915 test "$program_prefix" != NONE &&
916 program_transform_name="s,^,${program_prefix},;$program_transform_name"
917 # Use a double $ so make ignores it.
918 test "$program_suffix" != NONE &&
919 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
921 # sed with no file args requires a program.
922 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
924 for ac_prog in mawk gawk nawk awk
926 # Extract the first word of "$ac_prog", so it can be a program name with args.
927 set dummy $ac_prog; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$AWK"; then
934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
941 ac_cv_prog_AWK="$ac_prog"
948 AWK="$ac_cv_prog_AWK"
949 if test -n "$AWK"; then
950 echo "$ac_t""$AWK" 1>&6
952 echo "$ac_t""no" 1>&6
955 test -n "$AWK" && break
958 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${MAKE-make} sets \${MAKE}" >&5
960 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
961 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 cat > conftestmake <<\EOF
966 @echo 'ac_maketemp="${MAKE}"'
968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
969 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
970 if test -n "$ac_maketemp"; then
971 eval ac_cv_prog_make_${ac_make}_set=yes
973 eval ac_cv_prog_make_${ac_make}_set=no
977 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
978 echo "$ac_t""yes" 1>&6
981 echo "$ac_t""no" 1>&6
982 SET_MAKE="MAKE=${MAKE-make}"
991 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
992 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
997 missing_dir=`cd $ac_aux_dir && pwd`
998 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
999 echo "configure:1000: checking for working aclocal" >&5
1000 # Run test in a subshell; some versions of sh will print an error if
1001 # an executable is not found, even if stderr is redirected.
1002 # Redirect stdin to placate older versions of autoconf. Sigh.
1003 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1005 echo "$ac_t""found" 1>&6
1007 ACLOCAL="$missing_dir/missing aclocal"
1008 echo "$ac_t""missing" 1>&6
1011 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1012 echo "configure:1013: checking for working autoconf" >&5
1013 # Run test in a subshell; some versions of sh will print an error if
1014 # an executable is not found, even if stderr is redirected.
1015 # Redirect stdin to placate older versions of autoconf. Sigh.
1016 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1018 echo "$ac_t""found" 1>&6
1020 AUTOCONF="$missing_dir/missing autoconf"
1021 echo "$ac_t""missing" 1>&6
1024 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1025 echo "configure:1026: checking for working automake" >&5
1026 # Run test in a subshell; some versions of sh will print an error if
1027 # an executable is not found, even if stderr is redirected.
1028 # Redirect stdin to placate older versions of autoconf. Sigh.
1029 if (automake --version) < /dev/null > /dev/null 2>&1; then
1031 echo "$ac_t""found" 1>&6
1033 AUTOMAKE="$missing_dir/missing automake"
1034 echo "$ac_t""missing" 1>&6
1037 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1038 echo "configure:1039: checking for working autoheader" >&5
1039 # Run test in a subshell; some versions of sh will print an error if
1040 # an executable is not found, even if stderr is redirected.
1041 # Redirect stdin to placate older versions of autoconf. Sigh.
1042 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1043 AUTOHEADER=autoheader
1044 echo "$ac_t""found" 1>&6
1046 AUTOHEADER="$missing_dir/missing autoheader"
1047 echo "$ac_t""missing" 1>&6
1050 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1051 echo "configure:1052: checking for working makeinfo" >&5
1052 # Run test in a subshell; some versions of sh will print an error if
1053 # an executable is not found, even if stderr is redirected.
1054 # Redirect stdin to placate older versions of autoconf. Sigh.
1055 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1057 echo "$ac_t""found" 1>&6
1059 MAKEINFO="$missing_dir/missing makeinfo"
1060 echo "$ac_t""missing" 1>&6
1063 install_sh="$missing_dir/install-sh"
1064 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1066 for ac_prog in gnutar gtar tar
1068 # Extract the first word of "$ac_prog", so it can be a program name with args.
1069 set dummy $ac_prog; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$AMTAR"; then
1076 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_AMTAR="$ac_prog"
1090 AMTAR="$ac_cv_prog_AMTAR"
1091 if test -n "$AMTAR"; then
1092 echo "$ac_t""$AMTAR" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 test -n "$AMTAR" && break
1102 if test -n "$AMTAR"; then
1103 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1110 cat >> confdefs.h <<EOF
1111 #define OPENLDAP_PACKAGE "$PACKAGE"
1114 cat >> confdefs.h <<EOF
1115 #define OPENLDAP_VERSION "$VERSION"
1121 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1122 echo "configure:1123: checking configure arguments" >&5
1127 ldap_subdir="/openldap"
1129 # Check whether --with-subdir or --without-subdir was given.
1130 if test "${with_subdir+set}" = set; then
1131 withval="$with_subdir"
1138 ldap_subdir="$withval"
1141 ldap_subdir="/$withval"
1148 # OpenLDAP --enable-debug
1149 # Check whether --enable-debug or --disable-debug was given.
1150 if test "${enable_debug+set}" = set; then
1151 enableval="$enable_debug"
1154 for ol_val in auto yes no ; do
1155 if test "$enableval" = "$ol_val" ; then
1159 if test "$ol_arg" = "invalid" ; then
1160 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1162 ol_enable_debug="$ol_arg"
1165 ol_enable_debug="yes"
1167 # end --enable-debug
1168 # OpenLDAP --enable-syslog
1169 # Check whether --enable-syslog or --disable-syslog was given.
1170 if test "${enable_syslog+set}" = set; then
1171 enableval="$enable_syslog"
1174 for ol_val in auto yes no ; do
1175 if test "$enableval" = "$ol_val" ; then
1179 if test "$ol_arg" = "invalid" ; then
1180 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1182 ol_enable_syslog="$ol_arg"
1185 ol_enable_syslog="auto"
1187 # end --enable-syslog
1188 # OpenLDAP --enable-proctitle
1189 # Check whether --enable-proctitle or --disable-proctitle was given.
1190 if test "${enable_proctitle+set}" = set; then
1191 enableval="$enable_proctitle"
1194 for ol_val in auto yes no ; do
1195 if test "$enableval" = "$ol_val" ; then
1199 if test "$ol_arg" = "invalid" ; then
1200 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1202 ol_enable_proctitle="$ol_arg"
1205 ol_enable_proctitle="yes"
1207 # end --enable-proctitle
1208 # OpenLDAP --enable-cache
1209 # Check whether --enable-cache or --disable-cache was given.
1210 if test "${enable_cache+set}" = set; then
1211 enableval="$enable_cache"
1214 for ol_val in auto yes no ; do
1215 if test "$enableval" = "$ol_val" ; then
1219 if test "$ol_arg" = "invalid" ; then
1220 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1222 ol_enable_cache="$ol_arg"
1225 ol_enable_cache="yes"
1227 # end --enable-cache
1228 # OpenLDAP --enable-dns
1229 # Check whether --enable-dns or --disable-dns was given.
1230 if test "${enable_dns+set}" = set; then
1231 enableval="$enable_dns"
1234 for ol_val in auto yes no ; do
1235 if test "$enableval" = "$ol_val" ; then
1239 if test "$ol_arg" = "invalid" ; then
1240 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1242 ol_enable_dns="$ol_arg"
1248 # OpenLDAP --enable-referrals
1249 # Check whether --enable-referrals or --disable-referrals was given.
1250 if test "${enable_referrals+set}" = set; then
1251 enableval="$enable_referrals"
1254 for ol_val in auto yes no ; do
1255 if test "$enableval" = "$ol_val" ; then
1259 if test "$ol_arg" = "invalid" ; then
1260 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1262 ol_enable_referrals="$ol_arg"
1265 ol_enable_referrals="yes"
1267 # end --enable-referrals
1268 # OpenLDAP --enable-cldap
1269 # Check whether --enable-cldap or --disable-cldap was given.
1270 if test "${enable_cldap+set}" = set; then
1271 enableval="$enable_cldap"
1274 for ol_val in auto yes no ; do
1275 if test "$enableval" = "$ol_val" ; then
1279 if test "$ol_arg" = "invalid" ; then
1280 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1282 ol_enable_cldap="$ol_arg"
1285 ol_enable_cldap="no"
1287 # end --enable-cldap
1288 # OpenLDAP --enable-x_compile
1289 # Check whether --enable-x_compile or --disable-x_compile was given.
1290 if test "${enable_x_compile+set}" = set; then
1291 enableval="$enable_x_compile"
1294 for ol_val in yes no ; do
1295 if test "$enableval" = "$ol_val" ; then
1299 if test "$ol_arg" = "invalid" ; then
1300 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1302 ol_enable_x_compile="$ol_arg"
1305 ol_enable_x_compile="no"
1307 # end --enable-x_compile
1309 # OpenLDAP --enable-dmalloc
1310 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1311 if test "${enable_dmalloc+set}" = set; then
1312 enableval="$enable_dmalloc"
1315 for ol_val in auto yes no ; do
1316 if test "$enableval" = "$ol_val" ; then
1320 if test "$ol_arg" = "invalid" ; then
1321 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1323 ol_enable_dmalloc="$ol_arg"
1326 ol_enable_dmalloc="no"
1328 # end --enable-dmalloc
1330 # OpenLDAP --with-cyrus_sasl
1331 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1332 if test "${with_cyrus_sasl+set}" = set; then
1333 withval="$with_cyrus_sasl"
1336 for ol_val in auto yes no ; do
1337 if test "$withval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1344 ol_with_cyrus_sasl="$ol_arg"
1347 ol_with_cyrus_sasl="auto"
1349 # end --with-cyrus_sasl
1351 # OpenLDAP --with-fetch
1352 # Check whether --with-fetch or --without-fetch was given.
1353 if test "${with_fetch+set}" = set; then
1354 withval="$with_fetch"
1357 for ol_val in auto yes no ; do
1358 if test "$withval" = "$ol_val" ; then
1362 if test "$ol_arg" = "invalid" ; then
1363 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1365 ol_with_fetch="$ol_arg"
1368 ol_with_fetch="auto"
1372 # OpenLDAP --with-kerberos
1373 # Check whether --with-kerberos or --without-kerberos was given.
1374 if test "${with_kerberos+set}" = set; then
1375 withval="$with_kerberos"
1378 for ol_val in auto k5 k4 afs yes no ; do
1379 if test "$withval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1386 ol_with_kerberos="$ol_arg"
1389 ol_with_kerberos="auto"
1391 # end --with-kerberos
1393 # OpenLDAP --with-readline
1394 # Check whether --with-readline or --without-readline was given.
1395 if test "${with_readline+set}" = set; then
1396 withval="$with_readline"
1399 for ol_val in auto yes no ; do
1400 if test "$withval" = "$ol_val" ; then
1404 if test "$ol_arg" = "invalid" ; then
1405 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1407 ol_with_readline="$ol_arg"
1410 ol_with_readline="auto"
1412 # end --with-readline
1414 # OpenLDAP --with-threads
1415 # Check whether --with-threads or --without-threads was given.
1416 if test "${with_threads+set}" = set; then
1417 withval="$with_threads"
1420 for ol_val in auto posix mach pth lwp yes no manual ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1428 ol_with_threads="$ol_arg"
1431 ol_with_threads="auto"
1433 # end --with-threads
1435 # OpenLDAP --with-tls
1436 # Check whether --with-tls or --without-tls was given.
1437 if test "${with_tls+set}" = set; then
1441 for ol_val in auto ssleay openssl yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1449 ol_with_tls="$ol_arg"
1456 # OpenLDAP --with-yielding_select
1457 # Check whether --with-yielding_select or --without-yielding_select was given.
1458 if test "${with_yielding_select+set}" = set; then
1459 withval="$with_yielding_select"
1462 for ol_val in auto yes no manual ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1470 ol_with_yielding_select="$ol_arg"
1473 ol_with_yielding_select="auto"
1475 # end --with-yielding_select
1479 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1480 if test "${with_xxldapdoptions+set}" = set; then
1481 withval="$with_xxldapdoptions"
1485 # OpenLDAP --enable-ldapd
1486 # Check whether --enable-ldapd or --disable-ldapd was given.
1487 if test "${enable_ldapd+set}" = set; then
1488 enableval="$enable_ldapd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1499 ol_enable_ldapd="$ol_arg"
1502 ol_enable_ldapd="no"
1504 # end --enable-ldapd
1506 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1507 if test "${with_xxslapdoptions+set}" = set; then
1508 withval="$with_xxslapdoptions"
1512 # OpenLDAP --enable-slapd
1513 # Check whether --enable-slapd or --disable-slapd was given.
1514 if test "${enable_slapd+set}" = set; then
1515 enableval="$enable_slapd"
1518 for ol_val in auto yes no ; do
1519 if test "$enableval" = "$ol_val" ; then
1523 if test "$ol_arg" = "invalid" ; then
1524 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1526 ol_enable_slapd="$ol_arg"
1529 ol_enable_slapd="yes"
1531 # end --enable-slapd
1532 # OpenLDAP --enable-cleartext
1533 # Check whether --enable-cleartext or --disable-cleartext was given.
1534 if test "${enable_cleartext+set}" = set; then
1535 enableval="$enable_cleartext"
1538 for ol_val in auto yes no ; do
1539 if test "$enableval" = "$ol_val" ; then
1543 if test "$ol_arg" = "invalid" ; then
1544 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1546 ol_enable_cleartext="$ol_arg"
1549 ol_enable_cleartext="yes"
1551 # end --enable-cleartext
1552 # OpenLDAP --enable-crypt
1553 # Check whether --enable-crypt or --disable-crypt was given.
1554 if test "${enable_crypt+set}" = set; then
1555 enableval="$enable_crypt"
1558 for ol_val in auto yes no ; do
1559 if test "$enableval" = "$ol_val" ; then
1563 if test "$ol_arg" = "invalid" ; then
1564 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1566 ol_enable_crypt="$ol_arg"
1569 ol_enable_crypt="auto"
1571 # end --enable-crypt
1572 # OpenLDAP --enable-modules
1573 # Check whether --enable-modules or --disable-modules was given.
1574 if test "${enable_modules+set}" = set; then
1575 enableval="$enable_modules"
1578 for ol_val in auto yes no ; do
1579 if test "$enableval" = "$ol_val" ; then
1583 if test "$ol_arg" = "invalid" ; then
1584 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1586 ol_enable_modules="$ol_arg"
1589 ol_enable_modules="no"
1591 # end --enable-modules
1592 # OpenLDAP --enable-multimaster
1593 # Check whether --enable-multimaster or --disable-multimaster was given.
1594 if test "${enable_multimaster+set}" = set; then
1595 enableval="$enable_multimaster"
1598 for ol_val in auto yes no ; do
1599 if test "$enableval" = "$ol_val" ; then
1603 if test "$ol_arg" = "invalid" ; then
1604 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1606 ol_enable_multimaster="$ol_arg"
1609 ol_enable_multimaster="no"
1611 # end --enable-multimaster
1612 # OpenLDAP --enable-phonetic
1613 # Check whether --enable-phonetic or --disable-phonetic was given.
1614 if test "${enable_phonetic+set}" = set; then
1615 enableval="$enable_phonetic"
1618 for ol_val in auto yes no ; do
1619 if test "$enableval" = "$ol_val" ; then
1623 if test "$ol_arg" = "invalid" ; then
1624 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1626 ol_enable_phonetic="$ol_arg"
1629 ol_enable_phonetic="no"
1631 # end --enable-phonetic
1632 # OpenLDAP --enable-quipu
1633 # Check whether --enable-quipu or --disable-quipu was given.
1634 if test "${enable_quipu+set}" = set; then
1635 enableval="$enable_quipu"
1638 for ol_val in auto yes no ; do
1639 if test "$enableval" = "$ol_val" ; then
1643 if test "$ol_arg" = "invalid" ; then
1644 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1646 ol_enable_quipu="$ol_arg"
1649 ol_enable_quipu="no"
1651 # end --enable-quipu
1652 # OpenLDAP --enable-rlookups
1653 # Check whether --enable-rlookups or --disable-rlookups was given.
1654 if test "${enable_rlookups+set}" = set; then
1655 enableval="$enable_rlookups"
1658 for ol_val in auto yes no ; do
1659 if test "$enableval" = "$ol_val" ; then
1663 if test "$ol_arg" = "invalid" ; then
1664 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1666 ol_enable_rlookups="$ol_arg"
1669 ol_enable_rlookups="auto"
1671 # end --enable-rlookups
1672 # OpenLDAP --enable-aci
1673 # Check whether --enable-aci or --disable-aci was given.
1674 if test "${enable_aci+set}" = set; then
1675 enableval="$enable_aci"
1678 for ol_val in auto yes no ; do
1679 if test "$enableval" = "$ol_val" ; then
1683 if test "$ol_arg" = "invalid" ; then
1684 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1686 ol_enable_aci="$ol_arg"
1692 # OpenLDAP --enable-discreteaci
1693 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1694 if test "${enable_discreteaci+set}" = set; then
1695 enableval="$enable_discreteaci"
1698 for ol_val in auto yes no ; do
1699 if test "$enableval" = "$ol_val" ; then
1703 if test "$ol_arg" = "invalid" ; then
1704 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1706 ol_enable_discreteaci="$ol_arg"
1709 ol_enable_discreteaci="no"
1711 # end --enable-discreteaci
1712 # OpenLDAP --enable-wrappers
1713 # Check whether --enable-wrappers or --disable-wrappers was given.
1714 if test "${enable_wrappers+set}" = set; then
1715 enableval="$enable_wrappers"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1726 ol_enable_wrappers="$ol_arg"
1729 ol_enable_wrappers="no"
1731 # end --enable-wrappers
1733 # OpenLDAP --enable-bdb2
1734 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1735 if test "${enable_bdb2+set}" = set; then
1736 enableval="$enable_bdb2"
1739 for ol_val in auto yes no ; do
1740 if test "$enableval" = "$ol_val" ; then
1744 if test "$ol_arg" = "invalid" ; then
1745 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1747 ol_enable_bdb2="$ol_arg"
1753 # OpenLDAP --with-bdb2_module
1754 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1755 if test "${with_bdb2_module+set}" = set; then
1756 withval="$with_bdb2_module"
1759 for ol_val in static dynamic ; do
1760 if test "$withval" = "$ol_val" ; then
1764 if test "$ol_arg" = "invalid" ; then
1765 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1767 ol_with_bdb2_module="$ol_arg"
1770 ol_with_bdb2_module="static"
1772 # end --with-bdb2_module
1774 # OpenLDAP --enable-ldap
1775 # Check whether --enable-ldap or --disable-ldap was given.
1776 if test "${enable_ldap+set}" = set; then
1777 enableval="$enable_ldap"
1780 for ol_val in auto yes no ; do
1781 if test "$enableval" = "$ol_val" ; then
1785 if test "$ol_arg" = "invalid" ; then
1786 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1788 ol_enable_ldap="$ol_arg"
1794 # OpenLDAP --with-ldap_module
1795 # Check whether --with-ldap_module or --without-ldap_module was given.
1796 if test "${with_ldap_module+set}" = set; then
1797 withval="$with_ldap_module"
1800 for ol_val in static dynamic ; do
1801 if test "$withval" = "$ol_val" ; then
1805 if test "$ol_arg" = "invalid" ; then
1806 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1808 ol_with_ldap_module="$ol_arg"
1811 ol_with_ldap_module="static"
1813 # end --with-ldap_module
1815 # OpenLDAP --enable-ldbm
1816 # Check whether --enable-ldbm or --disable-ldbm was given.
1817 if test "${enable_ldbm+set}" = set; then
1818 enableval="$enable_ldbm"
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-ldbm" 1>&2; exit 1; }
1829 ol_enable_ldbm="$ol_arg"
1832 ol_enable_ldbm="yes"
1835 # OpenLDAP --with-ldbm_api
1836 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1837 if test "${with_ldbm_api+set}" = set; then
1838 withval="$with_ldbm_api"
1841 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1842 if test "$withval" = "$ol_val" ; then
1846 if test "$ol_arg" = "invalid" ; then
1847 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1849 ol_with_ldbm_api="$ol_arg"
1852 ol_with_ldbm_api="auto"
1854 # end --with-ldbm_api
1856 # OpenLDAP --with-ldbm_module
1857 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1858 if test "${with_ldbm_module+set}" = set; then
1859 withval="$with_ldbm_module"
1862 for ol_val in static dynamic ; do
1863 if test "$withval" = "$ol_val" ; then
1867 if test "$ol_arg" = "invalid" ; then
1868 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1870 ol_with_ldbm_module="$ol_arg"
1873 ol_with_ldbm_module="static"
1875 # end --with-ldbm_module
1877 # OpenLDAP --with-ldbm_type
1878 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1879 if test "${with_ldbm_type+set}" = set; then
1880 withval="$with_ldbm_type"
1883 for ol_val in auto btree hash ; do
1884 if test "$withval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1891 ol_with_ldbm_type="$ol_arg"
1894 ol_with_ldbm_type="auto"
1896 # end --with-ldbm_type
1899 # OpenLDAP --enable-passwd
1900 # Check whether --enable-passwd or --disable-passwd was given.
1901 if test "${enable_passwd+set}" = set; then
1902 enableval="$enable_passwd"
1905 for ol_val in auto yes no ; do
1906 if test "$enableval" = "$ol_val" ; then
1910 if test "$ol_arg" = "invalid" ; then
1911 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1913 ol_enable_passwd="$ol_arg"
1916 ol_enable_passwd="no"
1918 # end --enable-passwd
1919 # OpenLDAP --with-passwd_module
1920 # Check whether --with-passwd_module or --without-passwd_module was given.
1921 if test "${with_passwd_module+set}" = set; then
1922 withval="$with_passwd_module"
1925 for ol_val in static dynamic ; do
1926 if test "$withval" = "$ol_val" ; then
1930 if test "$ol_arg" = "invalid" ; then
1931 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1933 ol_with_passwd_module="$ol_arg"
1936 ol_with_passwd_module="static"
1938 # end --with-passwd_module
1940 # OpenLDAP --enable-perl
1941 # Check whether --enable-perl or --disable-perl was given.
1942 if test "${enable_perl+set}" = set; then
1943 enableval="$enable_perl"
1946 for ol_val in auto yes no ; do
1947 if test "$enableval" = "$ol_val" ; then
1951 if test "$ol_arg" = "invalid" ; then
1952 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1954 ol_enable_perl="$ol_arg"
1960 # OpenLDAP --with-perl_module
1961 # Check whether --with-perl_module or --without-perl_module was given.
1962 if test "${with_perl_module+set}" = set; then
1963 withval="$with_perl_module"
1966 for ol_val in static dynamic ; do
1967 if test "$withval" = "$ol_val" ; then
1971 if test "$ol_arg" = "invalid" ; then
1972 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1974 ol_with_perl_module="$ol_arg"
1977 ol_with_perl_module="static"
1979 # end --with-perl_module
1981 # OpenLDAP --enable-shell
1982 # Check whether --enable-shell or --disable-shell was given.
1983 if test "${enable_shell+set}" = set; then
1984 enableval="$enable_shell"
1987 for ol_val in auto yes no ; do
1988 if test "$enableval" = "$ol_val" ; then
1992 if test "$ol_arg" = "invalid" ; then
1993 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1995 ol_enable_shell="$ol_arg"
1998 ol_enable_shell="no"
2000 # end --enable-shell
2001 # OpenLDAP --with-shell_module
2002 # Check whether --with-shell_module or --without-shell_module was given.
2003 if test "${with_shell_module+set}" = set; then
2004 withval="$with_shell_module"
2007 for ol_val in static dynamic ; do
2008 if test "$withval" = "$ol_val" ; then
2012 if test "$ol_arg" = "invalid" ; then
2013 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2015 ol_with_shell_module="$ol_arg"
2018 ol_with_shell_module="static"
2020 # end --with-shell_module
2022 # OpenLDAP --enable-tcl
2023 # Check whether --enable-tcl or --disable-tcl was given.
2024 if test "${enable_tcl+set}" = set; then
2025 enableval="$enable_tcl"
2028 for ol_val in auto yes no ; do
2029 if test "$enableval" = "$ol_val" ; then
2033 if test "$ol_arg" = "invalid" ; then
2034 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2036 ol_enable_tcl="$ol_arg"
2042 # OpenLDAP --with-tcl_module
2043 # Check whether --with-tcl_module or --without-tcl_module was given.
2044 if test "${with_tcl_module+set}" = set; then
2045 withval="$with_tcl_module"
2048 for ol_val in static dynamic ; do
2049 if test "$withval" = "$ol_val" ; then
2053 if test "$ol_arg" = "invalid" ; then
2054 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2056 ol_with_tcl_module="$ol_arg"
2059 ol_with_tcl_module="static"
2061 # end --with-tcl_module
2064 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2065 if test "${with_xxslurpdoptions+set}" = set; then
2066 withval="$with_xxslurpdoptions"
2070 # OpenLDAP --enable-slurpd
2071 # Check whether --enable-slurpd or --disable-slurpd was given.
2072 if test "${enable_slurpd+set}" = set; then
2073 enableval="$enable_slurpd"
2076 for ol_val in auto yes no ; do
2077 if test "$enableval" = "$ol_val" ; then
2081 if test "$ol_arg" = "invalid" ; then
2082 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2084 ol_enable_slurpd="$ol_arg"
2087 ol_enable_slurpd="auto"
2089 # end --enable-slurpd
2091 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2092 if test "${with_xxliboptions+set}" = set; then
2093 withval="$with_xxliboptions"
2097 # Check whether --enable-static or --disable-static was given.
2098 if test "${enable_static+set}" = set; then
2099 enableval="$enable_static"
2100 p=${PACKAGE-default}
2101 case "$enableval" in
2102 yes) enable_static=yes ;;
2103 no) enable_static=no ;;
2106 # Look at the argument we got. We use all the common list separators.
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2108 for pkg in $enableval; do
2109 if test "X$pkg" = "X$p"; then
2120 # Check whether --enable-shared or --disable-shared was given.
2121 if test "${enable_shared+set}" = set; then
2122 enableval="$enable_shared"
2123 p=${PACKAGE-default}
2124 case "$enableval" in
2125 yes) enable_shared=yes ;;
2126 no) enable_shared=no ;;
2129 # Look at the argument we got. We use all the common list separators.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2131 for pkg in $enableval; do
2132 if test "X$pkg" = "X$p"; then
2145 if test $ol_enable_dns = yes ; then
2146 if test $ol_enable_referrals = no ; then
2147 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2149 if test $ol_enable_referrals = auto ; then
2150 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2151 ol_enable_referrals=yes
2155 if test $ol_enable_slapd = no ; then
2156 if test $ol_enable_bdb2 = yes ; then
2157 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2159 if test $ol_enable_ldap = yes ; then
2160 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2162 if test $ol_enable_ldbm = yes ; then
2163 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2165 if test $ol_enable_passwd = yes ; then
2166 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2168 if test $ol_enable_perl = yes ; then
2169 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2171 if test $ol_enable_shell = yes ; then
2172 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2174 if test $ol_enable_tcl = yes ; then
2175 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2177 if test $ol_enable_modules = yes ; then
2178 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2180 if test $ol_enable_multimaster = yes ; then
2181 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2183 if test $ol_enable_wrappers = yes ; then
2184 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2186 if test $ol_enable_phonetic = yes ; then
2187 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2189 if test $ol_enable_quipu = yes ; then
2190 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2192 if test $ol_enable_rlookups = yes ; then
2193 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2195 if test $ol_enable_aci = yes ; then
2196 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2198 if test $ol_enable_discreteaci = yes ; then
2199 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2201 if test $ol_with_ldbm_api != auto ; then
2202 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2204 if test $ol_with_ldbm_type != auto ; then
2205 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2207 if test $ol_with_bdb2_module != static ; then
2208 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2210 if test $ol_with_ldap_module != static ; then
2211 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2213 if test $ol_with_ldbm_module != static ; then
2214 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2216 if test $ol_with_passwd_module != static ; then
2217 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2219 if test $ol_with_perl_module != static ; then
2220 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2222 if test $ol_with_shell_module != static ; then
2223 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2225 if test $ol_with_tcl_module != static ; then
2226 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2228 if test $ol_enable_slurpd = yes ; then
2229 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2232 # force settings to no
2241 ol_enable_modules=no
2242 ol_enable_multimaster=no
2243 ol_enable_phonetic=no
2245 ol_enable_rlookups=no
2247 ol_enable_discreteaci=no
2248 ol_enable_wrappers=no
2251 ol_with_ldbm_type=no
2253 ol_with_bdb2_module=static
2254 ol_with_ldap_module=static
2255 ol_with_ldbm_module=static
2256 ol_with_passwd_module=static
2257 ol_with_perl_module=static
2258 ol_with_shell_module=static
2259 ol_with_tcl_module=static
2263 elif test $ol_enable_ldbm = no ; then
2265 if test $ol_with_ldbm_api != auto ; then
2266 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2269 if test $ol_with_ldbm_type != auto ; then
2270 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2273 if test $ol_with_ldbm_module != static ; then
2274 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2277 if test $ol_enable_bdb2 = yes ; then
2278 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2281 if test $ol_enable_modules != yes -a \
2282 $ol_enable_ldap = no -a \
2283 $ol_enable_passwd = no -a \
2284 $ol_enable_perl = no -a \
2285 $ol_enable_shell = no -a \
2286 $ol_enable_tcl = no ; then
2287 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2291 ol_with_ldbm_type=no
2292 ol_with_ldbm_module=static
2294 elif test $ol_enable_bdb2 = yes ; then
2296 if test $ol_with_ldbm_api != auto -a \
2297 $ol_with_ldbm_api != db2 ; then
2298 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2301 ol_with_ldbm_api=db2
2305 if test $ol_enable_bdb2 != no ; then
2306 if test $ol_with_ldbm_api != auto -a \
2307 $ol_with_ldbm_api != db2 ; then
2308 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2313 if test $ol_with_ldbm_api = gdbm -a \
2314 $ol_with_ldbm_type = btree ; then
2315 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2317 if test $ol_with_ldbm_api = mdbm -a \
2318 $ol_with_ldbm_type = btree ; then
2319 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2321 if test $ol_with_ldbm_api = ndbm -a \
2322 $ol_with_ldbm_type = btree ; then
2323 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2327 if test $ol_enable_slurpd = yes ; then
2328 if test $ol_with_threads = no ; then
2329 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2333 echo "$ac_t""done" 1>&6
2360 BUILD_BDB2_DYNAMIC=static
2361 BUILD_LDAP_DYNAMIC=static
2362 BUILD_LDBM_DYNAMIC=static
2363 BUILD_PASSWD_DYNAMIC=static
2364 BUILD_PERL_DYNAMIC=static
2365 BUILD_SHELL_DYNAMIC=static
2366 BUILD_TCL_DYNAMIC=static
2368 SLAPD_MODULES_LDFLAGS=
2369 SLAPD_MODULES_CPPFLAGS=
2373 SLAPD_PERL_CPPFLAGS=
2384 cat >> confdefs.h <<\EOF
2385 #define HAVE_MKVERSION 1
2393 *-*-aix*) if test -z "$CC" ; then
2394 case "$ol_with_threads" in
2395 auto | yes | posix) ol_aix_threads=yes ;;
2401 if test $ol_aix_threads = yes ; then
2402 if test -z "${CC}" ; then
2403 for ac_prog in cc_r xlc_r cc
2405 # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_word" >&5
2409 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2417 for ac_dir in $ac_dummy; do
2418 test -z "$ac_dir" && ac_dir=.
2419 if test -f $ac_dir/$ac_word; then
2420 ac_cv_prog_CC="$ac_prog"
2428 if test -n "$CC"; then
2429 echo "$ac_t""$CC" 1>&6
2431 echo "$ac_t""no" 1>&6
2434 test -n "$CC" && break
2438 if test "$CC" = cc ; then
2439 if test $ol_with_threads != auto ; then
2440 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2442 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2448 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2449 ol_with_threads=posix
2450 ol_cv_pthread_create=yes
2454 if test -z "${CC}"; then
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2469 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 ac_cv_prog_CC="$ac_prog"
2480 if test -n "$CC"; then
2481 echo "$ac_t""$CC" 1>&6
2483 echo "$ac_t""no" 1>&6
2486 test -n "$CC" && break
2493 # Check whether --enable-fast-install or --disable-fast-install was given.
2494 if test "${enable_fast_install+set}" = set; then
2495 enableval="$enable_fast_install"
2496 p=${PACKAGE-default}
2497 case "$enableval" in
2498 yes) enable_fast_install=yes ;;
2499 no) enable_fast_install=no ;;
2501 enable_fast_install=no
2502 # Look at the argument we got. We use all the common list separators.
2503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2504 for pkg in $enableval; do
2505 if test "X$pkg" = "X$p"; then
2506 enable_fast_install=yes
2513 enable_fast_install=yes
2516 # Extract the first word of "ranlib", so it can be a program name with args.
2517 set dummy ranlib; ac_word=$2
2518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_word" >&5
2520 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 if test -n "$RANLIB"; then
2524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2528 for ac_dir in $ac_dummy; do
2529 test -z "$ac_dir" && ac_dir=.
2530 if test -f $ac_dir/$ac_word; then
2531 ac_cv_prog_RANLIB="ranlib"
2536 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2539 RANLIB="$ac_cv_prog_RANLIB"
2540 if test -n "$RANLIB"; then
2541 echo "$ac_t""$RANLIB" 1>&6
2543 echo "$ac_t""no" 1>&6
2546 # Extract the first word of "gcc", so it can be a program name with args.
2547 set dummy gcc; ac_word=$2
2548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2549 echo "configure:2550: checking for $ac_word" >&5
2550 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2558 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 if test -f $ac_dir/$ac_word; then
2569 if test -n "$CC"; then
2570 echo "$ac_t""$CC" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 if test -z "$CC"; then
2576 # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; ac_word=$2
2578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_word" >&5
2580 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2589 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if test -f $ac_dir/$ac_word; then
2592 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2593 ac_prog_rejected=yes
2601 if test $ac_prog_rejected = yes; then
2602 # We found a bogon in the path, so make sure we never use it.
2603 set dummy $ac_cv_prog_CC
2605 if test $# -gt 0; then
2606 # We chose a different compiler from the bogus one.
2607 # However, it has the same basename, so the bogon will be chosen
2608 # first if we set CC to just the basename; use the full file name.
2610 set dummy "$ac_dir/$ac_word" "$@"
2618 if test -n "$CC"; then
2619 echo "$ac_t""$CC" 1>&6
2621 echo "$ac_t""no" 1>&6
2624 if test -z "$CC"; then
2625 case "`uname -s`" in
2626 *win32* | *WIN32* | *CYGWIN*)
2627 # Extract the first word of "cl", so it can be a program name with args.
2628 set dummy cl; ac_word=$2
2629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_word" >&5
2631 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2639 for ac_dir in $ac_dummy; do
2640 test -z "$ac_dir" && ac_dir=.
2641 if test -f $ac_dir/$ac_word; then
2650 if test -n "$CC"; then
2651 echo "$ac_t""$CC" 1>&6
2653 echo "$ac_t""no" 1>&6
2658 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2662 echo "configure:2663: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2669 cross_compiling=$ac_cv_prog_cc_cross
2671 cat > conftest.$ac_ext << EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2678 if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2679 ac_cv_prog_cc_works=yes
2680 # If we can't run a trivial program, we are probably using a cross compiler.
2681 if (./conftest; exit) 2>/dev/null; then
2682 ac_cv_prog_cc_cross=no
2684 ac_cv_prog_cc_cross=yes
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 ac_cv_prog_cc_works=no
2693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2697 cross_compiling=$ac_cv_prog_cc_cross
2699 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2700 if test $ac_cv_prog_cc_works = no; then
2701 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2703 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2704 echo "configure:2705: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2705 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2706 cross_compiling=$ac_cv_prog_cc_cross
2708 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2709 echo "configure:2710: checking whether we are using GNU C" >&5
2710 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.c <<EOF
2718 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2725 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2727 if test $ac_cv_prog_gcc = yes; then
2733 ac_test_CFLAGS="${CFLAGS+set}"
2734 ac_save_CFLAGS="$CFLAGS"
2736 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2737 echo "configure:2738: checking whether ${CC-cc} accepts -g" >&5
2738 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 echo 'void f(){}' > conftest.c
2742 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2751 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2752 if test "$ac_test_CFLAGS" = set; then
2753 CFLAGS="$ac_save_CFLAGS"
2754 elif test $ac_cv_prog_cc_g = yes; then
2755 if test "$GCC" = yes; then
2761 if test "$GCC" = yes; then
2768 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2769 if test "${with_gnu_ld+set}" = set; then
2770 withval="$with_gnu_ld"
2771 test "$withval" = no || with_gnu_ld=yes
2777 if test "$ac_cv_prog_gcc" = yes; then
2778 # Check if gcc -print-prog-name=ld gives a path.
2779 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2780 echo "configure:2781: checking for ld used by GCC" >&5
2781 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2783 # Accept absolute paths.
2784 [\\/]* | [A-Za-z]:[\\/]*)
2785 re_direlt='/[^/][^/]*/\.\./'
2786 # Canonicalize the path of ld
2787 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2788 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2789 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2791 test -z "$LD" && LD="$ac_prog"
2794 # If it fails, then pretend we aren't using GCC.
2798 # If it is relative, then search for the first ld in PATH.
2802 elif test "$with_gnu_ld" = yes; then
2803 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2804 echo "configure:2805: checking for GNU ld" >&5
2806 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2807 echo "configure:2808: checking for non-GNU ld" >&5
2809 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 if test -z "$LD"; then
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2814 for ac_dir in $PATH; do
2815 test -z "$ac_dir" && ac_dir=.
2816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2817 ac_cv_path_LD="$ac_dir/$ac_prog"
2818 # Check to see if the program is GNU ld. I'd rather use --version,
2819 # but apparently some GNU ld's only accept -v.
2820 # Break only if it was the GNU/non-GNU ld that we prefer.
2821 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2822 test "$with_gnu_ld" != no && break
2824 test "$with_gnu_ld" != yes && break
2830 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2835 if test -n "$LD"; then
2836 echo "$ac_t""$LD" 1>&6
2838 echo "$ac_t""no" 1>&6
2840 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2842 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2843 echo "configure:2844: checking if the linker ($LD) is GNU ld" >&5
2844 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2848 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2849 ac_cv_prog_gnu_ld=yes
2851 ac_cv_prog_gnu_ld=no
2855 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2858 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2859 echo "configure:2860: checking for BSD-compatible nm" >&5
2860 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 if test -n "$NM"; then
2864 # Let the user override the test.
2867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2868 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2869 test -z "$ac_dir" && ac_dir=.
2870 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2871 # Check to see if the nm accepts a BSD-compat flag.
2872 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2873 # nm: unknown option "B" ignored
2874 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2875 ac_cv_path_NM="$ac_dir/nm -B"
2877 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2878 ac_cv_path_NM="$ac_dir/nm -p"
2881 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2882 continue # so that we can try to find one that supports BSD flags
2887 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2892 echo "$ac_t""$NM" 1>&6
2895 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2896 echo "configure:2897: checking whether ln -s works" >&5
2897 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2901 if ln -s X conftestdata 2>/dev/null
2904 ac_cv_prog_LN_S="ln -s"
2909 LN_S="$ac_cv_prog_LN_S"
2910 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2911 echo "$ac_t""yes" 1>&6
2913 echo "$ac_t""no" 1>&6
2917 # Check for any special flags to pass to ltconfig.
2918 libtool_flags="--cache-file=$cache_file"
2919 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2920 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2921 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2922 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2923 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2924 libtool_flags="$libtool_flags --enable-dlopen"
2926 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2927 if test "${enable_libtool_lock+set}" = set; then
2928 enableval="$enable_libtool_lock"
2932 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2933 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2935 # Some flags need to be propagated to the compiler or linker for good
2939 # Find out which ABI we are using.
2940 echo '#line 2941 "configure"' > conftest.$ac_ext
2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2942 case "`/usr/bin/file conftest.o`" in
2958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2959 SAVE_CFLAGS="$CFLAGS"
2960 CFLAGS="$CFLAGS -belf"
2961 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether the C compiler needs -belf" >&5
2963 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976 lt_cv_cc_needs_belf=yes
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 lt_cv_cc_needs_belf=no
2986 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2989 CFLAGS="$SAVE_CFLAGS"
2997 # Save cache, so that ltconfig can load it
3000 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3001 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3002 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3003 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3004 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3006 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3007 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3009 # Reload cache, that may have been modified by ltconfig
3012 # This can be used to rebuild libtool when needed
3013 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3015 # Always use our own libtool.
3016 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3018 # Redirect the config.log output again, so that the ltconfig log is not
3019 # clobbered by the next message.
3020 exec 5>>./config.log
3023 for ac_prog in mawk gawk nawk awk
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$AWK"; then
3033 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_AWK="$ac_prog"
3047 AWK="$ac_cv_prog_AWK"
3048 if test -n "$AWK"; then
3049 echo "$ac_t""$AWK" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$AWK" && break
3057 # test for ln hardlink support
3058 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3059 echo "configure:3060: checking whether ln works" >&5
3060 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 rm -f conftest.src conftest.dst
3064 echo "conftest" > conftest.src
3065 if ln conftest.src conftest.dst 2>/dev/null
3067 ol_cv_prog_LN_H="ln"
3069 ol_cv_prog_LN_H="cp"
3071 rm -f conftest.src conftest.dst
3074 LN_H="$ol_cv_prog_LN_H"
3075 if test "$ol_cv_prog_LN_H" = "ln"; then
3076 echo "$ac_t""yes" 1>&6
3078 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3082 echo "configure:3083: checking whether ln -s works" >&5
3083 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3087 if ln -s X conftestdata 2>/dev/null
3090 ac_cv_prog_LN_S="ln -s"
3095 LN_S="$ac_cv_prog_LN_S"
3096 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3097 echo "$ac_t""yes" 1>&6
3099 echo "$ac_t""no" 1>&6
3103 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3107 # Extract the first word of "sendmail", so it can be a program name with args.
3108 set dummy sendmail; ac_word=$2
3109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_word" >&5
3111 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3116 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3119 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3123 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3124 for ac_dir in $ac_dummy; do
3125 test -z "$ac_dir" && ac_dir=.
3126 if test -f $ac_dir/$ac_word; then
3127 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3132 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3136 SENDMAIL="$ac_cv_path_SENDMAIL"
3137 if test -n "$SENDMAIL"; then
3138 echo "$ac_t""$SENDMAIL" 1>&6
3140 echo "$ac_t""no" 1>&6
3143 # Extract the first word of "vi", so it can be a program name with args.
3144 set dummy vi; ac_word=$2
3145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3146 echo "configure:3147: checking for $ac_word" >&5
3147 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3152 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3155 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3159 ac_dummy="$PATH:/usr/ucb"
3160 for ac_dir in $ac_dummy; do
3161 test -z "$ac_dir" && ac_dir=.
3162 if test -f $ac_dir/$ac_word; then
3163 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3168 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3172 EDITOR="$ac_cv_path_EDITOR"
3173 if test -n "$EDITOR"; then
3174 echo "$ac_t""$EDITOR" 1>&6
3176 echo "$ac_t""no" 1>&6
3179 # Extract the first word of "finger", so it can be a program name with args.
3180 set dummy finger; ac_word=$2
3181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_word" >&5
3183 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3191 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3195 ac_dummy="$PATH:/usr/ucb"
3196 for ac_dir in $ac_dummy; do
3197 test -z "$ac_dir" && ac_dir=.
3198 if test -f $ac_dir/$ac_word; then
3199 ac_cv_path_FINGER="$ac_dir/$ac_word"
3204 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3208 FINGER="$ac_cv_path_FINGER"
3209 if test -n "$FINGER"; then
3210 echo "$ac_t""$FINGER" 1>&6
3212 echo "$ac_t""no" 1>&6
3217 if test $ol_enable_perl != no ; then
3218 # Extract the first word of "perl", so it can be a program name with args.
3219 set dummy perl; ac_word=$2
3220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3221 echo "configure:3222: checking for $ac_word" >&5
3222 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3227 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3230 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 for ac_dir in $ac_dummy; do
3236 test -z "$ac_dir" && ac_dir=.
3237 if test -f $ac_dir/$ac_word; then
3238 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3243 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3247 PERLBIN="$ac_cv_path_PERLBIN"
3248 if test -n "$PERLBIN"; then
3249 echo "$ac_t""$PERLBIN" 1>&6
3251 echo "$ac_t""no" 1>&6
3255 if test "no$PERLBIN" = "no" ; then
3256 if test $ol_enable_perl = yes ; then
3257 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3261 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3262 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3269 echo "configure:3270: checking how to run the C preprocessor" >&5
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3274 if test -z "$CPP"; then
3275 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 # This must be in double quotes, not single quotes, because CPP may get
3279 # substituted into the Makefile and "${CC-cc}" will confuse make.
3281 # On the NeXT, cc -E runs the code through the compiler's parser,
3282 # not just through cpp.
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 CPP="${CC-cc} -E -traditional-cpp"
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3307 { (eval echo configure:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3309 if test -z "$ac_err"; then
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 CPP="${CC-cc} -nologo -E"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3324 { (eval echo configure:3325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3326 if test -z "$ac_err"; then
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3340 ac_cv_prog_CPP="$CPP"
3342 CPP="$ac_cv_prog_CPP"
3344 ac_cv_prog_CPP="$CPP"
3346 echo "$ac_t""$CPP" 1>&6
3349 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3350 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3352 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3353 echo "configure: warning: programs compiled here do run here..." 1>&2
3354 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3356 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3357 echo "configure: warning: programs compiled here do not run here..." 1>&2
3358 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3361 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3362 echo "configure:3363: checking for AIX" >&5
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 egrep "yes" >/dev/null 2>&1; then
3374 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3375 #define _ALL_SOURCE 1
3380 echo "$ac_t""no" 1>&6
3385 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3386 echo "configure:3387: checking for POSIXized ISC" >&5
3387 if test -d /etc/conf/kconfig.d &&
3388 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3390 echo "$ac_t""yes" 1>&6
3391 ISC=yes # If later tests want to check for ISC.
3392 cat >> confdefs.h <<\EOF
3393 #define _POSIX_SOURCE 1
3396 if test "$GCC" = yes; then
3402 echo "$ac_t""no" 1>&6
3406 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3407 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3408 echo "configure:3409: checking for minix/config.h" >&5
3409 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <minix/config.h>
3417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3418 { (eval echo configure:3419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3420 if test -z "$ac_err"; then
3422 eval "ac_cv_header_$ac_safe=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 eval "ac_cv_header_$ac_safe=no"
3432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3436 echo "$ac_t""no" 1>&6
3440 if test "$MINIX" = yes; then
3441 cat >> confdefs.h <<\EOF
3442 #define _POSIX_SOURCE 1
3445 cat >> confdefs.h <<\EOF
3446 #define _POSIX_1_SOURCE 2
3449 cat >> confdefs.h <<\EOF
3456 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3457 echo "configure:3458: checking for Cygwin environment" >&5
3458 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3468 #define __CYGWIN__ __CYGWIN32__
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3485 echo "$ac_t""$ac_cv_cygwin" 1>&6
3487 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3488 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3489 echo "configure:3490: checking for mingw32 environment" >&5
3490 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3513 echo "$ac_t""$ac_cv_mingw32" 1>&6
3515 test "$ac_cv_mingw32" = yes && MINGW32=yes
3516 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3517 echo "configure:3518: checking for EMX OS/2 environment" >&5
3518 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3541 echo "$ac_t""$ac_cv_emxos2" 1>&6
3543 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3547 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3548 echo "configure:3549: checking for executable suffix" >&5
3549 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3556 echo 'int main () { return 0; }' > conftest.$ac_ext
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3559 for file in conftest.*; do
3561 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3562 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3566 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3569 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3574 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3575 echo "$ac_t""${ac_cv_exeext}" 1>&6
3578 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3579 echo "configure:3580: checking for object suffix" >&5
3580 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3584 echo 'int i = 1;' > conftest.$ac_ext
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 for ac_file in conftest.*; do
3589 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3593 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3598 echo "$ac_t""$ac_cv_objext" 1>&6
3599 OBJEXT=$ac_cv_objext
3600 ac_objext=$ac_cv_objext
3603 cat >> confdefs.h <<EOF
3604 #define EXEEXT "${EXEEXT}"
3608 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3609 echo "configure:3610: checking for be_app in -lbe" >&5
3610 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3611 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 ac_save_LIBS="$LIBS"
3615 LIBS="-lbe -lroot -lnet $LIBS"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 /* Override any gcc2 internal prototype to avoid an error. */
3620 /* We use char because int might match the return type of a gcc2
3621 builtin and then its argument prototype would still apply. */
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 eval "ac_cv_lib_$ac_lib_var=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_lib_$ac_lib_var=no"
3638 LIBS="$ac_save_LIBS"
3641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 LIBS="$LIBS -lbe -lroot -lnet"
3645 echo "$ac_t""no" 1>&6
3653 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3654 echo "configure:3655: checking for ${CC-cc} option to accept ANSI C" >&5
3655 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 am_cv_prog_cc_stdc=no
3660 # Don't try gcc -ansi; that turns off useful extensions and
3661 # breaks some systems' header files.
3662 # AIX -qlanglvl=ansi
3663 # Ultrix and OSF/1 -std1
3664 # HP-UX 10.20 and later -Ae
3665 # HP-UX older versions -Aa -D_HPUX_SOURCE
3666 # SVR4 -Xc -D__EXTENSIONS__
3667 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 CC="$ac_save_CC $ac_arg"
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3691 s = g (p, va_arg (v,int));
3695 int test (int i, double x);
3696 struct s1 {int (*f) (int a);};
3697 struct s2 {int (*f) (double a);};
3698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710 am_cv_prog_cc_stdc="$ac_arg"; break
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3721 if test -z "$am_cv_prog_cc_stdc"; then
3722 echo "$ac_t""none needed" 1>&6
3724 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3726 case "x$am_cv_prog_cc_stdc" in
3728 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3731 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3732 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3735 # test for make depend flag
3738 if test -z "${MKDEP}"; then
3740 if test -z "${MKDEP_FLAGS}"; then
3741 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3742 echo "configure:3743: checking for ${OL_MKDEP} depend flag" >&5
3743 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3748 for flag in "-M" "-xM"; do
3749 cat > conftest.c <<EOF
3752 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3753 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3755 if test ! -f conftest."${ac_object}" ; then
3757 OL_MKDEP_FLAGS="$flag"
3766 echo "$ac_t""$ol_cv_mkdep" 1>&6
3769 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3774 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3779 if test "${ol_cv_mkdep}" = no ; then
3780 # this will soon become an error
3781 echo "configure: warning: do not know how to generate dependencies" 1>&2
3785 if test $ol_enable_modules != no ; then
3786 for ac_hdr in ltdl.h
3788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3790 echo "configure:3791: checking for $ac_hdr" >&5
3791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3800 { (eval echo configure:3801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3802 if test -z "$ac_err"; then
3804 eval "ac_cv_header_$ac_safe=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_header_$ac_safe=no"
3814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3817 cat >> confdefs.h <<EOF
3818 #define $ac_tr_hdr 1
3822 echo "$ac_t""no" 1>&6
3827 if test $ac_cv_header_ltdl_h = no ; then
3828 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3832 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3833 echo "configure:3834: checking for lt_dlinit in -lltdl" >&5
3834 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3838 ac_save_LIBS="$LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3869 cat >> confdefs.h <<EOF
3870 #define $ac_tr_lib 1
3876 echo "$ac_t""no" 1>&6
3879 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3880 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3884 ol_with_bdb2_module=static
3885 ol_with_ldap_module=static
3886 ol_with_ldbm_module=static
3887 ol_with_passwd_module=static
3888 ol_with_perl_module=static
3889 ol_with_shell_module=static
3890 ol_with_tcl_module=static
3894 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3895 echo "configure:3896: checking for EBCDIC" >&5
3896 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 #include <__ASCII__/generate_error.h>
3909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3910 { (eval echo configure:3911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3912 if test -z "$ac_err"; then
3914 ol_cv_cpp_ebcdic=yes
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3925 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3926 if test $ol_cv_cpp_ebcdic = yes ; then
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_EBCDIC 1
3933 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3934 echo "configure:3935: checking for ANSI C header files" >&5
3935 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3947 { (eval echo configure:3948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3949 if test -z "$ac_err"; then
3951 ol_cv_header_stdc=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 ol_cv_header_stdc=no
3961 if test $ol_cv_header_stdc = yes; then
3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 egrep "memchr" >/dev/null 2>&1; then
3973 ol_cv_header_stdc=no
3979 if test $ol_cv_header_stdc = yes; then
3980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987 egrep "free" >/dev/null 2>&1; then
3991 ol_cv_header_stdc=no
3997 if test $ol_cv_header_stdc = yes; then
3998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3999 if test "$cross_compiling" = yes; then
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4010 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4011 || ('j' <= (c) && (c) <= 'r') \
4012 || ('s' <= (c) && (c) <= 'z'))
4013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4016 int main () { int i; for (i = 0; i < 256; i++)
4017 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 ol_cv_header_stdc=no
4036 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4037 if test $ol_cv_header_stdc = yes; then
4038 cat >> confdefs.h <<\EOF
4039 #define STDC_HEADERS 1
4043 ac_cv_header_stdc=disable
4046 if test $ol_cv_header_stdc != yes; then
4047 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4054 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4055 echo "configure:4056: checking for $ac_hdr that defines DIR" >&5
4056 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <sys/types.h>
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 eval "ac_cv_header_dirent_$ac_safe=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4075 eval "ac_cv_header_dirent_$ac_safe=no"
4079 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4080 echo "$ac_t""yes" 1>&6
4081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4082 cat >> confdefs.h <<EOF
4083 #define $ac_tr_hdr 1
4085 ac_header_dirent=$ac_hdr; break
4087 echo "$ac_t""no" 1>&6
4090 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4091 if test $ac_header_dirent = dirent.h; then
4092 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4093 echo "configure:4094: checking for opendir in -ldir" >&5
4094 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4095 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_save_LIBS="$LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 eval "ac_cv_lib_$ac_lib_var=yes"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 eval "ac_cv_lib_$ac_lib_var=no"
4122 LIBS="$ac_save_LIBS"
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4126 echo "$ac_t""yes" 1>&6
4129 echo "$ac_t""no" 1>&6
4133 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4134 echo "configure:4135: checking for opendir in -lx" >&5
4135 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 ac_save_LIBS="$LIBS"
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 eval "ac_cv_lib_$ac_lib_var=no"
4163 LIBS="$ac_save_LIBS"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4170 echo "$ac_t""no" 1>&6
4175 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4176 echo "configure:4177: checking for sys/wait.h that is POSIX.1 compatible" >&5
4177 if eval "test \"\${ac_cv_header_sys_wait_h+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 #include <sys/types.h>
4184 #include <sys/wait.h>
4186 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4189 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4197 if { (eval echo configure:4198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4199 ac_cv_header_sys_wait_h=yes
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 ac_cv_header_sys_wait_h=no
4209 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4210 if test $ac_cv_header_sys_wait_h = yes; then
4211 cat >> confdefs.h <<\EOF
4212 #define HAVE_SYS_WAIT_H 1
4217 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4218 echo "configure:4219: checking POSIX termios" >&5
4219 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4227 #include <termios.h>
4229 /* SunOS 4.0.3 has termios.h but not the library calls. */
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 am_cv_sys_posix_termios=yes
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 am_cv_sys_posix_termios=no
4245 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4248 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4249 echo "configure:4250: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4250 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4255 gwinsz_in_termios_h=no
4256 if test $am_cv_sys_posix_termios = yes; then
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 #include <sys/types.h>
4261 # include <termios.h>
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 egrep "yes" >/dev/null 2>&1; then
4270 gwinsz_in_termios_h=yes
4276 if test $gwinsz_in_termios_h = no; then
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <sys/types.h>
4281 # include <sys/ioctl.h>
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 egrep "yes" >/dev/null 2>&1; then
4290 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4298 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4299 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4300 cat >> confdefs.h <<\EOF
4301 #define GWINSZ_IN_SYS_IOCTL 1
4306 if test $am_cv_sys_posix_termios = yes ; then
4307 cat >> confdefs.h <<\EOF
4308 #define HAVE_POSIX_TERMIOS 1
4354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4356 echo "configure:4357: checking for $ac_hdr" >&5
4357 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4370 eval "ac_cv_header_$ac_safe=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_header_$ac_safe=no"
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4383 cat >> confdefs.h <<EOF
4384 #define $ac_tr_hdr 1
4388 echo "$ac_t""no" 1>&6
4395 echo $ac_n "checking for socket""... $ac_c" 1>&6
4396 echo "configure:4397: checking for socket" >&5
4397 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* System header to define __stub macros and hopefully few prototypes,
4404 which can conflict with char socket(); below. */
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_socket) || defined (__stub___socket)
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 eval "ac_cv_func_socket=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 eval "ac_cv_func_socket=no"
4437 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4441 echo "$ac_t""no" 1>&6
4443 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4444 echo "configure:4445: checking for main in -lsocket" >&5
4445 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 ac_save_LIBS="$LIBS"
4450 LIBS="-lsocket $LIBS"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 eval "ac_cv_lib_$ac_lib_var=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_lib_$ac_lib_var=no"
4469 LIBS="$ac_save_LIBS"
4472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4476 cat >> confdefs.h <<EOF
4477 #define $ac_tr_lib 1
4480 LIBS="-lsocket $LIBS"
4483 echo "$ac_t""no" 1>&6
4486 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4487 echo "configure:4488: checking for main in -lnet" >&5
4488 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4489 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 ac_save_LIBS="$LIBS"
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4504 eval "ac_cv_lib_$ac_lib_var=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 eval "ac_cv_lib_$ac_lib_var=no"
4512 LIBS="$ac_save_LIBS"
4515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4519 cat >> confdefs.h <<EOF
4520 #define $ac_tr_lib 1
4526 echo "$ac_t""no" 1>&6
4529 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4530 echo "configure:4531: checking for socket in -lnet" >&5
4531 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 ac_save_LIBS="$LIBS"
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 eval "ac_cv_lib_$ac_lib_var=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_lib_$ac_lib_var=no"
4559 LIBS="$ac_save_LIBS"
4562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4566 cat >> confdefs.h <<EOF
4567 #define $ac_tr_lib 1
4573 echo "$ac_t""no" 1>&6
4576 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4577 echo "configure:4578: checking for main in -lnsl_s" >&5
4578 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 ac_save_LIBS="$LIBS"
4583 LIBS="-lnsl_s $LIBS"
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4594 eval "ac_cv_lib_$ac_lib_var=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 eval "ac_cv_lib_$ac_lib_var=no"
4602 LIBS="$ac_save_LIBS"
4605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4607 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4609 cat >> confdefs.h <<EOF
4610 #define $ac_tr_lib 1
4613 LIBS="-lnsl_s $LIBS"
4616 echo "$ac_t""no" 1>&6
4619 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4620 echo "configure:4621: checking for main in -lnsl" >&5
4621 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4622 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 ac_save_LIBS="$LIBS"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4637 eval "ac_cv_lib_$ac_lib_var=yes"
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 eval "ac_cv_lib_$ac_lib_var=no"
4645 LIBS="$ac_save_LIBS"
4648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_lib 1
4659 echo "$ac_t""no" 1>&6
4662 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4663 echo "configure:4664: checking for socket in -linet" >&5
4664 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4665 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 ac_save_LIBS="$LIBS"
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4684 eval "ac_cv_lib_$ac_lib_var=yes"
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4689 eval "ac_cv_lib_$ac_lib_var=no"
4692 LIBS="$ac_save_LIBS"
4695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4696 echo "$ac_t""yes" 1>&6
4697 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4699 cat >> confdefs.h <<EOF
4700 #define $ac_tr_lib 1
4706 echo "$ac_t""no" 1>&6
4709 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4710 echo "configure:4711: checking for main in -lgen" >&5
4711 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4712 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 ac_save_LIBS="$LIBS"
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 eval "ac_cv_lib_$ac_lib_var=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 eval "ac_cv_lib_$ac_lib_var=no"
4735 LIBS="$ac_save_LIBS"
4738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4742 cat >> confdefs.h <<EOF
4743 #define $ac_tr_lib 1
4749 echo "$ac_t""no" 1>&6
4756 echo $ac_n "checking for select""... $ac_c" 1>&6
4757 echo "configure:4758: checking for select" >&5
4758 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char select(); below. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4775 /* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778 #if defined (__stub_select) || defined (__stub___select)
4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4788 eval "ac_cv_func_select=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_func_select=no"
4798 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4802 echo "$ac_t""no" 1>&6
4803 { echo "configure: error: select() required." 1>&2; exit 1; }
4806 for ac_func in socketpair
4808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4809 echo "configure:4810: checking for $ac_func" >&5
4810 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 /* System header to define __stub macros and hopefully few prototypes,
4817 which can conflict with char $ac_func(); below. */
4819 /* Override any gcc2 internal prototype to avoid an error. */
4820 /* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 eval "ac_cv_func_$ac_func=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_func_$ac_func=no"
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853 cat >> confdefs.h <<EOF
4854 #define $ac_tr_func 1
4858 echo "$ac_t""no" 1>&6
4863 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4864 echo "configure:4865: checking types of arguments for select()" >&5
4865 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4875 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4876 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4880 #ifdef HAVE_SYS_TYPES_H
4881 #include <sys/types.h>
4883 #ifdef HAVE_SYS_TIME_H
4884 #include <sys/time.h>
4886 #ifdef HAVE_SYS_SELECT_H
4887 #include <sys/select.h>
4889 #ifdef HAVE_SYS_SOCKET_H
4890 #include <sys/socket.h>
4892 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);
4897 if { (eval echo configure:4898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4899 ac_not_found=no ; break 3
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4916 if test "$ac_not_found" = yes; then
4917 ac_cv_func_select_arg1=int
4918 ac_cv_func_select_arg234='int *'
4919 ac_cv_func_select_arg5='struct timeval *'
4921 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4922 cat >> confdefs.h <<EOF
4923 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4926 cat >> confdefs.h <<EOF
4927 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4930 cat >> confdefs.h <<EOF
4931 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4936 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
4937 echo "configure:4938: checking for restartable system calls" >&5
4938 if eval "test \"\${ac_cv_sys_restartable_syscalls+set}\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 if test "$cross_compiling" = yes; then
4942 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4947 /* Exit 0 (true) if wait returns something other than -1,
4948 i.e. the pid of the child, which means that wait was restarted
4949 after getting the signal. */
4950 #include <sys/types.h>
4954 int i = fork (), status;
4955 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
4956 signal (SIGINT, ucatch);
4958 if (status == -1) wait(&i);
4959 exit (status == -1);
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4965 ac_cv_sys_restartable_syscalls=yes
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 ac_cv_sys_restartable_syscalls=no
4977 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
4978 if test $ac_cv_sys_restartable_syscalls = yes; then
4979 cat >> confdefs.h <<\EOF
4980 #define HAVE_RESTARTABLE_SYSCALLS 1
4986 for ac_hdr in regex.h
4988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4990 echo "configure:4991: checking for $ac_hdr" >&5
4991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5000 { (eval echo configure:5001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5002 if test -z "$ac_err"; then
5004 eval "ac_cv_header_$ac_safe=yes"
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5010 eval "ac_cv_header_$ac_safe=no"
5014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5017 cat >> confdefs.h <<EOF
5018 #define $ac_tr_hdr 1
5022 echo "$ac_t""no" 1>&6
5026 if test "$ac_cv_header_regex_h" != yes ; then
5027 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5029 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5030 echo "configure:5031: checking for regfree" >&5
5031 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* System header to define __stub macros and hopefully few prototypes,
5038 which can conflict with char regfree(); below. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5041 /* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_regfree) || defined (__stub___regfree)
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_func_regfree=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_func_regfree=no"
5071 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5075 echo "$ac_t""no" 1>&6
5076 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5081 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5082 echo "configure:5083: checking for compatible POSIX regex" >&5
5083 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5087 if test "$cross_compiling" = yes; then
5088 ol_cv_c_posix_regex=cross
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5094 #include <sys/types.h>
5096 static char *pattern, *string;
5104 if(regcomp(&re, pattern, 0)) {
5108 string = "ALL MATCH";
5110 rc = regexec(&re, string, 0, (void*)0, 0);
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5119 ol_cv_c_posix_regex=yes
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5124 ol_cv_c_posix_regex=no
5131 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5133 if test "$ol_cv_c_posix_regex" = no ; then
5134 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5137 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5138 echo "configure:5139: checking for sigset in -lV3" >&5
5139 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5140 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 ac_save_LIBS="$LIBS"
5145 cat > conftest.$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5148 /* Override any gcc2 internal prototype to avoid an error. */
5149 /* We use char because int might match the return type of a gcc2
5150 builtin and then its argument prototype would still apply. */
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5159 eval "ac_cv_lib_$ac_lib_var=yes"
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5164 eval "ac_cv_lib_$ac_lib_var=no"
5167 LIBS="$ac_save_LIBS"
5170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5171 echo "$ac_t""yes" 1>&6
5172 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5174 cat >> confdefs.h <<EOF
5175 #define $ac_tr_lib 1
5181 echo "$ac_t""no" 1>&6
5185 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5186 echo "configure:5187: checking for res_search" >&5
5187 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5193 /* System header to define __stub macros and hopefully few prototypes,
5194 which can conflict with char res_search(); below. */
5196 /* Override any gcc2 internal prototype to avoid an error. */
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5204 /* The GNU C library defines this for functions which it implements
5205 to always fail with ENOSYS. Some functions are actually named
5206 something starting with __ and the normal name is an alias. */
5207 #if defined (__stub_res_search) || defined (__stub___res_search)
5215 if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5217 eval "ac_cv_func_res_search=yes"
5219 echo "configure: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5222 eval "ac_cv_func_res_search=no"
5227 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5231 echo "$ac_t""no" 1>&6
5234 if test $ac_cv_func_res_search = no ; then
5235 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5236 echo "configure:5237: checking for res_search in -lbind" >&5
5237 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5238 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5241 ac_save_LIBS="$LIBS"
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 /* Override any gcc2 internal prototype to avoid an error. */
5247 /* We use char because int might match the return type of a gcc2
5248 builtin and then its argument prototype would still apply. */
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5257 eval "ac_cv_lib_$ac_lib_var=yes"
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 eval "ac_cv_lib_$ac_lib_var=no"
5265 LIBS="$ac_save_LIBS"
5268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5270 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5272 cat >> confdefs.h <<EOF
5273 #define $ac_tr_lib 1
5279 echo "$ac_t""no" 1>&6
5282 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5285 if test $ac_cv_func_res_search = no ; then
5286 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5287 echo "configure:5288: checking for __res_search in -lbind" >&5
5288 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5289 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5292 ac_save_LIBS="$LIBS"
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 /* Override any gcc2 internal prototype to avoid an error. */
5298 /* We use char because int might match the return type of a gcc2
5299 builtin and then its argument prototype would still apply. */
5300 char __res_search();
5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 eval "ac_cv_lib_$ac_lib_var=yes"
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 eval "ac_cv_lib_$ac_lib_var=no"
5316 LIBS="$ac_save_LIBS"
5319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5320 echo "$ac_t""yes" 1>&6
5321 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5323 cat >> confdefs.h <<EOF
5324 #define $ac_tr_lib 1
5330 echo "$ac_t""no" 1>&6
5333 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5336 if test $ac_cv_func_res_search = no ; then
5337 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5338 echo "configure:5339: checking for res_search in -lresolv" >&5
5339 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 ac_save_LIBS="$LIBS"
5344 LIBS="-lresolv $LIBS"
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 eval "ac_cv_lib_$ac_lib_var=yes"
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 eval "ac_cv_lib_$ac_lib_var=no"
5367 LIBS="$ac_save_LIBS"
5370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5371 echo "$ac_t""yes" 1>&6
5372 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5374 cat >> confdefs.h <<EOF
5375 #define $ac_tr_lib 1
5378 LIBS="-lresolv $LIBS"
5381 echo "$ac_t""no" 1>&6
5384 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5387 if test "$ac_cv_func_res_search" = yes ; then
5388 cat >> confdefs.h <<\EOF
5389 #define HAVE_RES_SEARCH 1
5392 elif test $ol_enable_dns = yes ; then
5393 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5394 elif test $ol_enable_dns != no ; then
5395 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5401 if test $ol_enable_ldapd != no ; then
5402 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5404 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5405 echo "configure:5406: checking for main in -lxtpp" >&5
5406 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5407 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 ac_save_LIBS="$LIBS"
5411 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 eval "ac_cv_lib_$ac_lib_var=yes"
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5427 eval "ac_cv_lib_$ac_lib_var=no"
5430 LIBS="$ac_save_LIBS"
5433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5437 cat >> confdefs.h <<\EOF
5441 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5444 echo "$ac_t""no" 1>&6
5448 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5449 echo "configure:5450: checking for main in -ldsap" >&5
5450 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5451 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5454 ac_save_LIBS="$LIBS"
5455 LIBS="-ldsap -lisode $LIBS"
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5466 eval "ac_cv_lib_$ac_lib_var=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_lib_$ac_lib_var=no"
5474 LIBS="$ac_save_LIBS"
5477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5478 echo "$ac_t""yes" 1>&6
5481 cat >> confdefs.h <<\EOF
5485 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5488 echo "$ac_t""no" 1>&6
5492 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5493 echo "configure:5494: checking for main in -lisode" >&5
5494 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5495 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 ac_save_LIBS="$LIBS"
5499 LIBS="-lisode $LIBS"
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5508 if { (eval echo configure:5509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 eval "ac_cv_lib_$ac_lib_var=yes"
5512 echo "configure: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5515 eval "ac_cv_lib_$ac_lib_var=no"
5518 LIBS="$ac_save_LIBS"
5521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5525 cat >> confdefs.h <<\EOF
5526 #define HAVE_ISODE 1
5529 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5532 echo "$ac_t""no" 1>&6
5538 if test $ol_link_isode != no; then
5539 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5540 echo "configure:5541: checking for main in -lpp" >&5
5541 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 ac_save_LIBS="$LIBS"
5547 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 eval "ac_cv_lib_$ac_lib_var=yes"
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 eval "ac_cv_lib_$ac_lib_var=no"
5565 LIBS="$ac_save_LIBS"
5568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5569 echo "$ac_t""yes" 1>&6
5571 cat >> confdefs.h <<\EOF
5575 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5578 echo "$ac_t""no" 1>&6
5583 # Extract the first word of "pepsy", so it can be a program name with args.
5584 set dummy pepsy; ac_word=$2
5585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_word" >&5
5587 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5592 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5595 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5600 for ac_dir in $ac_dummy; do
5601 test -z "$ac_dir" && ac_dir=.
5602 if test -f $ac_dir/$ac_word; then
5603 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5611 PEPSY="$ac_cv_path_PEPSY"
5612 if test -n "$PEPSY"; then
5613 echo "$ac_t""$PEPSY" 1>&6
5615 echo "$ac_t""no" 1>&6
5620 if test $ol_enable_quipu != no ; then
5621 for ac_hdr in quipu/commonarg.h
5623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5625 echo "configure:5626: checking for $ac_hdr" >&5
5626 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5635 { (eval echo configure:5636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5637 if test -z "$ac_err"; then
5639 eval "ac_cv_header_$ac_safe=yes"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 eval "ac_cv_header_$ac_safe=no"
5649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5652 cat >> confdefs.h <<EOF
5653 #define $ac_tr_hdr 1
5657 echo "$ac_t""no" 1>&6
5662 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5664 elif test $ol_enable_quipu = auto ; then
5665 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5667 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5673 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5674 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5678 echo "configure:5679: checking for $ac_hdr" >&5
5679 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5688 { (eval echo configure:5689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5690 if test -z "$ac_err"; then
5692 eval "ac_cv_header_$ac_safe=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 eval "ac_cv_header_$ac_safe=no"
5702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5703 echo "$ac_t""yes" 1>&6
5704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5705 cat >> confdefs.h <<EOF
5706 #define $ac_tr_hdr 1
5710 echo "$ac_t""no" 1>&6
5715 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5716 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5717 echo "configure:5718: checking for main in -lkrb4" >&5
5718 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 ac_save_LIBS="$LIBS"
5723 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5732 if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5734 eval "ac_cv_lib_$ac_lib_var=yes"
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_lib_$ac_lib_var=no"
5742 LIBS="$ac_save_LIBS"
5745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5749 echo "$ac_t""no" 1>&6
5754 if test $have_k5 = yes ; then
5755 ol_with_kerberos=found
5756 ol_link_kerberos=yes
5758 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5760 LIBS="$KRB_LIBS $LIBS"
5762 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5763 echo "configure:5764: checking for des_debug in Kerberos libraries" >&5
5764 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5769 LIBS="$KRB_LIBS $LIBS"
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5774 #include <kerberosIV/krb.h>
5775 #include <kerberosIV/des.h>
5776 extern int des_debug;
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 ol_cv_var_des_debug=yes
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5791 ol_cv_var_des_debug=no
5798 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5800 if test $ol_cv_var_des_debug = yes ; then
5801 cat >> confdefs.h <<\EOF
5802 #define HAVE_DES_DEBUG 1
5812 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5813 for ac_hdr in krb.h des.h
5815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5817 echo "configure:5818: checking for $ac_hdr" >&5
5818 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5827 { (eval echo configure:5828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5829 if test -z "$ac_err"; then
5831 eval "ac_cv_header_$ac_safe=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 eval "ac_cv_header_$ac_safe=no"
5841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5842 echo "$ac_t""yes" 1>&6
5843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5844 cat >> confdefs.h <<EOF
5845 #define $ac_tr_hdr 1
5849 echo "$ac_t""no" 1>&6
5854 if test $ac_cv_header_krb_h = yes ; then
5855 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5856 echo "configure:5857: checking for main in -lkrb" >&5
5857 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5858 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5861 ac_save_LIBS="$LIBS"
5862 LIBS="-lkrb -ldes $LIBS"
5863 cat > conftest.$ac_ext <<EOF
5864 #line 5865 "configure"
5865 #include "confdefs.h"
5871 if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873 eval "ac_cv_lib_$ac_lib_var=yes"
5875 echo "configure: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5878 eval "ac_cv_lib_$ac_lib_var=no"
5881 LIBS="$ac_save_LIBS"
5884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
5888 echo "$ac_t""no" 1>&6
5893 if test $have_k4 = yes ; then
5894 ol_with_kerberos=found
5895 ol_link_kerberos=yes
5897 KRB_LIBS="-lkrb -ldes"
5902 if test $ol_link_kerberos = yes ; then
5903 cat >> confdefs.h <<\EOF
5904 #define HAVE_KERBEROS 1
5910 if test $ol_with_tls != no ; then
5912 for ac_hdr in openssl/ssl.h ssl.h
5914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_hdr" >&5
5917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5926 { (eval echo configure:5927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5928 if test -z "$ac_err"; then
5930 eval "ac_cv_header_$ac_safe=yes"
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5936 eval "ac_cv_header_$ac_safe=no"
5940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5943 cat >> confdefs.h <<EOF
5944 #define $ac_tr_hdr 1
5948 echo "$ac_t""no" 1>&6
5953 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5954 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5955 echo "configure:5956: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5956 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5957 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 ac_save_LIBS="$LIBS"
5961 LIBS="-lssl -lcrypto $LIBS"
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5965 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5968 char SSLeay_add_ssl_algorithms();
5971 SSLeay_add_ssl_algorithms()
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 eval "ac_cv_lib_$ac_lib_var=yes"
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 eval "ac_cv_lib_$ac_lib_var=no"
5984 LIBS="$ac_save_LIBS"
5987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5992 echo "$ac_t""no" 1>&6
5997 if test $have_ssleay = no ; then
5998 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5999 echo "configure:6000: checking for SSL_library_init in -lssl" >&5
6000 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6001 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 ac_save_LIBS="$LIBS"
6005 LIBS="-lssl -lcrypto $LIBS"
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6012 char SSL_library_init();
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_lib_$ac_lib_var=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_lib_$ac_lib_var=no"
6028 LIBS="$ac_save_LIBS"
6031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6032 echo "$ac_t""yes" 1>&6
6036 echo "$ac_t""no" 1>&6
6042 if test $have_ssleay = no ; then
6043 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6044 echo "configure:6045: checking for ssl3_accept in -lssl" >&5
6045 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 ac_save_LIBS="$LIBS"
6050 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6063 if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065 eval "ac_cv_lib_$ac_lib_var=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 eval "ac_cv_lib_$ac_lib_var=no"
6073 LIBS="$ac_save_LIBS"
6076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6081 echo "$ac_t""no" 1>&6
6087 if test $have_ssleay = yes ; then
6091 cat >> confdefs.h <<\EOF
6092 #define HAVE_SSLEAY 1
6096 if test $need_rsaref = yes; then
6097 cat >> confdefs.h <<\EOF
6098 #define HAVE_RSAREF 1
6102 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6104 TLS_LIBS="-lssl -lcrypto"
6110 if test $ol_link_tls = yes ; then
6111 cat >> confdefs.h <<\EOF
6119 gethostbyname_r gethostbyaddr_r \
6122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_func" >&5
6124 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 /* System header to define __stub macros and hopefully few prototypes,
6131 which can conflict with char $ac_func(); below. */
6133 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6141 /* The GNU C library defines this for functions which it implements
6142 to always fail with ENOSYS. Some functions are actually named
6143 something starting with __ and the normal name is an alias. */
6144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_func_$ac_func=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_func_$ac_func=no"
6164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6167 cat >> confdefs.h <<EOF
6168 #define $ac_tr_func 1
6172 echo "$ac_t""no" 1>&6
6177 if test "$ac_cv_func_ctime_r" = no ; then
6178 ol_cv_func_ctime_r_nargs=0
6180 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6181 echo "configure:6182: checking number of arguments of ctime_r" >&5
6182 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6190 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6193 if { (eval echo configure:6194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6195 ol_cv_func_ctime_r_nargs=3
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6205 time_t ti; char *buffer; ctime_r(&ti,buffer);
6208 if { (eval echo configure:6209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6210 ol_cv_func_ctime_r_nargs=2
6212 echo "configure: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 ol_cv_func_ctime_r_nargs=0
6222 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6223 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6224 cat >> confdefs.h <<EOF
6225 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6232 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6233 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6234 echo "configure:6235: checking number of arguments of gethostbyname_r" >&5
6235 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 #include <sys/types.h>
6242 #include <sys/socket.h>
6243 #include <netinet/in.h>
6245 #define BUFSIZE (sizeof(struct hostent)+10)
6247 struct hostent hent; char buffer[BUFSIZE];
6248 int bufsize=BUFSIZE;int h_errno;
6249 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6250 buffer, bufsize, &h_errno);
6253 if { (eval echo configure:6254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6255 ol_cv_func_gethostbyname_r_nargs=5
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 #include <sys/types.h>
6264 #include <sys/socket.h>
6265 #include <netinet/in.h>
6267 #define BUFSIZE (sizeof(struct hostent)+10)
6269 struct hostent hent;struct hostent *rhent;
6270 char buffer[BUFSIZE];
6271 int bufsize=BUFSIZE;int h_errno;
6272 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6276 if { (eval echo configure:6277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6278 ol_cv_func_gethostbyname_r_nargs=6
6280 echo "configure: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6283 ol_cv_func_gethostbyname_r_nargs=0
6290 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6291 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6292 cat >> confdefs.h <<EOF
6293 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6299 ol_cv_func_gethostbyname_r_nargs=0
6302 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6303 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6304 echo "configure:6305: checking number of arguments of gethostbyaddr_r" >&5
6305 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6306 echo $ac_n "(cached) $ac_c" 1>&6
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 #include <sys/types.h>
6312 #include <sys/socket.h>
6313 #include <netinet/in.h>
6315 #define BUFSIZE (sizeof(struct hostent)+10)
6317 struct hostent hent; char buffer[BUFSIZE];
6319 size_t alen=sizeof(struct in_addr);
6320 int bufsize=BUFSIZE;int h_errno;
6321 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6322 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6325 if { (eval echo configure:6326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6327 ol_cv_func_gethostbyaddr_r_nargs=7
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 #include <sys/types.h>
6336 #include <sys/socket.h>
6337 #include <netinet/in.h>
6339 #define BUFSIZE (sizeof(struct hostent)+10)
6341 struct hostent hent;
6342 struct hostent *rhent; char buffer[BUFSIZE];
6344 size_t alen=sizeof(struct in_addr);
6345 int bufsize=BUFSIZE;int h_errno;
6346 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6347 alen, AF_INET, &hent, buffer, bufsize,
6351 if { (eval echo configure:6352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6353 ol_cv_func_gethostbyaddr_r_nargs=8
6355 echo "configure: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6358 ol_cv_func_gethostbyaddr_r_nargs=0
6365 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6366 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6367 cat >> confdefs.h <<EOF
6368 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6374 ol_cv_func_gethostbyaddr_r_nargs=0
6377 if test "$ac_cv_func_ctime_r" = yes \
6378 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6379 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6380 -a "$ac_cv_func_gethostbyname_r" = yes \
6381 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6382 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6383 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6384 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6385 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6388 cat >> confdefs.h <<\EOF
6389 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6395 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6396 -o $ol_with_threads = posix ; then
6398 for ac_hdr in pthread.h
6400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_hdr" >&5
6403 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6412 { (eval echo configure:6413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6414 if test -z "$ac_err"; then
6416 eval "ac_cv_header_$ac_safe=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_header_$ac_safe=no"
6426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_hdr 1
6434 echo "$ac_t""no" 1>&6
6439 if test $ac_cv_header_pthread_h = yes ; then
6440 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6441 echo "configure:6442: checking POSIX thread version" >&5
6442 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6450 # include <pthread.h>
6451 /* this check could be improved */
6452 # ifdef PTHREAD_ONCE_INIT
6453 pthread_version_final
6457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 egrep "pthread_version_final" >/dev/null 2>&1; then
6460 ol_pthread_final=yes
6468 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6472 # include <pthread.h>
6473 /* this check could be improved */
6474 # ifdef pthread_once_init
6475 pthread_version_draft4
6479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6480 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6482 ol_pthread_draft4=yes
6485 ol_pthread_draft4=no
6490 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6491 ol_cv_pthread_version=final
6492 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6493 ol_cv_pthread_version=draft4
6495 ol_cv_pthread_version=unknown
6500 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6503 if test $ol_cv_pthread_version = final ; then
6504 cat >> confdefs.h <<\EOF
6505 #define HAVE_PTHREADS_FINAL 1
6508 elif test $ol_cv_pthread_version = draft4 ; then
6509 cat >> confdefs.h <<\EOF
6510 #define HAVE_PTHREADS_D4 1
6514 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6517 # consider threads found
6518 ol_with_threads=found
6521 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6522 echo "configure:6523: checking for LinuxThreads pthread.h" >&5
6523 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 #include <pthread.h>
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6534 ol_cv_header_linux_threads=yes
6537 ol_cv_header_linux_threads=no
6544 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6545 if test $ol_cv_header_linux_threads = yes; then
6546 cat >> confdefs.h <<\EOF
6547 #define HAVE_LINUX_THREADS 1
6553 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6554 echo "configure:6555: checking for GNU Pth pthread.h" >&5
6555 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6556 echo $ac_n "(cached) $ac_c" 1>&6
6558 cat > conftest.$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 #include <pthread.h>
6562 #ifdef _POSIX_THREAD_IS_GNU_PTH
6567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6568 egrep "__gnu_pth__" >/dev/null 2>&1; then
6570 ol_cv_header_gnu_pth_pthread_h=yes
6573 ol_cv_header_gnu_pth_pthread_h=no
6580 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6583 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6584 for ac_hdr in sched.h
6586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_hdr" >&5
6589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6598 { (eval echo configure:6599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6600 if test -z "$ac_err"; then
6602 eval "ac_cv_header_$ac_safe=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 eval "ac_cv_header_$ac_safe=no"
6612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6613 echo "$ac_t""yes" 1>&6
6614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6615 cat >> confdefs.h <<EOF
6616 #define $ac_tr_hdr 1
6620 echo "$ac_t""no" 1>&6
6627 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6628 echo "configure:6629: checking for pthread_create in default libraries" >&5
6629 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6633 if test "$cross_compiling" = yes; then
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* pthread test headers */
6638 #include <pthread.h>
6640 #define NULL (void*)0
6643 static void *task(p)
6646 return (void *) (p == NULL);
6651 /* pthread test function */
6655 /* make sure pthread_create() isn't just a stub */
6656 #if HAVE_PTHREADS_D4
6657 status = pthread_create(&t, pthread_attr_default, task, NULL);
6659 status = pthread_create(&t, NULL, task, NULL);
6662 if( status ) exit( status );
6664 /* make sure pthread_detach() isn't just a stub */
6665 #if HAVE_PTHREADS_D4
6666 status = pthread_detach( &t );
6668 status = pthread_detach( t );
6671 #ifdef HAVE_LINUX_THREADS
6672 pthread_kill_other_threads_np();
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 ol_cv_pthread_create=yes
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 ol_cv_pthread_create=no
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* pthread test headers */
6694 #include <pthread.h>
6696 #define NULL (void*)0
6699 static void *task(p)
6702 return (void *) (p == NULL);
6706 int main(argc, argv)
6711 /* pthread test function */
6715 /* make sure pthread_create() isn't just a stub */
6716 #if HAVE_PTHREADS_D4
6717 status = pthread_create(&t, pthread_attr_default, task, NULL);
6719 status = pthread_create(&t, NULL, task, NULL);
6722 if( status ) exit( status );
6724 /* make sure pthread_detach() isn't just a stub */
6725 #if HAVE_PTHREADS_D4
6726 status = pthread_detach( &t );
6728 status = pthread_detach( t );
6731 #ifdef HAVE_LINUX_THREADS
6732 pthread_kill_other_threads_np();
6740 if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6742 ol_cv_pthread_create=yes
6744 echo "configure: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6747 ol_cv_pthread_create=no
6754 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6756 if test $ol_cv_pthread_create != no ; then
6757 ol_link_threads=posix
6761 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6762 if test "$ol_link_threads" = no ; then
6764 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6765 echo "configure:6766: checking for pthread link with -kthread" >&5
6766 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6772 LIBS="-kthread $LIBS"
6774 if test "$cross_compiling" = yes; then
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6778 /* pthread test headers */
6779 #include <pthread.h>
6781 #define NULL (void*)0
6784 static void *task(p)
6787 return (void *) (p == NULL);
6792 /* pthread test function */
6796 /* make sure pthread_create() isn't just a stub */
6797 #if HAVE_PTHREADS_D4
6798 status = pthread_create(&t, pthread_attr_default, task, NULL);
6800 status = pthread_create(&t, NULL, task, NULL);
6803 if( status ) exit( status );
6805 /* make sure pthread_detach() isn't just a stub */
6806 #if HAVE_PTHREADS_D4
6807 status = pthread_detach( &t );
6809 status = pthread_detach( t );
6812 #ifdef HAVE_LINUX_THREADS
6813 pthread_kill_other_threads_np();
6820 if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6822 ol_cv_pthread_kthread=yes
6824 echo "configure: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6827 ol_cv_pthread_kthread=no
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 /* pthread test headers */
6835 #include <pthread.h>
6837 #define NULL (void*)0
6840 static void *task(p)
6843 return (void *) (p == NULL);
6847 int main(argc, argv)
6852 /* pthread test function */
6856 /* make sure pthread_create() isn't just a stub */
6857 #if HAVE_PTHREADS_D4
6858 status = pthread_create(&t, pthread_attr_default, task, NULL);
6860 status = pthread_create(&t, NULL, task, NULL);
6863 if( status ) exit( status );
6865 /* make sure pthread_detach() isn't just a stub */
6866 #if HAVE_PTHREADS_D4
6867 status = pthread_detach( &t );
6869 status = pthread_detach( t );
6872 #ifdef HAVE_LINUX_THREADS
6873 pthread_kill_other_threads_np();
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6883 ol_cv_pthread_kthread=yes
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 ol_cv_pthread_kthread=no
6899 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6901 if test $ol_cv_pthread_kthread = yes ; then
6902 ol_link_pthreads="-kthread"
6903 ol_link_threads=posix
6907 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6908 if test "$ol_link_threads" = no ; then
6910 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6911 echo "configure:6912: checking for pthread link with -pthread" >&5
6912 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6918 LIBS="-pthread $LIBS"
6920 if test "$cross_compiling" = yes; then
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 /* pthread test headers */
6925 #include <pthread.h>
6927 #define NULL (void*)0
6930 static void *task(p)
6933 return (void *) (p == NULL);
6938 /* pthread test function */
6942 /* make sure pthread_create() isn't just a stub */
6943 #if HAVE_PTHREADS_D4
6944 status = pthread_create(&t, pthread_attr_default, task, NULL);
6946 status = pthread_create(&t, NULL, task, NULL);
6949 if( status ) exit( status );
6951 /* make sure pthread_detach() isn't just a stub */
6952 #if HAVE_PTHREADS_D4
6953 status = pthread_detach( &t );
6955 status = pthread_detach( t );
6958 #ifdef HAVE_LINUX_THREADS
6959 pthread_kill_other_threads_np();
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6968 ol_cv_pthread_pthread=yes
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 ol_cv_pthread_pthread=no
6977 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6980 /* pthread test headers */
6981 #include <pthread.h>
6983 #define NULL (void*)0
6986 static void *task(p)
6989 return (void *) (p == NULL);
6993 int main(argc, argv)
6998 /* pthread test function */
7002 /* make sure pthread_create() isn't just a stub */
7003 #if HAVE_PTHREADS_D4
7004 status = pthread_create(&t, pthread_attr_default, task, NULL);
7006 status = pthread_create(&t, NULL, task, NULL);
7009 if( status ) exit( status );
7011 /* make sure pthread_detach() isn't just a stub */
7012 #if HAVE_PTHREADS_D4
7013 status = pthread_detach( &t );
7015 status = pthread_detach( t );
7018 #ifdef HAVE_LINUX_THREADS
7019 pthread_kill_other_threads_np();
7027 if { (eval echo configure:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7029 ol_cv_pthread_pthread=yes
7031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7034 ol_cv_pthread_pthread=no
7045 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7047 if test $ol_cv_pthread_pthread = yes ; then
7048 ol_link_pthreads="-pthread"
7049 ol_link_threads=posix
7053 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7054 if test "$ol_link_threads" = no ; then
7056 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7057 echo "configure:7058: checking for pthread link with -pthreads" >&5
7058 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7064 LIBS="-pthreads $LIBS"
7066 if test "$cross_compiling" = yes; then
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* pthread test headers */
7071 #include <pthread.h>
7073 #define NULL (void*)0
7076 static void *task(p)
7079 return (void *) (p == NULL);
7084 /* pthread test function */
7088 /* make sure pthread_create() isn't just a stub */
7089 #if HAVE_PTHREADS_D4
7090 status = pthread_create(&t, pthread_attr_default, task, NULL);
7092 status = pthread_create(&t, NULL, task, NULL);
7095 if( status ) exit( status );
7097 /* make sure pthread_detach() isn't just a stub */
7098 #if HAVE_PTHREADS_D4
7099 status = pthread_detach( &t );
7101 status = pthread_detach( t );
7104 #ifdef HAVE_LINUX_THREADS
7105 pthread_kill_other_threads_np();
7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 ol_cv_pthread_pthreads=yes
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 ol_cv_pthread_pthreads=no
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 /* pthread test headers */
7127 #include <pthread.h>
7129 #define NULL (void*)0
7132 static void *task(p)
7135 return (void *) (p == NULL);
7139 int main(argc, argv)
7144 /* pthread test function */
7148 /* make sure pthread_create() isn't just a stub */
7149 #if HAVE_PTHREADS_D4
7150 status = pthread_create(&t, pthread_attr_default, task, NULL);
7152 status = pthread_create(&t, NULL, task, NULL);
7155 if( status ) exit( status );
7157 /* make sure pthread_detach() isn't just a stub */
7158 #if HAVE_PTHREADS_D4
7159 status = pthread_detach( &t );
7161 status = pthread_detach( t );
7164 #ifdef HAVE_LINUX_THREADS
7165 pthread_kill_other_threads_np();
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7175 ol_cv_pthread_pthreads=yes
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7180 ol_cv_pthread_pthreads=no
7191 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7193 if test $ol_cv_pthread_pthreads = yes ; then
7194 ol_link_pthreads="-pthreads"
7195 ol_link_threads=posix
7199 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7200 if test "$ol_link_threads" = no ; then
7202 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7203 echo "configure:7204: checking for pthread link with -mthreads" >&5
7204 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7210 LIBS="-mthreads $LIBS"
7212 if test "$cross_compiling" = yes; then
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* pthread test headers */
7217 #include <pthread.h>
7219 #define NULL (void*)0
7222 static void *task(p)
7225 return (void *) (p == NULL);
7230 /* pthread test function */
7234 /* make sure pthread_create() isn't just a stub */
7235 #if HAVE_PTHREADS_D4
7236 status = pthread_create(&t, pthread_attr_default, task, NULL);
7238 status = pthread_create(&t, NULL, task, NULL);
7241 if( status ) exit( status );
7243 /* make sure pthread_detach() isn't just a stub */
7244 #if HAVE_PTHREADS_D4
7245 status = pthread_detach( &t );
7247 status = pthread_detach( t );
7250 #ifdef HAVE_LINUX_THREADS
7251 pthread_kill_other_threads_np();
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 ol_cv_pthread_mthreads=yes
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 ol_cv_pthread_mthreads=no
7269 cat > conftest.$ac_ext <<EOF
7270 #line 7271 "configure"
7271 #include "confdefs.h"
7272 /* pthread test headers */
7273 #include <pthread.h>
7275 #define NULL (void*)0
7278 static void *task(p)
7281 return (void *) (p == NULL);
7285 int main(argc, argv)
7290 /* pthread test function */
7294 /* make sure pthread_create() isn't just a stub */
7295 #if HAVE_PTHREADS_D4
7296 status = pthread_create(&t, pthread_attr_default, task, NULL);
7298 status = pthread_create(&t, NULL, task, NULL);
7301 if( status ) exit( status );
7303 /* make sure pthread_detach() isn't just a stub */
7304 #if HAVE_PTHREADS_D4
7305 status = pthread_detach( &t );
7307 status = pthread_detach( t );
7310 #ifdef HAVE_LINUX_THREADS
7311 pthread_kill_other_threads_np();
7319 if { (eval echo configure:7320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7321 ol_cv_pthread_mthreads=yes
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 ol_cv_pthread_mthreads=no
7337 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7339 if test $ol_cv_pthread_mthreads = yes ; then
7340 ol_link_pthreads="-mthreads"
7341 ol_link_threads=posix
7345 # Pthread try link: -thread (ol_cv_pthread_thread)
7346 if test "$ol_link_threads" = no ; then
7348 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7349 echo "configure:7350: checking for pthread link with -thread" >&5
7350 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7356 LIBS="-thread $LIBS"
7358 if test "$cross_compiling" = yes; then
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 /* pthread test headers */
7363 #include <pthread.h>
7365 #define NULL (void*)0
7368 static void *task(p)
7371 return (void *) (p == NULL);
7376 /* pthread test function */
7380 /* make sure pthread_create() isn't just a stub */
7381 #if HAVE_PTHREADS_D4
7382 status = pthread_create(&t, pthread_attr_default, task, NULL);
7384 status = pthread_create(&t, NULL, task, NULL);
7387 if( status ) exit( status );
7389 /* make sure pthread_detach() isn't just a stub */
7390 #if HAVE_PTHREADS_D4
7391 status = pthread_detach( &t );
7393 status = pthread_detach( t );
7396 #ifdef HAVE_LINUX_THREADS
7397 pthread_kill_other_threads_np();
7404 if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7406 ol_cv_pthread_thread=yes
7408 echo "configure: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7411 ol_cv_pthread_thread=no
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 /* pthread test headers */
7419 #include <pthread.h>
7421 #define NULL (void*)0
7424 static void *task(p)
7427 return (void *) (p == NULL);
7431 int main(argc, argv)
7436 /* pthread test function */
7440 /* make sure pthread_create() isn't just a stub */
7441 #if HAVE_PTHREADS_D4
7442 status = pthread_create(&t, pthread_attr_default, task, NULL);
7444 status = pthread_create(&t, NULL, task, NULL);
7447 if( status ) exit( status );
7449 /* make sure pthread_detach() isn't just a stub */
7450 #if HAVE_PTHREADS_D4
7451 status = pthread_detach( &t );
7453 status = pthread_detach( t );
7456 #ifdef HAVE_LINUX_THREADS
7457 pthread_kill_other_threads_np();
7465 if { (eval echo configure:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7467 ol_cv_pthread_thread=yes
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 ol_cv_pthread_thread=no
7483 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7485 if test $ol_cv_pthread_thread = yes ; then
7486 ol_link_pthreads="-thread"
7487 ol_link_threads=posix
7492 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7493 if test "$ol_link_threads" = no ; then
7494 # try -lpthread -lmach -lexc -lc_r
7495 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7496 echo "configure:7497: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7497 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7503 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7505 if test "$cross_compiling" = yes; then
7506 cat > conftest.$ac_ext <<EOF
7507 #line 7508 "configure"
7508 #include "confdefs.h"
7509 /* pthread test headers */
7510 #include <pthread.h>
7512 #define NULL (void*)0
7515 static void *task(p)
7518 return (void *) (p == NULL);
7523 /* pthread test function */
7527 /* make sure pthread_create() isn't just a stub */
7528 #if HAVE_PTHREADS_D4
7529 status = pthread_create(&t, pthread_attr_default, task, NULL);
7531 status = pthread_create(&t, NULL, task, NULL);
7534 if( status ) exit( status );
7536 /* make sure pthread_detach() isn't just a stub */
7537 #if HAVE_PTHREADS_D4
7538 status = pthread_detach( &t );
7540 status = pthread_detach( t );
7543 #ifdef HAVE_LINUX_THREADS
7544 pthread_kill_other_threads_np();
7551 if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7553 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 /* pthread test headers */
7566 #include <pthread.h>
7568 #define NULL (void*)0
7571 static void *task(p)
7574 return (void *) (p == NULL);
7578 int main(argc, argv)
7583 /* pthread test function */
7587 /* make sure pthread_create() isn't just a stub */
7588 #if HAVE_PTHREADS_D4
7589 status = pthread_create(&t, pthread_attr_default, task, NULL);
7591 status = pthread_create(&t, NULL, task, NULL);
7594 if( status ) exit( status );
7596 /* make sure pthread_detach() isn't just a stub */
7597 #if HAVE_PTHREADS_D4
7598 status = pthread_detach( &t );
7600 status = pthread_detach( t );
7603 #ifdef HAVE_LINUX_THREADS
7604 pthread_kill_other_threads_np();
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7614 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7619 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7630 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7632 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7633 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7634 ol_link_threads=posix
7638 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7639 if test "$ol_link_threads" = no ; then
7640 # try -lpthread -lmach -lexc
7641 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7642 echo "configure:7643: checking for pthread link with -lpthread -lmach -lexc" >&5
7643 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7644 echo $ac_n "(cached) $ac_c" 1>&6
7649 LIBS="-lpthread -lmach -lexc $LIBS"
7651 if test "$cross_compiling" = yes; then
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* pthread test headers */
7656 #include <pthread.h>
7658 #define NULL (void*)0
7661 static void *task(p)
7664 return (void *) (p == NULL);
7669 /* pthread test function */
7673 /* make sure pthread_create() isn't just a stub */
7674 #if HAVE_PTHREADS_D4
7675 status = pthread_create(&t, pthread_attr_default, task, NULL);
7677 status = pthread_create(&t, NULL, task, NULL);
7680 if( status ) exit( status );
7682 /* make sure pthread_detach() isn't just a stub */
7683 #if HAVE_PTHREADS_D4
7684 status = pthread_detach( &t );
7686 status = pthread_detach( t );
7689 #ifdef HAVE_LINUX_THREADS
7690 pthread_kill_other_threads_np();
7697 if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7699 ol_cv_pthread_lpthread_lmach_lexc=yes
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7704 ol_cv_pthread_lpthread_lmach_lexc=no
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7711 /* pthread test headers */
7712 #include <pthread.h>
7714 #define NULL (void*)0
7717 static void *task(p)
7720 return (void *) (p == NULL);
7724 int main(argc, argv)
7729 /* pthread test function */
7733 /* make sure pthread_create() isn't just a stub */
7734 #if HAVE_PTHREADS_D4
7735 status = pthread_create(&t, pthread_attr_default, task, NULL);
7737 status = pthread_create(&t, NULL, task, NULL);
7740 if( status ) exit( status );
7742 /* make sure pthread_detach() isn't just a stub */
7743 #if HAVE_PTHREADS_D4
7744 status = pthread_detach( &t );
7746 status = pthread_detach( t );
7749 #ifdef HAVE_LINUX_THREADS
7750 pthread_kill_other_threads_np();
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7760 ol_cv_pthread_lpthread_lmach_lexc=yes
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 ol_cv_pthread_lpthread_lmach_lexc=no
7776 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7778 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7779 ol_link_pthreads="-lpthread -lmach -lexc"
7780 ol_link_threads=posix
7785 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7786 if test "$ol_link_threads" = no ; then
7787 # try -lpthread -Wl,-woff,85
7788 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7789 echo "configure:7790: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7790 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7796 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7798 if test "$cross_compiling" = yes; then
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802 /* pthread test headers */
7803 #include <pthread.h>
7805 #define NULL (void*)0
7808 static void *task(p)
7811 return (void *) (p == NULL);
7816 /* pthread test function */
7820 /* make sure pthread_create() isn't just a stub */
7821 #if HAVE_PTHREADS_D4
7822 status = pthread_create(&t, pthread_attr_default, task, NULL);
7824 status = pthread_create(&t, NULL, task, NULL);
7827 if( status ) exit( status );
7829 /* make sure pthread_detach() isn't just a stub */
7830 #if HAVE_PTHREADS_D4
7831 status = pthread_detach( &t );
7833 status = pthread_detach( t );
7836 #ifdef HAVE_LINUX_THREADS
7837 pthread_kill_other_threads_np();
7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7846 ol_cv_pthread_lib_lpthread_woff=yes
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7851 ol_cv_pthread_lib_lpthread_woff=no
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858 /* pthread test headers */
7859 #include <pthread.h>
7861 #define NULL (void*)0
7864 static void *task(p)
7867 return (void *) (p == NULL);
7871 int main(argc, argv)
7876 /* pthread test function */
7880 /* make sure pthread_create() isn't just a stub */
7881 #if HAVE_PTHREADS_D4
7882 status = pthread_create(&t, pthread_attr_default, task, NULL);
7884 status = pthread_create(&t, NULL, task, NULL);
7887 if( status ) exit( status );
7889 /* make sure pthread_detach() isn't just a stub */
7890 #if HAVE_PTHREADS_D4
7891 status = pthread_detach( &t );
7893 status = pthread_detach( t );
7896 #ifdef HAVE_LINUX_THREADS
7897 pthread_kill_other_threads_np();
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7907 ol_cv_pthread_lib_lpthread_woff=yes
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 ol_cv_pthread_lib_lpthread_woff=no
7923 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7925 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7926 ol_link_pthreads="-lpthread -Wl,-woff,85"
7927 ol_link_threads=posix
7932 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7933 if test "$ol_link_threads" = no ; then
7935 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7936 echo "configure:7937: checking for pthread link with -lpthread" >&5
7937 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7943 LIBS="-lpthread $LIBS"
7945 if test "$cross_compiling" = yes; then
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7949 /* pthread test headers */
7950 #include <pthread.h>
7952 #define NULL (void*)0
7955 static void *task(p)
7958 return (void *) (p == NULL);
7963 /* pthread test function */
7967 /* make sure pthread_create() isn't just a stub */
7968 #if HAVE_PTHREADS_D4
7969 status = pthread_create(&t, pthread_attr_default, task, NULL);
7971 status = pthread_create(&t, NULL, task, NULL);
7974 if( status ) exit( status );
7976 /* make sure pthread_detach() isn't just a stub */
7977 #if HAVE_PTHREADS_D4
7978 status = pthread_detach( &t );
7980 status = pthread_detach( t );
7983 #ifdef HAVE_LINUX_THREADS
7984 pthread_kill_other_threads_np();
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7993 ol_cv_pthread_lpthread=yes
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7998 ol_cv_pthread_lpthread=no
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 /* pthread test headers */
8006 #include <pthread.h>
8008 #define NULL (void*)0
8011 static void *task(p)
8014 return (void *) (p == NULL);
8018 int main(argc, argv)
8023 /* pthread test function */
8027 /* make sure pthread_create() isn't just a stub */
8028 #if HAVE_PTHREADS_D4
8029 status = pthread_create(&t, pthread_attr_default, task, NULL);
8031 status = pthread_create(&t, NULL, task, NULL);
8034 if( status ) exit( status );
8036 /* make sure pthread_detach() isn't just a stub */
8037 #if HAVE_PTHREADS_D4
8038 status = pthread_detach( &t );
8040 status = pthread_detach( t );
8043 #ifdef HAVE_LINUX_THREADS
8044 pthread_kill_other_threads_np();
8052 if { (eval echo configure:8053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8054 ol_cv_pthread_lpthread=yes
8056 echo "configure: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8059 ol_cv_pthread_lpthread=no
8070 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8072 if test $ol_cv_pthread_lpthread = yes ; then
8073 ol_link_pthreads="-lpthread"
8074 ol_link_threads=posix
8078 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8079 if test "$ol_link_threads" = no ; then
8081 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8082 echo "configure:8083: checking for pthread link with -lc_r" >&5
8083 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8091 if test "$cross_compiling" = yes; then
8092 cat > conftest.$ac_ext <<EOF
8093 #line 8094 "configure"
8094 #include "confdefs.h"
8095 /* pthread test headers */
8096 #include <pthread.h>
8098 #define NULL (void*)0
8101 static void *task(p)
8104 return (void *) (p == NULL);
8109 /* pthread test function */
8113 /* make sure pthread_create() isn't just a stub */
8114 #if HAVE_PTHREADS_D4
8115 status = pthread_create(&t, pthread_attr_default, task, NULL);
8117 status = pthread_create(&t, NULL, task, NULL);
8120 if( status ) exit( status );
8122 /* make sure pthread_detach() isn't just a stub */
8123 #if HAVE_PTHREADS_D4
8124 status = pthread_detach( &t );
8126 status = pthread_detach( t );
8129 #ifdef HAVE_LINUX_THREADS
8130 pthread_kill_other_threads_np();
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 ol_cv_pthread_lc_r=yes
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 ol_cv_pthread_lc_r=no
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* pthread test headers */
8152 #include <pthread.h>
8154 #define NULL (void*)0
8157 static void *task(p)
8160 return (void *) (p == NULL);
8164 int main(argc, argv)
8169 /* pthread test function */
8173 /* make sure pthread_create() isn't just a stub */
8174 #if HAVE_PTHREADS_D4
8175 status = pthread_create(&t, pthread_attr_default, task, NULL);
8177 status = pthread_create(&t, NULL, task, NULL);
8180 if( status ) exit( status );
8182 /* make sure pthread_detach() isn't just a stub */
8183 #if HAVE_PTHREADS_D4
8184 status = pthread_detach( &t );
8186 status = pthread_detach( t );
8189 #ifdef HAVE_LINUX_THREADS
8190 pthread_kill_other_threads_np();
8198 if { (eval echo configure:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8200 ol_cv_pthread_lc_r=yes
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8205 ol_cv_pthread_lc_r=no
8216 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8218 if test $ol_cv_pthread_lc_r = yes ; then
8219 ol_link_pthreads="-lc_r"
8220 ol_link_threads=posix
8225 # Pthread try link: -threads (ol_cv_pthread_threads)
8226 if test "$ol_link_threads" = no ; then
8228 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8229 echo "configure:8230: checking for pthread link with -threads" >&5
8230 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8236 LIBS="-threads $LIBS"
8238 if test "$cross_compiling" = yes; then
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8242 /* pthread test headers */
8243 #include <pthread.h>
8245 #define NULL (void*)0
8248 static void *task(p)
8251 return (void *) (p == NULL);
8256 /* pthread test function */
8260 /* make sure pthread_create() isn't just a stub */
8261 #if HAVE_PTHREADS_D4
8262 status = pthread_create(&t, pthread_attr_default, task, NULL);
8264 status = pthread_create(&t, NULL, task, NULL);
8267 if( status ) exit( status );
8269 /* make sure pthread_detach() isn't just a stub */
8270 #if HAVE_PTHREADS_D4
8271 status = pthread_detach( &t );
8273 status = pthread_detach( t );
8276 #ifdef HAVE_LINUX_THREADS
8277 pthread_kill_other_threads_np();
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8286 ol_cv_pthread_threads=yes
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8291 ol_cv_pthread_threads=no
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 /* pthread test headers */
8299 #include <pthread.h>
8301 #define NULL (void*)0
8304 static void *task(p)
8307 return (void *) (p == NULL);
8311 int main(argc, argv)
8316 /* pthread test function */
8320 /* make sure pthread_create() isn't just a stub */
8321 #if HAVE_PTHREADS_D4
8322 status = pthread_create(&t, pthread_attr_default, task, NULL);
8324 status = pthread_create(&t, NULL, task, NULL);
8327 if( status ) exit( status );
8329 /* make sure pthread_detach() isn't just a stub */
8330 #if HAVE_PTHREADS_D4
8331 status = pthread_detach( &t );
8333 status = pthread_detach( t );
8336 #ifdef HAVE_LINUX_THREADS
8337 pthread_kill_other_threads_np();
8345 if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8347 ol_cv_pthread_threads=yes
8349 echo "configure: failed program was:" >&5
8350 cat conftest.$ac_ext >&5
8352 ol_cv_pthread_threads=no
8363 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8365 if test $ol_cv_pthread_threads = yes ; then
8366 ol_link_pthreads="-threads"
8367 ol_link_threads=posix
8372 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8373 if test "$ol_link_threads" = no ; then
8374 # try -lpthreads -lmach -lexc -lc_r
8375 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8376 echo "configure:8377: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8377 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8383 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8385 if test "$cross_compiling" = yes; then
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* pthread test headers */
8390 #include <pthread.h>
8392 #define NULL (void*)0
8395 static void *task(p)
8398 return (void *) (p == NULL);
8403 /* pthread test function */
8407 /* make sure pthread_create() isn't just a stub */
8408 #if HAVE_PTHREADS_D4
8409 status = pthread_create(&t, pthread_attr_default, task, NULL);
8411 status = pthread_create(&t, NULL, task, NULL);
8414 if( status ) exit( status );
8416 /* make sure pthread_detach() isn't just a stub */
8417 #if HAVE_PTHREADS_D4
8418 status = pthread_detach( &t );
8420 status = pthread_detach( t );
8423 #ifdef HAVE_LINUX_THREADS
8424 pthread_kill_other_threads_np();
8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8438 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 /* pthread test headers */
8446 #include <pthread.h>
8448 #define NULL (void*)0
8451 static void *task(p)
8454 return (void *) (p == NULL);
8458 int main(argc, argv)
8463 /* pthread test function */
8467 /* make sure pthread_create() isn't just a stub */
8468 #if HAVE_PTHREADS_D4
8469 status = pthread_create(&t, pthread_attr_default, task, NULL);
8471 status = pthread_create(&t, NULL, task, NULL);
8474 if( status ) exit( status );
8476 /* make sure pthread_detach() isn't just a stub */
8477 #if HAVE_PTHREADS_D4
8478 status = pthread_detach( &t );
8480 status = pthread_detach( t );
8483 #ifdef HAVE_LINUX_THREADS
8484 pthread_kill_other_threads_np();
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8494 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8510 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8512 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8513 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8514 ol_link_threads=posix
8518 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8519 if test "$ol_link_threads" = no ; then
8520 # try -lpthreads -lmach -lexc
8521 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8522 echo "configure:8523: checking for pthread link with -lpthreads -lmach -lexc" >&5
8523 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8524 echo $ac_n "(cached) $ac_c" 1>&6
8529 LIBS="-lpthreads -lmach -lexc $LIBS"
8531 if test "$cross_compiling" = yes; then
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 /* pthread test headers */
8536 #include <pthread.h>
8538 #define NULL (void*)0
8541 static void *task(p)
8544 return (void *) (p == NULL);
8549 /* pthread test function */
8553 /* make sure pthread_create() isn't just a stub */
8554 #if HAVE_PTHREADS_D4
8555 status = pthread_create(&t, pthread_attr_default, task, NULL);
8557 status = pthread_create(&t, NULL, task, NULL);
8560 if( status ) exit( status );
8562 /* make sure pthread_detach() isn't just a stub */
8563 #if HAVE_PTHREADS_D4
8564 status = pthread_detach( &t );
8566 status = pthread_detach( t );
8569 #ifdef HAVE_LINUX_THREADS
8570 pthread_kill_other_threads_np();
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 ol_cv_pthread_lpthreads_lmach_lexc=yes
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 ol_cv_pthread_lpthreads_lmach_lexc=no
8588 cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure"
8590 #include "confdefs.h"
8591 /* pthread test headers */
8592 #include <pthread.h>
8594 #define NULL (void*)0
8597 static void *task(p)
8600 return (void *) (p == NULL);
8604 int main(argc, argv)
8609 /* pthread test function */
8613 /* make sure pthread_create() isn't just a stub */
8614 #if HAVE_PTHREADS_D4
8615 status = pthread_create(&t, pthread_attr_default, task, NULL);
8617 status = pthread_create(&t, NULL, task, NULL);
8620 if( status ) exit( status );
8622 /* make sure pthread_detach() isn't just a stub */
8623 #if HAVE_PTHREADS_D4
8624 status = pthread_detach( &t );
8626 status = pthread_detach( t );
8629 #ifdef HAVE_LINUX_THREADS
8630 pthread_kill_other_threads_np();
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8640 ol_cv_pthread_lpthreads_lmach_lexc=yes
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8645 ol_cv_pthread_lpthreads_lmach_lexc=no
8656 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8658 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8659 ol_link_pthreads="-lpthreads -lmach -lexc"
8660 ol_link_threads=posix
8664 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8665 if test "$ol_link_threads" = no ; then
8666 # try -lpthreads -lexc
8667 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8668 echo "configure:8669: checking for pthread link with -lpthreads -lexc" >&5
8669 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8675 LIBS="-lpthreads -lexc $LIBS"
8677 if test "$cross_compiling" = yes; then
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8680 "configure"
8680 #include "confdefs.h"
8681 /* pthread test headers */
8682 #include <pthread.h>
8684 #define NULL (void*)0
8687 static void *task(p)
8690 return (void *) (p == NULL);
8695 /* pthread test function */
8699 /* make sure pthread_create() isn't just a stub */
8700 #if HAVE_PTHREADS_D4
8701 status = pthread_create(&t, pthread_attr_default, task, NULL);
8703 status = pthread_create(&t, NULL, task, NULL);
8706 if( status ) exit( status );
8708 /* make sure pthread_detach() isn't just a stub */
8709 #if HAVE_PTHREADS_D4
8710 status = pthread_detach( &t );
8712 status = pthread_detach( t );
8715 #ifdef HAVE_LINUX_THREADS
8716 pthread_kill_other_threads_np();
8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8725 ol_cv_pthread_lpthreads_lexc=yes
8727 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8730 ol_cv_pthread_lpthreads_lexc=no
8734 cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8737 /* pthread test headers */
8738 #include <pthread.h>
8740 #define NULL (void*)0
8743 static void *task(p)
8746 return (void *) (p == NULL);
8750 int main(argc, argv)
8755 /* pthread test function */
8759 /* make sure pthread_create() isn't just a stub */
8760 #if HAVE_PTHREADS_D4
8761 status = pthread_create(&t, pthread_attr_default, task, NULL);
8763 status = pthread_create(&t, NULL, task, NULL);
8766 if( status ) exit( status );
8768 /* make sure pthread_detach() isn't just a stub */
8769 #if HAVE_PTHREADS_D4
8770 status = pthread_detach( &t );
8772 status = pthread_detach( t );
8775 #ifdef HAVE_LINUX_THREADS
8776 pthread_kill_other_threads_np();
8784 if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8786 ol_cv_pthread_lpthreads_lexc=yes
8788 echo "configure: failed program was:" >&5
8789 cat conftest.$ac_ext >&5
8791 ol_cv_pthread_lpthreads_lexc=no
8802 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8804 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8805 ol_link_pthreads="-lpthreads -lexc"
8806 ol_link_threads=posix
8811 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8812 if test "$ol_link_threads" = no ; then
8814 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8815 echo "configure:8816: checking for pthread link with -lpthreads" >&5
8816 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8822 LIBS="-lpthreads $LIBS"
8824 if test "$cross_compiling" = yes; then
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8828 /* pthread test headers */
8829 #include <pthread.h>
8831 #define NULL (void*)0
8834 static void *task(p)
8837 return (void *) (p == NULL);
8842 /* pthread test function */
8846 /* make sure pthread_create() isn't just a stub */
8847 #if HAVE_PTHREADS_D4
8848 status = pthread_create(&t, pthread_attr_default, task, NULL);
8850 status = pthread_create(&t, NULL, task, NULL);
8853 if( status ) exit( status );
8855 /* make sure pthread_detach() isn't just a stub */
8856 #if HAVE_PTHREADS_D4
8857 status = pthread_detach( &t );
8859 status = pthread_detach( t );
8862 #ifdef HAVE_LINUX_THREADS
8863 pthread_kill_other_threads_np();
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8872 ol_cv_pthread_lib_lpthreads=yes
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8877 ol_cv_pthread_lib_lpthreads=no
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884 /* pthread test headers */
8885 #include <pthread.h>
8887 #define NULL (void*)0
8890 static void *task(p)
8893 return (void *) (p == NULL);
8897 int main(argc, argv)
8902 /* pthread test function */
8906 /* make sure pthread_create() isn't just a stub */
8907 #if HAVE_PTHREADS_D4
8908 status = pthread_create(&t, pthread_attr_default, task, NULL);
8910 status = pthread_create(&t, NULL, task, NULL);
8913 if( status ) exit( status );
8915 /* make sure pthread_detach() isn't just a stub */
8916 #if HAVE_PTHREADS_D4
8917 status = pthread_detach( &t );
8919 status = pthread_detach( t );
8922 #ifdef HAVE_LINUX_THREADS
8923 pthread_kill_other_threads_np();
8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8933 ol_cv_pthread_lib_lpthreads=yes
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 ol_cv_pthread_lib_lpthreads=no
8949 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8951 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8952 ol_link_pthreads="-lpthreads"
8953 ol_link_threads=posix
8958 if test $ol_link_threads != no ; then
8959 cat >> confdefs.h <<\EOF
8960 #define HAVE_PTHREADS 1
8964 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8966 save_CPPFLAGS="$CPPFLAGS"
8968 LIBS="$LTHREAD_LIBS $LIBS"
8970 for ac_func in sched_yield pthread_yield
8972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8973 echo "configure:8974: checking for $ac_func" >&5
8974 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8975 echo $ac_n "(cached) $ac_c" 1>&6
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 /* System header to define __stub macros and hopefully few prototypes,
8981 which can conflict with char $ac_func(); below. */
8983 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8991 /* The GNU C library defines this for functions which it implements
8992 to always fail with ENOSYS. Some functions are actually named
8993 something starting with __ and the normal name is an alias. */
8994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9004 eval "ac_cv_func_$ac_func=yes"
9006 echo "configure: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9009 eval "ac_cv_func_$ac_func=no"
9014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9017 cat >> confdefs.h <<EOF
9018 #define $ac_tr_func 1
9022 echo "$ac_t""no" 1>&6
9027 if test $ac_cv_func_sched_yield = no -a \
9028 $ac_cv_func_pthread_yield = no ; then
9029 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9030 echo "configure:9031: checking for sched_yield in -lrt" >&5
9031 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9032 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
9035 ac_save_LIBS="$LIBS"
9037 cat > conftest.$ac_ext <<EOF
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9040 /* Override any gcc2 internal prototype to avoid an error. */
9041 /* We use char because int might match the return type of a gcc2
9042 builtin and then its argument prototype would still apply. */
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9051 eval "ac_cv_lib_$ac_lib_var=yes"
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 eval "ac_cv_lib_$ac_lib_var=no"
9059 LIBS="$ac_save_LIBS"
9062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9063 echo "$ac_t""yes" 1>&6
9064 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9065 cat >> confdefs.h <<\EOF
9066 #define HAVE_SCHED_YIELD 1
9069 ac_cv_func_sched_yield=yes
9071 echo "$ac_t""no" 1>&6
9072 ac_cv_func_sched_yield=no
9076 if test $ac_cv_func_sched_yield = no -a \
9077 $ac_cv_func_pthread_yield = no ; then
9078 for ac_func in thr_yield
9080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9081 echo "configure:9082: checking for $ac_func" >&5
9082 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9085 cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088 /* System header to define __stub macros and hopefully few prototypes,
9089 which can conflict with char $ac_func(); below. */
9091 /* Override any gcc2 internal prototype to avoid an error. */
9092 /* We use char because int might match the return type of a gcc2
9093 builtin and then its argument prototype would still apply. */
9099 /* The GNU C library defines this for functions which it implements
9100 to always fail with ENOSYS. Some functions are actually named
9101 something starting with __ and the normal name is an alias. */
9102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9110 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9112 eval "ac_cv_func_$ac_func=yes"
9114 echo "configure: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9117 eval "ac_cv_func_$ac_func=no"
9122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9123 echo "$ac_t""yes" 1>&6
9124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9125 cat >> confdefs.h <<EOF
9126 #define $ac_tr_func 1
9130 echo "$ac_t""no" 1>&6
9135 if test $ac_cv_func_sched_yield = no -a \
9136 $ac_cv_func_pthread_yield = no -a \
9137 "$ac_cv_func_thr_yield" = no ; then
9138 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9141 for ac_func in pthread_kill
9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_func" >&5
9145 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9148 cat > conftest.$ac_ext <<EOF
9149 #line 9150 "configure"
9150 #include "confdefs.h"
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char $ac_func(); below. */
9154 /* Override any gcc2 internal prototype to avoid an error. */
9155 /* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9162 /* The GNU C library defines this for functions which it implements
9163 to always fail with ENOSYS. Some functions are actually named
9164 something starting with __ and the normal name is an alias. */
9165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9173 if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9175 eval "ac_cv_func_$ac_func=yes"
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9180 eval "ac_cv_func_$ac_func=no"
9185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9186 echo "$ac_t""yes" 1>&6
9187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9188 cat >> confdefs.h <<EOF
9189 #define $ac_tr_func 1
9193 echo "$ac_t""no" 1>&6
9198 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9199 echo "configure:9200: checking for pthread_detach with <pthread.h>" >&5
9200 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9204 cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure"
9206 #include "confdefs.h"
9208 #include <pthread.h>
9210 #define NULL (void*)0
9214 pthread_detach(NULL);
9217 if { (eval echo configure:9218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9219 ol_cv_func_pthread_detach=yes
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9224 ol_cv_func_pthread_detach=no
9230 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9232 if test $ol_cv_func_pthread_detach = no ; then
9233 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9236 cat >> confdefs.h <<\EOF
9237 #define HAVE_PTHREAD_DETACH 1
9242 pthread_setconcurrency \
9243 pthread_getconcurrency \
9244 thr_setconcurrency \
9245 thr_getconcurrency \
9248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9249 echo "configure:9250: checking for $ac_func" >&5
9250 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 /* System header to define __stub macros and hopefully few prototypes,
9257 which can conflict with char $ac_func(); below. */
9259 /* Override any gcc2 internal prototype to avoid an error. */
9260 /* We use char because int might match the return type of a gcc2
9261 builtin and then its argument prototype would still apply. */
9267 /* The GNU C library defines this for functions which it implements
9268 to always fail with ENOSYS. Some functions are actually named
9269 something starting with __ and the normal name is an alias. */
9270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280 eval "ac_cv_func_$ac_func=yes"
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 eval "ac_cv_func_$ac_func=no"
9290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9291 echo "$ac_t""yes" 1>&6
9292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9293 cat >> confdefs.h <<EOF
9294 #define $ac_tr_func 1
9298 echo "$ac_t""no" 1>&6
9304 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9305 echo "configure:9306: checking for pthread_kill_other_threads_np" >&5
9306 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9307 echo $ac_n "(cached) $ac_c" 1>&6
9309 cat > conftest.$ac_ext <<EOF
9310 #line 9311 "configure"
9311 #include "confdefs.h"
9312 /* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char pthread_kill_other_threads_np(); below. */
9315 /* Override any gcc2 internal prototype to avoid an error. */
9316 /* We use char because int might match the return type of a gcc2
9317 builtin and then its argument prototype would still apply. */
9318 char pthread_kill_other_threads_np();
9323 /* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9329 f = pthread_kill_other_threads_np;
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9346 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9350 echo "$ac_t""no" 1>&6
9353 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9354 echo "configure:9355: checking for LinuxThreads implementation" >&5
9355 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9358 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9361 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9366 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9367 echo "configure:9368: checking for LinuxThreads consistency" >&5
9368 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9372 if test $ol_cv_header_linux_threads = yes -a \
9373 $ol_cv_sys_linux_threads = yes; then
9374 ol_cv_linux_threads=yes
9375 elif test $ol_cv_header_linux_threads = no -a \
9376 $ol_cv_sys_linux_threads = no; then
9377 ol_cv_linux_threads=no
9379 ol_cv_linux_threads=error
9384 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9387 if test $ol_cv_linux_threads = error; then
9388 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9391 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9392 echo "configure:9393: checking if pthread_create() works" >&5
9393 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
9397 if test "$cross_compiling" = yes; then
9398 ol_cv_pthread_create_works=yes
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* pthread test headers */
9404 #include <pthread.h>
9406 #define NULL (void*)0
9409 static void *task(p)
9412 return (void *) (p == NULL);
9416 int main(argc, argv)
9421 /* pthread test function */
9425 /* make sure pthread_create() isn't just a stub */
9426 #if HAVE_PTHREADS_D4
9427 status = pthread_create(&t, pthread_attr_default, task, NULL);
9429 status = pthread_create(&t, NULL, task, NULL);
9432 if( status ) exit( status );
9434 /* make sure pthread_detach() isn't just a stub */
9435 #if HAVE_PTHREADS_D4
9436 status = pthread_detach( &t );
9438 status = pthread_detach( t );
9441 #ifdef HAVE_LINUX_THREADS
9442 pthread_kill_other_threads_np();
9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9452 ol_cv_pthread_create_works=yes
9454 echo "configure: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9457 ol_cv_pthread_create_works=no
9464 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9466 if test $ol_cv_pthread_create_works = no ; then
9467 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9470 if test $ol_with_yielding_select = auto ; then
9471 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9472 echo "configure:9473: checking if select yields when using pthreads" >&5
9473 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9477 if test "$cross_compiling" = yes; then
9478 ol_cv_pthread_select_yields=cross
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9484 #include <sys/types.h>
9485 #include <sys/time.h>
9487 #include <pthread.h>
9489 #define NULL (void*) 0
9492 static int fildes[2];
9494 static void *task(p)
9506 FD_SET(fildes[0], &rfds);
9508 /* we're not interested in any fds */
9509 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9516 exit(0); /* if we exit here, the select blocked the whole process */
9519 int main(argc, argv)
9525 /* create a pipe to select */
9526 if(pipe(&fildes[0])) {
9531 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9532 (void) pthread_setconcurrency(2);
9534 #ifdef HAVE_THR_SETCONCURRENCY
9535 /* Set Solaris LWP concurrency to 2 */
9536 thr_setconcurrency(2);
9540 #if HAVE_PTHREADS_D4
9541 pthread_create(&t, pthread_attr_default, task, NULL);
9543 pthread_create(&t, NULL, task, NULL);
9546 #if HAVE_SCHED_YIELD
9547 sched_yield(); /* make sure task runs first */
9549 #ifdef HAVE_PTHREAD_YIELD
9550 pthread_yield(); /* make sure task runs first */
9557 if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9559 ol_cv_pthread_select_yields=no
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9564 ol_cv_pthread_select_yields=yes
9571 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9573 if test $ol_cv_pthread_select_yields = cross ; then
9574 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9577 if test $ol_cv_pthread_select_yields = yes ; then
9578 ol_with_yielding_select=yes
9582 CPPFLAGS="$save_CPPFLAGS"
9585 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9589 if test $ol_with_threads = posix ; then
9590 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9594 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9595 -o $ol_with_threads = mach ; then
9597 for ac_hdr in mach/cthreads.h
9599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9601 echo "configure:9602: checking for $ac_hdr" >&5
9602 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9605 cat > conftest.$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9611 { (eval echo configure:9612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9613 if test -z "$ac_err"; then
9615 eval "ac_cv_header_$ac_safe=yes"
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 eval "ac_cv_header_$ac_safe=no"
9625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9628 cat >> confdefs.h <<EOF
9629 #define $ac_tr_hdr 1
9633 echo "$ac_t""no" 1>&6
9637 if test $ac_cv_header_mach_cthreads_h = yes ; then
9638 ol_with_threads=found
9640 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9641 echo "configure:9642: checking for cthread_fork" >&5
9642 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9648 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char cthread_fork(); below. */
9651 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9654 char cthread_fork();
9659 /* The GNU C library defines this for functions which it implements
9660 to always fail with ENOSYS. Some functions are actually named
9661 something starting with __ and the normal name is an alias. */
9662 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 eval "ac_cv_func_cthread_fork=yes"
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9677 eval "ac_cv_func_cthread_fork=no"
9682 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9683 echo "$ac_t""yes" 1>&6
9686 echo "$ac_t""no" 1>&6
9690 if test $ol_link_threads = no ; then
9691 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9692 echo "configure:9693: checking for cthread_fork with -all_load" >&5
9693 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9694 echo $ac_n "(cached) $ac_c" 1>&6
9698 LIBS="-all_load $LIBS"
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure"
9701 #include "confdefs.h"
9702 #include <mach/cthreads.h>
9705 cthread_fork((void *)0, (void *)0);
9709 if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9711 ol_cv_cthread_all_load=yes
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 ol_cv_cthread_all_load=no
9723 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9725 if test $ol_cv_cthread_all_load = yes ; then
9726 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9727 ol_link_threads=mach
9731 if test $ol_link_threads != no ; then
9732 : check for cthread specific functionality here
9733 cat >> confdefs.h <<\EOF
9734 #define HAVE_MACH_CTHREADS 1
9738 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9742 if test $ol_with_threads = mach ; then
9743 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9747 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9748 -o $ol_with_threads = pth ; then
9752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9754 echo "configure:9755: checking for $ac_hdr" >&5
9755 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9764 { (eval echo configure:9765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9766 if test -z "$ac_err"; then
9768 eval "ac_cv_header_$ac_safe=yes"
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9774 eval "ac_cv_header_$ac_safe=no"
9778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9779 echo "$ac_t""yes" 1>&6
9780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9781 cat >> confdefs.h <<EOF
9782 #define $ac_tr_hdr 1
9786 echo "$ac_t""no" 1>&6
9791 if test $ac_cv_header_pth_h = yes ; then
9792 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
9793 echo "configure:9794: checking for pth_version in -lpth" >&5
9794 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
9795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9798 ac_save_LIBS="$LIBS"
9800 cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9803 /* Override any gcc2 internal prototype to avoid an error. */
9804 /* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9812 if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9814 eval "ac_cv_lib_$ac_lib_var=yes"
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9819 eval "ac_cv_lib_$ac_lib_var=no"
9822 LIBS="$ac_save_LIBS"
9825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9826 echo "$ac_t""yes" 1>&6
9829 echo "$ac_t""no" 1>&6
9834 if test $have_pth = yes ; then
9835 cat >> confdefs.h <<\EOF
9836 #define HAVE_GNU_PTH 1
9839 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
9842 if test $ol_with_yielding_select = auto ; then
9843 ol_with_yielding_select=yes
9849 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9850 -o $ol_with_threads = lwp ; then
9852 for ac_hdr in thread.h synch.h
9854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9856 echo "configure:9857: checking for $ac_hdr" >&5
9857 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9858 echo $ac_n "(cached) $ac_c" 1>&6
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9866 { (eval echo configure:9867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9868 if test -z "$ac_err"; then
9870 eval "ac_cv_header_$ac_safe=yes"
9873 echo "configure: failed program was:" >&5
9874 cat conftest.$ac_ext >&5
9876 eval "ac_cv_header_$ac_safe=no"
9880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9881 echo "$ac_t""yes" 1>&6
9882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9883 cat >> confdefs.h <<EOF
9884 #define $ac_tr_hdr 1
9888 echo "$ac_t""no" 1>&6
9892 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9893 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9894 echo "configure:9895: checking for thr_create in -lthread" >&5
9895 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9897 echo $ac_n "(cached) $ac_c" 1>&6
9899 ac_save_LIBS="$LIBS"
9900 LIBS="-lthread $LIBS"
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9904 /* Override any gcc2 internal prototype to avoid an error. */
9905 /* We use char because int might match the return type of a gcc2
9906 builtin and then its argument prototype would still apply. */
9913 if { (eval echo configure:9914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9915 eval "ac_cv_lib_$ac_lib_var=yes"
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9920 eval "ac_cv_lib_$ac_lib_var=no"
9923 LIBS="$ac_save_LIBS"
9926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9930 echo "$ac_t""no" 1>&6
9935 if test $have_thr = yes ; then
9936 cat >> confdefs.h <<\EOF
9940 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9943 if test $ol_with_yielding_select = auto ; then
9944 ol_with_yielding_select=yes
9948 thr_setconcurrency \
9949 thr_getconcurrency \
9952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9953 echo "configure:9954: checking for $ac_func" >&5
9954 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char $ac_func(); below. */
9963 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9971 /* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 eval "ac_cv_func_$ac_func=yes"
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 eval "ac_cv_func_$ac_func=no"
9994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9995 echo "$ac_t""yes" 1>&6
9996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9997 cat >> confdefs.h <<EOF
9998 #define $ac_tr_func 1
10002 echo "$ac_t""no" 1>&6
10009 for ac_hdr in lwp/lwp.h
10011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10013 echo "configure:10014: checking for $ac_hdr" >&5
10014 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10023 { (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10025 if test -z "$ac_err"; then
10027 eval "ac_cv_header_$ac_safe=yes"
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10033 eval "ac_cv_header_$ac_safe=no"
10037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6
10039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10040 cat >> confdefs.h <<EOF
10041 #define $ac_tr_hdr 1
10045 echo "$ac_t""no" 1>&6
10049 if test $ac_cv_header_lwp_lwp_h = yes ; then
10050 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10051 echo "configure:10052: checking for lwp_create in -llwp" >&5
10052 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10056 ac_save_LIBS="$LIBS"
10058 cat > conftest.$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10070 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10072 eval "ac_cv_lib_$ac_lib_var=yes"
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10077 eval "ac_cv_lib_$ac_lib_var=no"
10080 LIBS="$ac_save_LIBS"
10083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10084 echo "$ac_t""yes" 1>&6
10087 echo "$ac_t""no" 1>&6
10092 if test $have_lwp = yes ; then
10093 cat >> confdefs.h <<\EOF
10097 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10098 ol_link_threads=lwp
10100 if test $ol_with_yielding_select = auto ; then
10101 ol_with_yielding_select=no
10107 if test $ol_with_yielding_select = yes ; then
10108 cat >> confdefs.h <<\EOF
10109 #define HAVE_YIELDING_SELECT 1
10114 if test $ol_with_threads = manual ; then
10115 ol_link_threads=yes
10117 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10119 for ac_hdr in pthread.h sched.h
10121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10123 echo "configure:10124: checking for $ac_hdr" >&5
10124 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10133 { (eval echo configure:10134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10135 if test -z "$ac_err"; then
10137 eval "ac_cv_header_$ac_safe=yes"
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 eval "ac_cv_header_$ac_safe=no"
10147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
10149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10150 cat >> confdefs.h <<EOF
10151 #define $ac_tr_hdr 1
10155 echo "$ac_t""no" 1>&6
10159 for ac_func in sched_yield pthread_yield
10161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10162 echo "configure:10163: checking for $ac_func" >&5
10163 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10164 echo $ac_n "(cached) $ac_c" 1>&6
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 /* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char $ac_func(); below. */
10171 #include <assert.h>
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10193 eval "ac_cv_func_$ac_func=yes"
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10198 eval "ac_cv_func_$ac_func=no"
10203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10204 echo "$ac_t""yes" 1>&6
10205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10206 cat >> confdefs.h <<EOF
10207 #define $ac_tr_func 1
10211 echo "$ac_t""no" 1>&6
10216 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10217 echo "configure:10218: checking for LinuxThreads pthread.h" >&5
10218 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10221 cat > conftest.$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10224 #include <pthread.h>
10226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10227 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10229 ol_cv_header_linux_threads=yes
10232 ol_cv_header_linux_threads=no
10239 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10240 if test $ol_cv_header_linux_threads = yes; then
10241 cat >> confdefs.h <<\EOF
10242 #define HAVE_LINUX_THREADS 1
10248 for ac_hdr in mach/cthreads.h
10250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10252 echo "configure:10253: checking for $ac_hdr" >&5
10253 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10256 cat > conftest.$ac_ext <<EOF
10257 #line 10258 "configure"
10258 #include "confdefs.h"
10261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10262 { (eval echo configure:10263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10264 if test -z "$ac_err"; then
10266 eval "ac_cv_header_$ac_safe=yes"
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 eval "ac_cv_header_$ac_safe=no"
10276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10277 echo "$ac_t""yes" 1>&6
10278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_hdr 1
10284 echo "$ac_t""no" 1>&6
10288 for ac_hdr in lwp/lwp.h
10290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10292 echo "configure:10293: checking for $ac_hdr" >&5
10293 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10302 { (eval echo configure:10303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10304 if test -z "$ac_err"; then
10306 eval "ac_cv_header_$ac_safe=yes"
10309 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10312 eval "ac_cv_header_$ac_safe=no"
10316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10319 cat >> confdefs.h <<EOF
10320 #define $ac_tr_hdr 1
10324 echo "$ac_t""no" 1>&6
10328 for ac_hdr in thread.h synch.h
10330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10332 echo "configure:10333: checking for $ac_hdr" >&5
10333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10334 echo $ac_n "(cached) $ac_c" 1>&6
10336 cat > conftest.$ac_ext <<EOF
10337 #line 10338 "configure"
10338 #include "confdefs.h"
10341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10342 { (eval echo configure:10343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10344 if test -z "$ac_err"; then
10346 eval "ac_cv_header_$ac_safe=yes"
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 eval "ac_cv_header_$ac_safe=no"
10356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10357 echo "$ac_t""yes" 1>&6
10358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10359 cat >> confdefs.h <<EOF
10360 #define $ac_tr_hdr 1
10364 echo "$ac_t""no" 1>&6
10370 if test $ol_link_threads != no ; then
10371 cat >> confdefs.h <<\EOF
10372 #define REENTRANT 1
10375 cat >> confdefs.h <<\EOF
10376 #define _REENTRANT 1
10379 cat >> confdefs.h <<\EOF
10380 #define THREAD_SAFE 1
10383 cat >> confdefs.h <<\EOF
10384 #define _THREAD_SAFE 1
10387 cat >> confdefs.h <<\EOF
10388 #define THREADSAFE 1
10391 cat >> confdefs.h <<\EOF
10392 #define _THREADSAFE 1
10395 cat >> confdefs.h <<\EOF
10396 #define _SGI_MP_SOURCE 1
10400 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10401 echo "configure:10402: checking for thread specific errno" >&5
10402 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 ol_cv_errno_thread_specific=yes
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10421 ol_cv_errno_thread_specific=no
10427 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10429 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10430 echo "configure:10431: checking for thread specific h_errno" >&5
10431 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10435 cat > conftest.$ac_ext <<EOF
10436 #line 10437 "configure"
10437 #include "confdefs.h"
10443 if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10445 ol_cv_h_errno_thread_specific=yes
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10450 ol_cv_h_errno_thread_specific=no
10456 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10458 if test $ol_cv_errno_thread_specific != yes \
10459 -o $ol_cv_h_errno_thread_specific != yes ; then
10460 LIBS="$LTHREAD_LIBS $LIBS"
10466 if test $ol_link_threads = no ; then
10467 if test $ol_with_threads = yes ; then
10468 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10471 if test $ol_with_threads = auto ; then
10472 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10476 cat >> confdefs.h <<\EOF
10477 #define NO_THREADS 1
10483 if test $ol_link_threads != no ; then
10484 cat >> confdefs.h <<\EOF
10485 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10492 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10493 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10494 echo "configure:10495: checking for DB2 library" >&5
10495 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10499 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
10500 echo "configure:10501: checking for db_open in -ldb" >&5
10501 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
10502 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10505 ac_save_LIBS="$LIBS"
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 /* Override any gcc2 internal prototype to avoid an error. */
10511 /* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10519 if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10521 eval "ac_cv_lib_$ac_lib_var=yes"
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10526 eval "ac_cv_lib_$ac_lib_var=no"
10529 LIBS="$ac_save_LIBS"
10532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10533 echo "$ac_t""yes" 1>&6
10536 echo "$ac_t""no" 1>&6
10544 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10550 echo "configure:10551: checking for $ac_hdr" >&5
10551 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10552 echo $ac_n "(cached) $ac_c" 1>&6
10554 cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10560 { (eval echo configure:10561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10562 if test -z "$ac_err"; then
10564 eval "ac_cv_header_$ac_safe=yes"
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 eval "ac_cv_header_$ac_safe=no"
10574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10575 echo "$ac_t""yes" 1>&6
10576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10577 cat >> confdefs.h <<EOF
10578 #define $ac_tr_hdr 1
10582 echo "$ac_t""no" 1>&6
10586 if test $ac_cv_header_db_h = yes ; then
10587 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10588 echo "configure:10589: checking if db.h is DB2" >&5
10589 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10598 /* this check could be improved */
10599 # ifdef DB_VERSION_MAJOR
10600 # if DB_VERSION_MAJOR == 2
10606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10607 egrep "__db_version_2" >/dev/null 2>&1; then
10609 ol_cv_header_db2=yes
10612 ol_cv_header_db2=no
10618 echo "$ac_t""$ol_cv_header_db2" 1>&6
10620 ol_cv_header_db2=no
10625 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10626 echo "configure:10627: checking for Berkeley DB2" >&5
10627 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10631 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10632 ol_cv_berkeley_db2=no
10634 ol_cv_berkeley_db2=yes
10639 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10640 if test $ol_cv_berkeley_db2 = yes ; then
10641 cat >> confdefs.h <<\EOF
10642 #define HAVE_BERKELEY_DB2 1
10648 if test $ol_cv_berkeley_db2 = yes ; then
10650 ol_with_ldbm_api=db2
10652 if test $ol_with_ldbm_type = hash ; then
10653 cat >> confdefs.h <<\EOF
10654 #define LDBM_USE_DBHASH 1
10658 cat >> confdefs.h <<\EOF
10659 #define LDBM_USE_DBBTREE 1
10664 if test $ol_cv_lib_db2 != yes ; then
10665 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10671 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10675 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10676 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10677 echo "configure:10678: checking for Berkeley DB library" >&5
10678 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10682 for ac_hdr in db1/db.h
10684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10686 echo "configure:10687: checking for $ac_hdr" >&5
10687 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10696 { (eval echo configure:10697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10698 if test -z "$ac_err"; then
10700 eval "ac_cv_header_$ac_safe=yes"
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10706 eval "ac_cv_header_$ac_safe=no"
10710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10711 echo "$ac_t""yes" 1>&6
10712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10713 cat >> confdefs.h <<EOF
10714 #define $ac_tr_hdr 1
10718 echo "$ac_t""no" 1>&6
10723 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10724 echo "configure:10725: checking for dbopen" >&5
10725 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 /* System header to define __stub macros and hopefully few prototypes,
10732 which can conflict with char dbopen(); below. */
10733 #include <assert.h>
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10742 /* The GNU C library defines this for functions which it implements
10743 to always fail with ENOSYS. Some functions are actually named
10744 something starting with __ and the normal name is an alias. */
10745 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10753 if { (eval echo configure:10754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10755 eval "ac_cv_func_dbopen=yes"
10757 echo "configure: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10760 eval "ac_cv_func_dbopen=no"
10765 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10769 echo "$ac_t""no" 1>&6
10771 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10772 echo "configure:10773: checking for dbopen in -ldb1" >&5
10773 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10777 ac_save_LIBS="$LIBS"
10779 cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10782 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10791 if { (eval echo configure:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10793 eval "ac_cv_lib_$ac_lib_var=yes"
10795 echo "configure: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10798 eval "ac_cv_lib_$ac_lib_var=no"
10801 LIBS="$ac_save_LIBS"
10804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10805 echo "$ac_t""yes" 1>&6
10808 echo "$ac_t""no" 1>&6
10810 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10811 echo "configure:10812: checking for dbopen in -ldb" >&5
10812 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10813 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
10816 ac_save_LIBS="$LIBS"
10818 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 /* We use char because int might match the return type of a gcc2
10823 builtin and then its argument prototype would still apply. */
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10832 eval "ac_cv_lib_$ac_lib_var=yes"
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10837 eval "ac_cv_lib_$ac_lib_var=no"
10840 LIBS="$ac_save_LIBS"
10843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10844 echo "$ac_t""yes" 1>&6
10847 echo "$ac_t""no" 1>&6
10861 echo "$ac_t""$ol_cv_lib_db" 1>&6
10864 for ac_hdr in db_185.h
10866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10868 echo "configure:10869: checking for $ac_hdr" >&5
10869 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10878 { (eval echo configure:10879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10880 if test -z "$ac_err"; then
10882 eval "ac_cv_header_$ac_safe=yes"
10885 echo "configure: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10888 eval "ac_cv_header_$ac_safe=no"
10892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10893 echo "$ac_t""yes" 1>&6
10894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10895 cat >> confdefs.h <<EOF
10896 #define $ac_tr_hdr 1
10900 echo "$ac_t""no" 1>&6
10904 if test "$ol_cv_header_db2" = yes ; then
10906 ol_cv_header_db=$ac_cv_header_db_185_h
10908 ol_cv_header_db=$ac_cv_header_db_h
10913 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10914 echo "configure:10915: checking for Berkeley DB" >&5
10915 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10919 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10920 ol_cv_berkeley_db=no
10922 ol_cv_berkeley_db=yes
10927 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10928 if test $ol_cv_berkeley_db = yes ; then
10929 cat >> confdefs.h <<\EOF
10930 #define HAVE_BERKELEY_DB 1
10936 if test $ol_cv_berkeley_db = yes ; then
10938 ol_with_ldbm_api=db
10940 if test $ol_with_ldbm_type = hash ; then
10941 cat >> confdefs.h <<\EOF
10942 #define LDBM_USE_DBHASH 1
10946 cat >> confdefs.h <<\EOF
10947 #define LDBM_USE_DBBTREE 1
10952 if test $ol_cv_lib_db != yes ; then
10953 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10958 if test $ol_with_ldbm_api = manual ; then
10961 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10963 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10967 echo "configure:10968: checking for $ac_hdr" >&5
10968 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10969 echo $ac_n "(cached) $ac_c" 1>&6
10971 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure"
10973 #include "confdefs.h"
10976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10977 { (eval echo configure:10978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10979 if test -z "$ac_err"; then
10981 eval "ac_cv_header_$ac_safe=yes"
10984 echo "configure: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10987 eval "ac_cv_header_$ac_safe=no"
10991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10992 echo "$ac_t""yes" 1>&6
10993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10994 cat >> confdefs.h <<EOF
10995 #define $ac_tr_hdr 1
10999 echo "$ac_t""no" 1>&6
11005 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11006 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11007 ol_with_ldbm_api=none
11010 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11011 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11012 echo "configure:11013: checking for MDBM library" >&5
11013 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11017 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11018 echo "configure:11019: checking for mdbm_set_chain" >&5
11019 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char mdbm_set_chain(); below. */
11027 #include <assert.h>
11028 /* Override any gcc2 internal prototype to avoid an error. */
11029 /* We use char because int might match the return type of a gcc2
11030 builtin and then its argument prototype would still apply. */
11031 char mdbm_set_chain();
11036 /* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
11039 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11042 f = mdbm_set_chain;
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11049 eval "ac_cv_func_mdbm_set_chain=yes"
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 eval "ac_cv_func_mdbm_set_chain=no"
11059 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11060 echo "$ac_t""yes" 1>&6
11063 echo "$ac_t""no" 1>&6
11065 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11066 echo "configure:11067: checking for mdbm_set_chain in -lmdbm" >&5
11067 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11071 ac_save_LIBS="$LIBS"
11072 LIBS="-lmdbm $LIBS"
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 /* Override any gcc2 internal prototype to avoid an error. */
11077 /* We use char because int might match the return type of a gcc2
11078 builtin and then its argument prototype would still apply. */
11079 char mdbm_set_chain();
11085 if { (eval echo configure:11086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11087 eval "ac_cv_lib_$ac_lib_var=yes"
11089 echo "configure: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11092 eval "ac_cv_lib_$ac_lib_var=no"
11095 LIBS="$ac_save_LIBS"
11098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11099 echo "$ac_t""yes" 1>&6
11100 ol_cv_lib_mdbm=-lmdbm
11102 echo "$ac_t""no" 1>&6
11113 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11116 for ac_hdr in mdbm.h
11118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11120 echo "configure:11121: checking for $ac_hdr" >&5
11121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11130 { (eval echo configure:11131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11132 if test -z "$ac_err"; then
11134 eval "ac_cv_header_$ac_safe=yes"
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11140 eval "ac_cv_header_$ac_safe=no"
11144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11145 echo "$ac_t""yes" 1>&6
11146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11147 cat >> confdefs.h <<EOF
11148 #define $ac_tr_hdr 1
11152 echo "$ac_t""no" 1>&6
11156 echo $ac_n "checking for db""... $ac_c" 1>&6
11157 echo "configure:11158: checking for db" >&5
11158 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11159 echo $ac_n "(cached) $ac_c" 1>&6
11162 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11170 echo "$ac_t""$ol_cv_mdbm" 1>&6
11171 if test $ol_cv_mdbm = yes ; then
11172 cat >> confdefs.h <<\EOF
11173 #define HAVE_MDBM 1
11179 if test $ol_cv_mdbm = yes ; then
11181 ol_with_ldbm_api=mdbm
11182 if test $ol_cv_lib_mdbm != yes ; then
11183 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11188 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11189 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11190 echo "configure:11191: checking for GDBM library" >&5
11191 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
11195 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11196 echo "configure:11197: checking for gdbm_open" >&5
11197 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
11200 cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 /* System header to define __stub macros and hopefully few prototypes,
11204 which can conflict with char gdbm_open(); below. */
11205 #include <assert.h>
11206 /* Override any gcc2 internal prototype to avoid an error. */
11207 /* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */
11214 /* The GNU C library defines this for functions which it implements
11215 to always fail with ENOSYS. Some functions are actually named
11216 something starting with __ and the normal name is an alias. */
11217 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11227 eval "ac_cv_func_gdbm_open=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_func_gdbm_open=no"
11237 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11241 echo "$ac_t""no" 1>&6
11243 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11244 echo "configure:11245: checking for gdbm_open in -lgdbm" >&5
11245 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11246 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11249 ac_save_LIBS="$LIBS"
11250 LIBS="-lgdbm $LIBS"
11251 cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11254 /* Override any gcc2 internal prototype to avoid an error. */
11255 /* We use char because int might match the return type of a gcc2
11256 builtin and then its argument prototype would still apply. */
11263 if { (eval echo configure:11264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11265 eval "ac_cv_lib_$ac_lib_var=yes"
11267 echo "configure: failed program was:" >&5
11268 cat conftest.$ac_ext >&5
11270 eval "ac_cv_lib_$ac_lib_var=no"
11273 LIBS="$ac_save_LIBS"
11276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11277 echo "$ac_t""yes" 1>&6
11278 ol_cv_lib_gdbm=-lgdbm
11280 echo "$ac_t""no" 1>&6
11291 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11294 for ac_hdr in gdbm.h
11296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11298 echo "configure:11299: checking for $ac_hdr" >&5
11299 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11308 { (eval echo configure:11309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11310 if test -z "$ac_err"; then
11312 eval "ac_cv_header_$ac_safe=yes"
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 eval "ac_cv_header_$ac_safe=no"
11322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11325 cat >> confdefs.h <<EOF
11326 #define $ac_tr_hdr 1
11330 echo "$ac_t""no" 1>&6
11334 echo $ac_n "checking for db""... $ac_c" 1>&6
11335 echo "configure:11336: checking for db" >&5
11336 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11337 echo $ac_n "(cached) $ac_c" 1>&6
11340 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11348 echo "$ac_t""$ol_cv_gdbm" 1>&6
11349 if test $ol_cv_gdbm = yes ; then
11350 cat >> confdefs.h <<\EOF
11351 #define HAVE_GDBM 1
11357 if test $ol_cv_gdbm = yes ; then
11359 ol_with_ldbm_api=gdbm
11361 if test $ol_cv_lib_gdbm != yes ; then
11362 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11367 if test $ol_with_ldbm_api = auto ; then
11368 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11369 elif test $ol_with_ldbm_api = ndbm ; then
11370 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11371 echo "configure:11372: checking for NDBM library" >&5
11372 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11376 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11377 echo "configure:11378: checking for dbm_open" >&5
11378 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11379 echo $ac_n "(cached) $ac_c" 1>&6
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 /* System header to define __stub macros and hopefully few prototypes,
11385 which can conflict with char dbm_open(); below. */
11386 #include <assert.h>
11387 /* Override any gcc2 internal prototype to avoid an error. */
11388 /* We use char because int might match the return type of a gcc2
11389 builtin and then its argument prototype would still apply. */
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11406 if { (eval echo configure:11407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11408 eval "ac_cv_func_dbm_open=yes"
11410 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11413 eval "ac_cv_func_dbm_open=no"
11418 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11419 echo "$ac_t""yes" 1>&6
11422 echo "$ac_t""no" 1>&6
11424 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11425 echo "configure:11426: checking for dbm_open in -lndbm" >&5
11426 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11427 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11428 echo $ac_n "(cached) $ac_c" 1>&6
11430 ac_save_LIBS="$LIBS"
11431 LIBS="-lndbm $LIBS"
11432 cat > conftest.$ac_ext <<EOF
11433 #line 11434 "configure"
11434 #include "confdefs.h"
11435 /* Override any gcc2 internal prototype to avoid an error. */
11436 /* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11444 if { (eval echo configure:11445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11446 eval "ac_cv_lib_$ac_lib_var=yes"
11448 echo "configure: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11451 eval "ac_cv_lib_$ac_lib_var=no"
11454 LIBS="$ac_save_LIBS"
11457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ol_cv_lib_ndbm=-lndbm
11461 echo "$ac_t""no" 1>&6
11463 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11464 echo "configure:11465: checking for dbm_open in -ldbm" >&5
11465 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11466 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11469 ac_save_LIBS="$LIBS"
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 /* Override any gcc2 internal prototype to avoid an error. */
11475 /* We use char because int might match the return type of a gcc2
11476 builtin and then its argument prototype would still apply. */
11483 if { (eval echo configure:11484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11485 eval "ac_cv_lib_$ac_lib_var=yes"
11487 echo "configure: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11490 eval "ac_cv_lib_$ac_lib_var=no"
11493 LIBS="$ac_save_LIBS"
11496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11497 echo "$ac_t""yes" 1>&6
11498 ol_cv_lib_ndbm=-ldbm
11500 echo "$ac_t""no" 1>&6
11513 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11516 for ac_hdr in ndbm.h
11518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11520 echo "configure:11521: checking for $ac_hdr" >&5
11521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11532 if test -z "$ac_err"; then
11534 eval "ac_cv_header_$ac_safe=yes"
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11540 eval "ac_cv_header_$ac_safe=no"
11544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11545 echo "$ac_t""yes" 1>&6
11546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11547 cat >> confdefs.h <<EOF
11548 #define $ac_tr_hdr 1
11552 echo "$ac_t""no" 1>&6
11556 echo $ac_n "checking for db""... $ac_c" 1>&6
11557 echo "configure:11558: checking for db" >&5
11558 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11562 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11570 echo "$ac_t""$ol_cv_ndbm" 1>&6
11571 if test $ol_cv_ndbm = yes ; then
11572 cat >> confdefs.h <<\EOF
11573 #define HAVE_NDBM 1
11579 if test $ol_cv_ndbm = yes ; then
11581 ol_with_ldbm_api=ndbm
11583 if test $ol_cv_lib_ndbm != yes ; then
11584 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11589 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11590 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11591 if test $ol_enable_ldbm = yes ; then
11592 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11595 echo "configure: warning: disabling LDBM" 1>&2
11599 if test $ol_enable_wrappers != no ; then
11600 for ac_hdr in tcpd.h
11602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11604 echo "configure:11605: checking for $ac_hdr" >&5
11605 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11606 echo $ac_n "(cached) $ac_c" 1>&6
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11614 { (eval echo configure:11615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11616 if test -z "$ac_err"; then
11618 eval "ac_cv_header_$ac_safe=yes"
11621 echo "configure: failed program was:" >&5
11622 cat conftest.$ac_ext >&5
11624 eval "ac_cv_header_$ac_safe=no"
11628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11629 echo "$ac_t""yes" 1>&6
11630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11631 cat >> confdefs.h <<EOF
11632 #define $ac_tr_hdr 1
11636 echo "$ac_t""no" 1>&6
11641 if test $ac_cv_header_tcpd_h != yes ; then
11644 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11645 echo "configure:11646: checking for main in -lwrap" >&5
11646 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11650 ac_save_LIBS="$LIBS"
11651 LIBS="-lwrap $LIBS"
11652 cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11660 if { (eval echo configure:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11662 eval "ac_cv_lib_$ac_lib_var=yes"
11664 echo "configure: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11667 eval "ac_cv_lib_$ac_lib_var=no"
11670 LIBS="$ac_save_LIBS"
11673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11674 echo "$ac_t""yes" 1>&6
11677 echo "$ac_t""no" 1>&6
11683 if test $have_wrappers = yes ; then
11684 cat >> confdefs.h <<\EOF
11685 #define HAVE_TCPD 1
11688 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11690 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11691 echo "configure:11692: checking for main in -lnsl" >&5
11692 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11693 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11694 echo $ac_n "(cached) $ac_c" 1>&6
11696 ac_save_LIBS="$LIBS"
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11706 if { (eval echo configure:11707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11708 eval "ac_cv_lib_$ac_lib_var=yes"
11710 echo "configure: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11713 eval "ac_cv_lib_$ac_lib_var=no"
11716 LIBS="$ac_save_LIBS"
11719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11723 cat >> confdefs.h <<EOF
11724 #define $ac_tr_lib 1
11730 echo "$ac_t""no" 1>&6
11734 echo "configure: warning: could not find -lwrap" 1>&2
11735 if test $ol_enable_wrappers = yes ; then
11736 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11739 echo "configure: warning: disabling wrappers support" 1>&2
11740 ol_enable_wrappers=no
11744 if test $ol_enable_syslog != no ; then
11745 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11746 echo "configure:11747: checking for openlog" >&5
11747 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char openlog(); below. */
11755 #include <assert.h>
11756 /* Override any gcc2 internal prototype to avoid an error. */
11757 /* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined (__stub_openlog) || defined (__stub___openlog)
11775 if { (eval echo configure:11776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11777 eval "ac_cv_func_openlog=yes"
11779 echo "configure: failed program was:" >&5
11780 cat conftest.$ac_ext >&5
11782 eval "ac_cv_func_openlog=no"
11787 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11788 echo "$ac_t""yes" 1>&6
11791 echo "$ac_t""no" 1>&6
11794 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11795 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11797 ol_enable_syslog=$ac_cv_func_openlog
11800 if test $ol_enable_dmalloc != no ; then
11801 for ac_hdr in dmalloc.h
11803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11805 echo "configure:11806: checking for $ac_hdr" >&5
11806 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11815 { (eval echo configure:11816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11817 if test -z "$ac_err"; then
11819 eval "ac_cv_header_$ac_safe=yes"
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 eval "ac_cv_header_$ac_safe=no"
11829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11830 echo "$ac_t""yes" 1>&6
11831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11832 cat >> confdefs.h <<EOF
11833 #define $ac_tr_hdr 1
11837 echo "$ac_t""no" 1>&6
11841 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11842 echo "configure:11843: checking for dmalloc_shutdown in -ldmalloc" >&5
11843 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11844 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11847 ac_save_LIBS="$LIBS"
11848 LIBS="-ldmalloc $LIBS"
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 /* Override any gcc2 internal prototype to avoid an error. */
11853 /* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11855 char dmalloc_shutdown();
11861 if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11863 eval "ac_cv_lib_$ac_lib_var=yes"
11865 echo "configure: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11868 eval "ac_cv_lib_$ac_lib_var=no"
11871 LIBS="$ac_save_LIBS"
11874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11875 echo "$ac_t""yes" 1>&6
11876 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11877 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11878 cat >> confdefs.h <<EOF
11879 #define $ac_tr_lib 1
11882 LIBS="-ldmalloc $LIBS"
11885 echo "$ac_t""no" 1>&6
11890 if test $ol_enable_tcl != no ; then
11891 for ac_hdr in tcl.h
11893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11895 echo "configure:11896: checking for $ac_hdr" >&5
11896 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11897 echo $ac_n "(cached) $ac_c" 1>&6
11899 cat > conftest.$ac_ext <<EOF
11900 #line 11901 "configure"
11901 #include "confdefs.h"
11904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11905 { (eval echo configure:11906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11907 if test -z "$ac_err"; then
11909 eval "ac_cv_header_$ac_safe=yes"
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11915 eval "ac_cv_header_$ac_safe=no"
11919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11920 echo "$ac_t""yes" 1>&6
11921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11922 cat >> confdefs.h <<EOF
11923 #define $ac_tr_hdr 1
11927 echo "$ac_t""no" 1>&6
11932 if test $ac_cv_header_tcl_h != yes ; then
11935 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11936 echo "configure:11937: checking for main in -ltcl" >&5
11937 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11941 ac_save_LIBS="$LIBS"
11943 cat > conftest.$ac_ext <<EOF
11944 #line 11945 "configure"
11945 #include "confdefs.h"
11951 if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11953 eval "ac_cv_lib_$ac_lib_var=yes"
11955 echo "configure: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11958 eval "ac_cv_lib_$ac_lib_var=no"
11961 LIBS="$ac_save_LIBS"
11964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11965 echo "$ac_t""yes" 1>&6
11966 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11968 echo "$ac_t""no" 1>&6
11973 if test $have_tcl != yes; then
11974 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11975 echo "configure:11976: checking for main in -ltcl7.6" >&5
11976 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11980 ac_save_LIBS="$LIBS"
11981 LIBS="-ltcl7.6 $LIBS"
11982 cat > conftest.$ac_ext <<EOF
11983 #line 11984 "configure"
11984 #include "confdefs.h"
11990 if { (eval echo configure:11991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11992 eval "ac_cv_lib_$ac_lib_var=yes"
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11997 eval "ac_cv_lib_$ac_lib_var=no"
12000 LIBS="$ac_save_LIBS"
12003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12004 echo "$ac_t""yes" 1>&6
12005 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
12007 echo "$ac_t""no" 1>&6
12013 if test $have_tcl != yes; then
12014 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
12015 echo "configure:12016: checking for main in -ltcl8.0" >&5
12016 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
12017 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12018 echo $ac_n "(cached) $ac_c" 1>&6
12020 ac_save_LIBS="$LIBS"
12021 LIBS="-ltcl8.0 $LIBS"
12022 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure"
12024 #include "confdefs.h"
12030 if { (eval echo configure:12031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12032 eval "ac_cv_lib_$ac_lib_var=yes"
12034 echo "configure: failed program was:" >&5
12035 cat conftest.$ac_ext >&5
12037 eval "ac_cv_lib_$ac_lib_var=no"
12040 LIBS="$ac_save_LIBS"
12043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12044 echo "$ac_t""yes" 1>&6
12045 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
12047 echo "$ac_t""no" 1>&6
12054 if test $have_tcl != yes ; then
12055 echo "configure: warning: could not find -ltcl" 1>&2
12056 if test $ol_enable_tcl = yes ; then
12057 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12064 # ud needs termcap (should insert check here)
12066 for ac_hdr in termcap.h ncurses.h
12068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12070 echo "configure:12071: checking for $ac_hdr" >&5
12071 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12072 echo $ac_n "(cached) $ac_c" 1>&6
12074 cat > conftest.$ac_ext <<EOF
12075 #line 12076 "configure"
12076 #include "confdefs.h"
12079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12080 { (eval echo configure:12081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12082 if test -z "$ac_err"; then
12084 eval "ac_cv_header_$ac_safe=yes"
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12090 eval "ac_cv_header_$ac_safe=no"
12094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12097 cat >> confdefs.h <<EOF
12098 #define $ac_tr_hdr 1
12102 echo "$ac_t""no" 1>&6
12107 if test $ol_link_termcap = no ; then
12108 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12109 echo "configure:12110: checking for tputs in -ltermcap" >&5
12110 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12114 ac_save_LIBS="$LIBS"
12115 LIBS="-ltermcap $LIBS"
12116 cat > conftest.$ac_ext <<EOF
12117 #line 12118 "configure"
12118 #include "confdefs.h"
12119 /* Override any gcc2 internal prototype to avoid an error. */
12120 /* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12130 eval "ac_cv_lib_$ac_lib_var=yes"
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12135 eval "ac_cv_lib_$ac_lib_var=no"
12138 LIBS="$ac_save_LIBS"
12141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12145 echo "$ac_t""no" 1>&6
12149 if test $have_termcap = yes ; then
12150 cat >> confdefs.h <<\EOF
12151 #define HAVE_TERMCAP 1
12154 ol_link_termcap=yes
12155 TERMCAP_LIBS=-ltermcap
12159 if test $ol_link_termcap = no ; then
12160 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12161 echo "configure:12162: checking for initscr in -lncurses" >&5
12162 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12166 ac_save_LIBS="$LIBS"
12167 LIBS="-lncurses $LIBS"
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12171 /* Override any gcc2 internal prototype to avoid an error. */
12172 /* We use char because int might match the return type of a gcc2
12173 builtin and then its argument prototype would still apply. */
12180 if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12182 eval "ac_cv_lib_$ac_lib_var=yes"
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12187 eval "ac_cv_lib_$ac_lib_var=no"
12190 LIBS="$ac_save_LIBS"
12193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12194 echo "$ac_t""yes" 1>&6
12197 echo "$ac_t""no" 1>&6
12201 if test $have_ncurses = yes ; then
12202 cat >> confdefs.h <<\EOF
12203 #define HAVE_NCURSES 1
12206 ol_link_termcap=yes
12207 TERMCAP_LIBS=-lncurses
12211 if test $ol_link_termcap = no ; then
12212 cat >> confdefs.h <<\EOF
12213 #define NO_TERMCAP 1
12220 if test $ol_with_cyrus_sasl != no ; then
12221 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12222 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12223 echo "configure:12224: checking for sasl.h" >&5
12224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12233 { (eval echo configure:12234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12235 if test -z "$ac_err"; then
12237 eval "ac_cv_header_$ac_safe=yes"
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12243 eval "ac_cv_header_$ac_safe=no"
12247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12248 echo "$ac_t""yes" 1>&6
12251 echo "$ac_t""no" 1>&6
12255 if test $ac_cv_header_sasl_h = yes ; then
12256 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12257 echo "configure:12258: checking for sasl_client_init in -lsasl" >&5
12258 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12259 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12260 echo $ac_n "(cached) $ac_c" 1>&6
12262 ac_save_LIBS="$LIBS"
12263 LIBS="-lsasl $LIBS"
12264 cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12267 /* Override any gcc2 internal prototype to avoid an error. */
12268 /* We use char because int might match the return type of a gcc2
12269 builtin and then its argument prototype would still apply. */
12270 char sasl_client_init();
12276 if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12278 eval "ac_cv_lib_$ac_lib_var=yes"
12280 echo "configure: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12283 eval "ac_cv_lib_$ac_lib_var=no"
12286 LIBS="$ac_save_LIBS"
12289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12290 echo "$ac_t""yes" 1>&6
12291 have_cyrus_sasl=yes
12293 echo "$ac_t""no" 1>&6
12298 if test $have_cyrus_sasl != no ; then
12300 cat >> confdefs.h <<\EOF
12301 #define HAVE_CYRUS_SASL 1
12308 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12309 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12314 if test $ol_with_fetch != no ; then
12316 LIBS="-lfetch -lcom_err $LIBS"
12317 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12318 echo "configure:12319: checking fetch(3) library" >&5
12319 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12320 echo $ac_n "(cached) $ac_c" 1>&6
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12327 #include <sys/param.h>
12331 struct url *u = fetchParseURL("file:///");
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 ol_cv_lib_fetch=yes
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12346 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12348 if test $ol_cv_lib_fetch != no ; then
12349 ol_link_fetch="-lfetch -lcom_err"
12350 cat >> confdefs.h <<\EOF
12351 #define HAVE_FETCH 1
12357 if test $ol_cv_lib_fetch != no ; then
12358 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12359 ol_link_fetch=freebsd
12361 elif test $ol_with_fetch != auto ; then
12362 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12366 ol_link_readline=no
12367 if test $ol_with_readline != no ; then
12368 for ac_hdr in readline/readline.h readline/history.h
12370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12372 echo "configure:12373: checking for $ac_hdr" >&5
12373 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12374 echo $ac_n "(cached) $ac_c" 1>&6
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12382 { (eval echo configure:12383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12384 if test -z "$ac_err"; then
12386 eval "ac_cv_header_$ac_safe=yes"
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12392 eval "ac_cv_header_$ac_safe=no"
12396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12397 echo "$ac_t""yes" 1>&6
12398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12399 cat >> confdefs.h <<EOF
12400 #define $ac_tr_hdr 1
12404 echo "$ac_t""no" 1>&6
12409 if test $ac_cv_header_readline_readline_h = yes ; then
12411 LIBS="$TERMCAP_LIBS $LIBS"
12412 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12413 echo "configure:12414: checking for readline in -lreadline" >&5
12414 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12415 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12416 echo $ac_n "(cached) $ac_c" 1>&6
12418 ac_save_LIBS="$LIBS"
12419 LIBS="-lreadline $LIBS"
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 /* Override any gcc2 internal prototype to avoid an error. */
12424 /* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12434 eval "ac_cv_lib_$ac_lib_var=yes"
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12439 eval "ac_cv_lib_$ac_lib_var=no"
12442 LIBS="$ac_save_LIBS"
12445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12446 echo "$ac_t""yes" 1>&6
12449 echo "$ac_t""no" 1>&6
12455 if test $have_readline = yes ; then
12456 ol_with_readline=found
12457 ol_link_readline=yes
12459 READLINE_LIBS="-lreadline"
12464 if test $ol_link_readline = yes ; then
12465 cat >> confdefs.h <<\EOF
12466 #define HAVE_READLINE 1
12472 # FreeBSD (and others) have crypt(3) in -lcrypt
12473 if test $ol_enable_crypt != no ; then
12474 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12475 echo "configure:12476: checking for crypt" >&5
12476 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12477 echo $ac_n "(cached) $ac_c" 1>&6
12479 cat > conftest.$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char crypt(); below. */
12484 #include <assert.h>
12485 /* Override any gcc2 internal prototype to avoid an error. */
12486 /* We use char because int might match the return type of a gcc2
12487 builtin and then its argument prototype would still apply. */
12493 /* The GNU C library defines this for functions which it implements
12494 to always fail with ENOSYS. Some functions are actually named
12495 something starting with __ and the normal name is an alias. */
12496 #if defined (__stub_crypt) || defined (__stub___crypt)
12504 if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12506 eval "ac_cv_func_crypt=yes"
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12511 eval "ac_cv_func_crypt=no"
12516 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12517 echo "$ac_t""yes" 1>&6
12520 echo "$ac_t""no" 1>&6
12522 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12523 echo "configure:12524: checking for crypt in -lcrypt" >&5
12524 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12525 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12528 ac_save_LIBS="$LIBS"
12529 LIBS="-lcrypt $LIBS"
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 /* Override any gcc2 internal prototype to avoid an error. */
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12544 eval "ac_cv_lib_$ac_lib_var=yes"
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12549 eval "ac_cv_lib_$ac_lib_var=no"
12552 LIBS="$ac_save_LIBS"
12555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12556 echo "$ac_t""yes" 1>&6
12557 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12560 echo "$ac_t""no" 1>&6
12567 if test $have_crypt = yes ; then
12568 cat >> confdefs.h <<\EOF
12569 #define HAVE_CRYPT 1
12573 echo "configure: warning: could not find crypt" 1>&2
12574 if test $ol_enable_crypt = yes ; then
12575 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12578 echo "configure: warning: disabling crypt support" 1>&2
12583 # FreeBSD (and others) have setproctitle(3) in -lutil
12584 if test $ol_enable_proctitle != no ; then
12585 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12586 echo "configure:12587: checking for setproctitle" >&5
12587 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12588 echo $ac_n "(cached) $ac_c" 1>&6
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 /* System header to define __stub macros and hopefully few prototypes,
12594 which can conflict with char setproctitle(); below. */
12595 #include <assert.h>
12596 /* Override any gcc2 internal prototype to avoid an error. */
12597 /* We use char because int might match the return type of a gcc2
12598 builtin and then its argument prototype would still apply. */
12599 char setproctitle();
12604 /* The GNU C library defines this for functions which it implements
12605 to always fail with ENOSYS. Some functions are actually named
12606 something starting with __ and the normal name is an alias. */
12607 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12615 if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12617 eval "ac_cv_func_setproctitle=yes"
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12622 eval "ac_cv_func_setproctitle=no"
12627 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629 have_setproctitle=yes
12631 echo "$ac_t""no" 1>&6
12633 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12634 echo "configure:12635: checking for setproctitle in -lutil" >&5
12635 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12639 ac_save_LIBS="$LIBS"
12640 LIBS="-lutil $LIBS"
12641 cat > conftest.$ac_ext <<EOF
12642 #line 12643 "configure"
12643 #include "confdefs.h"
12644 /* Override any gcc2 internal prototype to avoid an error. */
12645 /* We use char because int might match the return type of a gcc2
12646 builtin and then its argument prototype would still apply. */
12647 char setproctitle();
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12655 eval "ac_cv_lib_$ac_lib_var=yes"
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 eval "ac_cv_lib_$ac_lib_var=no"
12663 LIBS="$ac_save_LIBS"
12666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12667 echo "$ac_t""yes" 1>&6
12668 have_setproctitle=yes
12669 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12671 echo "$ac_t""no" 1>&6
12672 have_setproctitle=no
12673 LIBOBJS="$LIBOBJS setproctitle.o"
12679 if test $have_setproctitle = yes ; then
12680 cat >> confdefs.h <<\EOF
12681 #define HAVE_SETPROCTITLE 1
12687 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12688 echo "configure:12689: checking for uid_t in sys/types.h" >&5
12689 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12692 cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 #include <sys/types.h>
12697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12698 egrep "uid_t" >/dev/null 2>&1; then
12700 ac_cv_type_uid_t=yes
12703 ac_cv_type_uid_t=no
12709 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12710 if test $ac_cv_type_uid_t = no; then
12711 cat >> confdefs.h <<\EOF
12715 cat >> confdefs.h <<\EOF
12721 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12722 echo "configure:12723: checking type of array argument to getgroups" >&5
12723 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12724 echo $ac_n "(cached) $ac_c" 1>&6
12726 if test "$cross_compiling" = yes; then
12727 ac_cv_type_getgroups=cross
12729 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12733 /* Thanks to Mike Rendell for this test. */
12734 #include <sys/types.h>
12737 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12740 gid_t gidset[NGID];
12742 union { gid_t gval; long lval; } val;
12745 for (i = 0; i < NGID; i++)
12746 gidset[i] = val.gval;
12747 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12749 /* Exit non-zero if getgroups seems to require an array of ints. This
12750 happens when gid_t is short but getgroups modifies an array of ints. */
12751 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12755 if { (eval echo configure:12756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12757 ac_cv_type_getgroups=gid_t
12759 echo "configure: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12762 ac_cv_type_getgroups=int
12767 if test $ac_cv_type_getgroups = cross; then
12768 cat > conftest.$ac_ext <<EOF
12769 #line 12770 "configure"
12770 #include "confdefs.h"
12771 #include <unistd.h>
12773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12774 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12776 ac_cv_type_getgroups=gid_t
12779 ac_cv_type_getgroups=int
12786 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12787 cat >> confdefs.h <<EOF
12788 #define GETGROUPS_T $ac_cv_type_getgroups
12791 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12792 echo "configure:12793: checking for ANSI C header files" >&5
12793 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12794 echo $ac_n "(cached) $ac_c" 1>&6
12796 cat > conftest.$ac_ext <<EOF
12797 #line 12798 "configure"
12798 #include "confdefs.h"
12799 #include <stdlib.h>
12800 #include <stdarg.h>
12801 #include <string.h>
12804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12805 { (eval echo configure:12806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12807 if test -z "$ac_err"; then
12809 ac_cv_header_stdc=yes
12812 echo "configure: failed program was:" >&5
12813 cat conftest.$ac_ext >&5
12815 ac_cv_header_stdc=no
12819 if test $ac_cv_header_stdc = yes; then
12820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <string.h>
12826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12827 egrep "memchr" >/dev/null 2>&1; then
12831 ac_cv_header_stdc=no
12837 if test $ac_cv_header_stdc = yes; then
12838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12839 cat > conftest.$ac_ext <<EOF
12840 #line 12841 "configure"
12841 #include "confdefs.h"
12842 #include <stdlib.h>
12844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12845 egrep "free" >/dev/null 2>&1; then
12849 ac_cv_header_stdc=no
12855 if test $ac_cv_header_stdc = yes; then
12856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12857 if test "$cross_compiling" = yes; then
12860 cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12864 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12865 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12867 int main () { int i; for (i = 0; i < 256; i++)
12868 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 ac_cv_header_stdc=no
12887 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12888 if test $ac_cv_header_stdc = yes; then
12889 cat >> confdefs.h <<\EOF
12890 #define STDC_HEADERS 1
12895 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12896 echo "configure:12897: checking for mode_t" >&5
12897 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 #include <sys/types.h>
12905 #include <stdlib.h>
12906 #include <stddef.h>
12909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12910 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12912 eval "ac_cv_type_mode_t=yes"
12915 eval "ac_cv_type_mode_t=no"
12920 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12921 echo "$ac_t""yes" 1>&6
12923 echo "$ac_t""no" 1>&6
12924 cat >> confdefs.h <<EOF
12930 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12931 echo "configure:12932: checking for off_t" >&5
12932 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 #include <sys/types.h>
12940 #include <stdlib.h>
12941 #include <stddef.h>
12944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12945 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12947 eval "ac_cv_type_off_t=yes"
12950 eval "ac_cv_type_off_t=no"
12955 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12956 echo "$ac_t""yes" 1>&6
12958 echo "$ac_t""no" 1>&6
12959 cat >> confdefs.h <<EOF
12965 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12966 echo "configure:12967: checking for pid_t" >&5
12967 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12968 echo $ac_n "(cached) $ac_c" 1>&6
12970 cat > conftest.$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12973 #include <sys/types.h>
12975 #include <stdlib.h>
12976 #include <stddef.h>
12979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12980 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12982 eval "ac_cv_type_pid_t=yes"
12985 eval "ac_cv_type_pid_t=no"
12990 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12991 echo "$ac_t""yes" 1>&6
12993 echo "$ac_t""no" 1>&6
12994 cat >> confdefs.h <<EOF
13000 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13001 echo "configure:13002: checking for ptrdiff_t" >&5
13002 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13003 echo $ac_n "(cached) $ac_c" 1>&6
13005 cat > conftest.$ac_ext <<EOF
13006 #line 13007 "configure"
13007 #include "confdefs.h"
13008 #include <stddef.h>
13013 if { (eval echo configure:13014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13015 am_cv_type_ptrdiff_t=yes
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13020 am_cv_type_ptrdiff_t=no
13025 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13026 if test $am_cv_type_ptrdiff_t = yes; then
13027 cat >> confdefs.h <<\EOF
13028 #define HAVE_PTRDIFF_T 1
13033 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13034 echo "configure:13035: checking return type of signal handlers" >&5
13035 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
13038 cat > conftest.$ac_ext <<EOF
13039 #line 13040 "configure"
13040 #include "confdefs.h"
13041 #include <sys/types.h>
13042 #include <signal.h>
13047 extern "C" void (*signal (int, void (*)(int)))(int);
13049 void (*signal ()) ();
13056 if { (eval echo configure:13057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13058 ac_cv_type_signal=void
13060 echo "configure: failed program was:" >&5
13061 cat conftest.$ac_ext >&5
13063 ac_cv_type_signal=int
13068 echo "$ac_t""$ac_cv_type_signal" 1>&6
13069 cat >> confdefs.h <<EOF
13070 #define RETSIGTYPE $ac_cv_type_signal
13074 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13075 echo "configure:13076: checking for sig_atomic_t" >&5
13076 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13079 cat > conftest.$ac_ext <<EOF
13080 #line 13081 "configure"
13081 #include "confdefs.h"
13082 #include <signal.h>
13084 sig_atomic_t atomic;
13087 if { (eval echo configure:13088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13089 ol_cv_type_sig_atomic_t=yes
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13094 ol_cv_type_sig_atomic_t=no
13099 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13100 if test $ol_cv_type_sig_atomic_t = no; then
13101 cat >> confdefs.h <<\EOF
13102 #define sig_atomic_t int
13107 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13108 echo "configure:13109: checking for size_t" >&5
13109 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13110 echo $ac_n "(cached) $ac_c" 1>&6
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13115 #include <sys/types.h>
13117 #include <stdlib.h>
13118 #include <stddef.h>
13121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13122 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13124 eval "ac_cv_type_size_t=yes"
13127 eval "ac_cv_type_size_t=no"
13132 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13135 echo "$ac_t""no" 1>&6
13136 cat >> confdefs.h <<EOF
13137 #define size_t unsigned
13142 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13143 echo "configure:13144: checking for socklen_t" >&5
13144 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13145 echo $ac_n "(cached) $ac_c" 1>&6
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13151 #ifdef HAVE_SYS_TYPES_H
13152 #include <sys/types.h>
13154 #ifdef HAVE_SYS_SOCKET_H
13155 #include <sys/socket.h>
13162 if { (eval echo configure:13163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13164 ol_cv_type_socklen_t=yes
13166 echo "configure: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13169 ol_cv_type_socklen_t=no
13174 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13175 if test $ol_cv_type_socklen_t = no; then
13176 cat >> confdefs.h <<\EOF
13177 #define socklen_t int
13182 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13183 echo "configure:13184: checking for member st_blksize in aggregate type struct stat" >&5
13184 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 #include <sys/types.h>
13191 #include <sys/stat.h>
13193 struct stat foo; foo.st_blksize;
13196 if { (eval echo configure:13197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13198 ac_cv_c_struct_member_st_blksize=yes
13200 echo "configure: failed program was:" >&5
13201 cat conftest.$ac_ext >&5
13203 ac_cv_c_struct_member_st_blksize=no
13208 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13209 st_blksize="$ac_cv_c_struct_member_st_blksize"
13210 if test $ac_cv_c_struct_member_st_blksize = yes; then
13211 cat >> confdefs.h <<\EOF
13212 #define HAVE_ST_BLKSIZE 1
13217 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13218 echo "configure:13219: checking whether time.h and sys/time.h may both be included" >&5
13219 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13220 echo $ac_n "(cached) $ac_c" 1>&6
13222 cat > conftest.$ac_ext <<EOF
13223 #line 13224 "configure"
13224 #include "confdefs.h"
13225 #include <sys/types.h>
13226 #include <sys/time.h>
13232 if { (eval echo configure:13233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13234 ac_cv_header_time=yes
13236 echo "configure: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13239 ac_cv_header_time=no
13244 echo "$ac_t""$ac_cv_header_time" 1>&6
13245 if test $ac_cv_header_time = yes; then
13246 cat >> confdefs.h <<\EOF
13247 #define TIME_WITH_SYS_TIME 1
13252 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13253 echo "configure:13254: checking whether struct tm is in sys/time.h or time.h" >&5
13254 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13255 echo $ac_n "(cached) $ac_c" 1>&6
13257 cat > conftest.$ac_ext <<EOF
13258 #line 13259 "configure"
13259 #include "confdefs.h"
13260 #include <sys/types.h>
13263 struct tm *tp; tp->tm_sec;
13266 if { (eval echo configure:13267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13268 ac_cv_struct_tm=time.h
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13273 ac_cv_struct_tm=sys/time.h
13278 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13279 if test $ac_cv_struct_tm = sys/time.h; then
13280 cat >> confdefs.h <<\EOF
13281 #define TM_IN_SYS_TIME 1
13286 # test for pw_gecos in struct passwd
13287 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13288 echo "configure:13289: checking struct passwd for pw_gecos" >&5
13289 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13290 echo $ac_n "(cached) $ac_c" 1>&6
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13300 pwd.pw_gecos = pwd.pw_name;
13304 if { (eval echo configure:13305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13306 ol_cv_struct_passwd_pw_gecos=yes
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13311 ol_cv_struct_passwd_pw_gecos=no
13316 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13317 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13318 cat >> confdefs.h <<\EOF
13319 #define HAVE_PW_GECOS 1
13324 # test for pw_passwd in struct passwd
13325 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13326 echo "configure:13327: checking struct passwd for pw_passwd" >&5
13327 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13328 echo $ac_n "(cached) $ac_c" 1>&6
13331 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13338 pwd.pw_passwd = pwd.pw_name;
13342 if { (eval echo configure:13343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13344 ol_cv_struct_passwd_pw_passwd=yes
13346 echo "configure: failed program was:" >&5
13347 cat conftest.$ac_ext >&5
13349 ol_cv_struct_passwd_pw_passwd=no
13354 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13355 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13356 cat >> confdefs.h <<\EOF
13357 #define HAVE_PW_PASSWD 1
13363 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13364 echo "configure:13365: checking if toupper() requires islower()" >&5
13365 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13366 echo $ac_n "(cached) $ac_c" 1>&6
13369 if test "$cross_compiling" = yes; then
13370 ol_cv_c_upper_lower=safe
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13379 if ('C' == toupper('C'))
13385 if { (eval echo configure:13386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13387 ol_cv_c_upper_lower=no
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13392 ol_cv_c_upper_lower=yes
13399 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13400 if test $ol_cv_c_upper_lower != no ; then
13401 cat >> confdefs.h <<\EOF
13402 #define C_UPPER_LOWER 1
13407 echo $ac_n "checking for working const""... $ac_c" 1>&6
13408 echo "configure:13409: checking for working const" >&5
13409 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13410 echo $ac_n "(cached) $ac_c" 1>&6
13412 cat > conftest.$ac_ext <<EOF
13413 #line 13414 "configure"
13414 #include "confdefs.h"
13418 /* Ultrix mips cc rejects this. */
13419 typedef int charset[2]; const charset x;
13420 /* SunOS 4.1.1 cc rejects this. */
13421 char const *const *ccp;
13423 /* NEC SVR4.0.2 mips cc rejects this. */
13424 struct point {int x, y;};
13425 static struct point const zero = {0,0};
13426 /* AIX XL C 1.02.0.0 rejects this.
13427 It does not let you subtract one const X* pointer from another in an arm
13428 of an if-expression whose if-part is not a constant expression */
13429 const char *g = "string";
13430 ccp = &g + (g ? g-g : 0);
13431 /* HPUX 7.0 cc rejects these. */
13434 ccp = (char const *const *) p;
13435 { /* SCO 3.2v4 cc rejects this. */
13437 char const *s = 0 ? (char *) 0 : (char const *) 0;
13441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13442 int x[] = {25, 17};
13443 const int *foo = &x[0];
13446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13447 typedef const int *iptr;
13451 { /* AIX XL C 1.02.0.0 rejects this saying
13452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13453 struct s { int j; const int *ap[3]; };
13454 struct s *b; b->j = 5;
13456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13457 const int foo = 10;
13462 if { (eval echo configure:13463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13474 echo "$ac_t""$ac_cv_c_const" 1>&6
13475 if test $ac_cv_c_const = no; then
13476 cat >> confdefs.h <<\EOF
13482 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13483 echo "configure:13484: checking if compiler understands volatile" >&5
13484 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13487 cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13492 volatile int a; int * volatile b = x ? &y : &z;
13493 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13497 if { (eval echo configure:13498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13499 ol_cv_c_volatile=yes
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13504 ol_cv_c_volatile=no
13509 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13510 if test $ol_cv_c_volatile = yes; then
13513 cat >> confdefs.h <<\EOF
13520 if test $cross_compiling = yes ; then
13521 cat >> confdefs.h <<\EOF
13522 #define CROSS_COMPILING 1
13526 cat >> confdefs.h <<\EOF
13527 #define LBER_INT_T long
13530 cat >> confdefs.h <<\EOF
13531 #define LBER_TAG_T long
13534 cat >> confdefs.h <<\EOF
13535 #define LBER_SOCKET_T int
13540 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13541 echo "configure:13542: checking whether byte ordering is bigendian" >&5
13542 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13543 echo $ac_n "(cached) $ac_c" 1>&6
13545 ac_cv_c_bigendian=unknown
13546 # See if sys/param.h defines the BYTE_ORDER macro.
13547 cat > conftest.$ac_ext <<EOF
13548 #line 13549 "configure"
13549 #include "confdefs.h"
13550 #include <sys/types.h>
13551 #include <sys/param.h>
13554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13555 bogus endian macros
13559 if { (eval echo configure:13560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13561 # It does; now see whether it defined to BIG_ENDIAN or not.
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565 #include <sys/types.h>
13566 #include <sys/param.h>
13569 #if BYTE_ORDER != BIG_ENDIAN
13574 if { (eval echo configure:13575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13576 ac_cv_c_bigendian=yes
13578 echo "configure: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13581 ac_cv_c_bigendian=no
13585 echo "configure: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13589 if test $ac_cv_c_bigendian = unknown; then
13590 if test "$cross_compiling" = yes; then
13591 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13593 cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure"
13595 #include "confdefs.h"
13597 /* Are we little or big endian? From Harbison&Steele. */
13601 char c[sizeof (long)];
13604 exit (u.c[sizeof (long) - 1] == 1);
13607 if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13609 ac_cv_c_bigendian=no
13611 echo "configure: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13614 ac_cv_c_bigendian=yes
13622 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13623 if test $ac_cv_c_bigendian = yes; then
13624 cat >> confdefs.h <<\EOF
13625 #define WORDS_BIGENDIAN 1
13630 echo $ac_n "checking size of short""... $ac_c" 1>&6
13631 echo "configure:13632: checking size of short" >&5
13632 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13633 echo $ac_n "(cached) $ac_c" 1>&6
13635 if test "$cross_compiling" = yes; then
13636 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13638 cat > conftest.$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13644 FILE *f=fopen("conftestval", "w");
13646 fprintf(f, "%d\n", sizeof(short));
13650 if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13652 ac_cv_sizeof_short=`cat conftestval`
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13657 ac_cv_sizeof_short=0
13663 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13664 cat >> confdefs.h <<EOF
13665 #define SIZEOF_SHORT $ac_cv_sizeof_short
13669 echo $ac_n "checking size of int""... $ac_c" 1>&6
13670 echo "configure:13671: checking size of int" >&5
13671 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13672 echo $ac_n "(cached) $ac_c" 1>&6
13674 if test "$cross_compiling" = yes; then
13675 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13677 cat > conftest.$ac_ext <<EOF
13678 #line 13679 "configure"
13679 #include "confdefs.h"
13683 FILE *f=fopen("conftestval", "w");
13685 fprintf(f, "%d\n", sizeof(int));
13689 if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13691 ac_cv_sizeof_int=`cat conftestval`
13693 echo "configure: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13702 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13703 cat >> confdefs.h <<EOF
13704 #define SIZEOF_INT $ac_cv_sizeof_int
13708 echo $ac_n "checking size of long""... $ac_c" 1>&6
13709 echo "configure:13710: checking size of long" >&5
13710 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13711 echo $ac_n "(cached) $ac_c" 1>&6
13713 if test "$cross_compiling" = yes; then
13714 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13722 FILE *f=fopen("conftestval", "w");
13724 fprintf(f, "%d\n", sizeof(long));
13728 if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13730 ac_cv_sizeof_long=`cat conftestval`
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13735 ac_cv_sizeof_long=0
13741 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13742 cat >> confdefs.h <<EOF
13743 #define SIZEOF_LONG $ac_cv_sizeof_long
13748 if test "$ac_cv_sizeof_int" -lt 4 ; then
13749 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13751 cat >> confdefs.h <<\EOF
13752 #define LBER_INT_T long
13755 cat >> confdefs.h <<\EOF
13756 #define LBER_TAG_T long
13759 cat >> confdefs.h <<\EOF
13760 #define LBER_SOCKET_T int
13764 cat >> confdefs.h <<\EOF
13765 #define LBER_INT_T int
13768 cat >> confdefs.h <<\EOF
13769 #define LBER_TAG_T long
13772 cat >> confdefs.h <<\EOF
13773 #define LBER_SOCKET_T int
13779 cat >> confdefs.h <<\EOF
13780 #define LBER_LEN_T long
13784 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13785 echo "configure:13786: checking for 8-bit clean memcmp" >&5
13786 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13787 echo $ac_n "(cached) $ac_c" 1>&6
13789 if test "$cross_compiling" = yes; then
13790 ac_cv_func_memcmp_clean=no
13792 cat > conftest.$ac_ext <<EOF
13793 #line 13794 "configure"
13794 #include "confdefs.h"
13798 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13799 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13803 if { (eval echo configure:13804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13805 ac_cv_func_memcmp_clean=yes
13807 echo "configure: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13810 ac_cv_func_memcmp_clean=no
13817 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13818 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13820 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13821 echo "configure:13822: checking for strftime" >&5
13822 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13823 echo $ac_n "(cached) $ac_c" 1>&6
13825 cat > conftest.$ac_ext <<EOF
13826 #line 13827 "configure"
13827 #include "confdefs.h"
13828 /* System header to define __stub macros and hopefully few prototypes,
13829 which can conflict with char strftime(); below. */
13830 #include <assert.h>
13831 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13839 /* The GNU C library defines this for functions which it implements
13840 to always fail with ENOSYS. Some functions are actually named
13841 something starting with __ and the normal name is an alias. */
13842 #if defined (__stub_strftime) || defined (__stub___strftime)
13850 if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 eval "ac_cv_func_strftime=yes"
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13857 eval "ac_cv_func_strftime=no"
13862 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13863 echo "$ac_t""yes" 1>&6
13864 cat >> confdefs.h <<\EOF
13865 #define HAVE_STRFTIME 1
13869 echo "$ac_t""no" 1>&6
13870 # strftime is in -lintl on SCO UNIX.
13871 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13872 echo "configure:13873: checking for strftime in -lintl" >&5
13873 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13875 echo $ac_n "(cached) $ac_c" 1>&6
13877 ac_save_LIBS="$LIBS"
13878 LIBS="-lintl $LIBS"
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 /* Override any gcc2 internal prototype to avoid an error. */
13883 /* We use char because int might match the return type of a gcc2
13884 builtin and then its argument prototype would still apply. */
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13893 eval "ac_cv_lib_$ac_lib_var=yes"
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13898 eval "ac_cv_lib_$ac_lib_var=no"
13901 LIBS="$ac_save_LIBS"
13904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13905 echo "$ac_t""yes" 1>&6
13906 cat >> confdefs.h <<\EOF
13907 #define HAVE_STRFTIME 1
13910 LIBS="-lintl $LIBS"
13912 echo "$ac_t""no" 1>&6
13918 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13919 echo "configure:13920: checking for inet_aton()" >&5
13920 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13921 echo $ac_n "(cached) $ac_c" 1>&6
13923 cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13927 #ifdef HAVE_SYS_TYPES_H
13928 # include <sys/types.h>
13930 #ifdef HAVE_SYS_SOCKET_H
13931 # include <sys/socket.h>
13932 # ifdef HAVE_SYS_SELECT_H
13933 # include <sys/select.h>
13935 # include <netinet/in.h>
13936 # ifdef HAVE_ARPA_INET_H
13937 # include <arpa/inet.h>
13943 int rc = inet_aton( "255.255.255.255", &in );
13946 if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13948 ol_cv_func_inet_aton=yes
13950 echo "configure: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13953 ol_cv_func_inet_aton=no
13958 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13959 if test $ol_cv_func_inet_aton != no; then
13960 cat >> confdefs.h <<\EOF
13961 #define HAVE_INET_ATON 1
13967 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13968 echo "configure:13969: checking for vprintf" >&5
13969 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13972 cat > conftest.$ac_ext <<EOF
13973 #line 13974 "configure"
13974 #include "confdefs.h"
13975 /* System header to define __stub macros and hopefully few prototypes,
13976 which can conflict with char vprintf(); below. */
13977 #include <assert.h>
13978 /* Override any gcc2 internal prototype to avoid an error. */
13979 /* We use char because int might match the return type of a gcc2
13980 builtin and then its argument prototype would still apply. */
13986 /* The GNU C library defines this for functions which it implements
13987 to always fail with ENOSYS. Some functions are actually named
13988 something starting with __ and the normal name is an alias. */
13989 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13997 if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13999 eval "ac_cv_func_vprintf=yes"
14001 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14004 eval "ac_cv_func_vprintf=no"
14009 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14010 echo "$ac_t""yes" 1>&6
14011 cat >> confdefs.h <<\EOF
14012 #define HAVE_VPRINTF 1
14016 echo "$ac_t""no" 1>&6
14019 if test "$ac_cv_func_vprintf" != yes; then
14020 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14021 echo "configure:14022: checking for _doprnt" >&5
14022 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14023 echo $ac_n "(cached) $ac_c" 1>&6
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 /* System header to define __stub macros and hopefully few prototypes,
14029 which can conflict with char _doprnt(); below. */
14030 #include <assert.h>
14031 /* Override any gcc2 internal prototype to avoid an error. */
14032 /* We use char because int might match the return type of a gcc2
14033 builtin and then its argument prototype would still apply. */
14039 /* The GNU C library defines this for functions which it implements
14040 to always fail with ENOSYS. Some functions are actually named
14041 something starting with __ and the normal name is an alias. */
14042 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14050 if { (eval echo configure:14051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14052 eval "ac_cv_func__doprnt=yes"
14054 echo "configure: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14057 eval "ac_cv_func__doprnt=no"
14062 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14063 echo "$ac_t""yes" 1>&6
14064 cat >> confdefs.h <<\EOF
14065 #define HAVE_DOPRNT 1
14069 echo "$ac_t""no" 1>&6
14075 if test $ac_cv_func_vprintf = yes ; then
14076 for ac_func in vsnprintf vsprintf
14078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14079 echo "configure:14080: checking for $ac_func" >&5
14080 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14081 echo $ac_n "(cached) $ac_c" 1>&6
14083 cat > conftest.$ac_ext <<EOF
14084 #line 14085 "configure"
14085 #include "confdefs.h"
14086 /* System header to define __stub macros and hopefully few prototypes,
14087 which can conflict with char $ac_func(); below. */
14088 #include <assert.h>
14089 /* Override any gcc2 internal prototype to avoid an error. */
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14097 /* The GNU C library defines this for functions which it implements
14098 to always fail with ENOSYS. Some functions are actually named
14099 something starting with __ and the normal name is an alias. */
14100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14108 if { (eval echo configure:14109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14110 eval "ac_cv_func_$ac_func=yes"
14112 echo "configure: failed program was:" >&5
14113 cat conftest.$ac_ext >&5
14115 eval "ac_cv_func_$ac_func=no"
14120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14121 echo "$ac_t""yes" 1>&6
14122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14123 cat >> confdefs.h <<EOF
14124 #define $ac_tr_func 1
14128 echo "$ac_t""no" 1>&6
14183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14184 echo "configure:14185: checking for $ac_func" >&5
14185 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14188 cat > conftest.$ac_ext <<EOF
14189 #line 14190 "configure"
14190 #include "confdefs.h"
14191 /* System header to define __stub macros and hopefully few prototypes,
14192 which can conflict with char $ac_func(); below. */
14193 #include <assert.h>
14194 /* Override any gcc2 internal prototype to avoid an error. */
14195 /* We use char because int might match the return type of a gcc2
14196 builtin and then its argument prototype would still apply. */
14202 /* The GNU C library defines this for functions which it implements
14203 to always fail with ENOSYS. Some functions are actually named
14204 something starting with __ and the normal name is an alias. */
14205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14215 eval "ac_cv_func_$ac_func=yes"
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 eval "ac_cv_func_$ac_func=no"
14225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14226 echo "$ac_t""yes" 1>&6
14227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14228 cat >> confdefs.h <<EOF
14229 #define $ac_tr_func 1
14233 echo "$ac_t""no" 1>&6
14238 for ac_func in getopt tempnam
14240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14241 echo "configure:14242: checking for $ac_func" >&5
14242 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func(); below. */
14250 #include <assert.h>
14251 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14259 /* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
14262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14270 if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14272 eval "ac_cv_func_$ac_func=yes"
14274 echo "configure: failed program was:" >&5
14275 cat conftest.$ac_ext >&5
14277 eval "ac_cv_func_$ac_func=no"
14282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14283 echo "$ac_t""yes" 1>&6
14284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14285 cat >> confdefs.h <<EOF
14286 #define $ac_tr_func 1
14290 echo "$ac_t""no" 1>&6
14291 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14297 # Check Configuration
14298 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14299 echo "configure:14300: checking declaration of sys_errlist" >&5
14300 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14301 echo $ac_n "(cached) $ac_c" 1>&6
14304 cat > conftest.$ac_ext <<EOF
14305 #line 14306 "configure"
14306 #include "confdefs.h"
14309 #include <sys/types.h>
14312 char *c = (char *) *sys_errlist
14315 if { (eval echo configure:14316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14317 ol_cv_dcl_sys_errlist=yes
14318 ol_cv_have_sys_errlist=yes
14320 echo "configure: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14323 ol_cv_dcl_sys_errlist=no
14328 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14330 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14331 if test $ol_cv_dcl_sys_errlist = no ; then
14332 cat >> confdefs.h <<\EOF
14333 #define DECL_SYS_ERRLIST 1
14337 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14338 echo "configure:14339: checking existence of sys_errlist" >&5
14339 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14340 echo $ac_n "(cached) $ac_c" 1>&6
14343 cat > conftest.$ac_ext <<EOF
14344 #line 14345 "configure"
14345 #include "confdefs.h"
14348 char *c = (char *) *sys_errlist
14351 if { (eval echo configure:14352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14353 ol_cv_have_sys_errlist=yes
14355 echo "configure: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14358 ol_cv_have_sys_errlist=no
14363 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14365 if test $ol_cv_have_sys_errlist = yes ; then
14366 cat >> confdefs.h <<\EOF
14367 #define HAVE_SYS_ERRLIST 1
14374 if test "$ol_enable_debug" != no ; then
14375 cat >> confdefs.h <<\EOF
14376 #define LDAP_DEBUG 1
14380 if test "$ol_enable_syslog" = yes ; then
14381 cat >> confdefs.h <<\EOF
14382 #define LDAP_SYSLOG 1
14386 if test "$ol_enable_libui" = yes ; then
14387 cat >> confdefs.h <<\EOF
14388 #define LDAP_LIBUI 1
14392 if test "$ol_enable_cache" = no ; then
14393 cat >> confdefs.h <<\EOF
14394 #define LDAP_NOCACHE 1
14398 if test "$ol_enable_dns" != no ; then
14399 cat >> confdefs.h <<\EOF
14400 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14404 if test "$ol_enable_proctitle" != no ; then
14405 cat >> confdefs.h <<\EOF
14406 #define LDAP_PROCTITLE 1
14410 if test "$ol_enable_referrals" != no ; then
14411 cat >> confdefs.h <<\EOF
14412 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14416 if test "$ol_enable_cldap" != no ; then
14417 cat >> confdefs.h <<\EOF
14418 #define LDAP_CONNECTIONLESS 1
14423 if test "$ol_enable_crypt" != no ; then
14424 cat >> confdefs.h <<\EOF
14425 #define SLAPD_CRYPT 1
14429 if test "$ol_enable_cleartext" != no ; then
14430 cat >> confdefs.h <<\EOF
14431 #define SLAPD_CLEARTEXT 1
14435 if test "$ol_enable_multimaster" != no ; then
14436 cat >> confdefs.h <<\EOF
14437 #define SLAPD_MULTIMASTER 1
14441 if test "$ol_enable_phonetic" != no ; then
14442 cat >> confdefs.h <<\EOF
14443 #define SLAPD_PHONETIC 1
14447 if test "$ol_enable_rlookups" != no ; then
14448 cat >> confdefs.h <<\EOF
14449 #define SLAPD_RLOOKUPS 1
14453 if test "$ol_enable_aci" != no ; then
14454 cat >> confdefs.h <<\EOF
14455 #define SLAPD_ACI_ENABLED 1
14459 if test "$ol_enable_discreteaci" != no ; then
14460 cat >> confdefs.h <<\EOF
14461 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14466 if test "$ol_link_modules" != no ; then
14467 cat >> confdefs.h <<\EOF
14468 #define SLAPD_MODULES 1
14472 MODULES_LIBS=-lltdl
14473 SLAPD_MODULES_LDFLAGS="-dlopen self"
14476 if test "$ol_link_bdb2" != no ; then
14477 cat >> confdefs.h <<\EOF
14478 #define SLAPD_BDB2 1
14483 if test "$ol_with_bdb2_module" != static ; then
14484 cat >> confdefs.h <<\EOF
14485 #define SLAPD_BDB2_DYNAMIC 1
14489 BUILD_BDB2_DYNAMIC=shared
14490 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14494 if test "$ol_enable_ldap" != no ; then
14495 cat >> confdefs.h <<\EOF
14496 #define SLAPD_LDAP 1
14501 if test "$ol_with_ldap_module" != static ; then
14502 cat >> confdefs.h <<\EOF
14503 #define SLAPD_LDAP_DYNAMIC 1
14507 BUILD_LDAP_DYNAMIC=shared
14508 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14512 if test "$ol_link_ldbm" != no ; then
14513 cat >> confdefs.h <<\EOF
14514 #define SLAPD_LDBM 1
14519 if test "$ol_with_ldbm_module" != static ; then
14520 cat >> confdefs.h <<\EOF
14521 #define SLAPD_LDBM_DYNAMIC 1
14525 BUILD_LDBM_DYNAMIC=shared
14526 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14530 if test "$ol_enable_passwd" != no ; then
14531 cat >> confdefs.h <<\EOF
14532 #define SLAPD_PASSWD 1
14537 if test "$ol_with_passwd_module" != static ; then
14538 cat >> confdefs.h <<\EOF
14539 #define SLAPD_PASSWD_DYNAMIC 1
14543 BUILD_PASSWD_DYNAMIC=shared
14544 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14548 if test "$ol_link_perl" != no ; then
14549 cat >> confdefs.h <<\EOF
14550 #define SLAPD_PERL 1
14555 if test "$ol_with_perl_module" != static ; then
14556 cat >> confdefs.h <<\EOF
14557 #define SLAPD_PERL_DYNAMIC 1
14561 BUILD_PERL_DYNAMIC=shared
14562 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14566 if test "$ol_enable_shell" != no ; then
14567 cat >> confdefs.h <<\EOF
14568 #define SLAPD_SHELL 1
14573 if test "$ol_with_shell_module" != static ; then
14574 cat >> confdefs.h <<\EOF
14575 #define SLAPD_SHELL_DYNAMIC 1
14579 BUILD_SHELL_DYNAMIC=shared
14580 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14584 if test "$ol_enable_tcl" != no ; then
14585 cat >> confdefs.h <<\EOF
14586 #define SLAPD_TCL 1
14591 if test "$ol_with_tcl_module" != static; then
14592 cat >> confdefs.h <<\EOF
14593 #define SLAPD_TCL_DYNAMIC 1
14597 BUILD_TCL_DYNAMIC=shared
14598 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14602 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14603 $BUILD_SLAPD = yes ; then
14607 if test "$ol_link_isode" != no ; then
14657 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14660 # Let make expand exec_prefix.
14661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14663 # Any assignment to VPATH causes Sun make to only execute
14664 # the first set of double-colon rules, so remove it if not needed.
14665 # If there is a colon in the path, we need to keep it.
14666 if test "x$srcdir" = x.; then
14667 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14670 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14672 DEFS=-DHAVE_CONFIG_H
14674 # Without the "./", some shells look in PATH for config.status.
14675 : ${CONFIG_STATUS=./config.status}
14677 echo creating $CONFIG_STATUS
14678 rm -f $CONFIG_STATUS
14679 cat > $CONFIG_STATUS <<EOF
14681 # Generated automatically by configure.
14682 # Run this file to recreate the current configuration.
14683 # This directory was configured as follows,
14684 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14686 # $0 $ac_configure_args
14688 # Compiler output produced by configure, useful for debugging
14689 # configure, is in ./config.log if it exists.
14691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14694 case "\$ac_option" in
14695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14696 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14697 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14698 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14699 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14701 -help | --help | --hel | --he | --h)
14702 echo "\$ac_cs_usage"; exit 0 ;;
14703 *) echo "\$ac_cs_usage"; exit 1 ;;
14707 ac_given_srcdir=$srcdir
14708 ac_given_INSTALL="$INSTALL"
14710 trap 'rm -fr `echo "\
14711 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14712 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14713 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14714 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14715 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14716 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14717 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14718 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14719 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14720 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14721 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14722 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14723 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14724 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14725 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14726 include/Makefile:build/top.mk:include/Makefile.in \
14727 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14728 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14729 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14730 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14731 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14732 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14733 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14734 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14735 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14736 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14737 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14738 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14739 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14740 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14741 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14742 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14743 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14744 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14745 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14746 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14747 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14748 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14749 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14750 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14751 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14752 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14753 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14755 cat >> $CONFIG_STATUS <<EOF
14757 # Protect against being on the right side of a sed subst in config.status.
14758 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14759 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14763 s%@CFLAGS@%$CFLAGS%g
14764 s%@CPPFLAGS@%$CPPFLAGS%g
14765 s%@CXXFLAGS@%$CXXFLAGS%g
14766 s%@FFLAGS@%$FFLAGS%g
14768 s%@LDFLAGS@%$LDFLAGS%g
14770 s%@exec_prefix@%$exec_prefix%g
14771 s%@prefix@%$prefix%g
14772 s%@program_transform_name@%$program_transform_name%g
14773 s%@bindir@%$bindir%g
14774 s%@sbindir@%$sbindir%g
14775 s%@libexecdir@%$libexecdir%g
14776 s%@datadir@%$datadir%g
14777 s%@sysconfdir@%$sysconfdir%g
14778 s%@sharedstatedir@%$sharedstatedir%g
14779 s%@localstatedir@%$localstatedir%g
14780 s%@libdir@%$libdir%g
14781 s%@includedir@%$includedir%g
14782 s%@oldincludedir@%$oldincludedir%g
14783 s%@infodir@%$infodir%g
14784 s%@mandir@%$mandir%g
14786 s%@host_alias@%$host_alias%g
14787 s%@host_cpu@%$host_cpu%g
14788 s%@host_vendor@%$host_vendor%g
14789 s%@host_os@%$host_os%g
14790 s%@target@%$target%g
14791 s%@target_alias@%$target_alias%g
14792 s%@target_cpu@%$target_cpu%g
14793 s%@target_vendor@%$target_vendor%g
14794 s%@target_os@%$target_os%g
14796 s%@build_alias@%$build_alias%g
14797 s%@build_cpu@%$build_cpu%g
14798 s%@build_vendor@%$build_vendor%g
14799 s%@build_os@%$build_os%g
14800 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14801 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14802 s%@INSTALL_DATA@%$INSTALL_DATA%g
14803 s%@PACKAGE@%$PACKAGE%g
14804 s%@VERSION@%$VERSION%g
14805 s%@ACLOCAL@%$ACLOCAL%g
14806 s%@AUTOCONF@%$AUTOCONF%g
14807 s%@AUTOMAKE@%$AUTOMAKE%g
14808 s%@AUTOHEADER@%$AUTOHEADER%g
14809 s%@MAKEINFO@%$MAKEINFO%g
14810 s%@install_sh@%$install_sh%g
14813 s%@AMTARFLAGS@%$AMTARFLAGS%g
14814 s%@SET_MAKE@%$SET_MAKE%g
14815 s%@top_builddir@%$top_builddir%g
14816 s%@ldap_subdir@%$ldap_subdir%g
14818 s%@RANLIB@%$RANLIB%g
14822 s%@LIBTOOL@%$LIBTOOL%g
14824 s%@SENDMAIL@%$SENDMAIL%g
14825 s%@EDITOR@%$EDITOR%g
14826 s%@FINGER@%$FINGER%g
14827 s%@PERLBIN@%$PERLBIN%g
14829 s%@EXEEXT@%$EXEEXT%g
14830 s%@OBJEXT@%$OBJEXT%g
14831 s%@OL_MKDEP@%$OL_MKDEP%g
14832 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14834 s%@LIBOBJS@%$LIBOBJS%g
14835 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
14836 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14837 s%@BUILD_BDB2@%$BUILD_BDB2%g
14838 s%@BUILD_LDAP@%$BUILD_LDAP%g
14839 s%@BUILD_LDBM@%$BUILD_LDBM%g
14840 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14841 s%@BUILD_PERL@%$BUILD_PERL%g
14842 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14843 s%@BUILD_SHELL@%$BUILD_SHELL%g
14844 s%@BUILD_TCL@%$BUILD_TCL%g
14845 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14846 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14847 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14848 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14849 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14850 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14851 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14852 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14853 s%@LDAP_LIBS@%$LDAP_LIBS%g
14854 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
14855 s%@LDIF_LIBS@%$LDIF_LIBS%g
14856 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14857 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14858 s%@LDBM_LIBS@%$LDBM_LIBS%g
14859 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14860 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14861 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14862 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14863 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14864 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14865 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14866 s%@KRB_LIBS@%$KRB_LIBS%g
14867 s%@READLINE_LIBS@%$READLINE_LIBS%g
14868 s%@SASL_LIBS@%$SASL_LIBS%g
14869 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14870 s%@TLS_LIBS@%$TLS_LIBS%g
14871 s%@MODULES_LIBS@%$MODULES_LIBS%g
14876 cat >> $CONFIG_STATUS <<\EOF
14878 # Split the substitutions into bite-sized pieces for seds with
14879 # small command number limits, like on Digital OSF/1 and HP-UX.
14880 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14881 ac_file=1 # Number of current file.
14882 ac_beg=1 # First line for current file.
14883 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14886 while $ac_more_lines; do
14887 if test $ac_beg -gt 1; then
14888 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14890 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14892 if test ! -s conftest.s$ac_file; then
14893 ac_more_lines=false
14894 rm -f conftest.s$ac_file
14896 if test -z "$ac_sed_cmds"; then
14897 ac_sed_cmds="sed -f conftest.s$ac_file"
14899 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14901 ac_file=`expr $ac_file + 1`
14903 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14906 if test -z "$ac_sed_cmds"; then
14911 cat >> $CONFIG_STATUS <<EOF
14913 CONFIG_FILES=\${CONFIG_FILES-"\
14914 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14915 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14916 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14917 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14918 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14919 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14920 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14921 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14922 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14923 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14924 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14925 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14926 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14927 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14928 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14929 include/Makefile:build/top.mk:include/Makefile.in \
14930 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14931 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14932 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14933 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14934 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14935 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14936 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14937 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14938 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14939 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14940 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14941 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14942 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14943 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14944 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14945 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14946 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14947 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14948 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14949 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14950 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14951 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14952 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14953 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14954 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14955 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14958 cat >> $CONFIG_STATUS <<\EOF
14959 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14962 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14963 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14964 *) ac_file_in="${ac_file}.in" ;;
14967 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14969 # Remove last slash and all that follows it. Not all systems have dirname.
14970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14972 # The file is in a subdirectory.
14973 test ! -d "$ac_dir" && mkdir "$ac_dir"
14974 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14975 # A "../" for each directory in $ac_dir_suffix.
14976 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14978 ac_dir_suffix= ac_dots=
14981 case "$ac_given_srcdir" in
14983 if test -z "$ac_dots"; then top_srcdir=.
14984 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14985 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14986 *) # Relative path.
14987 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14988 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14991 case "$ac_given_INSTALL" in
14992 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14993 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14996 echo creating "$ac_file"
14998 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15000 *Makefile*) ac_comsub="1i\\
15001 # $configure_input" ;;
15005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15007 s%@configure_input@%$configure_input%g
15008 s%@srcdir@%$srcdir%g
15009 s%@top_srcdir@%$top_srcdir%g
15010 s%@INSTALL@%$INSTALL%g
15011 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15015 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15016 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15018 # ac_d sets the value in "#define NAME VALUE" lines.
15019 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15020 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15023 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15024 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15025 ac_uB='\([ ]\)%\1#\2define\3'
15028 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15029 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15030 ac_eB='$%\1#\2define\3'
15034 if test "${CONFIG_HEADERS+set}" != set; then
15036 cat >> $CONFIG_STATUS <<EOF
15037 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
15039 cat >> $CONFIG_STATUS <<\EOF
15041 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15044 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15045 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15046 *) ac_file_in="${ac_file}.in" ;;
15049 echo creating $ac_file
15051 rm -f conftest.frag conftest.in conftest.out
15052 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15053 cat $ac_file_inputs > conftest.in
15057 # Transform confdefs.h into a sed script conftest.vals that substitutes
15058 # the proper values into config.h.in to produce config.h. And first:
15059 # Protect against being on the right side of a sed subst in config.status.
15060 # Protect against being in an unquoted here document in config.status.
15061 rm -f conftest.vals
15062 cat > conftest.hdr <<\EOF
15065 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15069 sed -n -f conftest.hdr confdefs.h > conftest.vals
15072 # This sed command replaces #undef with comments. This is necessary, for
15073 # example, in the case of _POSIX_SOURCE, which is predefined and required
15074 # on some systems where configure will not decide to define it.
15075 cat >> conftest.vals <<\EOF
15076 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15079 # Break up conftest.vals because some shells have a limit on
15080 # the size of here documents, and old seds have small limits too.
15082 rm -f conftest.tail
15085 ac_lines=`grep -c . conftest.vals`
15086 # grep -c gives empty output for an empty file on some AIX systems.
15087 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15088 # Write a limited-size here document to conftest.frag.
15089 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15090 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15092 sed -f conftest.frag conftest.in > conftest.out
15094 mv conftest.out conftest.in
15095 ' >> $CONFIG_STATUS
15096 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15097 rm -f conftest.vals
15098 mv conftest.tail conftest.vals
15100 rm -f conftest.vals
15102 cat >> $CONFIG_STATUS <<\EOF
15103 rm -f conftest.frag conftest.h
15104 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15105 cat conftest.in >> conftest.h
15107 if cmp -s $ac_file conftest.h 2>/dev/null; then
15108 echo "$ac_file is unchanged"
15111 # Remove last slash and all that follows it. Not all systems have dirname.
15112 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15113 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15114 # The file is in a subdirectory.
15115 test ! -d "$ac_dir" && mkdir "$ac_dir"
15118 mv conftest.h $ac_file
15123 cat >> $CONFIG_STATUS <<EOF
15126 cat >> $CONFIG_STATUS <<\EOF
15129 echo Please \"make depend\" to build dependencies
15133 chmod +x $CONFIG_STATUS
15134 rm -fr confdefs* $ac_clean_files
15135 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1