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 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-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)"
52 --enable-ldapd enable building ldapd (no)"
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-module module type (static)"
90 --with-ldbm-api use LDBM API (auto)"
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)"
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 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_module
1836 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1837 if test "${with_ldbm_module+set}" = set; then
1838 withval="$with_ldbm_module"
1841 for ol_val in static dynamic ; 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_module" 1>&2; exit 1; }
1849 ol_with_ldbm_module="$ol_arg"
1852 ol_with_ldbm_module="static"
1854 # end --with-ldbm_module
1856 # OpenLDAP --with-ldbm_api
1857 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1858 if test "${with_ldbm_api+set}" = set; then
1859 withval="$with_ldbm_api"
1862 for ol_val in auto db2 db mdbm gdbm ndbm manual ; 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_api" 1>&2; exit 1; }
1870 ol_with_ldbm_api="$ol_arg"
1873 ol_with_ldbm_api="auto"
1875 # end --with-ldbm_api
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
2394 *-*-aix*) if test -z "$CC" ; then
2395 case "$ol_with_threads" in
2396 auto | yes | posix) ol_aix_threads=yes ;;
2402 if test $ol_aix_threads = yes ; then
2403 if test -z "${CC}" ; then
2404 for ac_prog in cc_r xlc_r cc
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_word" >&5
2410 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2418 for ac_dir in $ac_dummy; do
2419 test -z "$ac_dir" && ac_dir=.
2420 if test -f $ac_dir/$ac_word; then
2421 ac_cv_prog_CC="$ac_prog"
2429 if test -n "$CC"; then
2430 echo "$ac_t""$CC" 1>&6
2432 echo "$ac_t""no" 1>&6
2435 test -n "$CC" && break
2439 if test "$CC" = cc ; then
2440 if test $ol_with_threads != auto ; then
2441 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2443 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2449 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2450 ol_with_threads=posix
2451 ol_cv_pthread_create=yes
2455 if test -z "${CC}"; then
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_word" >&5
2462 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_prog_CC="$ac_prog"
2481 if test -n "$CC"; then
2482 echo "$ac_t""$CC" 1>&6
2484 echo "$ac_t""no" 1>&6
2487 test -n "$CC" && break
2494 # Check whether --enable-fast-install or --disable-fast-install was given.
2495 if test "${enable_fast_install+set}" = set; then
2496 enableval="$enable_fast_install"
2497 p=${PACKAGE-default}
2498 case "$enableval" in
2499 yes) enable_fast_install=yes ;;
2500 no) enable_fast_install=no ;;
2502 enable_fast_install=no
2503 # Look at the argument we got. We use all the common list separators.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2505 for pkg in $enableval; do
2506 if test "X$pkg" = "X$p"; then
2507 enable_fast_install=yes
2514 enable_fast_install=yes
2517 # Extract the first word of "ranlib", so it can be a program name with args.
2518 set dummy ranlib; ac_word=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test -n "$RANLIB"; then
2525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529 for ac_dir in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_prog_RANLIB="ranlib"
2537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2540 RANLIB="$ac_cv_prog_RANLIB"
2541 if test -n "$RANLIB"; then
2542 echo "$ac_t""$RANLIB" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 # Extract the first word of "gcc", so it can be a program name with args.
2548 set dummy gcc; ac_word=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2559 for ac_dir in $ac_dummy; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2570 if test -n "$CC"; then
2571 echo "$ac_t""$CC" 1>&6
2573 echo "$ac_t""no" 1>&6
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# -gt 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 set dummy "$ac_dir/$ac_word" "$@"
2619 if test -n "$CC"; then
2620 echo "$ac_t""$CC" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 if test -z "$CC"; then
2626 case "`uname -s`" in
2627 *win32* | *WIN32* | *CYGWIN*)
2628 # Extract the first word of "cl", so it can be a program name with args.
2629 set dummy cl; ac_word=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2651 if test -n "$CC"; then
2652 echo "$ac_t""$CC" 1>&6
2654 echo "$ac_t""no" 1>&6
2659 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2662 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2670 cross_compiling=$ac_cv_prog_cc_cross
2672 cat > conftest.$ac_ext << EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 ac_cv_prog_cc_works=yes
2681 # If we can't run a trivial program, we are probably using a cross compiler.
2682 if (./conftest; exit) 2>/dev/null; then
2683 ac_cv_prog_cc_cross=no
2685 ac_cv_prog_cc_cross=yes
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 ac_cv_prog_cc_works=no
2694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2698 cross_compiling=$ac_cv_prog_cc_cross
2700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2701 if test $ac_cv_prog_cc_works = no; then
2702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2705 echo "configure:2706: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2707 cross_compiling=$ac_cv_prog_cc_cross
2709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2710 echo "configure:2711: checking whether we are using GNU C" >&5
2711 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.c <<EOF
2719 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2726 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2728 if test $ac_cv_prog_gcc = yes; then
2734 ac_test_CFLAGS="${CFLAGS+set}"
2735 ac_save_CFLAGS="$CFLAGS"
2737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2738 echo "configure:2739: checking whether ${CC-cc} accepts -g" >&5
2739 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 echo 'void f(){}' > conftest.c
2743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2752 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS="$ac_save_CFLAGS"
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2762 if test "$GCC" = yes; then
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771 withval="$with_gnu_ld"
2772 test "$withval" = no || with_gnu_ld=yes
2778 if test "$ac_cv_prog_gcc" = yes; then
2779 # Check if gcc -print-prog-name=ld gives a path.
2780 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2781 echo "configure:2782: checking for ld used by GCC" >&5
2782 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2784 # Accept absolute paths.
2785 [\\/]* | [A-Za-z]:[\\/]*)
2786 re_direlt='/[^/][^/]*/\.\./'
2787 # Canonicalize the path of ld
2788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2792 test -z "$LD" && LD="$ac_prog"
2795 # If it fails, then pretend we aren't using GCC.
2799 # If it is relative, then search for the first ld in PATH.
2803 elif test "$with_gnu_ld" = yes; then
2804 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2805 echo "configure:2806: checking for GNU ld" >&5
2807 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2808 echo "configure:2809: checking for non-GNU ld" >&5
2810 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 if test -z "$LD"; then
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2815 for ac_dir in $PATH; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2818 ac_cv_path_LD="$ac_dir/$ac_prog"
2819 # Check to see if the program is GNU ld. I'd rather use --version,
2820 # but apparently some GNU ld's only accept -v.
2821 # Break only if it was the GNU/non-GNU ld that we prefer.
2822 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2823 test "$with_gnu_ld" != no && break
2825 test "$with_gnu_ld" != yes && break
2831 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2836 if test -n "$LD"; then
2837 echo "$ac_t""$LD" 1>&6
2839 echo "$ac_t""no" 1>&6
2841 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2843 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2844 echo "configure:2845: checking if the linker ($LD) is GNU ld" >&5
2845 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2849 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2850 ac_cv_prog_gnu_ld=yes
2852 ac_cv_prog_gnu_ld=no
2856 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2859 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2860 echo "configure:2861: checking for BSD-compatible nm" >&5
2861 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 if test -n "$NM"; then
2865 # Let the user override the test.
2868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2869 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2870 test -z "$ac_dir" && ac_dir=.
2871 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2872 # Check to see if the nm accepts a BSD-compat flag.
2873 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2874 # nm: unknown option "B" ignored
2875 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2876 ac_cv_path_NM="$ac_dir/nm -B"
2878 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2879 ac_cv_path_NM="$ac_dir/nm -p"
2882 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2883 continue # so that we can try to find one that supports BSD flags
2888 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2893 echo "$ac_t""$NM" 1>&6
2896 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2897 echo "configure:2898: checking whether ln -s works" >&5
2898 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2902 if ln -s X conftestdata 2>/dev/null
2905 ac_cv_prog_LN_S="ln -s"
2910 LN_S="$ac_cv_prog_LN_S"
2911 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2912 echo "$ac_t""yes" 1>&6
2914 echo "$ac_t""no" 1>&6
2918 # Check for any special flags to pass to ltconfig.
2919 libtool_flags="--cache-file=$cache_file"
2920 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2921 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2922 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2923 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2924 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2925 libtool_flags="$libtool_flags --enable-dlopen"
2927 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2928 if test "${enable_libtool_lock+set}" = set; then
2929 enableval="$enable_libtool_lock"
2933 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2934 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2936 # Some flags need to be propagated to the compiler or linker for good
2940 # Find out which ABI we are using.
2941 echo '#line 2942 "configure"' > conftest.$ac_ext
2942 if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2943 case "`/usr/bin/file conftest.o`" in
2959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2960 SAVE_CFLAGS="$CFLAGS"
2961 CFLAGS="$CFLAGS -belf"
2962 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2963 echo "configure:2964: checking whether the C compiler needs -belf" >&5
2964 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2977 lt_cv_cc_needs_belf=yes
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 lt_cv_cc_needs_belf=no
2987 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2990 CFLAGS="$SAVE_CFLAGS"
2998 # Save cache, so that ltconfig can load it
3001 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3002 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3003 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3004 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3005 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3006 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3007 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3008 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3010 # Reload cache, that may have been modified by ltconfig
3013 # This can be used to rebuild libtool when needed
3014 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3016 # Always use our own libtool.
3017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3019 # Redirect the config.log output again, so that the ltconfig log is not
3020 # clobbered by the next message.
3021 exec 5>>./config.log
3024 for ac_prog in mawk gawk nawk awk
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3029 echo "configure:3030: checking for $ac_word" >&5
3030 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3038 for ac_dir in $ac_dummy; do
3039 test -z "$ac_dir" && ac_dir=.
3040 if test -f $ac_dir/$ac_word; then
3041 ac_cv_prog_AWK="$ac_prog"
3048 AWK="$ac_cv_prog_AWK"
3049 if test -n "$AWK"; then
3050 echo "$ac_t""$AWK" 1>&6
3052 echo "$ac_t""no" 1>&6
3055 test -n "$AWK" && break
3058 # test for ln hardlink support
3059 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3060 echo "configure:3061: checking whether ln works" >&5
3061 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 rm -f conftest.src conftest.dst
3065 echo "conftest" > conftest.src
3066 if ln conftest.src conftest.dst 2>/dev/null
3068 ol_cv_prog_LN_H="ln"
3070 ol_cv_prog_LN_H="cp"
3072 rm -f conftest.src conftest.dst
3075 LN_H="$ol_cv_prog_LN_H"
3076 if test "$ol_cv_prog_LN_H" = "ln"; then
3077 echo "$ac_t""yes" 1>&6
3079 echo "$ac_t""no" 1>&6
3082 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3083 echo "configure:3084: checking whether ln -s works" >&5
3084 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3088 if ln -s X conftestdata 2>/dev/null
3091 ac_cv_prog_LN_S="ln -s"
3096 LN_S="$ac_cv_prog_LN_S"
3097 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3098 echo "$ac_t""yes" 1>&6
3100 echo "$ac_t""no" 1>&6
3104 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3108 # Extract the first word of "sendmail", so it can be a program name with args.
3109 set dummy sendmail; ac_word=$2
3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_word" >&5
3112 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3120 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3124 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3133 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3137 SENDMAIL="$ac_cv_path_SENDMAIL"
3138 if test -n "$SENDMAIL"; then
3139 echo "$ac_t""$SENDMAIL" 1>&6
3141 echo "$ac_t""no" 1>&6
3144 # Extract the first word of "vi", so it can be a program name with args.
3145 set dummy vi; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3153 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3156 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3160 ac_dummy="$PATH:/usr/ucb"
3161 for ac_dir in $ac_dummy; do
3162 test -z "$ac_dir" && ac_dir=.
3163 if test -f $ac_dir/$ac_word; then
3164 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3169 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3173 EDITOR="$ac_cv_path_EDITOR"
3174 if test -n "$EDITOR"; then
3175 echo "$ac_t""$EDITOR" 1>&6
3177 echo "$ac_t""no" 1>&6
3180 # Extract the first word of "finger", so it can be a program name with args.
3181 set dummy finger; ac_word=$2
3182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_word" >&5
3184 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3192 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3196 ac_dummy="$PATH:/usr/ucb"
3197 for ac_dir in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_path_FINGER="$ac_dir/$ac_word"
3205 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3209 FINGER="$ac_cv_path_FINGER"
3210 if test -n "$FINGER"; then
3211 echo "$ac_t""$FINGER" 1>&6
3213 echo "$ac_t""no" 1>&6
3218 if test $ol_enable_perl != no ; then
3219 # Extract the first word of "perl", so it can be a program name with args.
3220 set dummy perl; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3228 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3231 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3236 for ac_dir in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir=.
3238 if test -f $ac_dir/$ac_word; then
3239 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3244 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3248 PERLBIN="$ac_cv_path_PERLBIN"
3249 if test -n "$PERLBIN"; then
3250 echo "$ac_t""$PERLBIN" 1>&6
3252 echo "$ac_t""no" 1>&6
3256 if test "no$PERLBIN" = "no" ; then
3257 if test $ol_enable_perl = yes ; then
3258 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3262 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3263 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3269 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3270 echo "configure:3271: checking how to run the C preprocessor" >&5
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3275 if test -z "$CPP"; then
3276 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 # This must be in double quotes, not single quotes, because CPP may get
3280 # substituted into the Makefile and "${CC-cc}" will confuse make.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp.
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 CPP="${CC-cc} -E -traditional-cpp"
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 CPP="${CC-cc} -nologo -E"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3325 { (eval echo configure:3326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3327 if test -z "$ac_err"; then
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3341 ac_cv_prog_CPP="$CPP"
3343 CPP="$ac_cv_prog_CPP"
3345 ac_cv_prog_CPP="$CPP"
3347 echo "$ac_t""$CPP" 1>&6
3350 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3351 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3353 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3354 echo "configure: warning: programs compiled here do run here..." 1>&2
3355 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3357 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3358 echo "configure: warning: programs compiled here do not run here..." 1>&2
3359 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3362 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3363 echo "configure:3364: checking for AIX" >&5
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "yes" >/dev/null 2>&1; then
3375 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3376 #define _ALL_SOURCE 1
3381 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3387 echo "configure:3388: checking for POSIXized ISC" >&5
3388 if test -d /etc/conf/kconfig.d &&
3389 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3391 echo "$ac_t""yes" 1>&6
3392 ISC=yes # If later tests want to check for ISC.
3393 cat >> confdefs.h <<\EOF
3394 #define _POSIX_SOURCE 1
3397 if test "$GCC" = yes; then
3403 echo "$ac_t""no" 1>&6
3407 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3408 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for minix/config.h" >&5
3410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <minix/config.h>
3418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419 { (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421 if test -z "$ac_err"; then
3423 eval "ac_cv_header_$ac_safe=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_header_$ac_safe=no"
3433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3437 echo "$ac_t""no" 1>&6
3441 if test "$MINIX" = yes; then
3442 cat >> confdefs.h <<\EOF
3443 #define _POSIX_SOURCE 1
3446 cat >> confdefs.h <<\EOF
3447 #define _POSIX_1_SOURCE 2
3450 cat >> confdefs.h <<\EOF
3457 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3458 echo "configure:3459: checking for Cygwin environment" >&5
3459 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3469 #define __CYGWIN__ __CYGWIN32__
3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3486 echo "$ac_t""$ac_cv_cygwin" 1>&6
3488 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3489 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3490 echo "configure:3491: checking for mingw32 environment" >&5
3491 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3514 echo "$ac_t""$ac_cv_mingw32" 1>&6
3516 test "$ac_cv_mingw32" = yes && MINGW32=yes
3517 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3518 echo "configure:3519: checking for EMX OS/2 environment" >&5
3519 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3542 echo "$ac_t""$ac_cv_emxos2" 1>&6
3544 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3548 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3549 echo "configure:3550: checking for executable suffix" >&5
3550 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3557 echo 'int main () { return 0; }' > conftest.$ac_ext
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3560 for file in conftest.*; do
3562 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3563 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3567 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3570 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3575 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3576 echo "$ac_t""${ac_cv_exeext}" 1>&6
3579 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3580 echo "configure:3581: checking for object suffix" >&5
3581 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3585 echo 'int i = 1;' > conftest.$ac_ext
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 for ac_file in conftest.*; do
3590 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3594 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3599 echo "$ac_t""$ac_cv_objext" 1>&6
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$ac_cv_objext
3604 cat >> confdefs.h <<EOF
3605 #define EXEEXT "${EXEEXT}"
3609 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3610 echo "configure:3611: checking for be_app in -lbe" >&5
3611 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3612 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 ac_save_LIBS="$LIBS"
3616 LIBS="-lbe -lroot -lnet $LIBS"
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* Override any gcc2 internal prototype to avoid an error. */
3621 /* We use char because int might match the return type of a gcc2
3622 builtin and then its argument prototype would still apply. */
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 eval "ac_cv_lib_$ac_lib_var=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 eval "ac_cv_lib_$ac_lib_var=no"
3639 LIBS="$ac_save_LIBS"
3642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 LIBS="$LIBS -lbe -lroot -lnet"
3646 echo "$ac_t""no" 1>&6
3654 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3655 echo "configure:3656: checking for ${CC-cc} option to accept ANSI C" >&5
3656 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 am_cv_prog_cc_stdc=no
3661 # Don't try gcc -ansi; that turns off useful extensions and
3662 # breaks some systems' header files.
3663 # AIX -qlanglvl=ansi
3664 # Ultrix and OSF/1 -std1
3665 # HP-UX 10.20 and later -Ae
3666 # HP-UX older versions -Aa -D_HPUX_SOURCE
3667 # SVR4 -Xc -D__EXTENSIONS__
3668 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 CC="$ac_save_CC $ac_arg"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3692 s = g (p, va_arg (v,int));
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 am_cv_prog_cc_stdc="$ac_arg"; break
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3722 if test -z "$am_cv_prog_cc_stdc"; then
3723 echo "$ac_t""none needed" 1>&6
3725 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3727 case "x$am_cv_prog_cc_stdc" in
3729 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3732 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3733 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3736 # test for make depend flag
3739 if test -z "${MKDEP}"; then
3741 if test -z "${MKDEP_FLAGS}"; then
3742 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3743 echo "configure:3744: checking for ${OL_MKDEP} depend flag" >&5
3744 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3749 for flag in "-M" "-xM"; do
3750 cat > conftest.c <<EOF
3753 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3754 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3756 if test ! -f conftest."${ac_object}" ; then
3758 OL_MKDEP_FLAGS="$flag"
3767 echo "$ac_t""$ol_cv_mkdep" 1>&6
3770 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3775 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3780 if test "${ol_cv_mkdep}" = no ; then
3781 # this will soon become an error
3782 echo "configure: warning: do not know how to generate dependencies" 1>&2
3786 if test $ol_enable_modules != no ; then
3787 for ac_hdr in ltdl.h
3789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_hdr" >&5
3792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3801 { (eval echo configure:3802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3803 if test -z "$ac_err"; then
3805 eval "ac_cv_header_$ac_safe=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_header_$ac_safe=no"
3815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3818 cat >> confdefs.h <<EOF
3819 #define $ac_tr_hdr 1
3823 echo "$ac_t""no" 1>&6
3828 if test $ac_cv_header_ltdl_h = no ; then
3829 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3833 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3834 echo "configure:3835: checking for lt_dlinit in -lltdl" >&5
3835 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3836 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 ac_save_LIBS="$LIBS"
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 eval "ac_cv_lib_$ac_lib_var=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_lib_$ac_lib_var=no"
3863 LIBS="$ac_save_LIBS"
3866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3868 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3870 cat >> confdefs.h <<EOF
3871 #define $ac_tr_lib 1
3877 echo "$ac_t""no" 1>&6
3880 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3881 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3885 ol_with_bdb2_module=static
3886 ol_with_ldap_module=static
3887 ol_with_ldbm_module=static
3888 ol_with_passwd_module=static
3889 ol_with_perl_module=static
3890 ol_with_shell_module=static
3891 ol_with_tcl_module=static
3895 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3896 echo "configure:3897: checking for EBCDIC" >&5
3897 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 #include <__ASCII__/generate_error.h>
3910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3911 { (eval echo configure:3912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3913 if test -z "$ac_err"; then
3915 ol_cv_cpp_ebcdic=yes
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3926 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3927 if test $ol_cv_cpp_ebcdic = yes ; then
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_EBCDIC 1
3934 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3935 echo "configure:3936: checking for ANSI C header files" >&5
3936 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3948 { (eval echo configure:3949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3950 if test -z "$ac_err"; then
3952 ol_cv_header_stdc=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 ol_cv_header_stdc=no
3962 if test $ol_cv_header_stdc = yes; then
3963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 egrep "memchr" >/dev/null 2>&1; then
3974 ol_cv_header_stdc=no
3980 if test $ol_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "free" >/dev/null 2>&1; then
3992 ol_cv_header_stdc=no
3998 if test $ol_cv_header_stdc = yes; then
3999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4000 if test "$cross_compiling" = yes; then
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4011 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4012 || ('j' <= (c) && (c) <= 'r') \
4013 || ('s' <= (c) && (c) <= 'z'))
4014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 int main () { int i; for (i = 0; i < 256; i++)
4018 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 ol_cv_header_stdc=no
4037 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4038 if test $ol_cv_header_stdc = yes; then
4039 cat >> confdefs.h <<\EOF
4040 #define STDC_HEADERS 1
4044 ac_cv_header_stdc=disable
4047 if test $ol_cv_header_stdc != yes; then
4048 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4052 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4055 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_hdr that defines DIR" >&5
4057 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <sys/types.h>
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 eval "ac_cv_header_dirent_$ac_safe=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_header_dirent_$ac_safe=no"
4080 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4083 cat >> confdefs.h <<EOF
4084 #define $ac_tr_hdr 1
4086 ac_header_dirent=$ac_hdr; break
4088 echo "$ac_t""no" 1>&6
4091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4092 if test $ac_header_dirent = dirent.h; then
4093 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4094 echo "configure:4095: checking for opendir in -ldir" >&5
4095 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4096 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 ac_save_LIBS="$LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 eval "ac_cv_lib_$ac_lib_var=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_lib_$ac_lib_var=no"
4123 LIBS="$ac_save_LIBS"
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4130 echo "$ac_t""no" 1>&6
4134 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4135 echo "configure:4136: checking for opendir in -lx" >&5
4136 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS="$LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4171 echo "$ac_t""no" 1>&6
4176 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4177 echo "configure:4178: checking for sys/wait.h that is POSIX.1 compatible" >&5
4178 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <sys/types.h>
4185 #include <sys/wait.h>
4187 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4190 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4198 if { (eval echo configure:4199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4200 ac_cv_header_sys_wait_h=yes
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 ac_cv_header_sys_wait_h=no
4210 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4211 if test $ac_cv_header_sys_wait_h = yes; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_SYS_WAIT_H 1
4218 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4219 echo "configure:4220: checking POSIX termios" >&5
4220 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4228 #include <termios.h>
4230 /* SunOS 4.0.3 has termios.h but not the library calls. */
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 am_cv_sys_posix_termios=yes
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 am_cv_sys_posix_termios=no
4246 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4249 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4250 echo "configure:4251: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4251 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4256 gwinsz_in_termios_h=no
4257 if test $am_cv_sys_posix_termios = yes; then
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <sys/types.h>
4262 # include <termios.h>
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 egrep "yes" >/dev/null 2>&1; then
4271 gwinsz_in_termios_h=yes
4277 if test $gwinsz_in_termios_h = no; then
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <sys/types.h>
4282 # include <sys/ioctl.h>
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 egrep "yes" >/dev/null 2>&1; then
4291 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4299 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4300 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4301 cat >> confdefs.h <<\EOF
4302 #define GWINSZ_IN_SYS_IOCTL 1
4307 if test $am_cv_sys_posix_termios = yes ; then
4308 cat >> confdefs.h <<\EOF
4309 #define HAVE_POSIX_TERMIOS 1
4356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4358 echo "configure:4359: checking for $ac_hdr" >&5
4359 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4370 if test -z "$ac_err"; then
4372 eval "ac_cv_header_$ac_safe=yes"
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 eval "ac_cv_header_$ac_safe=no"
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4385 cat >> confdefs.h <<EOF
4386 #define $ac_tr_hdr 1
4390 echo "$ac_t""no" 1>&6
4397 echo $ac_n "checking for socket""... $ac_c" 1>&6
4398 echo "configure:4399: checking for socket" >&5
4399 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* System header to define __stub macros and hopefully few prototypes,
4406 which can conflict with char socket(); below. */
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4416 /* The GNU C library defines this for functions which it implements
4417 to always fail with ENOSYS. Some functions are actually named
4418 something starting with __ and the normal name is an alias. */
4419 #if defined (__stub_socket) || defined (__stub___socket)
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_func_socket=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_func_socket=no"
4439 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4443 echo "$ac_t""no" 1>&6
4445 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4446 echo "configure:4447: checking for main in -lsocket" >&5
4447 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4448 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 ac_save_LIBS="$LIBS"
4452 LIBS="-lsocket $LIBS"
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463 eval "ac_cv_lib_$ac_lib_var=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 eval "ac_cv_lib_$ac_lib_var=no"
4471 LIBS="$ac_save_LIBS"
4474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4478 cat >> confdefs.h <<EOF
4479 #define $ac_tr_lib 1
4482 LIBS="-lsocket $LIBS"
4485 echo "$ac_t""no" 1>&6
4488 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4489 echo "configure:4490: checking for main in -lnet" >&5
4490 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4491 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS="$LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 eval "ac_cv_lib_$ac_lib_var=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_lib_$ac_lib_var=no"
4514 LIBS="$ac_save_LIBS"
4517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4521 cat >> confdefs.h <<EOF
4522 #define $ac_tr_lib 1
4528 echo "$ac_t""no" 1>&6
4531 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4532 echo "configure:4533: checking for socket in -lnet" >&5
4533 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4534 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 ac_save_LIBS="$LIBS"
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553 eval "ac_cv_lib_$ac_lib_var=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4558 eval "ac_cv_lib_$ac_lib_var=no"
4561 LIBS="$ac_save_LIBS"
4564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4565 echo "$ac_t""yes" 1>&6
4566 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4567 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4568 cat >> confdefs.h <<EOF
4569 #define $ac_tr_lib 1
4575 echo "$ac_t""no" 1>&6
4578 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4579 echo "configure:4580: checking for main in -lnsl_s" >&5
4580 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4581 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 ac_save_LIBS="$LIBS"
4585 LIBS="-lnsl_s $LIBS"
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4596 eval "ac_cv_lib_$ac_lib_var=yes"
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4601 eval "ac_cv_lib_$ac_lib_var=no"
4604 LIBS="$ac_save_LIBS"
4607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4608 echo "$ac_t""yes" 1>&6
4609 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4611 cat >> confdefs.h <<EOF
4612 #define $ac_tr_lib 1
4615 LIBS="-lnsl_s $LIBS"
4618 echo "$ac_t""no" 1>&6
4621 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4622 echo "configure:4623: checking for main in -lnsl" >&5
4623 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 eval "ac_cv_lib_$ac_lib_var=yes"
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 eval "ac_cv_lib_$ac_lib_var=no"
4647 LIBS="$ac_save_LIBS"
4650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4654 cat >> confdefs.h <<EOF
4655 #define $ac_tr_lib 1
4661 echo "$ac_t""no" 1>&6
4664 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4665 echo "configure:4666: checking for socket in -linet" >&5
4666 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 ac_save_LIBS="$LIBS"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 eval "ac_cv_lib_$ac_lib_var=no"
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4701 cat >> confdefs.h <<EOF
4702 #define $ac_tr_lib 1
4708 echo "$ac_t""no" 1>&6
4711 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4712 echo "configure:4713: checking for main in -lgen" >&5
4713 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 ac_save_LIBS="$LIBS"
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_lib_$ac_lib_var=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_lib_$ac_lib_var=no"
4737 LIBS="$ac_save_LIBS"
4740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4744 cat >> confdefs.h <<EOF
4745 #define $ac_tr_lib 1
4751 echo "$ac_t""no" 1>&6
4758 echo $ac_n "checking for select""... $ac_c" 1>&6
4759 echo "configure:4760: checking for select" >&5
4760 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4766 /* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char select(); below. */
4769 /* Override any gcc2 internal prototype to avoid an error. */
4770 /* We use char because int might match the return type of a gcc2
4771 builtin and then its argument prototype would still apply. */
4777 /* The GNU C library defines this for functions which it implements
4778 to always fail with ENOSYS. Some functions are actually named
4779 something starting with __ and the normal name is an alias. */
4780 #if defined (__stub_select) || defined (__stub___select)
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 eval "ac_cv_func_select=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_func_select=no"
4800 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4804 echo "$ac_t""no" 1>&6
4805 { echo "configure: error: select() required." 1>&2; exit 1; }
4809 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4810 echo "configure:4811: checking types of arguments for select()" >&5
4811 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4821 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4822 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4826 #ifdef HAVE_SYS_TYPES_H
4827 #include <sys/types.h>
4829 #ifdef HAVE_SYS_TIME_H
4830 #include <sys/time.h>
4832 #ifdef HAVE_SYS_SELECT_H
4833 #include <sys/select.h>
4835 #ifdef HAVE_SYS_SOCKET_H
4836 #include <sys/socket.h>
4838 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);
4843 if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4845 ac_not_found=no ; break 3
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4862 if test "$ac_not_found" = yes; then
4863 ac_cv_func_select_arg1=int
4864 ac_cv_func_select_arg234='int *'
4865 ac_cv_func_select_arg5='struct timeval *'
4867 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4868 cat >> confdefs.h <<EOF
4869 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4872 cat >> confdefs.h <<EOF
4873 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4876 cat >> confdefs.h <<EOF
4877 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4883 for ac_hdr in regex.h
4885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4887 echo "configure:4888: checking for $ac_hdr" >&5
4888 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4897 { (eval echo configure:4898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4899 if test -z "$ac_err"; then
4901 eval "ac_cv_header_$ac_safe=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4907 eval "ac_cv_header_$ac_safe=no"
4911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4914 cat >> confdefs.h <<EOF
4915 #define $ac_tr_hdr 1
4919 echo "$ac_t""no" 1>&6
4923 if test "$ac_cv_header_regex_h" != yes ; then
4924 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4926 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4927 echo "configure:4928: checking for regfree" >&5
4928 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4934 /* System header to define __stub macros and hopefully few prototypes,
4935 which can conflict with char regfree(); below. */
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4945 /* The GNU C library defines this for functions which it implements
4946 to always fail with ENOSYS. Some functions are actually named
4947 something starting with __ and the normal name is an alias. */
4948 #if defined (__stub_regfree) || defined (__stub___regfree)
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4958 eval "ac_cv_func_regfree=yes"
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4963 eval "ac_cv_func_regfree=no"
4968 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4972 echo "$ac_t""no" 1>&6
4973 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4978 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4979 echo "configure:4980: checking for compatible POSIX regex" >&5
4980 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4984 if test "$cross_compiling" = yes; then
4985 ol_cv_c_posix_regex=cross
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4991 #include <sys/types.h>
4993 static char *pattern, *string;
5001 if(regcomp(&re, pattern, 0)) {
5005 string = "ALL MATCH";
5007 rc = regexec(&re, string, 0, (void*)0, 0);
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5016 ol_cv_c_posix_regex=yes
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 ol_cv_c_posix_regex=no
5028 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5030 if test "$ol_cv_c_posix_regex" = no ; then
5031 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5035 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5036 echo "configure:5037: checking for sigset in -lV3" >&5
5037 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 ac_save_LIBS="$LIBS"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_lib_$ac_lib_var=yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_lib_$ac_lib_var=no"
5065 LIBS="$ac_save_LIBS"
5068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5070 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5072 cat >> confdefs.h <<EOF
5073 #define $ac_tr_lib 1
5079 echo "$ac_t""no" 1>&6
5083 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5084 echo "configure:5085: checking for res_search" >&5
5085 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* System header to define __stub macros and hopefully few prototypes,
5092 which can conflict with char res_search(); below. */
5094 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5102 /* The GNU C library defines this for functions which it implements
5103 to always fail with ENOSYS. Some functions are actually named
5104 something starting with __ and the normal name is an alias. */
5105 #if defined (__stub_res_search) || defined (__stub___res_search)
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 eval "ac_cv_func_res_search=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 eval "ac_cv_func_res_search=no"
5125 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5129 echo "$ac_t""no" 1>&6
5132 if test $ac_cv_func_res_search = no ; then
5133 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5134 echo "configure:5135: checking for res_search in -lbind" >&5
5135 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 ac_save_LIBS="$LIBS"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5155 eval "ac_cv_lib_$ac_lib_var=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 eval "ac_cv_lib_$ac_lib_var=no"
5163 LIBS="$ac_save_LIBS"
5166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5167 echo "$ac_t""yes" 1>&6
5168 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5169 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5170 cat >> confdefs.h <<EOF
5171 #define $ac_tr_lib 1
5177 echo "$ac_t""no" 1>&6
5180 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5183 if test $ac_cv_func_res_search = no ; then
5184 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5185 echo "configure:5186: checking for __res_search in -lbind" >&5
5186 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5187 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 ac_save_LIBS="$LIBS"
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char __res_search();
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 eval "ac_cv_lib_$ac_lib_var=no"
5214 LIBS="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5221 cat >> confdefs.h <<EOF
5222 #define $ac_tr_lib 1
5228 echo "$ac_t""no" 1>&6
5231 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5234 if test $ac_cv_func_res_search = no ; then
5235 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5236 echo "configure:5237: checking for res_search in -lresolv" >&5
5237 ac_lib_var=`echo resolv'_'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"
5242 LIBS="-lresolv $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 resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5272 cat >> confdefs.h <<EOF
5273 #define $ac_tr_lib 1
5276 LIBS="-lresolv $LIBS"
5279 echo "$ac_t""no" 1>&6
5282 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5285 if test "$ac_cv_func_res_search" = yes ; then
5286 cat >> confdefs.h <<\EOF
5287 #define HAVE_RES_SEARCH 1
5290 elif test $ol_enable_dns = yes ; then
5291 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5292 elif test $ol_enable_dns != no ; then
5293 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5299 if test $ol_enable_ldapd != no ; then
5300 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5302 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5303 echo "configure:5304: checking for main in -lxtpp" >&5
5304 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5305 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 ac_save_LIBS="$LIBS"
5309 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5318 if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5320 eval "ac_cv_lib_$ac_lib_var=yes"
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 eval "ac_cv_lib_$ac_lib_var=no"
5328 LIBS="$ac_save_LIBS"
5331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5332 echo "$ac_t""yes" 1>&6
5335 cat >> confdefs.h <<\EOF
5339 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5342 echo "$ac_t""no" 1>&6
5346 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5347 echo "configure:5348: checking for main in -ldsap" >&5
5348 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5349 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5352 ac_save_LIBS="$LIBS"
5353 LIBS="-ldsap -lisode $LIBS"
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 eval "ac_cv_lib_$ac_lib_var=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 eval "ac_cv_lib_$ac_lib_var=no"
5372 LIBS="$ac_save_LIBS"
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5379 cat >> confdefs.h <<\EOF
5383 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5386 echo "$ac_t""no" 1>&6
5390 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5391 echo "configure:5392: checking for main in -lisode" >&5
5392 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 ac_save_LIBS="$LIBS"
5397 LIBS="-lisode $LIBS"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408 eval "ac_cv_lib_$ac_lib_var=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 eval "ac_cv_lib_$ac_lib_var=no"
5416 LIBS="$ac_save_LIBS"
5419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5420 echo "$ac_t""yes" 1>&6
5423 cat >> confdefs.h <<\EOF
5424 #define HAVE_ISODE 1
5427 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5430 echo "$ac_t""no" 1>&6
5436 if test $ol_link_isode != no; then
5437 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5438 echo "configure:5439: checking for main in -lpp" >&5
5439 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5440 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 ac_save_LIBS="$LIBS"
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5453 if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5455 eval "ac_cv_lib_$ac_lib_var=yes"
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5460 eval "ac_cv_lib_$ac_lib_var=no"
5463 LIBS="$ac_save_LIBS"
5466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5467 echo "$ac_t""yes" 1>&6
5469 cat >> confdefs.h <<\EOF
5473 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5476 echo "$ac_t""no" 1>&6
5481 # Extract the first word of "pepsy", so it can be a program name with args.
5482 set dummy pepsy; ac_word=$2
5483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5484 echo "configure:5485: checking for $ac_word" >&5
5485 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5490 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5493 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5498 for ac_dir in $ac_dummy; do
5499 test -z "$ac_dir" && ac_dir=.
5500 if test -f $ac_dir/$ac_word; then
5501 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5509 PEPSY="$ac_cv_path_PEPSY"
5510 if test -n "$PEPSY"; then
5511 echo "$ac_t""$PEPSY" 1>&6
5513 echo "$ac_t""no" 1>&6
5518 if test $ol_enable_quipu != no ; then
5519 for ac_hdr in quipu/commonarg.h
5521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5523 echo "configure:5524: checking for $ac_hdr" >&5
5524 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5533 { (eval echo configure:5534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5535 if test -z "$ac_err"; then
5537 eval "ac_cv_header_$ac_safe=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 eval "ac_cv_header_$ac_safe=no"
5547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5548 echo "$ac_t""yes" 1>&6
5549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5550 cat >> confdefs.h <<EOF
5551 #define $ac_tr_hdr 1
5555 echo "$ac_t""no" 1>&6
5560 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5562 elif test $ol_enable_quipu = auto ; then
5563 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5565 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5571 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5572 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_hdr" >&5
5577 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5586 { (eval echo configure:5587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5588 if test -z "$ac_err"; then
5590 eval "ac_cv_header_$ac_safe=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5596 eval "ac_cv_header_$ac_safe=no"
5600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5603 cat >> confdefs.h <<EOF
5604 #define $ac_tr_hdr 1
5608 echo "$ac_t""no" 1>&6
5613 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5614 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5615 echo "configure:5616: checking for main in -lkrb4" >&5
5616 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5617 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5620 ac_save_LIBS="$LIBS"
5621 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5622 cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5632 eval "ac_cv_lib_$ac_lib_var=yes"
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 eval "ac_cv_lib_$ac_lib_var=no"
5640 LIBS="$ac_save_LIBS"
5643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5644 echo "$ac_t""yes" 1>&6
5647 echo "$ac_t""no" 1>&6
5652 if test $have_k5 = yes ; then
5653 ol_with_kerberos=found
5654 ol_link_kerberos=yes
5656 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5658 LIBS="$KRB_LIBS $LIBS"
5660 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5661 echo "configure:5662: checking for des_debug in Kerberos libraries" >&5
5662 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5667 LIBS="$KRB_LIBS $LIBS"
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5672 #include <kerberosIV/krb.h>
5673 #include <kerberosIV/des.h>
5674 extern int des_debug;
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5684 ol_cv_var_des_debug=yes
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 ol_cv_var_des_debug=no
5696 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5698 if test $ol_cv_var_des_debug = yes ; then
5699 cat >> confdefs.h <<\EOF
5700 #define HAVE_DES_DEBUG 1
5710 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5711 for ac_hdr in krb.h des.h
5713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_hdr" >&5
5716 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5725 { (eval echo configure:5726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5727 if test -z "$ac_err"; then
5729 eval "ac_cv_header_$ac_safe=yes"
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5735 eval "ac_cv_header_$ac_safe=no"
5739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5740 echo "$ac_t""yes" 1>&6
5741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5742 cat >> confdefs.h <<EOF
5743 #define $ac_tr_hdr 1
5747 echo "$ac_t""no" 1>&6
5752 if test $ac_cv_header_krb_h = yes ; then
5753 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5754 echo "configure:5755: checking for main in -lkrb" >&5
5755 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5756 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 ac_save_LIBS="$LIBS"
5760 LIBS="-lkrb -ldes $LIBS"
5761 cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5769 if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5771 eval "ac_cv_lib_$ac_lib_var=yes"
5773 echo "configure: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5776 eval "ac_cv_lib_$ac_lib_var=no"
5779 LIBS="$ac_save_LIBS"
5782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5786 echo "$ac_t""no" 1>&6
5791 if test $have_k4 = yes ; then
5792 ol_with_kerberos=found
5793 ol_link_kerberos=yes
5795 KRB_LIBS="-lkrb -ldes"
5800 if test $ol_link_kerberos = yes ; then
5801 cat >> confdefs.h <<\EOF
5802 #define HAVE_KERBEROS 1
5808 if test $ol_with_tls != no ; then
5810 for ac_hdr in openssl/ssl.h ssl.h
5812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_hdr" >&5
5815 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5824 { (eval echo configure:5825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5826 if test -z "$ac_err"; then
5828 eval "ac_cv_header_$ac_safe=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_header_$ac_safe=no"
5838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5841 cat >> confdefs.h <<EOF
5842 #define $ac_tr_hdr 1
5846 echo "$ac_t""no" 1>&6
5851 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5852 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5853 echo "configure:5854: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5854 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5855 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5856 echo $ac_n "(cached) $ac_c" 1>&6
5858 ac_save_LIBS="$LIBS"
5859 LIBS="-lssl -lcrypto $LIBS"
5860 cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5863 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5866 char SSLeay_add_ssl_algorithms();
5869 SSLeay_add_ssl_algorithms()
5872 if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5874 eval "ac_cv_lib_$ac_lib_var=yes"
5876 echo "configure: failed program was:" >&5
5877 cat conftest.$ac_ext >&5
5879 eval "ac_cv_lib_$ac_lib_var=no"
5882 LIBS="$ac_save_LIBS"
5885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5890 echo "$ac_t""no" 1>&6
5895 if test $have_ssleay = no ; then
5896 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5897 echo "configure:5898: checking for SSL_library_init in -lssl" >&5
5898 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 ac_save_LIBS="$LIBS"
5903 LIBS="-lssl -lcrypto $LIBS"
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5910 char SSL_library_init();
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_lib_$ac_lib_var=no"
5926 LIBS="$ac_save_LIBS"
5929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5934 echo "$ac_t""no" 1>&6
5940 if test $have_ssleay = no ; then
5941 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5942 echo "configure:5943: checking for ssl3_accept in -lssl" >&5
5943 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 ac_save_LIBS="$LIBS"
5948 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 eval "ac_cv_lib_$ac_lib_var=yes"
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 eval "ac_cv_lib_$ac_lib_var=no"
5971 LIBS="$ac_save_LIBS"
5974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5979 echo "$ac_t""no" 1>&6
5985 if test $have_ssleay = yes ; then
5989 cat >> confdefs.h <<\EOF
5990 #define HAVE_SSLEAY 1
5994 if test $need_rsaref = yes; then
5995 cat >> confdefs.h <<\EOF
5996 #define HAVE_RSAREF 1
6000 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6002 TLS_LIBS="-lssl -lcrypto"
6008 if test $ol_link_tls = yes ; then
6009 cat >> confdefs.h <<\EOF
6017 gethostbyname_r gethostbyaddr_r \
6020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6021 echo "configure:6022: checking for $ac_func" >&5
6022 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char $ac_func(); below. */
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6039 /* The GNU C library defines this for functions which it implements
6040 to always fail with ENOSYS. Some functions are actually named
6041 something starting with __ and the normal name is an alias. */
6042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6050 if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6052 eval "ac_cv_func_$ac_func=yes"
6054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 eval "ac_cv_func_$ac_func=no"
6062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6065 cat >> confdefs.h <<EOF
6066 #define $ac_tr_func 1
6070 echo "$ac_t""no" 1>&6
6075 if test "$ac_cv_func_ctime_r" = no ; then
6076 ol_cv_func_ctime_r_nargs=0
6078 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6079 echo "configure:6080: checking number of arguments of ctime_r" >&5
6080 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6088 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6091 if { (eval echo configure:6092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6093 ol_cv_func_ctime_r_nargs=3
6095 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6103 time_t ti; char *buffer; ctime_r(&ti,buffer);
6106 if { (eval echo configure:6107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6108 ol_cv_func_ctime_r_nargs=2
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6113 ol_cv_func_ctime_r_nargs=0
6120 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6121 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6122 cat >> confdefs.h <<EOF
6123 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6130 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6131 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6132 echo "configure:6133: checking number of arguments of gethostbyname_r" >&5
6133 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6136 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6139 #include <sys/types.h>
6140 #include <sys/socket.h>
6141 #include <netinet/in.h>
6143 #define BUFSIZE (sizeof(struct hostent)+10)
6145 struct hostent hent; char buffer[BUFSIZE];
6146 int bufsize=BUFSIZE;int h_errno;
6147 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6148 buffer, bufsize, &h_errno);
6151 if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6153 ol_cv_func_gethostbyname_r_nargs=5
6155 echo "configure: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 #include <sys/types.h>
6162 #include <sys/socket.h>
6163 #include <netinet/in.h>
6165 #define BUFSIZE (sizeof(struct hostent)+10)
6167 struct hostent hent;struct hostent *rhent;
6168 char buffer[BUFSIZE];
6169 int bufsize=BUFSIZE;int h_errno;
6170 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6174 if { (eval echo configure:6175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6176 ol_cv_func_gethostbyname_r_nargs=6
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6181 ol_cv_func_gethostbyname_r_nargs=0
6188 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6189 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6190 cat >> confdefs.h <<EOF
6191 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6197 ol_cv_func_gethostbyname_r_nargs=0
6200 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6201 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6202 echo "configure:6203: checking number of arguments of gethostbyaddr_r" >&5
6203 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 #include <sys/types.h>
6210 #include <sys/socket.h>
6211 #include <netinet/in.h>
6213 #define BUFSIZE (sizeof(struct hostent)+10)
6215 struct hostent hent; char buffer[BUFSIZE];
6217 size_t alen=sizeof(struct in_addr);
6218 int bufsize=BUFSIZE;int h_errno;
6219 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6220 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6223 if { (eval echo configure:6224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6225 ol_cv_func_gethostbyaddr_r_nargs=7
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 #include <sys/types.h>
6234 #include <sys/socket.h>
6235 #include <netinet/in.h>
6237 #define BUFSIZE (sizeof(struct hostent)+10)
6239 struct hostent hent;
6240 struct hostent *rhent; char buffer[BUFSIZE];
6242 size_t alen=sizeof(struct in_addr);
6243 int bufsize=BUFSIZE;int h_errno;
6244 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6245 alen, AF_INET, &hent, buffer, bufsize,
6249 if { (eval echo configure:6250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6251 ol_cv_func_gethostbyaddr_r_nargs=8
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 ol_cv_func_gethostbyaddr_r_nargs=0
6263 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6264 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6265 cat >> confdefs.h <<EOF
6266 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6272 ol_cv_func_gethostbyaddr_r_nargs=0
6275 if test "$ac_cv_func_ctime_r" = yes \
6276 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6277 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6278 -a "$ac_cv_func_gethostbyname_r" = yes \
6279 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6280 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6281 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6282 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6283 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6286 cat >> confdefs.h <<\EOF
6287 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6293 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6294 -o $ol_with_threads = posix ; then
6296 for ac_hdr in pthread.h
6298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6300 echo "configure:6301: checking for $ac_hdr" >&5
6301 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6310 { (eval echo configure:6311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6312 if test -z "$ac_err"; then
6314 eval "ac_cv_header_$ac_safe=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_header_$ac_safe=no"
6324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6325 echo "$ac_t""yes" 1>&6
6326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6327 cat >> confdefs.h <<EOF
6328 #define $ac_tr_hdr 1
6332 echo "$ac_t""no" 1>&6
6337 if test $ac_cv_header_pthread_h = yes ; then
6338 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6339 echo "configure:6340: checking POSIX thread version" >&5
6340 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6341 echo $ac_n "(cached) $ac_c" 1>&6
6344 cat > conftest.$ac_ext <<EOF
6345 #line 6346 "configure"
6346 #include "confdefs.h"
6348 # include <pthread.h>
6349 /* this check could be improved */
6350 # ifdef PTHREAD_ONCE_INIT
6351 pthread_version_final
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 egrep "pthread_version_final" >/dev/null 2>&1; then
6358 ol_pthread_final=yes
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6370 # include <pthread.h>
6371 /* this check could be improved */
6372 # ifdef pthread_once_init
6373 pthread_version_draft4
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6380 ol_pthread_draft4=yes
6383 ol_pthread_draft4=no
6388 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6389 ol_cv_pthread_version=final
6390 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6391 ol_cv_pthread_version=draft4
6393 ol_cv_pthread_version=unknown
6398 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6401 if test $ol_cv_pthread_version = final ; then
6402 cat >> confdefs.h <<\EOF
6403 #define HAVE_PTHREADS_FINAL 1
6406 elif test $ol_cv_pthread_version = draft4 ; then
6407 cat >> confdefs.h <<\EOF
6408 #define HAVE_PTHREADS_D4 1
6412 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6415 # consider threads found
6416 ol_with_threads=found
6419 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6420 echo "configure:6421: checking for LinuxThreads pthread.h" >&5
6421 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 #include <pthread.h>
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6432 ol_cv_header_linux_threads=yes
6435 ol_cv_header_linux_threads=no
6442 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6443 if test $ol_cv_header_linux_threads = yes; then
6444 cat >> confdefs.h <<\EOF
6445 #define HAVE_LINUX_THREADS 1
6451 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6452 echo "configure:6453: checking for GNU Pth pthread.h" >&5
6453 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6459 #include <pthread.h>
6460 #ifdef _POSIX_THREAD_IS_GNU_PTH
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 egrep "__gnu_pth__" >/dev/null 2>&1; then
6468 ol_cv_header_gnu_pth_pthread_h=yes
6471 ol_cv_header_gnu_pth_pthread_h=no
6478 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6481 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6482 for ac_hdr in sched.h
6484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6486 echo "configure:6487: checking for $ac_hdr" >&5
6487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6496 { (eval echo configure:6497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6498 if test -z "$ac_err"; then
6500 eval "ac_cv_header_$ac_safe=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 eval "ac_cv_header_$ac_safe=no"
6510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6513 cat >> confdefs.h <<EOF
6514 #define $ac_tr_hdr 1
6518 echo "$ac_t""no" 1>&6
6525 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6526 echo "configure:6527: checking for pthread_create in default libraries" >&5
6527 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6531 if test "$cross_compiling" = yes; then
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6534 "configure"
6534 #include "confdefs.h"
6535 /* pthread test headers */
6536 #include <pthread.h>
6538 #define NULL (void*)0
6541 static void *task(p)
6544 return (void *) (p == NULL);
6549 /* pthread test function */
6553 /* make sure pthread_create() isn't just a stub */
6554 #if HAVE_PTHREADS_D4
6555 status = pthread_create(&t, pthread_attr_default, task, NULL);
6557 status = pthread_create(&t, NULL, task, NULL);
6560 if( status ) exit( status );
6562 /* make sure pthread_detach() isn't just a stub */
6563 #if HAVE_PTHREADS_D4
6564 status = pthread_detach( &t );
6566 status = pthread_detach( t );
6569 #ifdef HAVE_LINUX_THREADS
6570 pthread_kill_other_threads_np();
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579 ol_cv_pthread_create=yes
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 ol_cv_pthread_create=no
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* pthread test headers */
6592 #include <pthread.h>
6594 #define NULL (void*)0
6597 static void *task(p)
6600 return (void *) (p == NULL);
6604 int main(argc, argv)
6609 /* pthread test function */
6613 /* make sure pthread_create() isn't just a stub */
6614 #if HAVE_PTHREADS_D4
6615 status = pthread_create(&t, pthread_attr_default, task, NULL);
6617 status = pthread_create(&t, NULL, task, NULL);
6620 if( status ) exit( status );
6622 /* make sure pthread_detach() isn't just a stub */
6623 #if HAVE_PTHREADS_D4
6624 status = pthread_detach( &t );
6626 status = pthread_detach( t );
6629 #ifdef HAVE_LINUX_THREADS
6630 pthread_kill_other_threads_np();
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6640 ol_cv_pthread_create=yes
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 ol_cv_pthread_create=no
6652 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6654 if test $ol_cv_pthread_create != no ; then
6655 ol_link_threads=posix
6659 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6660 if test "$ol_link_threads" = no ; then
6662 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6663 echo "configure:6664: checking for pthread link with -kthread" >&5
6664 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6670 LIBS="-kthread $LIBS"
6672 if test "$cross_compiling" = yes; then
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* pthread test headers */
6677 #include <pthread.h>
6679 #define NULL (void*)0
6682 static void *task(p)
6685 return (void *) (p == NULL);
6690 /* pthread test function */
6694 /* make sure pthread_create() isn't just a stub */
6695 #if HAVE_PTHREADS_D4
6696 status = pthread_create(&t, pthread_attr_default, task, NULL);
6698 status = pthread_create(&t, NULL, task, NULL);
6701 if( status ) exit( status );
6703 /* make sure pthread_detach() isn't just a stub */
6704 #if HAVE_PTHREADS_D4
6705 status = pthread_detach( &t );
6707 status = pthread_detach( t );
6710 #ifdef HAVE_LINUX_THREADS
6711 pthread_kill_other_threads_np();
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 ol_cv_pthread_kthread=yes
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 ol_cv_pthread_kthread=no
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 /* pthread test headers */
6733 #include <pthread.h>
6735 #define NULL (void*)0
6738 static void *task(p)
6741 return (void *) (p == NULL);
6745 int main(argc, argv)
6750 /* pthread test function */
6754 /* make sure pthread_create() isn't just a stub */
6755 #if HAVE_PTHREADS_D4
6756 status = pthread_create(&t, pthread_attr_default, task, NULL);
6758 status = pthread_create(&t, NULL, task, NULL);
6761 if( status ) exit( status );
6763 /* make sure pthread_detach() isn't just a stub */
6764 #if HAVE_PTHREADS_D4
6765 status = pthread_detach( &t );
6767 status = pthread_detach( t );
6770 #ifdef HAVE_LINUX_THREADS
6771 pthread_kill_other_threads_np();
6779 if { (eval echo configure:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6781 ol_cv_pthread_kthread=yes
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6786 ol_cv_pthread_kthread=no
6797 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6799 if test $ol_cv_pthread_kthread = yes ; then
6800 ol_link_pthreads="-kthread"
6801 ol_link_threads=posix
6805 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6806 if test "$ol_link_threads" = no ; then
6808 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6809 echo "configure:6810: checking for pthread link with -pthread" >&5
6810 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6811 echo $ac_n "(cached) $ac_c" 1>&6
6816 LIBS="-pthread $LIBS"
6818 if test "$cross_compiling" = yes; then
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* pthread test headers */
6823 #include <pthread.h>
6825 #define NULL (void*)0
6828 static void *task(p)
6831 return (void *) (p == NULL);
6836 /* pthread test function */
6840 /* make sure pthread_create() isn't just a stub */
6841 #if HAVE_PTHREADS_D4
6842 status = pthread_create(&t, pthread_attr_default, task, NULL);
6844 status = pthread_create(&t, NULL, task, NULL);
6847 if( status ) exit( status );
6849 /* make sure pthread_detach() isn't just a stub */
6850 #if HAVE_PTHREADS_D4
6851 status = pthread_detach( &t );
6853 status = pthread_detach( t );
6856 #ifdef HAVE_LINUX_THREADS
6857 pthread_kill_other_threads_np();
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 ol_cv_pthread_pthread=yes
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 ol_cv_pthread_pthread=no
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 /* pthread test headers */
6879 #include <pthread.h>
6881 #define NULL (void*)0
6884 static void *task(p)
6887 return (void *) (p == NULL);
6891 int main(argc, argv)
6896 /* pthread test function */
6900 /* make sure pthread_create() isn't just a stub */
6901 #if HAVE_PTHREADS_D4
6902 status = pthread_create(&t, pthread_attr_default, task, NULL);
6904 status = pthread_create(&t, NULL, task, NULL);
6907 if( status ) exit( status );
6909 /* make sure pthread_detach() isn't just a stub */
6910 #if HAVE_PTHREADS_D4
6911 status = pthread_detach( &t );
6913 status = pthread_detach( t );
6916 #ifdef HAVE_LINUX_THREADS
6917 pthread_kill_other_threads_np();
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6927 ol_cv_pthread_pthread=yes
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 ol_cv_pthread_pthread=no
6943 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6945 if test $ol_cv_pthread_pthread = yes ; then
6946 ol_link_pthreads="-pthread"
6947 ol_link_threads=posix
6951 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6952 if test "$ol_link_threads" = no ; then
6954 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6955 echo "configure:6956: checking for pthread link with -pthreads" >&5
6956 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6962 LIBS="-pthreads $LIBS"
6964 if test "$cross_compiling" = yes; then
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* pthread test headers */
6969 #include <pthread.h>
6971 #define NULL (void*)0
6974 static void *task(p)
6977 return (void *) (p == NULL);
6982 /* pthread test function */
6986 /* make sure pthread_create() isn't just a stub */
6987 #if HAVE_PTHREADS_D4
6988 status = pthread_create(&t, pthread_attr_default, task, NULL);
6990 status = pthread_create(&t, NULL, task, NULL);
6993 if( status ) exit( status );
6995 /* make sure pthread_detach() isn't just a stub */
6996 #if HAVE_PTHREADS_D4
6997 status = pthread_detach( &t );
6999 status = pthread_detach( t );
7002 #ifdef HAVE_LINUX_THREADS
7003 pthread_kill_other_threads_np();
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7012 ol_cv_pthread_pthreads=yes
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 ol_cv_pthread_pthreads=no
7021 cat > conftest.$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7024 /* pthread test headers */
7025 #include <pthread.h>
7027 #define NULL (void*)0
7030 static void *task(p)
7033 return (void *) (p == NULL);
7037 int main(argc, argv)
7042 /* pthread test function */
7046 /* make sure pthread_create() isn't just a stub */
7047 #if HAVE_PTHREADS_D4
7048 status = pthread_create(&t, pthread_attr_default, task, NULL);
7050 status = pthread_create(&t, NULL, task, NULL);
7053 if( status ) exit( status );
7055 /* make sure pthread_detach() isn't just a stub */
7056 #if HAVE_PTHREADS_D4
7057 status = pthread_detach( &t );
7059 status = pthread_detach( t );
7062 #ifdef HAVE_LINUX_THREADS
7063 pthread_kill_other_threads_np();
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7073 ol_cv_pthread_pthreads=yes
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 ol_cv_pthread_pthreads=no
7089 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7091 if test $ol_cv_pthread_pthreads = yes ; then
7092 ol_link_pthreads="-pthreads"
7093 ol_link_threads=posix
7097 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7098 if test "$ol_link_threads" = no ; then
7100 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7101 echo "configure:7102: checking for pthread link with -mthreads" >&5
7102 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7108 LIBS="-mthreads $LIBS"
7110 if test "$cross_compiling" = yes; then
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 /* pthread test headers */
7115 #include <pthread.h>
7117 #define NULL (void*)0
7120 static void *task(p)
7123 return (void *) (p == NULL);
7128 /* pthread test function */
7132 /* make sure pthread_create() isn't just a stub */
7133 #if HAVE_PTHREADS_D4
7134 status = pthread_create(&t, pthread_attr_default, task, NULL);
7136 status = pthread_create(&t, NULL, task, NULL);
7139 if( status ) exit( status );
7141 /* make sure pthread_detach() isn't just a stub */
7142 #if HAVE_PTHREADS_D4
7143 status = pthread_detach( &t );
7145 status = pthread_detach( t );
7148 #ifdef HAVE_LINUX_THREADS
7149 pthread_kill_other_threads_np();
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 ol_cv_pthread_mthreads=yes
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 ol_cv_pthread_mthreads=no
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* pthread test headers */
7171 #include <pthread.h>
7173 #define NULL (void*)0
7176 static void *task(p)
7179 return (void *) (p == NULL);
7183 int main(argc, argv)
7188 /* pthread test function */
7192 /* make sure pthread_create() isn't just a stub */
7193 #if HAVE_PTHREADS_D4
7194 status = pthread_create(&t, pthread_attr_default, task, NULL);
7196 status = pthread_create(&t, NULL, task, NULL);
7199 if( status ) exit( status );
7201 /* make sure pthread_detach() isn't just a stub */
7202 #if HAVE_PTHREADS_D4
7203 status = pthread_detach( &t );
7205 status = pthread_detach( t );
7208 #ifdef HAVE_LINUX_THREADS
7209 pthread_kill_other_threads_np();
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7219 ol_cv_pthread_mthreads=yes
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 ol_cv_pthread_mthreads=no
7235 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7237 if test $ol_cv_pthread_mthreads = yes ; then
7238 ol_link_pthreads="-mthreads"
7239 ol_link_threads=posix
7243 # Pthread try link: -thread (ol_cv_pthread_thread)
7244 if test "$ol_link_threads" = no ; then
7246 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7247 echo "configure:7248: checking for pthread link with -thread" >&5
7248 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7254 LIBS="-thread $LIBS"
7256 if test "$cross_compiling" = yes; then
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* pthread test headers */
7261 #include <pthread.h>
7263 #define NULL (void*)0
7266 static void *task(p)
7269 return (void *) (p == NULL);
7274 /* pthread test function */
7278 /* make sure pthread_create() isn't just a stub */
7279 #if HAVE_PTHREADS_D4
7280 status = pthread_create(&t, pthread_attr_default, task, NULL);
7282 status = pthread_create(&t, NULL, task, NULL);
7285 if( status ) exit( status );
7287 /* make sure pthread_detach() isn't just a stub */
7288 #if HAVE_PTHREADS_D4
7289 status = pthread_detach( &t );
7291 status = pthread_detach( t );
7294 #ifdef HAVE_LINUX_THREADS
7295 pthread_kill_other_threads_np();
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7304 ol_cv_pthread_thread=yes
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7309 ol_cv_pthread_thread=no
7313 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* pthread test headers */
7317 #include <pthread.h>
7319 #define NULL (void*)0
7322 static void *task(p)
7325 return (void *) (p == NULL);
7329 int main(argc, argv)
7334 /* pthread test function */
7338 /* make sure pthread_create() isn't just a stub */
7339 #if HAVE_PTHREADS_D4
7340 status = pthread_create(&t, pthread_attr_default, task, NULL);
7342 status = pthread_create(&t, NULL, task, NULL);
7345 if( status ) exit( status );
7347 /* make sure pthread_detach() isn't just a stub */
7348 #if HAVE_PTHREADS_D4
7349 status = pthread_detach( &t );
7351 status = pthread_detach( t );
7354 #ifdef HAVE_LINUX_THREADS
7355 pthread_kill_other_threads_np();
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7365 ol_cv_pthread_thread=yes
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 ol_cv_pthread_thread=no
7381 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7383 if test $ol_cv_pthread_thread = yes ; then
7384 ol_link_pthreads="-thread"
7385 ol_link_threads=posix
7390 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7391 if test "$ol_link_threads" = no ; then
7392 # try -lpthread -lmach -lexc -lc_r
7393 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7394 echo "configure:7395: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7395 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7401 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7403 if test "$cross_compiling" = yes; then
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* pthread test headers */
7408 #include <pthread.h>
7410 #define NULL (void*)0
7413 static void *task(p)
7416 return (void *) (p == NULL);
7421 /* pthread test function */
7425 /* make sure pthread_create() isn't just a stub */
7426 #if HAVE_PTHREADS_D4
7427 status = pthread_create(&t, pthread_attr_default, task, NULL);
7429 status = pthread_create(&t, NULL, task, NULL);
7432 if( status ) exit( status );
7434 /* make sure pthread_detach() isn't just a stub */
7435 #if HAVE_PTHREADS_D4
7436 status = pthread_detach( &t );
7438 status = pthread_detach( t );
7441 #ifdef HAVE_LINUX_THREADS
7442 pthread_kill_other_threads_np();
7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7451 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7456 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* pthread test headers */
7464 #include <pthread.h>
7466 #define NULL (void*)0
7469 static void *task(p)
7472 return (void *) (p == NULL);
7476 int main(argc, argv)
7481 /* pthread test function */
7485 /* make sure pthread_create() isn't just a stub */
7486 #if HAVE_PTHREADS_D4
7487 status = pthread_create(&t, pthread_attr_default, task, NULL);
7489 status = pthread_create(&t, NULL, task, NULL);
7492 if( status ) exit( status );
7494 /* make sure pthread_detach() isn't just a stub */
7495 #if HAVE_PTHREADS_D4
7496 status = pthread_detach( &t );
7498 status = pthread_detach( t );
7501 #ifdef HAVE_LINUX_THREADS
7502 pthread_kill_other_threads_np();
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7512 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7528 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7530 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7531 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7532 ol_link_threads=posix
7536 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7537 if test "$ol_link_threads" = no ; then
7538 # try -lpthread -lmach -lexc
7539 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7540 echo "configure:7541: checking for pthread link with -lpthread -lmach -lexc" >&5
7541 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7542 echo $ac_n "(cached) $ac_c" 1>&6
7547 LIBS="-lpthread -lmach -lexc $LIBS"
7549 if test "$cross_compiling" = yes; then
7550 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 /* pthread test headers */
7554 #include <pthread.h>
7556 #define NULL (void*)0
7559 static void *task(p)
7562 return (void *) (p == NULL);
7567 /* pthread test function */
7571 /* make sure pthread_create() isn't just a stub */
7572 #if HAVE_PTHREADS_D4
7573 status = pthread_create(&t, pthread_attr_default, task, NULL);
7575 status = pthread_create(&t, NULL, task, NULL);
7578 if( status ) exit( status );
7580 /* make sure pthread_detach() isn't just a stub */
7581 #if HAVE_PTHREADS_D4
7582 status = pthread_detach( &t );
7584 status = pthread_detach( t );
7587 #ifdef HAVE_LINUX_THREADS
7588 pthread_kill_other_threads_np();
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7597 ol_cv_pthread_lpthread_lmach_lexc=yes
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 ol_cv_pthread_lpthread_lmach_lexc=no
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 /* pthread test headers */
7610 #include <pthread.h>
7612 #define NULL (void*)0
7615 static void *task(p)
7618 return (void *) (p == NULL);
7622 int main(argc, argv)
7627 /* pthread test function */
7631 /* make sure pthread_create() isn't just a stub */
7632 #if HAVE_PTHREADS_D4
7633 status = pthread_create(&t, pthread_attr_default, task, NULL);
7635 status = pthread_create(&t, NULL, task, NULL);
7638 if( status ) exit( status );
7640 /* make sure pthread_detach() isn't just a stub */
7641 #if HAVE_PTHREADS_D4
7642 status = pthread_detach( &t );
7644 status = pthread_detach( t );
7647 #ifdef HAVE_LINUX_THREADS
7648 pthread_kill_other_threads_np();
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7658 ol_cv_pthread_lpthread_lmach_lexc=yes
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7663 ol_cv_pthread_lpthread_lmach_lexc=no
7674 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7676 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7677 ol_link_pthreads="-lpthread -lmach -lexc"
7678 ol_link_threads=posix
7683 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7684 if test "$ol_link_threads" = no ; then
7685 # try -lpthread -Wl,-woff,85
7686 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7687 echo "configure:7688: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7688 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7694 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7696 if test "$cross_compiling" = yes; then
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7700 /* pthread test headers */
7701 #include <pthread.h>
7703 #define NULL (void*)0
7706 static void *task(p)
7709 return (void *) (p == NULL);
7714 /* pthread test function */
7718 /* make sure pthread_create() isn't just a stub */
7719 #if HAVE_PTHREADS_D4
7720 status = pthread_create(&t, pthread_attr_default, task, NULL);
7722 status = pthread_create(&t, NULL, task, NULL);
7725 if( status ) exit( status );
7727 /* make sure pthread_detach() isn't just a stub */
7728 #if HAVE_PTHREADS_D4
7729 status = pthread_detach( &t );
7731 status = pthread_detach( t );
7734 #ifdef HAVE_LINUX_THREADS
7735 pthread_kill_other_threads_np();
7742 if { (eval echo configure:7743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 ol_cv_pthread_lib_lpthread_woff=yes
7746 echo "configure: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7749 ol_cv_pthread_lib_lpthread_woff=no
7753 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7756 /* pthread test headers */
7757 #include <pthread.h>
7759 #define NULL (void*)0
7762 static void *task(p)
7765 return (void *) (p == NULL);
7769 int main(argc, argv)
7774 /* pthread test function */
7778 /* make sure pthread_create() isn't just a stub */
7779 #if HAVE_PTHREADS_D4
7780 status = pthread_create(&t, pthread_attr_default, task, NULL);
7782 status = pthread_create(&t, NULL, task, NULL);
7785 if( status ) exit( status );
7787 /* make sure pthread_detach() isn't just a stub */
7788 #if HAVE_PTHREADS_D4
7789 status = pthread_detach( &t );
7791 status = pthread_detach( t );
7794 #ifdef HAVE_LINUX_THREADS
7795 pthread_kill_other_threads_np();
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7805 ol_cv_pthread_lib_lpthread_woff=yes
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 ol_cv_pthread_lib_lpthread_woff=no
7821 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7823 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7824 ol_link_pthreads="-lpthread -Wl,-woff,85"
7825 ol_link_threads=posix
7830 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7831 if test "$ol_link_threads" = no ; then
7833 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7834 echo "configure:7835: checking for pthread link with -lpthread" >&5
7835 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7841 LIBS="-lpthread $LIBS"
7843 if test "$cross_compiling" = yes; then
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 /* pthread test headers */
7848 #include <pthread.h>
7850 #define NULL (void*)0
7853 static void *task(p)
7856 return (void *) (p == NULL);
7861 /* pthread test function */
7865 /* make sure pthread_create() isn't just a stub */
7866 #if HAVE_PTHREADS_D4
7867 status = pthread_create(&t, pthread_attr_default, task, NULL);
7869 status = pthread_create(&t, NULL, task, NULL);
7872 if( status ) exit( status );
7874 /* make sure pthread_detach() isn't just a stub */
7875 #if HAVE_PTHREADS_D4
7876 status = pthread_detach( &t );
7878 status = pthread_detach( t );
7881 #ifdef HAVE_LINUX_THREADS
7882 pthread_kill_other_threads_np();
7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7891 ol_cv_pthread_lpthread=yes
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 ol_cv_pthread_lpthread=no
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7903 /* pthread test headers */
7904 #include <pthread.h>
7906 #define NULL (void*)0
7909 static void *task(p)
7912 return (void *) (p == NULL);
7916 int main(argc, argv)
7921 /* pthread test function */
7925 /* make sure pthread_create() isn't just a stub */
7926 #if HAVE_PTHREADS_D4
7927 status = pthread_create(&t, pthread_attr_default, task, NULL);
7929 status = pthread_create(&t, NULL, task, NULL);
7932 if( status ) exit( status );
7934 /* make sure pthread_detach() isn't just a stub */
7935 #if HAVE_PTHREADS_D4
7936 status = pthread_detach( &t );
7938 status = pthread_detach( t );
7941 #ifdef HAVE_LINUX_THREADS
7942 pthread_kill_other_threads_np();
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7952 ol_cv_pthread_lpthread=yes
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7957 ol_cv_pthread_lpthread=no
7968 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7970 if test $ol_cv_pthread_lpthread = yes ; then
7971 ol_link_pthreads="-lpthread"
7972 ol_link_threads=posix
7976 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7977 if test "$ol_link_threads" = no ; then
7979 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7980 echo "configure:7981: checking for pthread link with -lc_r" >&5
7981 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7989 if test "$cross_compiling" = yes; then
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* pthread test headers */
7994 #include <pthread.h>
7996 #define NULL (void*)0
7999 static void *task(p)
8002 return (void *) (p == NULL);
8007 /* pthread test function */
8011 /* make sure pthread_create() isn't just a stub */
8012 #if HAVE_PTHREADS_D4
8013 status = pthread_create(&t, pthread_attr_default, task, NULL);
8015 status = pthread_create(&t, NULL, task, NULL);
8018 if( status ) exit( status );
8020 /* make sure pthread_detach() isn't just a stub */
8021 #if HAVE_PTHREADS_D4
8022 status = pthread_detach( &t );
8024 status = pthread_detach( t );
8027 #ifdef HAVE_LINUX_THREADS
8028 pthread_kill_other_threads_np();
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8037 ol_cv_pthread_lc_r=yes
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8042 ol_cv_pthread_lc_r=no
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* pthread test headers */
8050 #include <pthread.h>
8052 #define NULL (void*)0
8055 static void *task(p)
8058 return (void *) (p == NULL);
8062 int main(argc, argv)
8067 /* pthread test function */
8071 /* make sure pthread_create() isn't just a stub */
8072 #if HAVE_PTHREADS_D4
8073 status = pthread_create(&t, pthread_attr_default, task, NULL);
8075 status = pthread_create(&t, NULL, task, NULL);
8078 if( status ) exit( status );
8080 /* make sure pthread_detach() isn't just a stub */
8081 #if HAVE_PTHREADS_D4
8082 status = pthread_detach( &t );
8084 status = pthread_detach( t );
8087 #ifdef HAVE_LINUX_THREADS
8088 pthread_kill_other_threads_np();
8096 if { (eval echo configure:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8098 ol_cv_pthread_lc_r=yes
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 ol_cv_pthread_lc_r=no
8114 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8116 if test $ol_cv_pthread_lc_r = yes ; then
8117 ol_link_pthreads="-lc_r"
8118 ol_link_threads=posix
8123 # Pthread try link: -threads (ol_cv_pthread_threads)
8124 if test "$ol_link_threads" = no ; then
8126 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8127 echo "configure:8128: checking for pthread link with -threads" >&5
8128 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6
8134 LIBS="-threads $LIBS"
8136 if test "$cross_compiling" = yes; then
8137 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 /* pthread test headers */
8141 #include <pthread.h>
8143 #define NULL (void*)0
8146 static void *task(p)
8149 return (void *) (p == NULL);
8154 /* pthread test function */
8158 /* make sure pthread_create() isn't just a stub */
8159 #if HAVE_PTHREADS_D4
8160 status = pthread_create(&t, pthread_attr_default, task, NULL);
8162 status = pthread_create(&t, NULL, task, NULL);
8165 if( status ) exit( status );
8167 /* make sure pthread_detach() isn't just a stub */
8168 #if HAVE_PTHREADS_D4
8169 status = pthread_detach( &t );
8171 status = pthread_detach( t );
8174 #ifdef HAVE_LINUX_THREADS
8175 pthread_kill_other_threads_np();
8182 if { (eval echo configure:8183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 ol_cv_pthread_threads=yes
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 ol_cv_pthread_threads=no
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* pthread test headers */
8197 #include <pthread.h>
8199 #define NULL (void*)0
8202 static void *task(p)
8205 return (void *) (p == NULL);
8209 int main(argc, argv)
8214 /* pthread test function */
8218 /* make sure pthread_create() isn't just a stub */
8219 #if HAVE_PTHREADS_D4
8220 status = pthread_create(&t, pthread_attr_default, task, NULL);
8222 status = pthread_create(&t, NULL, task, NULL);
8225 if( status ) exit( status );
8227 /* make sure pthread_detach() isn't just a stub */
8228 #if HAVE_PTHREADS_D4
8229 status = pthread_detach( &t );
8231 status = pthread_detach( t );
8234 #ifdef HAVE_LINUX_THREADS
8235 pthread_kill_other_threads_np();
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8245 ol_cv_pthread_threads=yes
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 ol_cv_pthread_threads=no
8261 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8263 if test $ol_cv_pthread_threads = yes ; then
8264 ol_link_pthreads="-threads"
8265 ol_link_threads=posix
8270 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8271 if test "$ol_link_threads" = no ; then
8272 # try -lpthreads -lmach -lexc -lc_r
8273 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8274 echo "configure:8275: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8275 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8281 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8283 if test "$cross_compiling" = yes; then
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8287 /* pthread test headers */
8288 #include <pthread.h>
8290 #define NULL (void*)0
8293 static void *task(p)
8296 return (void *) (p == NULL);
8301 /* pthread test function */
8305 /* make sure pthread_create() isn't just a stub */
8306 #if HAVE_PTHREADS_D4
8307 status = pthread_create(&t, pthread_attr_default, task, NULL);
8309 status = pthread_create(&t, NULL, task, NULL);
8312 if( status ) exit( status );
8314 /* make sure pthread_detach() isn't just a stub */
8315 #if HAVE_PTHREADS_D4
8316 status = pthread_detach( &t );
8318 status = pthread_detach( t );
8321 #ifdef HAVE_LINUX_THREADS
8322 pthread_kill_other_threads_np();
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8343 /* pthread test headers */
8344 #include <pthread.h>
8346 #define NULL (void*)0
8349 static void *task(p)
8352 return (void *) (p == NULL);
8356 int main(argc, argv)
8361 /* pthread test function */
8365 /* make sure pthread_create() isn't just a stub */
8366 #if HAVE_PTHREADS_D4
8367 status = pthread_create(&t, pthread_attr_default, task, NULL);
8369 status = pthread_create(&t, NULL, task, NULL);
8372 if( status ) exit( status );
8374 /* make sure pthread_detach() isn't just a stub */
8375 #if HAVE_PTHREADS_D4
8376 status = pthread_detach( &t );
8378 status = pthread_detach( t );
8381 #ifdef HAVE_LINUX_THREADS
8382 pthread_kill_other_threads_np();
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8392 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8408 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8410 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8411 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8412 ol_link_threads=posix
8416 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8417 if test "$ol_link_threads" = no ; then
8418 # try -lpthreads -lmach -lexc
8419 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8420 echo "configure:8421: checking for pthread link with -lpthreads -lmach -lexc" >&5
8421 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8427 LIBS="-lpthreads -lmach -lexc $LIBS"
8429 if test "$cross_compiling" = yes; then
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 /* pthread test headers */
8434 #include <pthread.h>
8436 #define NULL (void*)0
8439 static void *task(p)
8442 return (void *) (p == NULL);
8447 /* pthread test function */
8451 /* make sure pthread_create() isn't just a stub */
8452 #if HAVE_PTHREADS_D4
8453 status = pthread_create(&t, pthread_attr_default, task, NULL);
8455 status = pthread_create(&t, NULL, task, NULL);
8458 if( status ) exit( status );
8460 /* make sure pthread_detach() isn't just a stub */
8461 #if HAVE_PTHREADS_D4
8462 status = pthread_detach( &t );
8464 status = pthread_detach( t );
8467 #ifdef HAVE_LINUX_THREADS
8468 pthread_kill_other_threads_np();
8475 if { (eval echo configure:8476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8477 ol_cv_pthread_lpthreads_lmach_lexc=yes
8479 echo "configure: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8482 ol_cv_pthread_lpthreads_lmach_lexc=no
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 /* pthread test headers */
8490 #include <pthread.h>
8492 #define NULL (void*)0
8495 static void *task(p)
8498 return (void *) (p == NULL);
8502 int main(argc, argv)
8507 /* pthread test function */
8511 /* make sure pthread_create() isn't just a stub */
8512 #if HAVE_PTHREADS_D4
8513 status = pthread_create(&t, pthread_attr_default, task, NULL);
8515 status = pthread_create(&t, NULL, task, NULL);
8518 if( status ) exit( status );
8520 /* make sure pthread_detach() isn't just a stub */
8521 #if HAVE_PTHREADS_D4
8522 status = pthread_detach( &t );
8524 status = pthread_detach( t );
8527 #ifdef HAVE_LINUX_THREADS
8528 pthread_kill_other_threads_np();
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8538 ol_cv_pthread_lpthreads_lmach_lexc=yes
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 ol_cv_pthread_lpthreads_lmach_lexc=no
8554 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8556 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8557 ol_link_pthreads="-lpthreads -lmach -lexc"
8558 ol_link_threads=posix
8562 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8563 if test "$ol_link_threads" = no ; then
8564 # try -lpthreads -lexc
8565 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8566 echo "configure:8567: checking for pthread link with -lpthreads -lexc" >&5
8567 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8573 LIBS="-lpthreads -lexc $LIBS"
8575 if test "$cross_compiling" = yes; then
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* pthread test headers */
8580 #include <pthread.h>
8582 #define NULL (void*)0
8585 static void *task(p)
8588 return (void *) (p == NULL);
8593 /* pthread test function */
8597 /* make sure pthread_create() isn't just a stub */
8598 #if HAVE_PTHREADS_D4
8599 status = pthread_create(&t, pthread_attr_default, task, NULL);
8601 status = pthread_create(&t, NULL, task, NULL);
8604 if( status ) exit( status );
8606 /* make sure pthread_detach() isn't just a stub */
8607 #if HAVE_PTHREADS_D4
8608 status = pthread_detach( &t );
8610 status = pthread_detach( t );
8613 #ifdef HAVE_LINUX_THREADS
8614 pthread_kill_other_threads_np();
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8623 ol_cv_pthread_lpthreads_lexc=yes
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 ol_cv_pthread_lpthreads_lexc=no
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* pthread test headers */
8636 #include <pthread.h>
8638 #define NULL (void*)0
8641 static void *task(p)
8644 return (void *) (p == NULL);
8648 int main(argc, argv)
8653 /* pthread test function */
8657 /* make sure pthread_create() isn't just a stub */
8658 #if HAVE_PTHREADS_D4
8659 status = pthread_create(&t, pthread_attr_default, task, NULL);
8661 status = pthread_create(&t, NULL, task, NULL);
8664 if( status ) exit( status );
8666 /* make sure pthread_detach() isn't just a stub */
8667 #if HAVE_PTHREADS_D4
8668 status = pthread_detach( &t );
8670 status = pthread_detach( t );
8673 #ifdef HAVE_LINUX_THREADS
8674 pthread_kill_other_threads_np();
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8684 ol_cv_pthread_lpthreads_lexc=yes
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 ol_cv_pthread_lpthreads_lexc=no
8700 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8702 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8703 ol_link_pthreads="-lpthreads -lexc"
8704 ol_link_threads=posix
8709 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8710 if test "$ol_link_threads" = no ; then
8712 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8713 echo "configure:8714: checking for pthread link with -lpthreads" >&5
8714 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8720 LIBS="-lpthreads $LIBS"
8722 if test "$cross_compiling" = yes; then
8723 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726 /* pthread test headers */
8727 #include <pthread.h>
8729 #define NULL (void*)0
8732 static void *task(p)
8735 return (void *) (p == NULL);
8740 /* pthread test function */
8744 /* make sure pthread_create() isn't just a stub */
8745 #if HAVE_PTHREADS_D4
8746 status = pthread_create(&t, pthread_attr_default, task, NULL);
8748 status = pthread_create(&t, NULL, task, NULL);
8751 if( status ) exit( status );
8753 /* make sure pthread_detach() isn't just a stub */
8754 #if HAVE_PTHREADS_D4
8755 status = pthread_detach( &t );
8757 status = pthread_detach( t );
8760 #ifdef HAVE_LINUX_THREADS
8761 pthread_kill_other_threads_np();
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8770 ol_cv_pthread_lib_lpthreads=yes
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 ol_cv_pthread_lib_lpthreads=no
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* pthread test headers */
8783 #include <pthread.h>
8785 #define NULL (void*)0
8788 static void *task(p)
8791 return (void *) (p == NULL);
8795 int main(argc, argv)
8800 /* pthread test function */
8804 /* make sure pthread_create() isn't just a stub */
8805 #if HAVE_PTHREADS_D4
8806 status = pthread_create(&t, pthread_attr_default, task, NULL);
8808 status = pthread_create(&t, NULL, task, NULL);
8811 if( status ) exit( status );
8813 /* make sure pthread_detach() isn't just a stub */
8814 #if HAVE_PTHREADS_D4
8815 status = pthread_detach( &t );
8817 status = pthread_detach( t );
8820 #ifdef HAVE_LINUX_THREADS
8821 pthread_kill_other_threads_np();
8829 if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8831 ol_cv_pthread_lib_lpthreads=yes
8833 echo "configure: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8836 ol_cv_pthread_lib_lpthreads=no
8847 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8849 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8850 ol_link_pthreads="-lpthreads"
8851 ol_link_threads=posix
8856 if test $ol_link_threads != no ; then
8857 cat >> confdefs.h <<\EOF
8858 #define HAVE_PTHREADS 1
8862 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8864 save_CPPFLAGS="$CPPFLAGS"
8866 LIBS="$LTHREAD_LIBS $LIBS"
8868 for ac_func in sched_yield pthread_yield
8870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_func" >&5
8872 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char $ac_func(); below. */
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 eval "ac_cv_func_$ac_func=yes"
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 eval "ac_cv_func_$ac_func=no"
8912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8915 cat >> confdefs.h <<EOF
8916 #define $ac_tr_func 1
8920 echo "$ac_t""no" 1>&6
8925 if test $ac_cv_func_sched_yield = no -a \
8926 $ac_cv_func_pthread_yield = no ; then
8927 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8928 echo "configure:8929: checking for sched_yield in -lrt" >&5
8929 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
8930 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8931 echo $ac_n "(cached) $ac_c" 1>&6
8933 ac_save_LIBS="$LIBS"
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 /* Override any gcc2 internal prototype to avoid an error. */
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8947 if { (eval echo configure:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8949 eval "ac_cv_lib_$ac_lib_var=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_lib_$ac_lib_var=no"
8957 LIBS="$ac_save_LIBS"
8960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8961 echo "$ac_t""yes" 1>&6
8962 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8963 cat >> confdefs.h <<\EOF
8964 #define HAVE_SCHED_YIELD 1
8967 ac_cv_func_sched_yield=yes
8969 echo "$ac_t""no" 1>&6
8970 ac_cv_func_sched_yield=no
8974 if test $ac_cv_func_sched_yield = no -a \
8975 $ac_cv_func_pthread_yield = no ; then
8976 for ac_func in thr_yield
8978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8979 echo "configure:8980: checking for $ac_func" >&5
8980 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 /* System header to define __stub macros and hopefully few prototypes,
8987 which can conflict with char $ac_func(); below. */
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8997 /* The GNU C library defines this for functions which it implements
8998 to always fail with ENOSYS. Some functions are actually named
8999 something starting with __ and the normal name is an alias. */
9000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9008 if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9010 eval "ac_cv_func_$ac_func=yes"
9012 echo "configure: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9015 eval "ac_cv_func_$ac_func=no"
9020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9021 echo "$ac_t""yes" 1>&6
9022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9023 cat >> confdefs.h <<EOF
9024 #define $ac_tr_func 1
9028 echo "$ac_t""no" 1>&6
9033 if test $ac_cv_func_sched_yield = no -a \
9034 $ac_cv_func_pthread_yield = no -a \
9035 "$ac_cv_func_thr_yield" = no ; then
9036 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9039 for ac_func in pthread_kill
9041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9042 echo "configure:9043: checking for $ac_func" >&5
9043 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 /* System header to define __stub macros and hopefully few prototypes,
9050 which can conflict with char $ac_func(); below. */
9052 /* Override any gcc2 internal prototype to avoid an error. */
9053 /* We use char because int might match the return type of a gcc2
9054 builtin and then its argument prototype would still apply. */
9060 /* The GNU C library defines this for functions which it implements
9061 to always fail with ENOSYS. Some functions are actually named
9062 something starting with __ and the normal name is an alias. */
9063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9071 if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9073 eval "ac_cv_func_$ac_func=yes"
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9078 eval "ac_cv_func_$ac_func=no"
9083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9084 echo "$ac_t""yes" 1>&6
9085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9086 cat >> confdefs.h <<EOF
9087 #define $ac_tr_func 1
9091 echo "$ac_t""no" 1>&6
9096 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9097 echo "configure:9098: checking for pthread_detach with <pthread.h>" >&5
9098 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9102 cat > conftest.$ac_ext <<EOF
9103 #line 9104 "configure"
9104 #include "confdefs.h"
9106 #include <pthread.h>
9108 #define NULL (void*)0
9112 pthread_detach(NULL);
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 ol_cv_func_pthread_detach=yes
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 ol_cv_func_pthread_detach=no
9128 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9130 if test $ol_cv_func_pthread_detach = no ; then
9131 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_PTHREAD_DETACH 1
9140 pthread_setconcurrency \
9141 pthread_getconcurrency \
9142 thr_setconcurrency \
9143 thr_getconcurrency \
9146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9147 echo "configure:9148: checking for $ac_func" >&5
9148 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9149 echo $ac_n "(cached) $ac_c" 1>&6
9151 cat > conftest.$ac_ext <<EOF
9152 #line 9153 "configure"
9153 #include "confdefs.h"
9154 /* System header to define __stub macros and hopefully few prototypes,
9155 which can conflict with char $ac_func(); below. */
9157 /* Override any gcc2 internal prototype to avoid an error. */
9158 /* We use char because int might match the return type of a gcc2
9159 builtin and then its argument prototype would still apply. */
9165 /* The GNU C library defines this for functions which it implements
9166 to always fail with ENOSYS. Some functions are actually named
9167 something starting with __ and the normal name is an alias. */
9168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9176 if { (eval echo configure:9177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9178 eval "ac_cv_func_$ac_func=yes"
9180 echo "configure: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9183 eval "ac_cv_func_$ac_func=no"
9188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9189 echo "$ac_t""yes" 1>&6
9190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9191 cat >> confdefs.h <<EOF
9192 #define $ac_tr_func 1
9196 echo "$ac_t""no" 1>&6
9202 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9203 echo "configure:9204: checking for pthread_kill_other_threads_np" >&5
9204 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9210 /* System header to define __stub macros and hopefully few prototypes,
9211 which can conflict with char pthread_kill_other_threads_np(); below. */
9213 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9216 char pthread_kill_other_threads_np();
9221 /* The GNU C library defines this for functions which it implements
9222 to always fail with ENOSYS. Some functions are actually named
9223 something starting with __ and the normal name is an alias. */
9224 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9227 f = pthread_kill_other_threads_np;
9232 if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9234 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9239 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9244 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9245 echo "$ac_t""yes" 1>&6
9248 echo "$ac_t""no" 1>&6
9251 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9252 echo "configure:9253: checking for LinuxThreads implementation" >&5
9253 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9259 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9264 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9265 echo "configure:9266: checking for LinuxThreads consistency" >&5
9266 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9270 if test $ol_cv_header_linux_threads = yes -a \
9271 $ol_cv_sys_linux_threads = yes; then
9272 ol_cv_linux_threads=yes
9273 elif test $ol_cv_header_linux_threads = no -a \
9274 $ol_cv_sys_linux_threads = no; then
9275 ol_cv_linux_threads=no
9277 ol_cv_linux_threads=error
9282 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9285 if test $ol_cv_linux_threads = error; then
9286 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9289 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9290 echo "configure:9291: checking if pthread_create() works" >&5
9291 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9292 echo $ac_n "(cached) $ac_c" 1>&6
9295 if test "$cross_compiling" = yes; then
9296 ol_cv_pthread_create_works=yes
9298 cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9301 /* pthread test headers */
9302 #include <pthread.h>
9304 #define NULL (void*)0
9307 static void *task(p)
9310 return (void *) (p == NULL);
9314 int main(argc, argv)
9319 /* pthread test function */
9323 /* make sure pthread_create() isn't just a stub */
9324 #if HAVE_PTHREADS_D4
9325 status = pthread_create(&t, pthread_attr_default, task, NULL);
9327 status = pthread_create(&t, NULL, task, NULL);
9330 if( status ) exit( status );
9332 /* make sure pthread_detach() isn't just a stub */
9333 #if HAVE_PTHREADS_D4
9334 status = pthread_detach( &t );
9336 status = pthread_detach( t );
9339 #ifdef HAVE_LINUX_THREADS
9340 pthread_kill_other_threads_np();
9348 if { (eval echo configure:9349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9350 ol_cv_pthread_create_works=yes
9352 echo "configure: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9355 ol_cv_pthread_create_works=no
9362 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9364 if test $ol_cv_pthread_create_works = no ; then
9365 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9368 if test $ol_with_yielding_select = auto ; then
9369 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9370 echo "configure:9371: checking if select yields when using pthreads" >&5
9371 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9375 if test "$cross_compiling" = yes; then
9376 ol_cv_pthread_select_yields=cross
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9382 #include <sys/types.h>
9383 #include <sys/time.h>
9385 #include <pthread.h>
9387 #define NULL (void*) 0
9390 static int fildes[2];
9392 static void *task(p)
9404 FD_SET(fildes[0], &rfds);
9406 /* we're not interested in any fds */
9407 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9414 exit(0); /* if we exit here, the select blocked the whole process */
9417 int main(argc, argv)
9423 /* create a pipe to select */
9424 if(pipe(&fildes[0])) {
9429 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9430 (void) pthread_setconcurrency(2);
9432 #ifdef HAVE_THR_SETCONCURRENCY
9433 /* Set Solaris LWP concurrency to 2 */
9434 thr_setconcurrency(2);
9438 #if HAVE_PTHREADS_D4
9439 pthread_create(&t, pthread_attr_default, task, NULL);
9441 pthread_create(&t, NULL, task, NULL);
9444 #if HAVE_SCHED_YIELD
9445 sched_yield(); /* make sure task runs first */
9447 #ifdef HAVE_PTHREAD_YIELD
9448 pthread_yield(); /* make sure task runs first */
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9457 ol_cv_pthread_select_yields=no
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9462 ol_cv_pthread_select_yields=yes
9469 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9471 if test $ol_cv_pthread_select_yields = cross ; then
9472 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9475 if test $ol_cv_pthread_select_yields = yes ; then
9476 ol_with_yielding_select=yes
9480 CPPFLAGS="$save_CPPFLAGS"
9483 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9487 if test $ol_with_threads = posix ; then
9488 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9492 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9493 -o $ol_with_threads = mach ; then
9495 for ac_hdr in mach/cthreads.h
9497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9499 echo "configure:9500: checking for $ac_hdr" >&5
9500 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9509 { (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9511 if test -z "$ac_err"; then
9513 eval "ac_cv_header_$ac_safe=yes"
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 eval "ac_cv_header_$ac_safe=no"
9523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9524 echo "$ac_t""yes" 1>&6
9525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9526 cat >> confdefs.h <<EOF
9527 #define $ac_tr_hdr 1
9531 echo "$ac_t""no" 1>&6
9535 if test $ac_cv_header_mach_cthreads_h = yes ; then
9536 ol_with_threads=found
9538 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9539 echo "configure:9540: checking for cthread_fork" >&5
9540 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 /* System header to define __stub macros and hopefully few prototypes,
9547 which can conflict with char cthread_fork(); below. */
9549 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552 char cthread_fork();
9557 /* The GNU C library defines this for functions which it implements
9558 to always fail with ENOSYS. Some functions are actually named
9559 something starting with __ and the normal name is an alias. */
9560 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9568 if { (eval echo configure:9569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9570 eval "ac_cv_func_cthread_fork=yes"
9572 echo "configure: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9575 eval "ac_cv_func_cthread_fork=no"
9580 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9581 echo "$ac_t""yes" 1>&6
9584 echo "$ac_t""no" 1>&6
9588 if test $ol_link_threads = no ; then
9589 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9590 echo "configure:9591: checking for cthread_fork with -all_load" >&5
9591 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9596 LIBS="-all_load $LIBS"
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9600 #include <mach/cthreads.h>
9603 cthread_fork((void *)0, (void *)0);
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9609 ol_cv_cthread_all_load=yes
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9614 ol_cv_cthread_all_load=no
9621 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9623 if test $ol_cv_cthread_all_load = yes ; then
9624 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9625 ol_link_threads=mach
9629 if test $ol_link_threads != no ; then
9630 : check for cthread specific functionality here
9631 cat >> confdefs.h <<\EOF
9632 #define HAVE_MACH_CTHREADS 1
9636 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9640 if test $ol_with_threads = mach ; then
9641 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9645 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9646 -o $ol_with_threads = lwp ; then
9648 for ac_hdr in thread.h synch.h
9650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9652 echo "configure:9653: checking for $ac_hdr" >&5
9653 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9662 { (eval echo configure:9663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9664 if test -z "$ac_err"; then
9666 eval "ac_cv_header_$ac_safe=yes"
9669 echo "configure: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9672 eval "ac_cv_header_$ac_safe=no"
9676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9677 echo "$ac_t""yes" 1>&6
9678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9679 cat >> confdefs.h <<EOF
9680 #define $ac_tr_hdr 1
9684 echo "$ac_t""no" 1>&6
9688 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9689 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9690 echo "configure:9691: checking for thr_create in -lthread" >&5
9691 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9692 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9693 echo $ac_n "(cached) $ac_c" 1>&6
9695 ac_save_LIBS="$LIBS"
9696 LIBS="-lthread $LIBS"
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9709 if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9711 eval "ac_cv_lib_$ac_lib_var=yes"
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 eval "ac_cv_lib_$ac_lib_var=no"
9719 LIBS="$ac_save_LIBS"
9722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9723 echo "$ac_t""yes" 1>&6
9726 echo "$ac_t""no" 1>&6
9731 if test $have_thr = yes ; then
9732 cat >> confdefs.h <<\EOF
9736 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9739 if test $ol_with_yielding_select = auto ; then
9740 ol_with_yielding_select=yes
9744 thr_setconcurrency \
9745 thr_getconcurrency \
9748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9749 echo "configure:9750: checking for $ac_func" >&5
9750 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char $ac_func(); below. */
9759 /* Override any gcc2 internal prototype to avoid an error. */
9760 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9780 eval "ac_cv_func_$ac_func=yes"
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 eval "ac_cv_func_$ac_func=no"
9790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9791 echo "$ac_t""yes" 1>&6
9792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9793 cat >> confdefs.h <<EOF
9794 #define $ac_tr_func 1
9798 echo "$ac_t""no" 1>&6
9805 for ac_hdr in lwp/lwp.h
9807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9809 echo "configure:9810: checking for $ac_hdr" >&5
9810 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9819 { (eval echo configure:9820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9821 if test -z "$ac_err"; then
9823 eval "ac_cv_header_$ac_safe=yes"
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9829 eval "ac_cv_header_$ac_safe=no"
9833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9834 echo "$ac_t""yes" 1>&6
9835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9836 cat >> confdefs.h <<EOF
9837 #define $ac_tr_hdr 1
9841 echo "$ac_t""no" 1>&6
9845 if test $ac_cv_header_lwp_lwp_h = yes ; then
9846 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9847 echo "configure:9848: checking for lwp_create in -llwp" >&5
9848 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
9849 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9852 ac_save_LIBS="$LIBS"
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 /* Override any gcc2 internal prototype to avoid an error. */
9858 /* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9866 if { (eval echo configure:9867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9868 eval "ac_cv_lib_$ac_lib_var=yes"
9870 echo "configure: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9873 eval "ac_cv_lib_$ac_lib_var=no"
9876 LIBS="$ac_save_LIBS"
9879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9880 echo "$ac_t""yes" 1>&6
9883 echo "$ac_t""no" 1>&6
9888 if test $have_lwp = yes ; then
9889 cat >> confdefs.h <<\EOF
9893 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9896 if test $ol_with_yielding_select = auto ; then
9897 ol_with_yielding_select=no
9903 if test $ol_with_yielding_select = yes ; then
9904 cat >> confdefs.h <<\EOF
9905 #define HAVE_YIELDING_SELECT 1
9910 if test $ol_with_threads = manual ; then
9913 echo "configure: warning: thread defines and link options must be set manually" 1>&2
9915 for ac_hdr in pthread.h sched.h
9917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9919 echo "configure:9920: checking for $ac_hdr" >&5
9920 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9929 { (eval echo configure:9930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9931 if test -z "$ac_err"; then
9933 eval "ac_cv_header_$ac_safe=yes"
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 eval "ac_cv_header_$ac_safe=no"
9943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9946 cat >> confdefs.h <<EOF
9947 #define $ac_tr_hdr 1
9951 echo "$ac_t""no" 1>&6
9955 for ac_func in sched_yield pthread_yield
9957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9958 echo "configure:9959: checking for $ac_func" >&5
9959 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 /* System header to define __stub macros and hopefully few prototypes,
9966 which can conflict with char $ac_func(); below. */
9968 /* Override any gcc2 internal prototype to avoid an error. */
9969 /* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9976 /* The GNU C library defines this for functions which it implements
9977 to always fail with ENOSYS. Some functions are actually named
9978 something starting with __ and the normal name is an alias. */
9979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9989 eval "ac_cv_func_$ac_func=yes"
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 eval "ac_cv_func_$ac_func=no"
9999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10000 echo "$ac_t""yes" 1>&6
10001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10002 cat >> confdefs.h <<EOF
10003 #define $ac_tr_func 1
10007 echo "$ac_t""no" 1>&6
10012 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10013 echo "configure:10014: checking for LinuxThreads pthread.h" >&5
10014 if eval "test \"\${ol_cv_header_linux_threads+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"
10020 #include <pthread.h>
10022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10023 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10025 ol_cv_header_linux_threads=yes
10028 ol_cv_header_linux_threads=no
10035 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10036 if test $ol_cv_header_linux_threads = yes; then
10037 cat >> confdefs.h <<\EOF
10038 #define HAVE_LINUX_THREADS 1
10044 for ac_hdr in mach/cthreads.h
10046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10048 echo "configure:10049: checking for $ac_hdr" >&5
10049 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10050 echo $ac_n "(cached) $ac_c" 1>&6
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10058 { (eval echo configure:10059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10060 if test -z "$ac_err"; then
10062 eval "ac_cv_header_$ac_safe=yes"
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10068 eval "ac_cv_header_$ac_safe=no"
10072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10073 echo "$ac_t""yes" 1>&6
10074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10075 cat >> confdefs.h <<EOF
10076 #define $ac_tr_hdr 1
10080 echo "$ac_t""no" 1>&6
10084 for ac_hdr in lwp/lwp.h
10086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10088 echo "configure:10089: checking for $ac_hdr" >&5
10089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10090 echo $ac_n "(cached) $ac_c" 1>&6
10092 cat > conftest.$ac_ext <<EOF
10093 #line 10094 "configure"
10094 #include "confdefs.h"
10097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10098 { (eval echo configure:10099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10100 if test -z "$ac_err"; then
10102 eval "ac_cv_header_$ac_safe=yes"
10105 echo "configure: failed program was:" >&5
10106 cat conftest.$ac_ext >&5
10108 eval "ac_cv_header_$ac_safe=no"
10112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10113 echo "$ac_t""yes" 1>&6
10114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10115 cat >> confdefs.h <<EOF
10116 #define $ac_tr_hdr 1
10120 echo "$ac_t""no" 1>&6
10124 for ac_hdr in thread.h synch.h
10126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10128 echo "configure:10129: checking for $ac_hdr" >&5
10129 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10138 { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10140 if test -z "$ac_err"; then
10142 eval "ac_cv_header_$ac_safe=yes"
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10148 eval "ac_cv_header_$ac_safe=no"
10152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10153 echo "$ac_t""yes" 1>&6
10154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10155 cat >> confdefs.h <<EOF
10156 #define $ac_tr_hdr 1
10160 echo "$ac_t""no" 1>&6
10166 if test $ol_link_threads != no ; then
10167 cat >> confdefs.h <<\EOF
10168 #define REENTRANT 1
10171 cat >> confdefs.h <<\EOF
10172 #define _REENTRANT 1
10175 cat >> confdefs.h <<\EOF
10176 #define THREAD_SAFE 1
10179 cat >> confdefs.h <<\EOF
10180 #define _THREAD_SAFE 1
10183 cat >> confdefs.h <<\EOF
10184 #define THREADSAFE 1
10187 cat >> confdefs.h <<\EOF
10188 #define _THREADSAFE 1
10191 cat >> confdefs.h <<\EOF
10192 #define _SGI_MP_SOURCE 1
10196 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10197 echo "configure:10198: checking for thread specific errno" >&5
10198 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10202 cat > conftest.$ac_ext <<EOF
10203 #line 10204 "configure"
10204 #include "confdefs.h"
10210 if { (eval echo configure:10211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10212 ol_cv_errno_thread_specific=yes
10214 echo "configure: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10217 ol_cv_errno_thread_specific=no
10223 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10225 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10226 echo "configure:10227: checking for thread specific h_errno" >&5
10227 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10228 echo $ac_n "(cached) $ac_c" 1>&6
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10239 if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10241 ol_cv_h_errno_thread_specific=yes
10243 echo "configure: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10246 ol_cv_h_errno_thread_specific=no
10252 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10254 if test $ol_cv_errno_thread_specific != yes \
10255 -o $ol_cv_h_errno_thread_specific != yes ; then
10256 LIBS="$LTHREAD_LIBS $LIBS"
10262 if test $ol_link_threads = no ; then
10263 if test $ol_with_threads = yes ; then
10264 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10267 if test $ol_with_threads = auto ; then
10268 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10272 cat >> confdefs.h <<\EOF
10273 #define NO_THREADS 1
10279 if test $ol_link_threads != no ; then
10280 cat >> confdefs.h <<\EOF
10281 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10288 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10289 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10290 echo "configure:10291: checking for DB2 library" >&5
10291 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10292 echo $ac_n "(cached) $ac_c" 1>&6
10295 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
10296 echo "configure:10297: checking for db_open in -ldb" >&5
10297 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
10298 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10301 ac_save_LIBS="$LIBS"
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10306 /* Override any gcc2 internal prototype to avoid an error. */
10307 /* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10317 eval "ac_cv_lib_$ac_lib_var=yes"
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10322 eval "ac_cv_lib_$ac_lib_var=no"
10325 LIBS="$ac_save_LIBS"
10328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10329 echo "$ac_t""yes" 1>&6
10332 echo "$ac_t""no" 1>&6
10340 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10346 echo "configure:10347: checking for $ac_hdr" >&5
10347 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10348 echo $ac_n "(cached) $ac_c" 1>&6
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10352 "configure"
10352 #include "confdefs.h"
10355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10356 { (eval echo configure:10357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10358 if test -z "$ac_err"; then
10360 eval "ac_cv_header_$ac_safe=yes"
10363 echo "configure: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10366 eval "ac_cv_header_$ac_safe=no"
10370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10371 echo "$ac_t""yes" 1>&6
10372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10373 cat >> confdefs.h <<EOF
10374 #define $ac_tr_hdr 1
10378 echo "$ac_t""no" 1>&6
10382 if test $ac_cv_header_db_h = yes ; then
10383 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10384 echo "configure:10385: checking if db.h is DB2" >&5
10385 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10394 /* this check could be improved */
10395 # ifdef DB_VERSION_MAJOR
10396 # if DB_VERSION_MAJOR == 2
10402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10403 egrep "__db_version_2" >/dev/null 2>&1; then
10405 ol_cv_header_db2=yes
10408 ol_cv_header_db2=no
10414 echo "$ac_t""$ol_cv_header_db2" 1>&6
10416 ol_cv_header_db2=no
10421 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10422 echo "configure:10423: checking for Berkeley DB2" >&5
10423 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10427 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10428 ol_cv_berkeley_db2=no
10430 ol_cv_berkeley_db2=yes
10435 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10436 if test $ol_cv_berkeley_db2 = yes ; then
10437 cat >> confdefs.h <<\EOF
10438 #define HAVE_BERKELEY_DB2 1
10444 if test $ol_cv_berkeley_db2 = yes ; then
10446 ol_with_ldbm_api=db2
10448 if test $ol_with_ldbm_type = hash ; then
10449 cat >> confdefs.h <<\EOF
10450 #define LDBM_USE_DBHASH 1
10454 cat >> confdefs.h <<\EOF
10455 #define LDBM_USE_DBBTREE 1
10460 if test $ol_cv_lib_db2 != yes ; then
10461 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10467 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10471 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10472 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10473 echo "configure:10474: checking for Berkeley DB library" >&5
10474 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10478 for ac_hdr in db1/db.h
10480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10482 echo "configure:10483: checking for $ac_hdr" >&5
10483 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10492 { (eval echo configure:10493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10494 if test -z "$ac_err"; then
10496 eval "ac_cv_header_$ac_safe=yes"
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 eval "ac_cv_header_$ac_safe=no"
10506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10507 echo "$ac_t""yes" 1>&6
10508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10509 cat >> confdefs.h <<EOF
10510 #define $ac_tr_hdr 1
10514 echo "$ac_t""no" 1>&6
10519 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10520 echo "configure:10521: checking for dbopen" >&5
10521 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
10524 cat > conftest.$ac_ext <<EOF
10525 #line 10526 "configure"
10526 #include "confdefs.h"
10527 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char dbopen(); below. */
10529 #include <assert.h>
10530 /* Override any gcc2 internal prototype to avoid an error. */
10531 /* We use char because int might match the return type of a gcc2
10532 builtin and then its argument prototype would still apply. */
10538 /* The GNU C library defines this for functions which it implements
10539 to always fail with ENOSYS. Some functions are actually named
10540 something starting with __ and the normal name is an alias. */
10541 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10549 if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10551 eval "ac_cv_func_dbopen=yes"
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10556 eval "ac_cv_func_dbopen=no"
10561 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10562 echo "$ac_t""yes" 1>&6
10565 echo "$ac_t""no" 1>&6
10567 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10568 echo "configure:10569: checking for dbopen in -ldb1" >&5
10569 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10570 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10571 echo $ac_n "(cached) $ac_c" 1>&6
10573 ac_save_LIBS="$LIBS"
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10578 /* Override any gcc2 internal prototype to avoid an error. */
10579 /* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10589 eval "ac_cv_lib_$ac_lib_var=yes"
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10594 eval "ac_cv_lib_$ac_lib_var=no"
10597 LIBS="$ac_save_LIBS"
10600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10601 echo "$ac_t""yes" 1>&6
10604 echo "$ac_t""no" 1>&6
10606 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10607 echo "configure:10608: checking for dbopen in -ldb" >&5
10608 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10609 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10612 ac_save_LIBS="$LIBS"
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10617 /* Override any gcc2 internal prototype to avoid an error. */
10618 /* We use char because int might match the return type of a gcc2
10619 builtin and then its argument prototype would still apply. */
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10628 eval "ac_cv_lib_$ac_lib_var=yes"
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 eval "ac_cv_lib_$ac_lib_var=no"
10636 LIBS="$ac_save_LIBS"
10639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10643 echo "$ac_t""no" 1>&6
10657 echo "$ac_t""$ol_cv_lib_db" 1>&6
10660 for ac_hdr in db_185.h
10662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10664 echo "configure:10665: checking for $ac_hdr" >&5
10665 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10674 { (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10676 if test -z "$ac_err"; then
10678 eval "ac_cv_header_$ac_safe=yes"
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10684 eval "ac_cv_header_$ac_safe=no"
10688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10691 cat >> confdefs.h <<EOF
10692 #define $ac_tr_hdr 1
10696 echo "$ac_t""no" 1>&6
10700 if test "$ol_cv_header_db2" = yes ; then
10702 ol_cv_header_db=$ac_cv_header_db_185_h
10704 ol_cv_header_db=$ac_cv_header_db_h
10709 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10710 echo "configure:10711: checking for Berkeley DB" >&5
10711 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10712 echo $ac_n "(cached) $ac_c" 1>&6
10715 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10716 ol_cv_berkeley_db=no
10718 ol_cv_berkeley_db=yes
10723 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10724 if test $ol_cv_berkeley_db = yes ; then
10725 cat >> confdefs.h <<\EOF
10726 #define HAVE_BERKELEY_DB 1
10732 if test $ol_cv_berkeley_db = yes ; then
10734 ol_with_ldbm_api=db
10736 if test $ol_with_ldbm_type = hash ; then
10737 cat >> confdefs.h <<\EOF
10738 #define LDBM_USE_DBHASH 1
10742 cat >> confdefs.h <<\EOF
10743 #define LDBM_USE_DBBTREE 1
10748 if test $ol_cv_lib_db != yes ; then
10749 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10754 if test $ol_with_ldbm_api = manual ; then
10757 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10759 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10763 echo "configure:10764: checking for $ac_hdr" >&5
10764 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10773 { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10775 if test -z "$ac_err"; then
10777 eval "ac_cv_header_$ac_safe=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_header_$ac_safe=no"
10787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10788 echo "$ac_t""yes" 1>&6
10789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10790 cat >> confdefs.h <<EOF
10791 #define $ac_tr_hdr 1
10795 echo "$ac_t""no" 1>&6
10801 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10802 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10803 ol_with_ldbm_api=none
10806 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10807 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10808 echo "configure:10809: checking for MDBM library" >&5
10809 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10813 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10814 echo "configure:10815: checking for mdbm_set_chain" >&5
10815 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10818 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 /* System header to define __stub macros and hopefully few prototypes,
10822 which can conflict with char mdbm_set_chain(); below. */
10823 #include <assert.h>
10824 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char mdbm_set_chain();
10832 /* The GNU C library defines this for functions which it implements
10833 to always fail with ENOSYS. Some functions are actually named
10834 something starting with __ and the normal name is an alias. */
10835 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10838 f = mdbm_set_chain;
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10845 eval "ac_cv_func_mdbm_set_chain=yes"
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10850 eval "ac_cv_func_mdbm_set_chain=no"
10855 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10856 echo "$ac_t""yes" 1>&6
10859 echo "$ac_t""no" 1>&6
10861 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10862 echo "configure:10863: checking for mdbm_set_chain in -lmdbm" >&5
10863 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
10864 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10867 ac_save_LIBS="$LIBS"
10868 LIBS="-lmdbm $LIBS"
10869 cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10872 /* Override any gcc2 internal prototype to avoid an error. */
10873 /* We use char because int might match the return type of a gcc2
10874 builtin and then its argument prototype would still apply. */
10875 char mdbm_set_chain();
10881 if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10883 eval "ac_cv_lib_$ac_lib_var=yes"
10885 echo "configure: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10888 eval "ac_cv_lib_$ac_lib_var=no"
10891 LIBS="$ac_save_LIBS"
10894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10895 echo "$ac_t""yes" 1>&6
10896 ol_cv_lib_mdbm=-lmdbm
10898 echo "$ac_t""no" 1>&6
10909 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
10912 for ac_hdr in mdbm.h
10914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10916 echo "configure:10917: checking for $ac_hdr" >&5
10917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10926 { (eval echo configure:10927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10928 if test -z "$ac_err"; then
10930 eval "ac_cv_header_$ac_safe=yes"
10933 echo "configure: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10936 eval "ac_cv_header_$ac_safe=no"
10940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10941 echo "$ac_t""yes" 1>&6
10942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10943 cat >> confdefs.h <<EOF
10944 #define $ac_tr_hdr 1
10948 echo "$ac_t""no" 1>&6
10952 echo $ac_n "checking for db""... $ac_c" 1>&6
10953 echo "configure:10954: checking for db" >&5
10954 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10958 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
10966 echo "$ac_t""$ol_cv_mdbm" 1>&6
10967 if test $ol_cv_mdbm = yes ; then
10968 cat >> confdefs.h <<\EOF
10969 #define HAVE_MDBM 1
10975 if test $ol_cv_mdbm = yes ; then
10977 ol_with_ldbm_api=mdbm
10978 if test $ol_cv_lib_mdbm != yes ; then
10979 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
10984 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
10985 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
10986 echo "configure:10987: checking for GDBM library" >&5
10987 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10991 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
10992 echo "configure:10993: checking for gdbm_open" >&5
10993 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
10999 /* System header to define __stub macros and hopefully few prototypes,
11000 which can conflict with char gdbm_open(); below. */
11001 #include <assert.h>
11002 /* Override any gcc2 internal prototype to avoid an error. */
11003 /* We use char because int might match the return type of a gcc2
11004 builtin and then its argument prototype would still apply. */
11010 /* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11021 if { (eval echo configure:11022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11023 eval "ac_cv_func_gdbm_open=yes"
11025 echo "configure: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11028 eval "ac_cv_func_gdbm_open=no"
11033 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11034 echo "$ac_t""yes" 1>&6
11037 echo "$ac_t""no" 1>&6
11039 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11040 echo "configure:11041: checking for gdbm_open in -lgdbm" >&5
11041 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11043 echo $ac_n "(cached) $ac_c" 1>&6
11045 ac_save_LIBS="$LIBS"
11046 LIBS="-lgdbm $LIBS"
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 /* Override any gcc2 internal prototype to avoid an error. */
11051 /* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11059 if { (eval echo configure:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11061 eval "ac_cv_lib_$ac_lib_var=yes"
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 eval "ac_cv_lib_$ac_lib_var=no"
11069 LIBS="$ac_save_LIBS"
11072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074 ol_cv_lib_gdbm=-lgdbm
11076 echo "$ac_t""no" 1>&6
11087 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11090 for ac_hdr in gdbm.h
11092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11094 echo "configure:11095: checking for $ac_hdr" >&5
11095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11096 echo $ac_n "(cached) $ac_c" 1>&6
11098 cat > conftest.$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11104 { (eval echo configure:11105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11106 if test -z "$ac_err"; then
11108 eval "ac_cv_header_$ac_safe=yes"
11111 echo "configure: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11114 eval "ac_cv_header_$ac_safe=no"
11118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11121 cat >> confdefs.h <<EOF
11122 #define $ac_tr_hdr 1
11126 echo "$ac_t""no" 1>&6
11130 echo $ac_n "checking for db""... $ac_c" 1>&6
11131 echo "configure:11132: checking for db" >&5
11132 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
11136 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11144 echo "$ac_t""$ol_cv_gdbm" 1>&6
11145 if test $ol_cv_gdbm = yes ; then
11146 cat >> confdefs.h <<\EOF
11147 #define HAVE_GDBM 1
11153 if test $ol_cv_gdbm = yes ; then
11155 ol_with_ldbm_api=gdbm
11157 if test $ol_cv_lib_gdbm != yes ; then
11158 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11163 if test $ol_with_ldbm_api = auto ; then
11164 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11165 elif test $ol_with_ldbm_api = ndbm ; then
11166 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11167 echo "configure:11168: checking for NDBM library" >&5
11168 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11169 echo $ac_n "(cached) $ac_c" 1>&6
11172 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11173 echo "configure:11174: checking for dbm_open" >&5
11174 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11180 /* System header to define __stub macros and hopefully few prototypes,
11181 which can conflict with char dbm_open(); below. */
11182 #include <assert.h>
11183 /* Override any gcc2 internal prototype to avoid an error. */
11184 /* We use char because int might match the return type of a gcc2
11185 builtin and then its argument prototype would still apply. */
11191 /* The GNU C library defines this for functions which it implements
11192 to always fail with ENOSYS. Some functions are actually named
11193 something starting with __ and the normal name is an alias. */
11194 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11202 if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11204 eval "ac_cv_func_dbm_open=yes"
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11209 eval "ac_cv_func_dbm_open=no"
11214 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11215 echo "$ac_t""yes" 1>&6
11218 echo "$ac_t""no" 1>&6
11220 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11221 echo "configure:11222: checking for dbm_open in -lndbm" >&5
11222 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11226 ac_save_LIBS="$LIBS"
11227 LIBS="-lndbm $LIBS"
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 /* Override any gcc2 internal prototype to avoid an error. */
11232 /* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11242 eval "ac_cv_lib_$ac_lib_var=yes"
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 eval "ac_cv_lib_$ac_lib_var=no"
11250 LIBS="$ac_save_LIBS"
11253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11254 echo "$ac_t""yes" 1>&6
11255 ol_cv_lib_ndbm=-lndbm
11257 echo "$ac_t""no" 1>&6
11259 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11260 echo "configure:11261: checking for dbm_open in -ldbm" >&5
11261 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
11265 ac_save_LIBS="$LIBS"
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11281 eval "ac_cv_lib_$ac_lib_var=yes"
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11286 eval "ac_cv_lib_$ac_lib_var=no"
11289 LIBS="$ac_save_LIBS"
11292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ol_cv_lib_ndbm=-ldbm
11296 echo "$ac_t""no" 1>&6
11309 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11312 for ac_hdr in ndbm.h
11314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11316 echo "configure:11317: checking for $ac_hdr" >&5
11317 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11326 { (eval echo configure:11327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11328 if test -z "$ac_err"; then
11330 eval "ac_cv_header_$ac_safe=yes"
11333 echo "configure: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11336 eval "ac_cv_header_$ac_safe=no"
11340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11341 echo "$ac_t""yes" 1>&6
11342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11343 cat >> confdefs.h <<EOF
11344 #define $ac_tr_hdr 1
11348 echo "$ac_t""no" 1>&6
11352 echo $ac_n "checking for db""... $ac_c" 1>&6
11353 echo "configure:11354: checking for db" >&5
11354 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11355 echo $ac_n "(cached) $ac_c" 1>&6
11358 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11366 echo "$ac_t""$ol_cv_ndbm" 1>&6
11367 if test $ol_cv_ndbm = yes ; then
11368 cat >> confdefs.h <<\EOF
11369 #define HAVE_NDBM 1
11375 if test $ol_cv_ndbm = yes ; then
11377 ol_with_ldbm_api=ndbm
11379 if test $ol_cv_lib_ndbm != yes ; then
11380 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11385 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11386 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11387 if test $ol_enable_ldbm = yes ; then
11388 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11391 echo "configure: warning: disabling LDBM" 1>&2
11395 if test $ol_enable_wrappers != no ; then
11396 for ac_hdr in tcpd.h
11398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11400 echo "configure:11401: checking for $ac_hdr" >&5
11401 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11404 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11410 { (eval echo configure:11411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11412 if test -z "$ac_err"; then
11414 eval "ac_cv_header_$ac_safe=yes"
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11420 eval "ac_cv_header_$ac_safe=no"
11424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11425 echo "$ac_t""yes" 1>&6
11426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11427 cat >> confdefs.h <<EOF
11428 #define $ac_tr_hdr 1
11432 echo "$ac_t""no" 1>&6
11437 if test $ac_cv_header_tcpd_h != yes ; then
11440 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11441 echo "configure:11442: checking for main in -lwrap" >&5
11442 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11443 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11444 echo $ac_n "(cached) $ac_c" 1>&6
11446 ac_save_LIBS="$LIBS"
11447 LIBS="-lwrap $LIBS"
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11456 if { (eval echo configure:11457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11458 eval "ac_cv_lib_$ac_lib_var=yes"
11460 echo "configure: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11463 eval "ac_cv_lib_$ac_lib_var=no"
11466 LIBS="$ac_save_LIBS"
11469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11470 echo "$ac_t""yes" 1>&6
11473 echo "$ac_t""no" 1>&6
11479 if test $have_wrappers = yes ; then
11480 cat >> confdefs.h <<\EOF
11481 #define HAVE_TCPD 1
11484 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11486 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11487 echo "configure:11488: checking for main in -lnsl" >&5
11488 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11489 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11490 echo $ac_n "(cached) $ac_c" 1>&6
11492 ac_save_LIBS="$LIBS"
11494 cat > conftest.$ac_ext <<EOF
11495 #line 11496 "configure"
11496 #include "confdefs.h"
11502 if { (eval echo configure:11503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11504 eval "ac_cv_lib_$ac_lib_var=yes"
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11509 eval "ac_cv_lib_$ac_lib_var=no"
11512 LIBS="$ac_save_LIBS"
11515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11516 echo "$ac_t""yes" 1>&6
11517 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11519 cat >> confdefs.h <<EOF
11520 #define $ac_tr_lib 1
11526 echo "$ac_t""no" 1>&6
11530 echo "configure: warning: could not find -lwrap" 1>&2
11531 if test $ol_enable_wrappers = yes ; then
11532 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11535 echo "configure: warning: disabling wrappers support" 1>&2
11536 ol_enable_wrappers=no
11540 if test $ol_enable_syslog != no ; then
11541 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11542 echo "configure:11543: checking for openlog" >&5
11543 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char openlog(); below. */
11551 #include <assert.h>
11552 /* Override any gcc2 internal prototype to avoid an error. */
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11560 /* The GNU C library defines this for functions which it implements
11561 to always fail with ENOSYS. Some functions are actually named
11562 something starting with __ and the normal name is an alias. */
11563 #if defined (__stub_openlog) || defined (__stub___openlog)
11571 if { (eval echo configure:11572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11573 eval "ac_cv_func_openlog=yes"
11575 echo "configure: failed program was:" >&5
11576 cat conftest.$ac_ext >&5
11578 eval "ac_cv_func_openlog=no"
11583 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11584 echo "$ac_t""yes" 1>&6
11587 echo "$ac_t""no" 1>&6
11590 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11591 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11593 ol_enable_syslog=$ac_cv_func_openlog
11596 if test $ol_enable_dmalloc != no ; then
11597 for ac_hdr in dmalloc.h
11599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11601 echo "configure:11602: checking for $ac_hdr" >&5
11602 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11603 echo $ac_n "(cached) $ac_c" 1>&6
11605 cat > conftest.$ac_ext <<EOF
11606 #line 11607 "configure"
11607 #include "confdefs.h"
11610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11611 { (eval echo configure:11612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11613 if test -z "$ac_err"; then
11615 eval "ac_cv_header_$ac_safe=yes"
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11621 eval "ac_cv_header_$ac_safe=no"
11625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11626 echo "$ac_t""yes" 1>&6
11627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11628 cat >> confdefs.h <<EOF
11629 #define $ac_tr_hdr 1
11633 echo "$ac_t""no" 1>&6
11637 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11638 echo "configure:11639: checking for dmalloc_shutdown in -ldmalloc" >&5
11639 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11641 echo $ac_n "(cached) $ac_c" 1>&6
11643 ac_save_LIBS="$LIBS"
11644 LIBS="-ldmalloc $LIBS"
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651 char dmalloc_shutdown();
11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11659 eval "ac_cv_lib_$ac_lib_var=yes"
11661 echo "configure: failed program was:" >&5
11662 cat conftest.$ac_ext >&5
11664 eval "ac_cv_lib_$ac_lib_var=no"
11667 LIBS="$ac_save_LIBS"
11670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11671 echo "$ac_t""yes" 1>&6
11672 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11673 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11674 cat >> confdefs.h <<EOF
11675 #define $ac_tr_lib 1
11678 LIBS="-ldmalloc $LIBS"
11681 echo "$ac_t""no" 1>&6
11686 if test $ol_enable_tcl != no ; then
11687 for ac_hdr in tcl.h
11689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11691 echo "configure:11692: checking for $ac_hdr" >&5
11692 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11693 echo $ac_n "(cached) $ac_c" 1>&6
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11701 { (eval echo configure:11702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11703 if test -z "$ac_err"; then
11705 eval "ac_cv_header_$ac_safe=yes"
11708 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5
11711 eval "ac_cv_header_$ac_safe=no"
11715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11716 echo "$ac_t""yes" 1>&6
11717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11718 cat >> confdefs.h <<EOF
11719 #define $ac_tr_hdr 1
11723 echo "$ac_t""no" 1>&6
11728 if test $ac_cv_header_tcl_h != yes ; then
11731 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11732 echo "configure:11733: checking for main in -ltcl" >&5
11733 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11734 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11737 ac_save_LIBS="$LIBS"
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11749 eval "ac_cv_lib_$ac_lib_var=yes"
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11754 eval "ac_cv_lib_$ac_lib_var=no"
11757 LIBS="$ac_save_LIBS"
11760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11764 echo "$ac_t""no" 1>&6
11769 if test $have_tcl != yes; then
11770 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11771 echo "configure:11772: checking for main in -ltcl7.6" >&5
11772 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11773 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
11776 ac_save_LIBS="$LIBS"
11777 LIBS="-ltcl7.6 $LIBS"
11778 cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11786 if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11788 eval "ac_cv_lib_$ac_lib_var=yes"
11790 echo "configure: failed program was:" >&5
11791 cat conftest.$ac_ext >&5
11793 eval "ac_cv_lib_$ac_lib_var=no"
11796 LIBS="$ac_save_LIBS"
11799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11800 echo "$ac_t""yes" 1>&6
11801 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11803 echo "$ac_t""no" 1>&6
11809 if test $have_tcl != yes; then
11810 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11811 echo "configure:11812: checking for main in -ltcl8.0" >&5
11812 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
11813 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11816 ac_save_LIBS="$LIBS"
11817 LIBS="-ltcl8.0 $LIBS"
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11826 if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11828 eval "ac_cv_lib_$ac_lib_var=yes"
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11833 eval "ac_cv_lib_$ac_lib_var=no"
11836 LIBS="$ac_save_LIBS"
11839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11840 echo "$ac_t""yes" 1>&6
11841 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11843 echo "$ac_t""no" 1>&6
11850 if test $have_tcl != yes ; then
11851 echo "configure: warning: could not find -ltcl" 1>&2
11852 if test $ol_enable_tcl = yes ; then
11853 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11860 # ud needs termcap (should insert check here)
11862 for ac_hdr in termcap.h ncurses.h
11864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11866 echo "configure:11867: checking for $ac_hdr" >&5
11867 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11876 { (eval echo configure:11877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11878 if test -z "$ac_err"; then
11880 eval "ac_cv_header_$ac_safe=yes"
11883 echo "configure: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11886 eval "ac_cv_header_$ac_safe=no"
11890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11891 echo "$ac_t""yes" 1>&6
11892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11893 cat >> confdefs.h <<EOF
11894 #define $ac_tr_hdr 1
11898 echo "$ac_t""no" 1>&6
11903 if test $ol_link_termcap = no ; then
11904 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
11905 echo "configure:11906: checking for tputs in -ltermcap" >&5
11906 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
11907 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11910 ac_save_LIBS="$LIBS"
11911 LIBS="-ltermcap $LIBS"
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11926 eval "ac_cv_lib_$ac_lib_var=yes"
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11931 eval "ac_cv_lib_$ac_lib_var=no"
11934 LIBS="$ac_save_LIBS"
11937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11938 echo "$ac_t""yes" 1>&6
11941 echo "$ac_t""no" 1>&6
11945 if test $have_termcap = yes ; then
11946 cat >> confdefs.h <<\EOF
11947 #define HAVE_TERMCAP 1
11950 ol_link_termcap=yes
11951 TERMCAP_LIBS=-ltermcap
11955 if test $ol_link_termcap = no ; then
11956 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
11957 echo "configure:11958: checking for initscr in -lncurses" >&5
11958 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
11959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11960 echo $ac_n "(cached) $ac_c" 1>&6
11962 ac_save_LIBS="$LIBS"
11963 LIBS="-lncurses $LIBS"
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 /* Override any gcc2 internal prototype to avoid an error. */
11968 /* We use char because int might match the return type of a gcc2
11969 builtin and then its argument prototype would still apply. */
11976 if { (eval echo configure:11977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11978 eval "ac_cv_lib_$ac_lib_var=yes"
11980 echo "configure: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11983 eval "ac_cv_lib_$ac_lib_var=no"
11986 LIBS="$ac_save_LIBS"
11989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11990 echo "$ac_t""yes" 1>&6
11993 echo "$ac_t""no" 1>&6
11997 if test $have_ncurses = yes ; then
11998 cat >> confdefs.h <<\EOF
11999 #define HAVE_NCURSES 1
12002 ol_link_termcap=yes
12003 TERMCAP_LIBS=-lncurses
12007 if test $ol_link_termcap = no ; then
12008 cat >> confdefs.h <<\EOF
12009 #define NO_TERMCAP 1
12016 if test $ol_with_cyrus_sasl != no ; then
12017 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12018 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12019 echo "configure:12020: checking for sasl.h" >&5
12020 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12021 echo $ac_n "(cached) $ac_c" 1>&6
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12029 { (eval echo configure:12030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12031 if test -z "$ac_err"; then
12033 eval "ac_cv_header_$ac_safe=yes"
12036 echo "configure: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12039 eval "ac_cv_header_$ac_safe=no"
12043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12044 echo "$ac_t""yes" 1>&6
12047 echo "$ac_t""no" 1>&6
12051 if test $ac_cv_header_sasl_h = yes ; then
12052 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12053 echo "configure:12054: checking for sasl_client_init in -lsasl" >&5
12054 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12055 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12058 ac_save_LIBS="$LIBS"
12059 LIBS="-lsasl $LIBS"
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 /* Override any gcc2 internal prototype to avoid an error. */
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12066 char sasl_client_init();
12072 if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12074 eval "ac_cv_lib_$ac_lib_var=yes"
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12079 eval "ac_cv_lib_$ac_lib_var=no"
12082 LIBS="$ac_save_LIBS"
12085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 have_cyrus_sasl=yes
12089 echo "$ac_t""no" 1>&6
12094 if test $have_cyrus_sasl != no ; then
12096 cat >> confdefs.h <<\EOF
12097 #define HAVE_CYRUS_SASL 1
12104 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12105 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12110 if test $ol_with_fetch != no ; then
12112 LIBS="-lfetch -lcom_err $LIBS"
12113 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12114 echo "configure:12115: checking fetch(3) library" >&5
12115 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12119 cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure"
12121 #include "confdefs.h"
12123 #include <sys/param.h>
12127 struct url *u = fetchParseURL("file:///");
12130 if { (eval echo configure:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12132 ol_cv_lib_fetch=yes
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12142 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12144 if test $ol_cv_lib_fetch != no ; then
12145 ol_link_fetch="-lfetch -lcom_err"
12146 cat >> confdefs.h <<\EOF
12147 #define HAVE_FETCH 1
12153 if test $ol_cv_lib_fetch != no ; then
12154 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12155 ol_link_fetch=freebsd
12157 elif test $ol_with_fetch != auto ; then
12158 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12162 ol_link_readline=no
12163 if test $ol_with_readline != no ; then
12164 for ac_hdr in readline/readline.h readline/history.h
12166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12168 echo "configure:12169: checking for $ac_hdr" >&5
12169 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12172 cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12178 { (eval echo configure:12179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12180 if test -z "$ac_err"; then
12182 eval "ac_cv_header_$ac_safe=yes"
12185 echo "configure: failed program was:" >&5
12186 cat conftest.$ac_ext >&5
12188 eval "ac_cv_header_$ac_safe=no"
12192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12193 echo "$ac_t""yes" 1>&6
12194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12195 cat >> confdefs.h <<EOF
12196 #define $ac_tr_hdr 1
12200 echo "$ac_t""no" 1>&6
12205 if test $ac_cv_header_readline_readline_h = yes ; then
12207 LIBS="$TERMCAP_LIBS $LIBS"
12208 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12209 echo "configure:12210: checking for readline in -lreadline" >&5
12210 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12211 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12212 echo $ac_n "(cached) $ac_c" 1>&6
12214 ac_save_LIBS="$LIBS"
12215 LIBS="-lreadline $LIBS"
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 /* Override any gcc2 internal prototype to avoid an error. */
12220 /* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12228 if { (eval echo configure:12229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230 eval "ac_cv_lib_$ac_lib_var=yes"
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12235 eval "ac_cv_lib_$ac_lib_var=no"
12238 LIBS="$ac_save_LIBS"
12241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12242 echo "$ac_t""yes" 1>&6
12245 echo "$ac_t""no" 1>&6
12251 if test $have_readline = yes ; then
12252 ol_with_readline=found
12253 ol_link_readline=yes
12255 READLINE_LIBS="-lreadline"
12260 if test $ol_link_readline = yes ; then
12261 cat >> confdefs.h <<\EOF
12262 #define HAVE_READLINE 1
12268 # FreeBSD (and others) have crypt(3) in -lcrypt
12269 if test $ol_enable_crypt != no ; then
12270 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12271 echo "configure:12272: checking for crypt" >&5
12272 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 /* System header to define __stub macros and hopefully few prototypes,
12279 which can conflict with char crypt(); below. */
12280 #include <assert.h>
12281 /* Override any gcc2 internal prototype to avoid an error. */
12282 /* We use char because int might match the return type of a gcc2
12283 builtin and then its argument prototype would still apply. */
12289 /* The GNU C library defines this for functions which it implements
12290 to always fail with ENOSYS. Some functions are actually named
12291 something starting with __ and the normal name is an alias. */
12292 #if defined (__stub_crypt) || defined (__stub___crypt)
12300 if { (eval echo configure:12301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12302 eval "ac_cv_func_crypt=yes"
12304 echo "configure: failed program was:" >&5
12305 cat conftest.$ac_ext >&5
12307 eval "ac_cv_func_crypt=no"
12312 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12313 echo "$ac_t""yes" 1>&6
12316 echo "$ac_t""no" 1>&6
12318 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12319 echo "configure:12320: checking for crypt in -lcrypt" >&5
12320 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12324 ac_save_LIBS="$LIBS"
12325 LIBS="-lcrypt $LIBS"
12326 cat > conftest.$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12329 /* Override any gcc2 internal prototype to avoid an error. */
12330 /* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12338 if { (eval echo configure:12339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 eval "ac_cv_lib_$ac_lib_var=yes"
12342 echo "configure: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12345 eval "ac_cv_lib_$ac_lib_var=no"
12348 LIBS="$ac_save_LIBS"
12351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12356 echo "$ac_t""no" 1>&6
12363 if test $have_crypt = yes ; then
12364 cat >> confdefs.h <<\EOF
12365 #define HAVE_CRYPT 1
12369 echo "configure: warning: could not find crypt" 1>&2
12370 if test $ol_enable_crypt = yes ; then
12371 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12374 echo "configure: warning: disabling crypt support" 1>&2
12379 # FreeBSD (and others) have setproctitle(3) in -lutil
12380 if test $ol_enable_proctitle != no ; then
12381 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12382 echo "configure:12383: checking for setproctitle" >&5
12383 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12386 cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 /* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char setproctitle(); below. */
12391 #include <assert.h>
12392 /* Override any gcc2 internal prototype to avoid an error. */
12393 /* We use char because int might match the return type of a gcc2
12394 builtin and then its argument prototype would still apply. */
12395 char setproctitle();
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12413 eval "ac_cv_func_setproctitle=yes"
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12418 eval "ac_cv_func_setproctitle=no"
12423 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12424 echo "$ac_t""yes" 1>&6
12425 have_setproctitle=yes
12427 echo "$ac_t""no" 1>&6
12429 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12430 echo "configure:12431: checking for setproctitle in -lutil" >&5
12431 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12432 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12433 echo $ac_n "(cached) $ac_c" 1>&6
12435 ac_save_LIBS="$LIBS"
12436 LIBS="-lutil $LIBS"
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 /* Override any gcc2 internal prototype to avoid an error. */
12441 /* We use char because int might match the return type of a gcc2
12442 builtin and then its argument prototype would still apply. */
12443 char setproctitle();
12449 if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12451 eval "ac_cv_lib_$ac_lib_var=yes"
12453 echo "configure: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12456 eval "ac_cv_lib_$ac_lib_var=no"
12459 LIBS="$ac_save_LIBS"
12462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12463 echo "$ac_t""yes" 1>&6
12464 have_setproctitle=yes
12465 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12467 echo "$ac_t""no" 1>&6
12468 have_setproctitle=no
12469 LIBOBJS="$LIBOBJS setproctitle.o"
12475 if test $have_setproctitle = yes ; then
12476 cat >> confdefs.h <<\EOF
12477 #define HAVE_SETPROCTITLE 1
12483 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12484 echo "configure:12485: checking for uid_t in sys/types.h" >&5
12485 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12486 echo $ac_n "(cached) $ac_c" 1>&6
12488 cat > conftest.$ac_ext <<EOF
12489 #line 12490 "configure"
12490 #include "confdefs.h"
12491 #include <sys/types.h>
12493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12494 egrep "uid_t" >/dev/null 2>&1; then
12496 ac_cv_type_uid_t=yes
12499 ac_cv_type_uid_t=no
12505 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12506 if test $ac_cv_type_uid_t = no; then
12507 cat >> confdefs.h <<\EOF
12511 cat >> confdefs.h <<\EOF
12517 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12518 echo "configure:12519: checking type of array argument to getgroups" >&5
12519 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12520 echo $ac_n "(cached) $ac_c" 1>&6
12522 if test "$cross_compiling" = yes; then
12523 ac_cv_type_getgroups=cross
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12529 /* Thanks to Mike Rendell for this test. */
12530 #include <sys/types.h>
12533 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12536 gid_t gidset[NGID];
12538 union { gid_t gval; long lval; } val;
12541 for (i = 0; i < NGID; i++)
12542 gidset[i] = val.gval;
12543 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12545 /* Exit non-zero if getgroups seems to require an array of ints. This
12546 happens when gid_t is short but getgroups modifies an array of ints. */
12547 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12551 if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12553 ac_cv_type_getgroups=gid_t
12555 echo "configure: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12558 ac_cv_type_getgroups=int
12563 if test $ac_cv_type_getgroups = cross; then
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 #include <unistd.h>
12569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12570 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12572 ac_cv_type_getgroups=gid_t
12575 ac_cv_type_getgroups=int
12582 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12583 cat >> confdefs.h <<EOF
12584 #define GETGROUPS_T $ac_cv_type_getgroups
12587 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12588 echo "configure:12589: checking for ANSI C header files" >&5
12589 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12590 echo $ac_n "(cached) $ac_c" 1>&6
12592 cat > conftest.$ac_ext <<EOF
12593 #line 12594 "configure"
12594 #include "confdefs.h"
12595 #include <stdlib.h>
12596 #include <stdarg.h>
12597 #include <string.h>
12600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12601 { (eval echo configure:12602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12603 if test -z "$ac_err"; then
12605 ac_cv_header_stdc=yes
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 ac_cv_header_stdc=no
12615 if test $ac_cv_header_stdc = yes; then
12616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 #include <string.h>
12622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12623 egrep "memchr" >/dev/null 2>&1; then
12627 ac_cv_header_stdc=no
12633 if test $ac_cv_header_stdc = yes; then
12634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12637 "configure"
12637 #include "confdefs.h"
12638 #include <stdlib.h>
12640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12641 egrep "free" >/dev/null 2>&1; then
12645 ac_cv_header_stdc=no
12651 if test $ac_cv_header_stdc = yes; then
12652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12653 if test "$cross_compiling" = yes; then
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12660 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12661 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12663 int main () { int i; for (i = 0; i < 256; i++)
12664 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12672 echo "configure: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12675 ac_cv_header_stdc=no
12683 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12684 if test $ac_cv_header_stdc = yes; then
12685 cat >> confdefs.h <<\EOF
12686 #define STDC_HEADERS 1
12691 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12692 echo "configure:12693: checking for mode_t" >&5
12693 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12694 echo $ac_n "(cached) $ac_c" 1>&6
12696 cat > conftest.$ac_ext <<EOF
12697 #line 12698 "configure"
12698 #include "confdefs.h"
12699 #include <sys/types.h>
12701 #include <stdlib.h>
12702 #include <stddef.h>
12705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12706 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12708 eval "ac_cv_type_mode_t=yes"
12711 eval "ac_cv_type_mode_t=no"
12716 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12717 echo "$ac_t""yes" 1>&6
12719 echo "$ac_t""no" 1>&6
12720 cat >> confdefs.h <<EOF
12726 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12727 echo "configure:12728: checking for off_t" >&5
12728 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12729 echo $ac_n "(cached) $ac_c" 1>&6
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 #include <sys/types.h>
12736 #include <stdlib.h>
12737 #include <stddef.h>
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12743 eval "ac_cv_type_off_t=yes"
12746 eval "ac_cv_type_off_t=no"
12751 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12752 echo "$ac_t""yes" 1>&6
12754 echo "$ac_t""no" 1>&6
12755 cat >> confdefs.h <<EOF
12761 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12762 echo "configure:12763: checking for pid_t" >&5
12763 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12764 echo $ac_n "(cached) $ac_c" 1>&6
12766 cat > conftest.$ac_ext <<EOF
12767 #line 12768 "configure"
12768 #include "confdefs.h"
12769 #include <sys/types.h>
12771 #include <stdlib.h>
12772 #include <stddef.h>
12775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12776 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12778 eval "ac_cv_type_pid_t=yes"
12781 eval "ac_cv_type_pid_t=no"
12786 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12787 echo "$ac_t""yes" 1>&6
12789 echo "$ac_t""no" 1>&6
12790 cat >> confdefs.h <<EOF
12796 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12797 echo "configure:12798: checking for ptrdiff_t" >&5
12798 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 #include <stddef.h>
12809 if { (eval echo configure:12810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12811 am_cv_type_ptrdiff_t=yes
12813 echo "configure: failed program was:" >&5
12814 cat conftest.$ac_ext >&5
12816 am_cv_type_ptrdiff_t=no
12821 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12822 if test $am_cv_type_ptrdiff_t = yes; then
12823 cat >> confdefs.h <<\EOF
12824 #define HAVE_PTRDIFF_T 1
12829 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12830 echo "configure:12831: checking return type of signal handlers" >&5
12831 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
12832 echo $ac_n "(cached) $ac_c" 1>&6
12834 cat > conftest.$ac_ext <<EOF
12835 #line 12836 "configure"
12836 #include "confdefs.h"
12837 #include <sys/types.h>
12838 #include <signal.h>
12843 extern "C" void (*signal (int, void (*)(int)))(int);
12845 void (*signal ()) ();
12852 if { (eval echo configure:12853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12854 ac_cv_type_signal=void
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12859 ac_cv_type_signal=int
12864 echo "$ac_t""$ac_cv_type_signal" 1>&6
12865 cat >> confdefs.h <<EOF
12866 #define RETSIGTYPE $ac_cv_type_signal
12870 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12871 echo "configure:12872: checking for sig_atomic_t" >&5
12872 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
12873 echo $ac_n "(cached) $ac_c" 1>&6
12875 cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12878 #include <signal.h>
12880 sig_atomic_t atomic;
12883 if { (eval echo configure:12884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12885 ol_cv_type_sig_atomic_t=yes
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12890 ol_cv_type_sig_atomic_t=no
12895 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12896 if test $ol_cv_type_sig_atomic_t = no; then
12897 cat >> confdefs.h <<\EOF
12898 #define sig_atomic_t int
12903 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12904 echo "configure:12905: checking for size_t" >&5
12905 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 #include <sys/types.h>
12913 #include <stdlib.h>
12914 #include <stddef.h>
12917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12918 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12920 eval "ac_cv_type_size_t=yes"
12923 eval "ac_cv_type_size_t=no"
12928 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12931 echo "$ac_t""no" 1>&6
12932 cat >> confdefs.h <<EOF
12933 #define size_t unsigned
12938 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
12939 echo "configure:12940: checking for socklen_t" >&5
12940 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12943 cat > conftest.$ac_ext <<EOF
12944 #line 12945 "configure"
12945 #include "confdefs.h"
12947 #ifdef HAVE_SYS_TYPES_H
12948 #include <sys/types.h>
12950 #ifdef HAVE_SYS_SOCKET_H
12951 #include <sys/socket.h>
12958 if { (eval echo configure:12959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12960 ol_cv_type_socklen_t=yes
12962 echo "configure: failed program was:" >&5
12963 cat conftest.$ac_ext >&5
12965 ol_cv_type_socklen_t=no
12970 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
12971 if test $ol_cv_type_socklen_t = no; then
12972 cat >> confdefs.h <<\EOF
12973 #define socklen_t int
12978 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
12979 echo "configure:12980: checking for member st_blksize in aggregate type struct stat" >&5
12980 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
12981 echo $ac_n "(cached) $ac_c" 1>&6
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 #include <sys/types.h>
12987 #include <sys/stat.h>
12989 struct stat foo; foo.st_blksize;
12992 if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12994 ac_cv_c_struct_member_st_blksize=yes
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 ac_cv_c_struct_member_st_blksize=no
13004 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13005 st_blksize="$ac_cv_c_struct_member_st_blksize"
13006 if test $ac_cv_c_struct_member_st_blksize = yes; then
13007 cat >> confdefs.h <<\EOF
13008 #define HAVE_ST_BLKSIZE 1
13013 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13014 echo "configure:13015: checking whether time.h and sys/time.h may both be included" >&5
13015 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13016 echo $ac_n "(cached) $ac_c" 1>&6
13018 cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 #include <sys/types.h>
13022 #include <sys/time.h>
13028 if { (eval echo configure:13029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13030 ac_cv_header_time=yes
13032 echo "configure: failed program was:" >&5
13033 cat conftest.$ac_ext >&5
13035 ac_cv_header_time=no
13040 echo "$ac_t""$ac_cv_header_time" 1>&6
13041 if test $ac_cv_header_time = yes; then
13042 cat >> confdefs.h <<\EOF
13043 #define TIME_WITH_SYS_TIME 1
13048 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13049 echo "configure:13050: checking whether struct tm is in sys/time.h or time.h" >&5
13050 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13051 echo $ac_n "(cached) $ac_c" 1>&6
13053 cat > conftest.$ac_ext <<EOF
13054 #line 13055 "configure"
13055 #include "confdefs.h"
13056 #include <sys/types.h>
13059 struct tm *tp; tp->tm_sec;
13062 if { (eval echo configure:13063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13064 ac_cv_struct_tm=time.h
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13069 ac_cv_struct_tm=sys/time.h
13074 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13075 if test $ac_cv_struct_tm = sys/time.h; then
13076 cat >> confdefs.h <<\EOF
13077 #define TM_IN_SYS_TIME 1
13082 # test for pw_gecos in struct passwd
13083 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13084 echo "configure:13085: checking struct passwd for pw_gecos" >&5
13085 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13089 cat > conftest.$ac_ext <<EOF
13090 #line 13091 "configure"
13091 #include "confdefs.h"
13096 pwd.pw_gecos = pwd.pw_name;
13100 if { (eval echo configure:13101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13102 ol_cv_struct_passwd_pw_gecos=yes
13104 echo "configure: failed program was:" >&5
13105 cat conftest.$ac_ext >&5
13107 ol_cv_struct_passwd_pw_gecos=no
13112 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13113 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13114 cat >> confdefs.h <<\EOF
13115 #define HAVE_PW_GECOS 1
13120 # test for pw_passwd in struct passwd
13121 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13122 echo "configure:13123: checking struct passwd for pw_passwd" >&5
13123 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13124 echo $ac_n "(cached) $ac_c" 1>&6
13127 cat > conftest.$ac_ext <<EOF
13128 #line 13129 "configure"
13129 #include "confdefs.h"
13134 pwd.pw_passwd = pwd.pw_name;
13138 if { (eval echo configure:13139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13140 ol_cv_struct_passwd_pw_passwd=yes
13142 echo "configure: failed program was:" >&5
13143 cat conftest.$ac_ext >&5
13145 ol_cv_struct_passwd_pw_passwd=no
13150 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13151 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13152 cat >> confdefs.h <<\EOF
13153 #define HAVE_PW_PASSWD 1
13159 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13160 echo "configure:13161: checking if toupper() requires islower()" >&5
13161 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13165 if test "$cross_compiling" = yes; then
13166 ol_cv_c_upper_lower=safe
13168 cat > conftest.$ac_ext <<EOF
13169 #line 13170 "configure"
13170 #include "confdefs.h"
13175 if ('C' == toupper('C'))
13181 if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13183 ol_cv_c_upper_lower=no
13185 echo "configure: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13188 ol_cv_c_upper_lower=yes
13195 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13196 if test $ol_cv_c_upper_lower != no ; then
13197 cat >> confdefs.h <<\EOF
13198 #define C_UPPER_LOWER 1
13203 echo $ac_n "checking for working const""... $ac_c" 1>&6
13204 echo "configure:13205: checking for working const" >&5
13205 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13208 cat > conftest.$ac_ext <<EOF
13209 #line 13210 "configure"
13210 #include "confdefs.h"
13214 /* Ultrix mips cc rejects this. */
13215 typedef int charset[2]; const charset x;
13216 /* SunOS 4.1.1 cc rejects this. */
13217 char const *const *ccp;
13219 /* NEC SVR4.0.2 mips cc rejects this. */
13220 struct point {int x, y;};
13221 static struct point const zero = {0,0};
13222 /* AIX XL C 1.02.0.0 rejects this.
13223 It does not let you subtract one const X* pointer from another in an arm
13224 of an if-expression whose if-part is not a constant expression */
13225 const char *g = "string";
13226 ccp = &g + (g ? g-g : 0);
13227 /* HPUX 7.0 cc rejects these. */
13230 ccp = (char const *const *) p;
13231 { /* SCO 3.2v4 cc rejects this. */
13233 char const *s = 0 ? (char *) 0 : (char const *) 0;
13237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13238 int x[] = {25, 17};
13239 const int *foo = &x[0];
13242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13243 typedef const int *iptr;
13247 { /* AIX XL C 1.02.0.0 rejects this saying
13248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13249 struct s { int j; const int *ap[3]; };
13250 struct s *b; b->j = 5;
13252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13253 const int foo = 10;
13258 if { (eval echo configure:13259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13270 echo "$ac_t""$ac_cv_c_const" 1>&6
13271 if test $ac_cv_c_const = no; then
13272 cat >> confdefs.h <<\EOF
13278 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13279 echo "configure:13280: checking if compiler understands volatile" >&5
13280 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13283 cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure"
13285 #include "confdefs.h"
13288 volatile int a; int * volatile b = x ? &y : &z;
13289 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13293 if { (eval echo configure:13294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13295 ol_cv_c_volatile=yes
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13300 ol_cv_c_volatile=no
13305 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13306 if test $ol_cv_c_volatile = yes; then
13309 cat >> confdefs.h <<\EOF
13316 if test $cross_compiling = yes ; then
13317 cat >> confdefs.h <<\EOF
13318 #define CROSS_COMPILING 1
13322 cat >> confdefs.h <<\EOF
13323 #define LBER_INT_T long
13326 cat >> confdefs.h <<\EOF
13327 #define LBER_TAG_T long
13330 cat >> confdefs.h <<\EOF
13331 #define LBER_SOCKET_T int
13336 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13337 echo "configure:13338: checking whether byte ordering is bigendian" >&5
13338 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13339 echo $ac_n "(cached) $ac_c" 1>&6
13341 ac_cv_c_bigendian=unknown
13342 # See if sys/param.h defines the BYTE_ORDER macro.
13343 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure"
13345 #include "confdefs.h"
13346 #include <sys/types.h>
13347 #include <sys/param.h>
13350 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13351 bogus endian macros
13355 if { (eval echo configure:13356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13357 # It does; now see whether it defined to BIG_ENDIAN or not.
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 #include <sys/types.h>
13362 #include <sys/param.h>
13365 #if BYTE_ORDER != BIG_ENDIAN
13370 if { (eval echo configure:13371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13372 ac_cv_c_bigendian=yes
13374 echo "configure: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13377 ac_cv_c_bigendian=no
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13385 if test $ac_cv_c_bigendian = unknown; then
13386 if test "$cross_compiling" = yes; then
13387 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13393 /* Are we little or big endian? From Harbison&Steele. */
13397 char c[sizeof (long)];
13400 exit (u.c[sizeof (long) - 1] == 1);
13403 if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13405 ac_cv_c_bigendian=no
13407 echo "configure: failed program was:" >&5
13408 cat conftest.$ac_ext >&5
13410 ac_cv_c_bigendian=yes
13418 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13419 if test $ac_cv_c_bigendian = yes; then
13420 cat >> confdefs.h <<\EOF
13421 #define WORDS_BIGENDIAN 1
13426 echo $ac_n "checking size of short""... $ac_c" 1>&6
13427 echo "configure:13428: checking size of short" >&5
13428 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13429 echo $ac_n "(cached) $ac_c" 1>&6
13431 if test "$cross_compiling" = yes; then
13432 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13440 FILE *f=fopen("conftestval", "w");
13442 fprintf(f, "%d\n", sizeof(short));
13446 if { (eval echo configure:13447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13448 ac_cv_sizeof_short=`cat conftestval`
13450 echo "configure: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13453 ac_cv_sizeof_short=0
13459 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13460 cat >> confdefs.h <<EOF
13461 #define SIZEOF_SHORT $ac_cv_sizeof_short
13465 echo $ac_n "checking size of int""... $ac_c" 1>&6
13466 echo "configure:13467: checking size of int" >&5
13467 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13468 echo $ac_n "(cached) $ac_c" 1>&6
13470 if test "$cross_compiling" = yes; then
13471 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13479 FILE *f=fopen("conftestval", "w");
13481 fprintf(f, "%d\n", sizeof(int));
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13487 ac_cv_sizeof_int=`cat conftestval`
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13498 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13499 cat >> confdefs.h <<EOF
13500 #define SIZEOF_INT $ac_cv_sizeof_int
13504 echo $ac_n "checking size of long""... $ac_c" 1>&6
13505 echo "configure:13506: checking size of long" >&5
13506 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13509 if test "$cross_compiling" = yes; then
13510 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13518 FILE *f=fopen("conftestval", "w");
13520 fprintf(f, "%d\n", sizeof(long));
13524 if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13526 ac_cv_sizeof_long=`cat conftestval`
13528 echo "configure: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13531 ac_cv_sizeof_long=0
13537 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13538 cat >> confdefs.h <<EOF
13539 #define SIZEOF_LONG $ac_cv_sizeof_long
13544 if test "$ac_cv_sizeof_int" -lt 4 ; then
13545 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13547 cat >> confdefs.h <<\EOF
13548 #define LBER_INT_T long
13551 cat >> confdefs.h <<\EOF
13552 #define LBER_TAG_T long
13555 cat >> confdefs.h <<\EOF
13556 #define LBER_SOCKET_T int
13560 cat >> confdefs.h <<\EOF
13561 #define LBER_INT_T int
13564 cat >> confdefs.h <<\EOF
13565 #define LBER_TAG_T long
13568 cat >> confdefs.h <<\EOF
13569 #define LBER_SOCKET_T int
13575 cat >> confdefs.h <<\EOF
13576 #define LBER_LEN_T long
13580 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13581 echo "configure:13582: checking for 8-bit clean memcmp" >&5
13582 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13585 if test "$cross_compiling" = yes; then
13586 ac_cv_func_memcmp_clean=no
13588 cat > conftest.$ac_ext <<EOF
13589 #line 13590 "configure"
13590 #include "confdefs.h"
13594 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13595 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13599 if { (eval echo configure:13600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13601 ac_cv_func_memcmp_clean=yes
13603 echo "configure: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13606 ac_cv_func_memcmp_clean=no
13613 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13614 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13616 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13617 echo "configure:13618: checking for strftime" >&5
13618 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13619 echo $ac_n "(cached) $ac_c" 1>&6
13621 cat > conftest.$ac_ext <<EOF
13622 #line 13623 "configure"
13623 #include "confdefs.h"
13624 /* System header to define __stub macros and hopefully few prototypes,
13625 which can conflict with char strftime(); below. */
13626 #include <assert.h>
13627 /* Override any gcc2 internal prototype to avoid an error. */
13628 /* We use char because int might match the return type of a gcc2
13629 builtin and then its argument prototype would still apply. */
13635 /* The GNU C library defines this for functions which it implements
13636 to always fail with ENOSYS. Some functions are actually named
13637 something starting with __ and the normal name is an alias. */
13638 #if defined (__stub_strftime) || defined (__stub___strftime)
13646 if { (eval echo configure:13647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13648 eval "ac_cv_func_strftime=yes"
13650 echo "configure: failed program was:" >&5
13651 cat conftest.$ac_ext >&5
13653 eval "ac_cv_func_strftime=no"
13658 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13659 echo "$ac_t""yes" 1>&6
13660 cat >> confdefs.h <<\EOF
13661 #define HAVE_STRFTIME 1
13665 echo "$ac_t""no" 1>&6
13666 # strftime is in -lintl on SCO UNIX.
13667 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13668 echo "configure:13669: checking for strftime in -lintl" >&5
13669 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13670 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13671 echo $ac_n "(cached) $ac_c" 1>&6
13673 ac_save_LIBS="$LIBS"
13674 LIBS="-lintl $LIBS"
13675 cat > conftest.$ac_ext <<EOF
13676 #line 13677 "configure"
13677 #include "confdefs.h"
13678 /* Override any gcc2 internal prototype to avoid an error. */
13679 /* We use char because int might match the return type of a gcc2
13680 builtin and then its argument prototype would still apply. */
13687 if { (eval echo configure:13688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13689 eval "ac_cv_lib_$ac_lib_var=yes"
13691 echo "configure: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13694 eval "ac_cv_lib_$ac_lib_var=no"
13697 LIBS="$ac_save_LIBS"
13700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13701 echo "$ac_t""yes" 1>&6
13702 cat >> confdefs.h <<\EOF
13703 #define HAVE_STRFTIME 1
13706 LIBS="-lintl $LIBS"
13708 echo "$ac_t""no" 1>&6
13714 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13715 echo "configure:13716: checking for inet_aton()" >&5
13716 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13717 echo $ac_n "(cached) $ac_c" 1>&6
13719 cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13723 #ifdef HAVE_SYS_TYPES_H
13724 # include <sys/types.h>
13726 #ifdef HAVE_SYS_SOCKET_H
13727 # include <sys/socket.h>
13728 # ifdef HAVE_SYS_SELECT_H
13729 # include <sys/select.h>
13731 # include <netinet/in.h>
13732 # ifdef HAVE_ARPA_INET_H
13733 # include <arpa/inet.h>
13739 int rc = inet_aton( "255.255.255.255", &in );
13742 if { (eval echo configure:13743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13744 ol_cv_func_inet_aton=yes
13746 echo "configure: failed program was:" >&5
13747 cat conftest.$ac_ext >&5
13749 ol_cv_func_inet_aton=no
13754 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13755 if test $ol_cv_func_inet_aton != no; then
13756 cat >> confdefs.h <<\EOF
13757 #define HAVE_INET_ATON 1
13763 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13764 echo "configure:13765: checking for vprintf" >&5
13765 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13766 echo $ac_n "(cached) $ac_c" 1>&6
13768 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 /* System header to define __stub macros and hopefully few prototypes,
13772 which can conflict with char vprintf(); below. */
13773 #include <assert.h>
13774 /* Override any gcc2 internal prototype to avoid an error. */
13775 /* We use char because int might match the return type of a gcc2
13776 builtin and then its argument prototype would still apply. */
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13793 if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13795 eval "ac_cv_func_vprintf=yes"
13797 echo "configure: failed program was:" >&5
13798 cat conftest.$ac_ext >&5
13800 eval "ac_cv_func_vprintf=no"
13805 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13806 echo "$ac_t""yes" 1>&6
13807 cat >> confdefs.h <<\EOF
13808 #define HAVE_VPRINTF 1
13812 echo "$ac_t""no" 1>&6
13815 if test "$ac_cv_func_vprintf" != yes; then
13816 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13817 echo "configure:13818: checking for _doprnt" >&5
13818 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
13819 echo $ac_n "(cached) $ac_c" 1>&6
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13824 /* System header to define __stub macros and hopefully few prototypes,
13825 which can conflict with char _doprnt(); below. */
13826 #include <assert.h>
13827 /* Override any gcc2 internal prototype to avoid an error. */
13828 /* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13835 /* The GNU C library defines this for functions which it implements
13836 to always fail with ENOSYS. Some functions are actually named
13837 something starting with __ and the normal name is an alias. */
13838 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13846 if { (eval echo configure:13847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13848 eval "ac_cv_func__doprnt=yes"
13850 echo "configure: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13853 eval "ac_cv_func__doprnt=no"
13858 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13859 echo "$ac_t""yes" 1>&6
13860 cat >> confdefs.h <<\EOF
13861 #define HAVE_DOPRNT 1
13865 echo "$ac_t""no" 1>&6
13871 if test $ac_cv_func_vprintf = yes ; then
13872 for ac_func in vsnprintf vsprintf
13874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13875 echo "configure:13876: checking for $ac_func" >&5
13876 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13877 echo $ac_n "(cached) $ac_c" 1>&6
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 /* System header to define __stub macros and hopefully few prototypes,
13883 which can conflict with char $ac_func(); below. */
13884 #include <assert.h>
13885 /* Override any gcc2 internal prototype to avoid an error. */
13886 /* We use char because int might match the return type of a gcc2
13887 builtin and then its argument prototype would still apply. */
13893 /* The GNU C library defines this for functions which it implements
13894 to always fail with ENOSYS. Some functions are actually named
13895 something starting with __ and the normal name is an alias. */
13896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13904 if { (eval echo configure:13905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13906 eval "ac_cv_func_$ac_func=yes"
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13911 eval "ac_cv_func_$ac_func=no"
13916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13917 echo "$ac_t""yes" 1>&6
13918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13919 cat >> confdefs.h <<EOF
13920 #define $ac_tr_func 1
13924 echo "$ac_t""no" 1>&6
13978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13979 echo "configure:13980: checking for $ac_func" >&5
13980 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13981 echo $ac_n "(cached) $ac_c" 1>&6
13983 cat > conftest.$ac_ext <<EOF
13984 #line 13985 "configure"
13985 #include "confdefs.h"
13986 /* System header to define __stub macros and hopefully few prototypes,
13987 which can conflict with char $ac_func(); below. */
13988 #include <assert.h>
13989 /* Override any gcc2 internal prototype to avoid an error. */
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13997 /* The GNU C library defines this for functions which it implements
13998 to always fail with ENOSYS. Some functions are actually named
13999 something starting with __ and the normal name is an alias. */
14000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14008 if { (eval echo configure:14009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14010 eval "ac_cv_func_$ac_func=yes"
14012 echo "configure: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14015 eval "ac_cv_func_$ac_func=no"
14020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14021 echo "$ac_t""yes" 1>&6
14022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14023 cat >> confdefs.h <<EOF
14024 #define $ac_tr_func 1
14028 echo "$ac_t""no" 1>&6
14033 for ac_func in getopt tempnam
14035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14036 echo "configure:14037: checking for $ac_func" >&5
14037 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14038 echo $ac_n "(cached) $ac_c" 1>&6
14040 cat > conftest.$ac_ext <<EOF
14041 #line 14042 "configure"
14042 #include "confdefs.h"
14043 /* System header to define __stub macros and hopefully few prototypes,
14044 which can conflict with char $ac_func(); below. */
14045 #include <assert.h>
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14054 /* The GNU C library defines this for functions which it implements
14055 to always fail with ENOSYS. Some functions are actually named
14056 something starting with __ and the normal name is an alias. */
14057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14065 if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14067 eval "ac_cv_func_$ac_func=yes"
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14072 eval "ac_cv_func_$ac_func=no"
14077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14078 echo "$ac_t""yes" 1>&6
14079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14080 cat >> confdefs.h <<EOF
14081 #define $ac_tr_func 1
14085 echo "$ac_t""no" 1>&6
14086 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14092 # Check Configuration
14093 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14094 echo "configure:14095: checking declaration of sys_errlist" >&5
14095 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14099 cat > conftest.$ac_ext <<EOF
14100 #line 14101 "configure"
14101 #include "confdefs.h"
14104 #include <sys/types.h>
14107 char *c = (char *) *sys_errlist
14110 if { (eval echo configure:14111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14112 ol_cv_dcl_sys_errlist=yes
14113 ol_cv_have_sys_errlist=yes
14115 echo "configure: failed program was:" >&5
14116 cat conftest.$ac_ext >&5
14118 ol_cv_dcl_sys_errlist=no
14123 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14125 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14126 if test $ol_cv_dcl_sys_errlist = no ; then
14127 cat >> confdefs.h <<\EOF
14128 #define DECL_SYS_ERRLIST 1
14132 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14133 echo "configure:14134: checking existence of sys_errlist" >&5
14134 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14143 char *c = (char *) *sys_errlist
14146 if { (eval echo configure:14147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14148 ol_cv_have_sys_errlist=yes
14150 echo "configure: failed program was:" >&5
14151 cat conftest.$ac_ext >&5
14153 ol_cv_have_sys_errlist=no
14158 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14160 if test $ol_cv_have_sys_errlist = yes ; then
14161 cat >> confdefs.h <<\EOF
14162 #define HAVE_SYS_ERRLIST 1
14169 if test "$ol_enable_debug" != no ; then
14170 cat >> confdefs.h <<\EOF
14171 #define LDAP_DEBUG 1
14175 if test "$ol_enable_syslog" = yes ; then
14176 cat >> confdefs.h <<\EOF
14177 #define LDAP_SYSLOG 1
14181 if test "$ol_enable_libui" = yes ; then
14182 cat >> confdefs.h <<\EOF
14183 #define LDAP_LIBUI 1
14187 if test "$ol_enable_cache" = no ; then
14188 cat >> confdefs.h <<\EOF
14189 #define LDAP_NOCACHE 1
14193 if test "$ol_enable_dns" != no ; then
14194 cat >> confdefs.h <<\EOF
14195 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14199 if test "$ol_enable_proctitle" != no ; then
14200 cat >> confdefs.h <<\EOF
14201 #define LDAP_PROCTITLE 1
14205 if test "$ol_enable_referrals" != no ; then
14206 cat >> confdefs.h <<\EOF
14207 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14211 if test "$ol_enable_cldap" != no ; then
14212 cat >> confdefs.h <<\EOF
14213 #define LDAP_CONNECTIONLESS 1
14218 if test "$ol_enable_crypt" != no ; then
14219 cat >> confdefs.h <<\EOF
14220 #define SLAPD_CRYPT 1
14224 if test "$ol_enable_cleartext" != no ; then
14225 cat >> confdefs.h <<\EOF
14226 #define SLAPD_CLEARTEXT 1
14230 if test "$ol_enable_multimaster" != no ; then
14231 cat >> confdefs.h <<\EOF
14232 #define SLAPD_MULTIMASTER 1
14236 if test "$ol_enable_phonetic" != no ; then
14237 cat >> confdefs.h <<\EOF
14238 #define SLAPD_PHONETIC 1
14242 if test "$ol_enable_rlookups" != no ; then
14243 cat >> confdefs.h <<\EOF
14244 #define SLAPD_RLOOKUPS 1
14248 if test "$ol_enable_aci" != no ; then
14249 cat >> confdefs.h <<\EOF
14250 #define SLAPD_ACI_ENABLED 1
14254 if test "$ol_enable_discreteaci" != no ; then
14255 cat >> confdefs.h <<\EOF
14256 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14261 if test "$ol_link_modules" != no ; then
14262 cat >> confdefs.h <<\EOF
14263 #define SLAPD_MODULES 1
14267 MODULES_LIBS=-lltdl
14268 SLAPD_MODULES_LDFLAGS="-dlopen self"
14271 if test "$ol_link_bdb2" != no ; then
14272 cat >> confdefs.h <<\EOF
14273 #define SLAPD_BDB2 1
14278 if test "$ol_with_bdb2_module" != static ; then
14279 cat >> confdefs.h <<\EOF
14280 #define SLAPD_BDB2_DYNAMIC 1
14284 BUILD_BDB2_DYNAMIC=shared
14285 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14289 if test "$ol_enable_ldap" != no ; then
14290 cat >> confdefs.h <<\EOF
14291 #define SLAPD_LDAP 1
14296 if test "$ol_with_ldap_module" != static ; then
14297 cat >> confdefs.h <<\EOF
14298 #define SLAPD_LDAP_DYNAMIC 1
14302 BUILD_LDAP_DYNAMIC=shared
14303 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14307 if test "$ol_link_ldbm" != no ; then
14308 cat >> confdefs.h <<\EOF
14309 #define SLAPD_LDBM 1
14314 if test "$ol_with_ldbm_module" != static ; then
14315 cat >> confdefs.h <<\EOF
14316 #define SLAPD_LDBM_DYNAMIC 1
14320 BUILD_LDBM_DYNAMIC=shared
14321 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14325 if test "$ol_enable_passwd" != no ; then
14326 cat >> confdefs.h <<\EOF
14327 #define SLAPD_PASSWD 1
14332 if test "$ol_with_passwd_module" != static ; then
14333 cat >> confdefs.h <<\EOF
14334 #define SLAPD_PASSWD_DYNAMIC 1
14338 BUILD_PASSWD_DYNAMIC=shared
14339 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14343 if test "$ol_link_perl" != no ; then
14344 cat >> confdefs.h <<\EOF
14345 #define SLAPD_PERL 1
14350 if test "$ol_with_perl_module" != static ; then
14351 cat >> confdefs.h <<\EOF
14352 #define SLAPD_PERL_DYNAMIC 1
14356 BUILD_PERL_DYNAMIC=shared
14357 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14361 if test "$ol_enable_shell" != no ; then
14362 cat >> confdefs.h <<\EOF
14363 #define SLAPD_SHELL 1
14368 if test "$ol_with_shell_module" != static ; then
14369 cat >> confdefs.h <<\EOF
14370 #define SLAPD_SHELL_DYNAMIC 1
14374 BUILD_SHELL_DYNAMIC=shared
14375 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14379 if test "$ol_enable_tcl" != no ; then
14380 cat >> confdefs.h <<\EOF
14381 #define SLAPD_TCL 1
14386 if test "$ol_with_tcl_module" != static; then
14387 cat >> confdefs.h <<\EOF
14388 #define SLAPD_TCL_DYNAMIC 1
14392 BUILD_TCL_DYNAMIC=shared
14393 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14397 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14398 $BUILD_SLAPD = yes ; then
14402 if test "$ol_link_isode" != no ; then
14452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14455 # Let make expand exec_prefix.
14456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14458 # Any assignment to VPATH causes Sun make to only execute
14459 # the first set of double-colon rules, so remove it if not needed.
14460 # If there is a colon in the path, we need to keep it.
14461 if test "x$srcdir" = x.; then
14462 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14465 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14467 DEFS=-DHAVE_CONFIG_H
14469 # Without the "./", some shells look in PATH for config.status.
14470 : ${CONFIG_STATUS=./config.status}
14472 echo creating $CONFIG_STATUS
14473 rm -f $CONFIG_STATUS
14474 cat > $CONFIG_STATUS <<EOF
14476 # Generated automatically by configure.
14477 # Run this file to recreate the current configuration.
14478 # This directory was configured as follows,
14479 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14481 # $0 $ac_configure_args
14483 # Compiler output produced by configure, useful for debugging
14484 # configure, is in ./config.log if it exists.
14486 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14489 case "\$ac_option" in
14490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14491 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14492 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14493 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14494 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14496 -help | --help | --hel | --he | --h)
14497 echo "\$ac_cs_usage"; exit 0 ;;
14498 *) echo "\$ac_cs_usage"; exit 1 ;;
14502 ac_given_srcdir=$srcdir
14503 ac_given_INSTALL="$INSTALL"
14505 trap 'rm -fr `echo "\
14506 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14507 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14508 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14509 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14510 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14511 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14512 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14513 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14514 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14515 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14516 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14517 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14518 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14519 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14520 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14521 include/Makefile:build/top.mk:include/Makefile.in \
14522 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14523 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14524 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14525 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14526 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14527 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14528 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14529 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14530 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14531 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14532 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14533 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14534 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14535 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14536 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14537 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14538 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14539 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14540 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14541 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14542 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14543 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14544 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14545 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14546 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14547 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14548 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14550 cat >> $CONFIG_STATUS <<EOF
14552 # Protect against being on the right side of a sed subst in config.status.
14553 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14554 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14558 s%@CFLAGS@%$CFLAGS%g
14559 s%@CPPFLAGS@%$CPPFLAGS%g
14560 s%@CXXFLAGS@%$CXXFLAGS%g
14561 s%@FFLAGS@%$FFLAGS%g
14563 s%@LDFLAGS@%$LDFLAGS%g
14565 s%@exec_prefix@%$exec_prefix%g
14566 s%@prefix@%$prefix%g
14567 s%@program_transform_name@%$program_transform_name%g
14568 s%@bindir@%$bindir%g
14569 s%@sbindir@%$sbindir%g
14570 s%@libexecdir@%$libexecdir%g
14571 s%@datadir@%$datadir%g
14572 s%@sysconfdir@%$sysconfdir%g
14573 s%@sharedstatedir@%$sharedstatedir%g
14574 s%@localstatedir@%$localstatedir%g
14575 s%@libdir@%$libdir%g
14576 s%@includedir@%$includedir%g
14577 s%@oldincludedir@%$oldincludedir%g
14578 s%@infodir@%$infodir%g
14579 s%@mandir@%$mandir%g
14581 s%@host_alias@%$host_alias%g
14582 s%@host_cpu@%$host_cpu%g
14583 s%@host_vendor@%$host_vendor%g
14584 s%@host_os@%$host_os%g
14585 s%@target@%$target%g
14586 s%@target_alias@%$target_alias%g
14587 s%@target_cpu@%$target_cpu%g
14588 s%@target_vendor@%$target_vendor%g
14589 s%@target_os@%$target_os%g
14591 s%@build_alias@%$build_alias%g
14592 s%@build_cpu@%$build_cpu%g
14593 s%@build_vendor@%$build_vendor%g
14594 s%@build_os@%$build_os%g
14595 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14596 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14597 s%@INSTALL_DATA@%$INSTALL_DATA%g
14598 s%@PACKAGE@%$PACKAGE%g
14599 s%@VERSION@%$VERSION%g
14600 s%@ACLOCAL@%$ACLOCAL%g
14601 s%@AUTOCONF@%$AUTOCONF%g
14602 s%@AUTOMAKE@%$AUTOMAKE%g
14603 s%@AUTOHEADER@%$AUTOHEADER%g
14604 s%@MAKEINFO@%$MAKEINFO%g
14605 s%@install_sh@%$install_sh%g
14608 s%@AMTARFLAGS@%$AMTARFLAGS%g
14609 s%@SET_MAKE@%$SET_MAKE%g
14610 s%@top_builddir@%$top_builddir%g
14611 s%@ldap_subdir@%$ldap_subdir%g
14613 s%@RANLIB@%$RANLIB%g
14617 s%@LIBTOOL@%$LIBTOOL%g
14619 s%@SENDMAIL@%$SENDMAIL%g
14620 s%@EDITOR@%$EDITOR%g
14621 s%@FINGER@%$FINGER%g
14622 s%@PERLBIN@%$PERLBIN%g
14624 s%@EXEEXT@%$EXEEXT%g
14625 s%@OBJEXT@%$OBJEXT%g
14626 s%@OL_MKDEP@%$OL_MKDEP%g
14627 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14629 s%@LIBOBJS@%$LIBOBJS%g
14630 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
14631 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14632 s%@BUILD_BDB2@%$BUILD_BDB2%g
14633 s%@BUILD_LDAP@%$BUILD_LDAP%g
14634 s%@BUILD_LDBM@%$BUILD_LDBM%g
14635 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14636 s%@BUILD_PERL@%$BUILD_PERL%g
14637 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14638 s%@BUILD_SHELL@%$BUILD_SHELL%g
14639 s%@BUILD_TCL@%$BUILD_TCL%g
14640 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14641 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14642 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14643 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14644 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14645 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14646 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14647 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14648 s%@LDAP_LIBS@%$LDAP_LIBS%g
14649 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
14650 s%@LDIF_LIBS@%$LDIF_LIBS%g
14651 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14652 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14653 s%@LDBM_LIBS@%$LDBM_LIBS%g
14654 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14655 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14656 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14657 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14658 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14659 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14660 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14661 s%@KRB_LIBS@%$KRB_LIBS%g
14662 s%@READLINE_LIBS@%$READLINE_LIBS%g
14663 s%@SASL_LIBS@%$SASL_LIBS%g
14664 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14665 s%@TLS_LIBS@%$TLS_LIBS%g
14666 s%@MODULES_LIBS@%$MODULES_LIBS%g
14671 cat >> $CONFIG_STATUS <<\EOF
14673 # Split the substitutions into bite-sized pieces for seds with
14674 # small command number limits, like on Digital OSF/1 and HP-UX.
14675 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14676 ac_file=1 # Number of current file.
14677 ac_beg=1 # First line for current file.
14678 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14681 while $ac_more_lines; do
14682 if test $ac_beg -gt 1; then
14683 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14685 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14687 if test ! -s conftest.s$ac_file; then
14688 ac_more_lines=false
14689 rm -f conftest.s$ac_file
14691 if test -z "$ac_sed_cmds"; then
14692 ac_sed_cmds="sed -f conftest.s$ac_file"
14694 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14696 ac_file=`expr $ac_file + 1`
14698 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14701 if test -z "$ac_sed_cmds"; then
14706 cat >> $CONFIG_STATUS <<EOF
14708 CONFIG_FILES=\${CONFIG_FILES-"\
14709 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14710 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14711 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14712 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14713 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14714 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14715 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14716 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14717 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14718 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14719 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14720 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14721 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14722 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14723 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14724 include/Makefile:build/top.mk:include/Makefile.in \
14725 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14726 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14727 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14728 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14729 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14730 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14731 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14732 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14733 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14734 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14735 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14736 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14737 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14738 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14739 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14740 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14741 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14742 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14743 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14744 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14745 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14746 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14747 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14748 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14749 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14750 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14753 cat >> $CONFIG_STATUS <<\EOF
14754 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14757 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14758 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14759 *) ac_file_in="${ac_file}.in" ;;
14762 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14764 # Remove last slash and all that follows it. Not all systems have dirname.
14765 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14766 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14767 # The file is in a subdirectory.
14768 test ! -d "$ac_dir" && mkdir "$ac_dir"
14769 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14770 # A "../" for each directory in $ac_dir_suffix.
14771 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14773 ac_dir_suffix= ac_dots=
14776 case "$ac_given_srcdir" in
14778 if test -z "$ac_dots"; then top_srcdir=.
14779 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14780 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14781 *) # Relative path.
14782 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14783 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14786 case "$ac_given_INSTALL" in
14787 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14788 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14791 echo creating "$ac_file"
14793 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14795 *Makefile*) ac_comsub="1i\\
14796 # $configure_input" ;;
14800 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14802 s%@configure_input@%$configure_input%g
14803 s%@srcdir@%$srcdir%g
14804 s%@top_srcdir@%$top_srcdir%g
14805 s%@INSTALL@%$INSTALL%g
14806 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14810 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14811 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14813 # ac_d sets the value in "#define NAME VALUE" lines.
14814 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14815 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14818 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14819 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14820 ac_uB='\([ ]\)%\1#\2define\3'
14823 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14824 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14825 ac_eB='$%\1#\2define\3'
14829 if test "${CONFIG_HEADERS+set}" != set; then
14831 cat >> $CONFIG_STATUS <<EOF
14832 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14834 cat >> $CONFIG_STATUS <<\EOF
14836 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14839 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14840 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14841 *) ac_file_in="${ac_file}.in" ;;
14844 echo creating $ac_file
14846 rm -f conftest.frag conftest.in conftest.out
14847 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14848 cat $ac_file_inputs > conftest.in
14852 # Transform confdefs.h into a sed script conftest.vals that substitutes
14853 # the proper values into config.h.in to produce config.h. And first:
14854 # Protect against being on the right side of a sed subst in config.status.
14855 # Protect against being in an unquoted here document in config.status.
14856 rm -f conftest.vals
14857 cat > conftest.hdr <<\EOF
14860 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14864 sed -n -f conftest.hdr confdefs.h > conftest.vals
14867 # This sed command replaces #undef with comments. This is necessary, for
14868 # example, in the case of _POSIX_SOURCE, which is predefined and required
14869 # on some systems where configure will not decide to define it.
14870 cat >> conftest.vals <<\EOF
14871 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14874 # Break up conftest.vals because some shells have a limit on
14875 # the size of here documents, and old seds have small limits too.
14877 rm -f conftest.tail
14880 ac_lines=`grep -c . conftest.vals`
14881 # grep -c gives empty output for an empty file on some AIX systems.
14882 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14883 # Write a limited-size here document to conftest.frag.
14884 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14885 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14887 sed -f conftest.frag conftest.in > conftest.out
14889 mv conftest.out conftest.in
14890 ' >> $CONFIG_STATUS
14891 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14892 rm -f conftest.vals
14893 mv conftest.tail conftest.vals
14895 rm -f conftest.vals
14897 cat >> $CONFIG_STATUS <<\EOF
14898 rm -f conftest.frag conftest.h
14899 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14900 cat conftest.in >> conftest.h
14902 if cmp -s $ac_file conftest.h 2>/dev/null; then
14903 echo "$ac_file is unchanged"
14906 # Remove last slash and all that follows it. Not all systems have dirname.
14907 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14908 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14909 # The file is in a subdirectory.
14910 test ! -d "$ac_dir" && mkdir "$ac_dir"
14913 mv conftest.h $ac_file
14918 cat >> $CONFIG_STATUS <<EOF
14921 cat >> $CONFIG_STATUS <<\EOF
14924 echo Please \"make depend\" to build dependencies
14928 chmod +x $CONFIG_STATUS
14929 rm -fr confdefs* $ac_clean_files
14930 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1