3 # from OpenLDAP: pkg/ldap/configure.in,v 1.284 2000/01/08 17:42:15 kdz Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-kbind enable V2 Kerberos IV bind (auto)"
44 --enable-cldap enable connectionless ldap (no)"
46 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
48 --enable-x-compile enable cross compiling (no)"
50 --enable-dmalloc enable debug malloc support (no)"
52 --with-cyrus-sasl with Cyrus SASL support (auto)"
54 --with-fetch with fetch URL support (auto)"
56 --with-kerberos with support (auto)"
58 --with-readline with readline support (auto)"
60 --with-threads use threads (auto)"
62 --with-tls with TLS/SSL support (auto)"
64 --with-yielding-select with implicitly yielding select (auto)"
66 LDAPD (X.500-to-LDAP Gateway) Options:"
68 --enable-ldapd enable building ldapd (no)"
70 SLAPD (Standalone LDAP Daemon) Options:"
72 --enable-slapd enable building slapd (yes)"
74 --enable-cleartext enable cleartext passwords (yes)"
76 --enable-crypt enable crypt(3) passwords (auto)"
78 --enable-kpasswd enable kerberos password verification (no)"
80 --enable-modules enable dynamic module support (no)"
82 --enable-multimaster enable multimaster replication (no)"
84 --enable-phonetic enable phonetic/soundex (no)"
86 --enable-quipu build quipu migration tools (no)"
88 --enable-rlookups enable reverse lookups (auto)"
90 --enable-aci enable per-object ACIs (no)"
92 --enable-discreteaci enable discrete rights in ACIs (no)"
94 --enable-wrappers enable tcp wrapper support (no)"
96 --enable-dynamic enable linking built binaries with dynamic libs (no)"
98 --enable-bdb2 enable bdb2 backend (no)"
100 --with-bdb2-module module type (static)"
102 --enable-ldap enable ldap backend (no)"
104 --with-ldap-module module type (static)"
106 --enable-ldbm enable ldbm backend (yes)"
108 --with-ldbm-api use LDBM API (auto)"
110 --with-ldbm-module module type (static)"
112 --with-ldbm-type use LDBM type (auto)"
114 --enable-passwd enable passwd backend (no)"
116 --with-passwd-module module type (static)"
118 --enable-perl enable perl backend (no)"
120 --with-perl-module module type (static)"
122 --enable-shell enable shell backend (no)"
124 --with-shell-module module type (static)"
126 --enable-tcl enable tcl backend (no)"
128 --with-tcl-module module type (static)"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd (auto)"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 for ac_dir in build $srcdir/build; do
649 if test -f $ac_dir/install-sh; then
651 ac_install_sh="$ac_aux_dir/install-sh -c"
653 elif test -f $ac_dir/install.sh; then
655 ac_install_sh="$ac_aux_dir/install.sh -c"
659 if test -z "$ac_aux_dir"; then
660 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
662 ac_config_guess=$ac_aux_dir/config.guess
663 ac_config_sub=$ac_aux_dir/config.sub
664 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
666 OL_VERSION=`cat $ac_aux_dir/version`
667 if test -z "$OL_VERSION"; then
668 { echo "configure: error: could not determine version" 1>&2; exit 1; }
671 echo "Configuring OpenLDAP $OL_VERSION ..."
674 # Do some error checking and defaulting for the host and target type.
676 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
679 # 1. You are not allowed to specify --host, --target, and nonopt at the
681 # 2. Host defaults to nonopt.
682 # 3. If nonopt is not specified, then host defaults to the current host,
683 # as determined by config.guess.
684 # 4. Target and build default to nonopt.
685 # 5. If nonopt is not specified, then target and build default to host.
687 # The aliases save the names the user supplied, while $host etc.
688 # will get canonicalized.
689 case $host---$target---$nonopt in
690 NONE---*---* | *---NONE---* | *---*---NONE) ;;
691 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
695 # Make sure we can run config.sub.
696 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
697 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
700 echo $ac_n "checking host system type""... $ac_c" 1>&6
701 echo "configure:702: checking host system type" >&5
704 case "$host_alias" in
708 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
709 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
711 *) host_alias=$nonopt ;;
715 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
716 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$host" 1>&6
721 echo $ac_n "checking target system type""... $ac_c" 1>&6
722 echo "configure:723: checking target system type" >&5
725 case "$target_alias" in
728 NONE) target_alias=$host_alias ;;
729 *) target_alias=$nonopt ;;
733 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
734 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
737 echo "$ac_t""$target" 1>&6
739 echo $ac_n "checking build system type""... $ac_c" 1>&6
740 echo "configure:741: checking build system type" >&5
743 case "$build_alias" in
746 NONE) build_alias=$host_alias ;;
747 *) build_alias=$nonopt ;;
751 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
752 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$build" 1>&6
757 test "$host_alias" != "$target_alias" &&
758 test "$program_prefix$program_suffix$program_transform_name" = \
760 program_prefix=${target_alias}-
763 # Find a good install program. We prefer a C program (faster),
764 # so one script is as good as another. But avoid the broken or
765 # incompatible versions:
766 # SysV /etc/install, /usr/sbin/install
767 # SunOS /usr/etc/install
770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
773 # ./install, which can be erroneously created by make from ./install.sh.
774 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
775 echo "configure:776: checking for a BSD compatible install" >&5
776 if test -z "$INSTALL"; then
777 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
781 for ac_dir in $PATH; do
782 # Account for people who put trailing slashes in PATH elements.
784 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
786 # OSF1 and SCO ODT 3.0 have their own names for install.
787 # Don't use installbsd from OSF since it installs stuff as root
789 for ac_prog in ginstall scoinst install; do
790 if test -f $ac_dir/$ac_prog; then
791 if test $ac_prog = install &&
792 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
793 # AIX install. It has an incompatible calling convention.
796 ac_cv_path_install="$ac_dir/$ac_prog -c"
807 if test "${ac_cv_path_install+set}" = set; then
808 INSTALL="$ac_cv_path_install"
810 # As a last resort, use the slow shell script. We don't cache a
811 # path for INSTALL within a source directory, because that will
812 # break other packages using the cache if that directory is
813 # removed, or if the path is relative.
814 INSTALL="$ac_install_sh"
817 echo "$ac_t""$INSTALL" 1>&6
819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
820 # It thinks the first close brace ends the variable substitution.
821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
827 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
828 echo "configure:829: checking whether build environment is sane" >&5
831 echo timestamp > conftestfile
832 # Do `set' in a subshell so we don't clobber the current shell's
833 # arguments. Must try -L first in case configure is actually a
834 # symlink; some systems play weird games with the mod time of symlinks
835 # (eg FreeBSD returns the mod time of the symlink's containing
838 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
839 if test "$*" = "X"; then
841 set X `ls -t $srcdir/configure conftestfile`
843 if test "$*" != "X $srcdir/configure conftestfile" \
844 && test "$*" != "X conftestfile $srcdir/configure"; then
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
851 alias in your environment" 1>&2; exit 1; }
854 test "$2" = conftestfile
860 { echo "configure: error: newly created file is older than distributed files!
861 Check your system clock" 1>&2; exit 1; }
864 echo "$ac_t""yes" 1>&6
865 if test "$program_transform_name" = s,x,x,; then
866 program_transform_name=
868 # Double any \ or $. echo might interpret backslashes.
869 cat <<\EOF_SED > conftestsed
870 s,\\,\\\\,g; s,\$,$$,g
872 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
875 test "$program_prefix" != NONE &&
876 program_transform_name="s,^,${program_prefix},; $program_transform_name"
877 # Use a double $ so make ignores it.
878 test "$program_suffix" != NONE &&
879 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
881 # sed with no file args requires a program.
882 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
884 for ac_prog in mawk gawk nawk awk
886 # Extract the first word of "$ac_prog", so it can be a program name with args.
887 set dummy $ac_prog; ac_word=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 if test -n "$AWK"; then
894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
901 ac_cv_prog_AWK="$ac_prog"
908 AWK="$ac_cv_prog_AWK"
909 if test -n "$AWK"; then
910 echo "$ac_t""$AWK" 1>&6
912 echo "$ac_t""no" 1>&6
915 test -n "$AWK" && break
918 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
919 echo "configure:920: checking whether ${MAKE-make} sets \${MAKE}" >&5
920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
921 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 cat > conftestmake <<\EOF
926 @echo 'ac_maketemp="${MAKE}"'
928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
929 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
930 if test -n "$ac_maketemp"; then
931 eval ac_cv_prog_make_${ac_make}_set=yes
933 eval ac_cv_prog_make_${ac_make}_set=no
937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
938 echo "$ac_t""yes" 1>&6
941 echo "$ac_t""no" 1>&6
942 SET_MAKE="MAKE=${MAKE-make}"
951 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
952 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
957 missing_dir=`cd $ac_aux_dir && pwd`
958 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
959 echo "configure:960: checking for working aclocal" >&5
960 # Run test in a subshell; some versions of sh will print an error if
961 # an executable is not found, even if stderr is redirected.
962 # Redirect stdin to placate older versions of autoconf. Sigh.
963 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
965 echo "$ac_t""found" 1>&6
967 ACLOCAL="$missing_dir/missing aclocal"
968 echo "$ac_t""missing" 1>&6
971 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
972 echo "configure:973: checking for working autoconf" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf. Sigh.
976 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
978 echo "$ac_t""found" 1>&6
980 AUTOCONF="$missing_dir/missing autoconf"
981 echo "$ac_t""missing" 1>&6
984 echo $ac_n "checking for working automake""... $ac_c" 1>&6
985 echo "configure:986: checking for working automake" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (automake --version) < /dev/null > /dev/null 2>&1; then
991 echo "$ac_t""found" 1>&6
993 AUTOMAKE="$missing_dir/missing automake"
994 echo "$ac_t""missing" 1>&6
997 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
998 echo "configure:999: checking for working autoheader" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf. Sigh.
1002 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1003 AUTOHEADER=autoheader
1004 echo "$ac_t""found" 1>&6
1006 AUTOHEADER="$missing_dir/missing autoheader"
1007 echo "$ac_t""missing" 1>&6
1010 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1011 echo "configure:1012: checking for working makeinfo" >&5
1012 # Run test in a subshell; some versions of sh will print an error if
1013 # an executable is not found, even if stderr is redirected.
1014 # Redirect stdin to placate older versions of autoconf. Sigh.
1015 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1017 echo "$ac_t""found" 1>&6
1019 MAKEINFO="$missing_dir/missing makeinfo"
1020 echo "$ac_t""missing" 1>&6
1023 install_sh="$missing_dir/install-sh"
1024 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1026 for ac_prog in gnutar gtar tar
1028 # Extract the first word of "$ac_prog", so it can be a program name with args.
1029 set dummy $ac_prog; ac_word=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1031 echo "configure:1032: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_AMTAR'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 if test -n "$AMTAR"; then
1036 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1040 for ac_dir in $ac_dummy; do
1041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_prog_AMTAR="$ac_prog"
1050 AMTAR="$ac_cv_prog_AMTAR"
1051 if test -n "$AMTAR"; then
1052 echo "$ac_t""$AMTAR" 1>&6
1054 echo "$ac_t""no" 1>&6
1057 test -n "$AMTAR" && break
1062 if test -n "$AMTAR"; then
1063 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1070 cat >> confdefs.h <<EOF
1071 #define OPENLDAP_PACKAGE "$PACKAGE"
1074 cat >> confdefs.h <<EOF
1075 #define OPENLDAP_VERSION "$VERSION"
1081 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1082 echo "configure:1083: checking configure arguments" >&5
1087 ldap_subdir="/openldap"
1089 # Check whether --with-subdir or --without-subdir was given.
1090 if test "${with_subdir+set}" = set; then
1091 withval="$with_subdir"
1098 ldap_subdir="$withval"
1101 ldap_subdir="/$withval"
1108 # OpenLDAP --enable-debug
1109 # Check whether --enable-debug or --disable-debug was given.
1110 if test "${enable_debug+set}" = set; then
1111 enableval="$enable_debug"
1114 for ol_val in auto yes no ; do
1115 if test "$enableval" = "$ol_val" ; then
1119 if test "$ol_arg" = "invalid" ; then
1120 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1122 ol_enable_debug="$ol_arg"
1125 ol_enable_debug="yes"
1127 # end --enable-debug
1128 # OpenLDAP --enable-syslog
1129 # Check whether --enable-syslog or --disable-syslog was given.
1130 if test "${enable_syslog+set}" = set; then
1131 enableval="$enable_syslog"
1134 for ol_val in auto yes no ; do
1135 if test "$enableval" = "$ol_val" ; then
1139 if test "$ol_arg" = "invalid" ; then
1140 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1142 ol_enable_syslog="$ol_arg"
1145 ol_enable_syslog="auto"
1147 # end --enable-syslog
1148 # OpenLDAP --enable-proctitle
1149 # Check whether --enable-proctitle or --disable-proctitle was given.
1150 if test "${enable_proctitle+set}" = set; then
1151 enableval="$enable_proctitle"
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-proctitle" 1>&2; exit 1; }
1162 ol_enable_proctitle="$ol_arg"
1165 ol_enable_proctitle="yes"
1167 # end --enable-proctitle
1168 # OpenLDAP --enable-cache
1169 # Check whether --enable-cache or --disable-cache was given.
1170 if test "${enable_cache+set}" = set; then
1171 enableval="$enable_cache"
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-cache" 1>&2; exit 1; }
1182 ol_enable_cache="$ol_arg"
1185 ol_enable_cache="yes"
1187 # end --enable-cache
1188 # OpenLDAP --enable-dns
1189 # Check whether --enable-dns or --disable-dns was given.
1190 if test "${enable_dns+set}" = set; then
1191 enableval="$enable_dns"
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-dns" 1>&2; exit 1; }
1202 ol_enable_dns="$ol_arg"
1208 # OpenLDAP --enable-referrals
1209 # Check whether --enable-referrals or --disable-referrals was given.
1210 if test "${enable_referrals+set}" = set; then
1211 enableval="$enable_referrals"
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-referrals" 1>&2; exit 1; }
1222 ol_enable_referrals="$ol_arg"
1225 ol_enable_referrals="yes"
1227 # end --enable-referrals
1228 # OpenLDAP --enable-kbind
1229 # Check whether --enable-kbind or --disable-kbind was given.
1230 if test "${enable_kbind+set}" = set; then
1231 enableval="$enable_kbind"
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-kbind" 1>&2; exit 1; }
1242 ol_enable_kbind="$ol_arg"
1245 ol_enable_kbind="auto"
1247 # end --enable-kbind
1248 # OpenLDAP --enable-cldap
1249 # Check whether --enable-cldap or --disable-cldap was given.
1250 if test "${enable_cldap+set}" = set; then
1251 enableval="$enable_cldap"
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-cldap" 1>&2; exit 1; }
1262 ol_enable_cldap="$ol_arg"
1265 ol_enable_cldap="no"
1267 # end --enable-cldap
1268 # OpenLDAP --enable-ldapi
1269 # Check whether --enable-ldapi or --disable-ldapi was given.
1270 if test "${enable_ldapi+set}" = set; then
1271 enableval="$enable_ldapi"
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-ldapi" 1>&2; exit 1; }
1282 ol_enable_ldapi="$ol_arg"
1285 ol_enable_ldapi="no"
1287 # end --enable-ldapi
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 k5only k425 kth 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 nt posix mach pth lwp yes no manual ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1428 ol_with_threads="$ol_arg"
1431 ol_with_threads="auto"
1433 # end --with-threads
1435 # OpenLDAP --with-tls
1436 # Check whether --with-tls or --without-tls was given.
1437 if test "${with_tls+set}" = set; then
1441 for ol_val in auto ssleay openssl yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1449 ol_with_tls="$ol_arg"
1456 # OpenLDAP --with-yielding_select
1457 # Check whether --with-yielding_select or --without-yielding_select was given.
1458 if test "${with_yielding_select+set}" = set; then
1459 withval="$with_yielding_select"
1462 for ol_val in auto yes no manual ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1470 ol_with_yielding_select="$ol_arg"
1473 ol_with_yielding_select="auto"
1475 # end --with-yielding_select
1478 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1479 if test "${with_xxldapdoptions+set}" = set; then
1480 withval="$with_xxldapdoptions"
1484 # OpenLDAP --enable-ldapd
1485 # Check whether --enable-ldapd or --disable-ldapd was given.
1486 if test "${enable_ldapd+set}" = set; then
1487 enableval="$enable_ldapd"
1490 for ol_val in auto yes no ; do
1491 if test "$enableval" = "$ol_val" ; then
1495 if test "$ol_arg" = "invalid" ; then
1496 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1498 ol_enable_ldapd="$ol_arg"
1501 ol_enable_ldapd="no"
1503 # end --enable-ldapd
1505 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1506 if test "${with_xxslapdoptions+set}" = set; then
1507 withval="$with_xxslapdoptions"
1511 # OpenLDAP --enable-slapd
1512 # Check whether --enable-slapd or --disable-slapd was given.
1513 if test "${enable_slapd+set}" = set; then
1514 enableval="$enable_slapd"
1517 for ol_val in auto yes no ; do
1518 if test "$enableval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1525 ol_enable_slapd="$ol_arg"
1528 ol_enable_slapd="yes"
1530 # end --enable-slapd
1531 # OpenLDAP --enable-cleartext
1532 # Check whether --enable-cleartext or --disable-cleartext was given.
1533 if test "${enable_cleartext+set}" = set; then
1534 enableval="$enable_cleartext"
1537 for ol_val in auto yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1545 ol_enable_cleartext="$ol_arg"
1548 ol_enable_cleartext="yes"
1550 # end --enable-cleartext
1551 # OpenLDAP --enable-crypt
1552 # Check whether --enable-crypt or --disable-crypt was given.
1553 if test "${enable_crypt+set}" = set; then
1554 enableval="$enable_crypt"
1557 for ol_val in auto yes no ; do
1558 if test "$enableval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1565 ol_enable_crypt="$ol_arg"
1568 ol_enable_crypt="auto"
1570 # end --enable-crypt
1571 # OpenLDAP --enable-kpasswd
1572 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1573 if test "${enable_kpasswd+set}" = set; then
1574 enableval="$enable_kpasswd"
1577 for ol_val in auto yes no ; do
1578 if test "$enableval" = "$ol_val" ; then
1582 if test "$ol_arg" = "invalid" ; then
1583 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1585 ol_enable_kpasswd="$ol_arg"
1588 ol_enable_kpasswd="no"
1590 # end --enable-kpasswd
1591 # OpenLDAP --enable-modules
1592 # Check whether --enable-modules or --disable-modules was given.
1593 if test "${enable_modules+set}" = set; then
1594 enableval="$enable_modules"
1597 for ol_val in auto yes no ; do
1598 if test "$enableval" = "$ol_val" ; then
1602 if test "$ol_arg" = "invalid" ; then
1603 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1605 ol_enable_modules="$ol_arg"
1608 ol_enable_modules="no"
1610 # end --enable-modules
1611 # OpenLDAP --enable-multimaster
1612 # Check whether --enable-multimaster or --disable-multimaster was given.
1613 if test "${enable_multimaster+set}" = set; then
1614 enableval="$enable_multimaster"
1617 for ol_val in auto yes no ; do
1618 if test "$enableval" = "$ol_val" ; then
1622 if test "$ol_arg" = "invalid" ; then
1623 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1625 ol_enable_multimaster="$ol_arg"
1628 ol_enable_multimaster="no"
1630 # end --enable-multimaster
1631 # OpenLDAP --enable-phonetic
1632 # Check whether --enable-phonetic or --disable-phonetic was given.
1633 if test "${enable_phonetic+set}" = set; then
1634 enableval="$enable_phonetic"
1637 for ol_val in auto yes no ; do
1638 if test "$enableval" = "$ol_val" ; then
1642 if test "$ol_arg" = "invalid" ; then
1643 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1645 ol_enable_phonetic="$ol_arg"
1648 ol_enable_phonetic="no"
1650 # end --enable-phonetic
1651 # OpenLDAP --enable-quipu
1652 # Check whether --enable-quipu or --disable-quipu was given.
1653 if test "${enable_quipu+set}" = set; then
1654 enableval="$enable_quipu"
1657 for ol_val in auto yes no ; do
1658 if test "$enableval" = "$ol_val" ; then
1662 if test "$ol_arg" = "invalid" ; then
1663 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1665 ol_enable_quipu="$ol_arg"
1668 ol_enable_quipu="no"
1670 # end --enable-quipu
1671 # OpenLDAP --enable-rlookups
1672 # Check whether --enable-rlookups or --disable-rlookups was given.
1673 if test "${enable_rlookups+set}" = set; then
1674 enableval="$enable_rlookups"
1677 for ol_val in auto yes no ; do
1678 if test "$enableval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1685 ol_enable_rlookups="$ol_arg"
1688 ol_enable_rlookups="auto"
1690 # end --enable-rlookups
1691 # OpenLDAP --enable-aci
1692 # Check whether --enable-aci or --disable-aci was given.
1693 if test "${enable_aci+set}" = set; then
1694 enableval="$enable_aci"
1697 for ol_val in auto yes no ; do
1698 if test "$enableval" = "$ol_val" ; then
1702 if test "$ol_arg" = "invalid" ; then
1703 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1705 ol_enable_aci="$ol_arg"
1711 # OpenLDAP --enable-discreteaci
1712 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1713 if test "${enable_discreteaci+set}" = set; then
1714 enableval="$enable_discreteaci"
1717 for ol_val in auto yes no ; do
1718 if test "$enableval" = "$ol_val" ; then
1722 if test "$ol_arg" = "invalid" ; then
1723 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1725 ol_enable_discreteaci="$ol_arg"
1728 ol_enable_discreteaci="no"
1730 # end --enable-discreteaci
1731 # OpenLDAP --enable-wrappers
1732 # Check whether --enable-wrappers or --disable-wrappers was given.
1733 if test "${enable_wrappers+set}" = set; then
1734 enableval="$enable_wrappers"
1737 for ol_val in auto yes no ; do
1738 if test "$enableval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1745 ol_enable_wrappers="$ol_arg"
1748 ol_enable_wrappers="no"
1750 # end --enable-wrappers
1751 # OpenLDAP --enable-dynamic
1752 # Check whether --enable-dynamic or --disable-dynamic was given.
1753 if test "${enable_dynamic+set}" = set; then
1754 enableval="$enable_dynamic"
1757 for ol_val in auto yes no ; do
1758 if test "$enableval" = "$ol_val" ; then
1762 if test "$ol_arg" = "invalid" ; then
1763 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1765 ol_enable_dynamic="$ol_arg"
1768 ol_enable_dynamic="no"
1770 # end --enable-dynamic
1772 # OpenLDAP --enable-bdb2
1773 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1774 if test "${enable_bdb2+set}" = set; then
1775 enableval="$enable_bdb2"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1786 ol_enable_bdb2="$ol_arg"
1792 # OpenLDAP --with-bdb2_module
1793 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1794 if test "${with_bdb2_module+set}" = set; then
1795 withval="$with_bdb2_module"
1798 for ol_val in static dynamic ; do
1799 if test "$withval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1806 ol_with_bdb2_module="$ol_arg"
1809 ol_with_bdb2_module="static"
1811 # end --with-bdb2_module
1813 # OpenLDAP --enable-ldap
1814 # Check whether --enable-ldap or --disable-ldap was given.
1815 if test "${enable_ldap+set}" = set; then
1816 enableval="$enable_ldap"
1819 for ol_val in auto yes no ; do
1820 if test "$enableval" = "$ol_val" ; then
1824 if test "$ol_arg" = "invalid" ; then
1825 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1827 ol_enable_ldap="$ol_arg"
1833 # OpenLDAP --with-ldap_module
1834 # Check whether --with-ldap_module or --without-ldap_module was given.
1835 if test "${with_ldap_module+set}" = set; then
1836 withval="$with_ldap_module"
1839 for ol_val in static dynamic ; do
1840 if test "$withval" = "$ol_val" ; then
1844 if test "$ol_arg" = "invalid" ; then
1845 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1847 ol_with_ldap_module="$ol_arg"
1850 ol_with_ldap_module="static"
1852 # end --with-ldap_module
1854 # OpenLDAP --enable-ldbm
1855 # Check whether --enable-ldbm or --disable-ldbm was given.
1856 if test "${enable_ldbm+set}" = set; then
1857 enableval="$enable_ldbm"
1860 for ol_val in auto yes no ; do
1861 if test "$enableval" = "$ol_val" ; then
1865 if test "$ol_arg" = "invalid" ; then
1866 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1868 ol_enable_ldbm="$ol_arg"
1871 ol_enable_ldbm="yes"
1874 # OpenLDAP --with-ldbm_api
1875 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1876 if test "${with_ldbm_api+set}" = set; then
1877 withval="$with_ldbm_api"
1880 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1881 if test "$withval" = "$ol_val" ; then
1885 if test "$ol_arg" = "invalid" ; then
1886 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1888 ol_with_ldbm_api="$ol_arg"
1891 ol_with_ldbm_api="auto"
1893 # end --with-ldbm_api
1895 # OpenLDAP --with-ldbm_module
1896 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1897 if test "${with_ldbm_module+set}" = set; then
1898 withval="$with_ldbm_module"
1901 for ol_val in static dynamic ; do
1902 if test "$withval" = "$ol_val" ; then
1906 if test "$ol_arg" = "invalid" ; then
1907 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1909 ol_with_ldbm_module="$ol_arg"
1912 ol_with_ldbm_module="static"
1914 # end --with-ldbm_module
1916 # OpenLDAP --with-ldbm_type
1917 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1918 if test "${with_ldbm_type+set}" = set; then
1919 withval="$with_ldbm_type"
1922 for ol_val in auto btree hash ; do
1923 if test "$withval" = "$ol_val" ; then
1927 if test "$ol_arg" = "invalid" ; then
1928 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1930 ol_with_ldbm_type="$ol_arg"
1933 ol_with_ldbm_type="auto"
1935 # end --with-ldbm_type
1938 # OpenLDAP --enable-passwd
1939 # Check whether --enable-passwd or --disable-passwd was given.
1940 if test "${enable_passwd+set}" = set; then
1941 enableval="$enable_passwd"
1944 for ol_val in auto yes no ; do
1945 if test "$enableval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1952 ol_enable_passwd="$ol_arg"
1955 ol_enable_passwd="no"
1957 # end --enable-passwd
1958 # OpenLDAP --with-passwd_module
1959 # Check whether --with-passwd_module or --without-passwd_module was given.
1960 if test "${with_passwd_module+set}" = set; then
1961 withval="$with_passwd_module"
1964 for ol_val in static dynamic ; do
1965 if test "$withval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1972 ol_with_passwd_module="$ol_arg"
1975 ol_with_passwd_module="static"
1977 # end --with-passwd_module
1979 # OpenLDAP --enable-perl
1980 # Check whether --enable-perl or --disable-perl was given.
1981 if test "${enable_perl+set}" = set; then
1982 enableval="$enable_perl"
1985 for ol_val in auto yes no ; do
1986 if test "$enableval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1993 ol_enable_perl="$ol_arg"
1999 # OpenLDAP --with-perl_module
2000 # Check whether --with-perl_module or --without-perl_module was given.
2001 if test "${with_perl_module+set}" = set; then
2002 withval="$with_perl_module"
2005 for ol_val in static dynamic ; do
2006 if test "$withval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2013 ol_with_perl_module="$ol_arg"
2016 ol_with_perl_module="static"
2018 # end --with-perl_module
2020 # OpenLDAP --enable-shell
2021 # Check whether --enable-shell or --disable-shell was given.
2022 if test "${enable_shell+set}" = set; then
2023 enableval="$enable_shell"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2034 ol_enable_shell="$ol_arg"
2037 ol_enable_shell="no"
2039 # end --enable-shell
2040 # OpenLDAP --with-shell_module
2041 # Check whether --with-shell_module or --without-shell_module was given.
2042 if test "${with_shell_module+set}" = set; then
2043 withval="$with_shell_module"
2046 for ol_val in static dynamic ; do
2047 if test "$withval" = "$ol_val" ; then
2051 if test "$ol_arg" = "invalid" ; then
2052 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2054 ol_with_shell_module="$ol_arg"
2057 ol_with_shell_module="static"
2059 # end --with-shell_module
2061 # OpenLDAP --enable-tcl
2062 # Check whether --enable-tcl or --disable-tcl was given.
2063 if test "${enable_tcl+set}" = set; then
2064 enableval="$enable_tcl"
2067 for ol_val in auto yes no ; do
2068 if test "$enableval" = "$ol_val" ; then
2072 if test "$ol_arg" = "invalid" ; then
2073 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2075 ol_enable_tcl="$ol_arg"
2081 # OpenLDAP --with-tcl_module
2082 # Check whether --with-tcl_module or --without-tcl_module was given.
2083 if test "${with_tcl_module+set}" = set; then
2084 withval="$with_tcl_module"
2087 for ol_val in static dynamic ; do
2088 if test "$withval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2095 ol_with_tcl_module="$ol_arg"
2098 ol_with_tcl_module="static"
2100 # end --with-tcl_module
2103 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2104 if test "${with_xxslurpdoptions+set}" = set; then
2105 withval="$with_xxslurpdoptions"
2109 # OpenLDAP --enable-slurpd
2110 # Check whether --enable-slurpd or --disable-slurpd was given.
2111 if test "${enable_slurpd+set}" = set; then
2112 enableval="$enable_slurpd"
2115 for ol_val in auto yes no ; do
2116 if test "$enableval" = "$ol_val" ; then
2120 if test "$ol_arg" = "invalid" ; then
2121 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2123 ol_enable_slurpd="$ol_arg"
2126 ol_enable_slurpd="auto"
2128 # end --enable-slurpd
2130 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2131 if test "${with_xxliboptions+set}" = set; then
2132 withval="$with_xxliboptions"
2136 # Check whether --enable-static or --disable-static was given.
2137 if test "${enable_static+set}" = set; then
2138 enableval="$enable_static"
2139 p=${PACKAGE-default}
2140 case "$enableval" in
2141 yes) enable_static=yes ;;
2142 no) enable_static=no ;;
2145 # Look at the argument we got. We use all the common list separators.
2146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2147 for pkg in $enableval; do
2148 if test "X$pkg" = "X$p"; then
2159 # Check whether --enable-shared or --disable-shared was given.
2160 if test "${enable_shared+set}" = set; then
2161 enableval="$enable_shared"
2162 p=${PACKAGE-default}
2163 case "$enableval" in
2164 yes) enable_shared=yes ;;
2165 no) enable_shared=no ;;
2168 # Look at the argument we got. We use all the common list separators.
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2170 for pkg in $enableval; do
2171 if test "X$pkg" = "X$p"; then
2185 if test $ol_enable_dns = yes ; then
2186 if test $ol_enable_referrals = no ; then
2187 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2189 if test $ol_enable_referrals = auto ; then
2190 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2191 ol_enable_referrals=yes
2195 if test $ol_enable_slapd = no ; then
2196 if test $ol_enable_bdb2 = yes ; then
2197 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2199 if test $ol_enable_ldap = yes ; then
2200 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2202 if test $ol_enable_ldbm = yes ; then
2203 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2205 if test $ol_enable_passwd = yes ; then
2206 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2208 if test $ol_enable_perl = yes ; then
2209 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2211 if test $ol_enable_shell = yes ; then
2212 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2214 if test $ol_enable_tcl = yes ; then
2215 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2217 if test $ol_enable_modules = yes ; then
2218 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2220 if test $ol_enable_multimaster = yes ; then
2221 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2223 if test $ol_enable_wrappers = yes ; then
2224 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2226 if test $ol_enable_phonetic = yes ; then
2227 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2229 if test $ol_enable_quipu = yes ; then
2230 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2232 if test $ol_enable_rlookups = yes ; then
2233 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2235 if test $ol_enable_aci = yes ; then
2236 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2238 if test $ol_enable_discreteaci = yes ; then
2239 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2241 if test $ol_with_ldbm_api != auto ; then
2242 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2244 if test $ol_with_ldbm_type != auto ; then
2245 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2247 if test $ol_with_bdb2_module != static ; then
2248 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2250 if test $ol_with_ldap_module != static ; then
2251 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2253 if test $ol_with_ldbm_module != static ; then
2254 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2256 if test $ol_with_passwd_module != static ; then
2257 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2259 if test $ol_with_perl_module != static ; then
2260 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2262 if test $ol_with_shell_module != static ; then
2263 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2265 if test $ol_with_tcl_module != static ; then
2266 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2268 if test $ol_enable_slurpd = yes ; then
2269 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2272 # force settings to no
2281 ol_enable_modules=no
2282 ol_enable_multimaster=no
2283 ol_enable_phonetic=no
2285 ol_enable_rlookups=no
2287 ol_enable_discreteaci=no
2288 ol_enable_wrappers=no
2289 ol_enable_dynamic=no
2292 ol_with_ldbm_type=no
2294 ol_with_bdb2_module=static
2295 ol_with_ldap_module=static
2296 ol_with_ldbm_module=static
2297 ol_with_passwd_module=static
2298 ol_with_perl_module=static
2299 ol_with_shell_module=static
2300 ol_with_tcl_module=static
2304 elif test $ol_enable_ldbm = no ; then
2306 if test $ol_with_ldbm_api != auto ; then
2307 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2310 if test $ol_with_ldbm_type != auto ; then
2311 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2314 if test $ol_with_ldbm_module != static ; then
2315 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2318 if test $ol_enable_bdb2 = yes ; then
2319 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2322 if test $ol_enable_modules != yes -a \
2323 $ol_enable_ldap = no -a \
2324 $ol_enable_passwd = no -a \
2325 $ol_enable_perl = no -a \
2326 $ol_enable_shell = no -a \
2327 $ol_enable_tcl = no ; then
2328 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2332 ol_with_ldbm_type=no
2333 ol_with_ldbm_module=static
2335 elif test $ol_enable_bdb2 = yes ; then
2337 if test $ol_with_ldbm_api != auto -a \
2338 $ol_with_ldbm_api != db2 ; then
2339 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2342 ol_with_ldbm_api=db2
2346 if test $ol_enable_bdb2 != no ; then
2347 if test $ol_with_ldbm_api != auto -a \
2348 $ol_with_ldbm_api != db2 ; then
2349 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2354 if test $ol_with_ldbm_api = gdbm -a \
2355 $ol_with_ldbm_type = btree ; then
2356 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2358 if test $ol_with_ldbm_api = mdbm -a \
2359 $ol_with_ldbm_type = btree ; then
2360 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2362 if test $ol_with_ldbm_api = ndbm -a \
2363 $ol_with_ldbm_type = btree ; then
2364 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2368 if test $ol_enable_slurpd = yes ; then
2369 if test $ol_with_threads = no ; then
2370 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2374 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2375 if test $ol_with_kerberos = no ; then
2376 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2378 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2379 if test $ol_with_kerberos != auto ; then
2380 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2386 echo "$ac_t""done" 1>&6
2412 BUILD_BDB2_DYNAMIC=static
2413 BUILD_LDAP_DYNAMIC=static
2414 BUILD_LDBM_DYNAMIC=static
2415 BUILD_PASSWD_DYNAMIC=static
2416 BUILD_PERL_DYNAMIC=static
2417 BUILD_SHELL_DYNAMIC=static
2418 BUILD_TCL_DYNAMIC=static
2420 SLAPD_MODULES_LDFLAGS=
2421 SLAPD_MODULES_CPPFLAGS=
2439 cat >> confdefs.h <<\EOF
2440 #define HAVE_MKVERSION 1
2448 *-*-aix*) if test -z "$CC" ; then
2449 case "$ol_with_threads" in
2450 auto | yes | posix) ol_aix_threads=yes ;;
2456 if test $ol_aix_threads = yes ; then
2457 if test -z "${CC}" ; then
2458 for ac_prog in cc_r xlc_r cc
2460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2461 set dummy $ac_prog; ac_word=$2
2462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_word" >&5
2464 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2472 for ac_dir in $ac_dummy; do
2473 test -z "$ac_dir" && ac_dir=.
2474 if test -f $ac_dir/$ac_word; then
2475 ac_cv_prog_CC="$ac_prog"
2483 if test -n "$CC"; then
2484 echo "$ac_t""$CC" 1>&6
2486 echo "$ac_t""no" 1>&6
2489 test -n "$CC" && break
2493 if test "$CC" = cc ; then
2494 if test $ol_with_threads != auto ; then
2495 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2497 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2503 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2504 ol_with_threads=posix
2505 ol_cv_pthread_create=yes
2509 if test -z "${CC}"; then
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2515 echo "configure:2516: checking for $ac_word" >&5
2516 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2524 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 if test -f $ac_dir/$ac_word; then
2527 ac_cv_prog_CC="$ac_prog"
2535 if test -n "$CC"; then
2536 echo "$ac_t""$CC" 1>&6
2538 echo "$ac_t""no" 1>&6
2541 test -n "$CC" && break
2549 # Check whether --enable-fast-install or --disable-fast-install was given.
2550 if test "${enable_fast_install+set}" = set; then
2551 enableval="$enable_fast_install"
2552 p=${PACKAGE-default}
2553 case "$enableval" in
2554 yes) enable_fast_install=yes ;;
2555 no) enable_fast_install=no ;;
2557 enable_fast_install=no
2558 # Look at the argument we got. We use all the common list separators.
2559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2560 for pkg in $enableval; do
2561 if test "X$pkg" = "X$p"; then
2562 enable_fast_install=yes
2569 enable_fast_install=yes
2572 # Extract the first word of "ranlib", so it can be a program name with args.
2573 set dummy ranlib; ac_word=$2
2574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_word" >&5
2576 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 if test -n "$RANLIB"; then
2580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2584 for ac_dir in $ac_dummy; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2587 ac_cv_prog_RANLIB="ranlib"
2592 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2595 RANLIB="$ac_cv_prog_RANLIB"
2596 if test -n "$RANLIB"; then
2597 echo "$ac_t""$RANLIB" 1>&6
2599 echo "$ac_t""no" 1>&6
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603 set dummy gcc; ac_word=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2614 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 if test -f $ac_dir/$ac_word; then
2625 if test -n "$CC"; then
2626 echo "$ac_t""$CC" 1>&6
2628 echo "$ac_t""no" 1>&6
2631 if test -z "$CC"; then
2632 # Extract the first word of "cc", so it can be a program name with args.
2633 set dummy cc; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2645 for ac_dir in $ac_dummy; do
2646 test -z "$ac_dir" && ac_dir=.
2647 if test -f $ac_dir/$ac_word; then
2648 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2649 ac_prog_rejected=yes
2657 if test $ac_prog_rejected = yes; then
2658 # We found a bogon in the path, so make sure we never use it.
2659 set dummy $ac_cv_prog_CC
2661 if test $# -gt 0; then
2662 # We chose a different compiler from the bogus one.
2663 # However, it has the same basename, so the bogon will be chosen
2664 # first if we set CC to just the basename; use the full file name.
2666 set dummy "$ac_dir/$ac_word" "$@"
2674 if test -n "$CC"; then
2675 echo "$ac_t""$CC" 1>&6
2677 echo "$ac_t""no" 1>&6
2680 if test -z "$CC"; then
2681 case "`uname -s`" in
2683 # Extract the first word of "cl", so it can be a program name with args.
2684 set dummy cl; ac_word=$2
2685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2686 echo "configure:2687: checking for $ac_word" >&5
2687 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2695 for ac_dir in $ac_dummy; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f $ac_dir/$ac_word; then
2706 if test -n "$CC"; then
2707 echo "$ac_t""$CC" 1>&6
2709 echo "$ac_t""no" 1>&6
2714 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2717 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2718 echo "configure:2719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2725 cross_compiling=$ac_cv_prog_cc_cross
2727 cat > conftest.$ac_ext << EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2735 ac_cv_prog_cc_works=yes
2736 # If we can't run a trivial program, we are probably using a cross compiler.
2737 if (./conftest; exit) 2>/dev/null; then
2738 ac_cv_prog_cc_cross=no
2740 ac_cv_prog_cc_cross=yes
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 ac_cv_prog_cc_works=no
2749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cc_cross
2755 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2756 if test $ac_cv_prog_cc_works = no; then
2757 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2759 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2760 echo "configure:2761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2761 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2762 cross_compiling=$ac_cv_prog_cc_cross
2764 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2765 echo "configure:2766: checking whether we are using GNU C" >&5
2766 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.c <<EOF
2774 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2781 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2783 if test $ac_cv_prog_gcc = yes; then
2789 ac_test_CFLAGS="${CFLAGS+set}"
2790 ac_save_CFLAGS="$CFLAGS"
2792 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2793 echo "configure:2794: checking whether ${CC-cc} accepts -g" >&5
2794 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 echo 'void f(){}' > conftest.c
2798 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2807 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2808 if test "$ac_test_CFLAGS" = set; then
2809 CFLAGS="$ac_save_CFLAGS"
2810 elif test $ac_cv_prog_cc_g = yes; then
2811 if test "$GCC" = yes; then
2817 if test "$GCC" = yes; then
2824 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2825 if test "${with_gnu_ld+set}" = set; then
2826 withval="$with_gnu_ld"
2827 test "$withval" = no || with_gnu_ld=yes
2833 if test "$ac_cv_prog_gcc" = yes; then
2834 # Check if gcc -print-prog-name=ld gives a path.
2835 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2836 echo "configure:2837: checking for ld used by GCC" >&5
2837 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2839 # Accept absolute paths.
2840 [\\/]* | [A-Za-z]:[\\/]*)
2841 re_direlt='/[^/][^/]*/\.\./'
2842 # Canonicalize the path of ld
2843 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2844 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2845 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2847 test -z "$LD" && LD="$ac_prog"
2850 # If it fails, then pretend we aren't using GCC.
2854 # If it is relative, then search for the first ld in PATH.
2858 elif test "$with_gnu_ld" = yes; then
2859 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2860 echo "configure:2861: checking for GNU ld" >&5
2862 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2863 echo "configure:2864: checking for non-GNU ld" >&5
2865 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 if test -z "$LD"; then
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2870 for ac_dir in $PATH; do
2871 test -z "$ac_dir" && ac_dir=.
2872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2873 ac_cv_path_LD="$ac_dir/$ac_prog"
2874 # Check to see if the program is GNU ld. I'd rather use --version,
2875 # but apparently some GNU ld's only accept -v.
2876 # Break only if it was the GNU/non-GNU ld that we prefer.
2877 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2878 test "$with_gnu_ld" != no && break
2880 test "$with_gnu_ld" != yes && break
2886 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2891 if test -n "$LD"; then
2892 echo "$ac_t""$LD" 1>&6
2894 echo "$ac_t""no" 1>&6
2896 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2898 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2899 echo "configure:2900: checking if the linker ($LD) is GNU ld" >&5
2900 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2904 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2905 ac_cv_prog_gnu_ld=yes
2907 ac_cv_prog_gnu_ld=no
2911 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2914 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2915 echo "configure:2916: checking for BSD-compatible nm" >&5
2916 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 if test -n "$NM"; then
2920 # Let the user override the test.
2923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2924 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2925 test -z "$ac_dir" && ac_dir=.
2926 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2927 # Check to see if the nm accepts a BSD-compat flag.
2928 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2929 # nm: unknown option "B" ignored
2930 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2931 ac_cv_path_NM="$ac_dir/nm -B"
2933 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2934 ac_cv_path_NM="$ac_dir/nm -p"
2937 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2938 continue # so that we can try to find one that supports BSD flags
2943 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2948 echo "$ac_t""$NM" 1>&6
2951 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2952 echo "configure:2953: checking whether ln -s works" >&5
2953 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2957 if ln -s X conftestdata 2>/dev/null
2960 ac_cv_prog_LN_S="ln -s"
2965 LN_S="$ac_cv_prog_LN_S"
2966 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2967 echo "$ac_t""yes" 1>&6
2969 echo "$ac_t""no" 1>&6
2972 if test $host != $build; then
2973 ac_tool_prefix=${host_alias}-
2979 # Check for any special flags to pass to ltconfig.
2980 libtool_flags="--cache-file=$cache_file"
2981 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2982 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2983 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2984 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2985 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2986 libtool_flags="$libtool_flags --enable-dlopen"
2987 libtool_flags="$libtool_flags --enable-win32-dll"
2988 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2989 if test "${enable_libtool_lock+set}" = set; then
2990 enableval="$enable_libtool_lock"
2994 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2995 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2997 # Some flags need to be propagated to the compiler or linker for good
3001 # Find out which ABI we are using.
3002 echo '#line 3003 "configure"' > conftest.$ac_ext
3003 if { (eval echo configure:3004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3004 case "`/usr/bin/file conftest.o`" in
3020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3021 SAVE_CFLAGS="$CFLAGS"
3022 CFLAGS="$CFLAGS -belf"
3023 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3024 echo "configure:3025: checking whether the C compiler needs -belf" >&5
3025 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3038 lt_cv_cc_needs_belf=yes
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3043 lt_cv_cc_needs_belf=no
3048 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3049 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3051 CFLAGS="$SAVE_CFLAGS"
3055 *-*-cygwin* | *-*-mingw*)
3056 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3059 echo "configure:3060: checking for $ac_word" >&5
3060 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 if test -n "$DLLTOOL"; then
3064 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3068 for ac_dir in $ac_dummy; do
3069 test -z "$ac_dir" && ac_dir=.
3070 if test -f $ac_dir/$ac_word; then
3071 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3078 DLLTOOL="$ac_cv_prog_DLLTOOL"
3079 if test -n "$DLLTOOL"; then
3080 echo "$ac_t""$DLLTOOL" 1>&6
3082 echo "$ac_t""no" 1>&6
3086 if test -z "$ac_cv_prog_DLLTOOL"; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "dlltool", so it can be a program name with args.
3089 set dummy dlltool; ac_word=$2
3090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3091 echo "configure:3092: checking for $ac_word" >&5
3092 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 if test -n "$DLLTOOL"; then
3096 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3100 for ac_dir in $ac_dummy; do
3101 test -z "$ac_dir" && ac_dir=.
3102 if test -f $ac_dir/$ac_word; then
3103 ac_cv_prog_DLLTOOL="dlltool"
3108 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3111 DLLTOOL="$ac_cv_prog_DLLTOOL"
3112 if test -n "$DLLTOOL"; then
3113 echo "$ac_t""$DLLTOOL" 1>&6
3115 echo "$ac_t""no" 1>&6
3123 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}as; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 if test -n "$AS"; then
3131 ac_cv_prog_AS="$AS" # Let the user override the test.
3133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3135 for ac_dir in $ac_dummy; do
3136 test -z "$ac_dir" && ac_dir=.
3137 if test -f $ac_dir/$ac_word; then
3138 ac_cv_prog_AS="${ac_tool_prefix}as"
3146 if test -n "$AS"; then
3147 echo "$ac_t""$AS" 1>&6
3149 echo "$ac_t""no" 1>&6
3153 if test -z "$ac_cv_prog_AS"; then
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "as", so it can be a program name with args.
3156 set dummy as; ac_word=$2
3157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_word" >&5
3159 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 if test -n "$AS"; then
3163 ac_cv_prog_AS="$AS" # Let the user override the test.
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3167 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3175 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3179 if test -n "$AS"; then
3180 echo "$ac_t""$AS" 1>&6
3182 echo "$ac_t""no" 1>&6
3190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3193 echo "configure:3194: checking for $ac_word" >&5
3194 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 if test -n "$OBJDUMP"; then
3198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3202 for ac_dir in $ac_dummy; do
3203 test -z "$ac_dir" && ac_dir=.
3204 if test -f $ac_dir/$ac_word; then
3205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3212 OBJDUMP="$ac_cv_prog_OBJDUMP"
3213 if test -n "$OBJDUMP"; then
3214 echo "$ac_t""$OBJDUMP" 1>&6
3216 echo "$ac_t""no" 1>&6
3220 if test -z "$ac_cv_prog_OBJDUMP"; then
3221 if test -n "$ac_tool_prefix"; then
3222 # Extract the first word of "objdump", so it can be a program name with args.
3223 set dummy objdump; ac_word=$2
3224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_word" >&5
3226 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 if test -n "$OBJDUMP"; then
3230 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3234 for ac_dir in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir=.
3236 if test -f $ac_dir/$ac_word; then
3237 ac_cv_prog_OBJDUMP="objdump"
3242 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3245 OBJDUMP="$ac_cv_prog_OBJDUMP"
3246 if test -n "$OBJDUMP"; then
3247 echo "$ac_t""$OBJDUMP" 1>&6
3249 echo "$ac_t""no" 1>&6
3262 # Save cache, so that ltconfig can load it
3265 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3266 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3267 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3268 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3269 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3270 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3271 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3272 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3274 # Reload cache, that may have been modified by ltconfig
3277 # This can be used to rebuild libtool when needed
3278 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3280 # Always use our own libtool.
3281 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3283 # Redirect the config.log output again, so that the ltconfig log is not
3284 # clobbered by the next message.
3285 exec 5>>./config.log
3288 for ac_prog in mawk gawk nawk awk
3290 # Extract the first word of "$ac_prog", so it can be a program name with args.
3291 set dummy $ac_prog; ac_word=$2
3292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3293 echo "configure:3294: checking for $ac_word" >&5
3294 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 if test -n "$AWK"; then
3298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3302 for ac_dir in $ac_dummy; do
3303 test -z "$ac_dir" && ac_dir=.
3304 if test -f $ac_dir/$ac_word; then
3305 ac_cv_prog_AWK="$ac_prog"
3312 AWK="$ac_cv_prog_AWK"
3313 if test -n "$AWK"; then
3314 echo "$ac_t""$AWK" 1>&6
3316 echo "$ac_t""no" 1>&6
3319 test -n "$AWK" && break
3322 # test for ln hardlink support
3323 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3324 echo "configure:3325: checking whether ln works" >&5
3325 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 rm -f conftest.src conftest.dst
3329 echo "conftest" > conftest.src
3330 if ln conftest.src conftest.dst 2>/dev/null
3332 ol_cv_prog_LN_H="ln"
3334 ol_cv_prog_LN_H="cp"
3336 rm -f conftest.src conftest.dst
3339 LN_H="$ol_cv_prog_LN_H"
3340 if test "$ol_cv_prog_LN_H" = "ln"; then
3341 echo "$ac_t""yes" 1>&6
3343 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3347 echo "configure:3348: checking whether ln -s works" >&5
3348 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3352 if ln -s X conftestdata 2>/dev/null
3355 ac_cv_prog_LN_S="ln -s"
3360 LN_S="$ac_cv_prog_LN_S"
3361 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3362 echo "$ac_t""yes" 1>&6
3364 echo "$ac_t""no" 1>&6
3368 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3372 # Extract the first word of "sendmail", so it can be a program name with args.
3373 set dummy sendmail; ac_word=$2
3374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3375 echo "configure:3376: checking for $ac_word" >&5
3376 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3381 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3384 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3389 for ac_dir in $ac_dummy; do
3390 test -z "$ac_dir" && ac_dir=.
3391 if test -f $ac_dir/$ac_word; then
3392 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3397 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3401 SENDMAIL="$ac_cv_path_SENDMAIL"
3402 if test -n "$SENDMAIL"; then
3403 echo "$ac_t""$SENDMAIL" 1>&6
3405 echo "$ac_t""no" 1>&6
3408 # Extract the first word of "vi", so it can be a program name with args.
3409 set dummy vi; ac_word=$2
3410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_word" >&5
3412 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3417 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3420 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3424 ac_dummy="$PATH:/usr/ucb"
3425 for ac_dir in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir=.
3427 if test -f $ac_dir/$ac_word; then
3428 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3433 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3437 EDITOR="$ac_cv_path_EDITOR"
3438 if test -n "$EDITOR"; then
3439 echo "$ac_t""$EDITOR" 1>&6
3441 echo "$ac_t""no" 1>&6
3444 # Extract the first word of "finger", so it can be a program name with args.
3445 set dummy finger; ac_word=$2
3446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_word" >&5
3448 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3456 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3460 ac_dummy="$PATH:/usr/ucb"
3461 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if test -f $ac_dir/$ac_word; then
3464 ac_cv_path_FINGER="$ac_dir/$ac_word"
3469 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3473 FINGER="$ac_cv_path_FINGER"
3474 if test -n "$FINGER"; then
3475 echo "$ac_t""$FINGER" 1>&6
3477 echo "$ac_t""no" 1>&6
3482 if test $ol_enable_perl != no ; then
3483 # Extract the first word of "perl", so it can be a program name with args.
3484 set dummy perl; ac_word=$2
3485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_word" >&5
3487 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3492 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3495 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3500 for ac_dir in $ac_dummy; do
3501 test -z "$ac_dir" && ac_dir=.
3502 if test -f $ac_dir/$ac_word; then
3503 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3508 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3512 PERLBIN="$ac_cv_path_PERLBIN"
3513 if test -n "$PERLBIN"; then
3514 echo "$ac_t""$PERLBIN" 1>&6
3516 echo "$ac_t""no" 1>&6
3520 if test "no$PERLBIN" = "no" ; then
3521 if test $ol_enable_perl = yes ; then
3522 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3526 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3527 if test x"$ol_with_perl_module" = "xstatic" ; then
3528 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3530 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3536 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3537 echo "configure:3538: checking how to run the C preprocessor" >&5
3538 # On Suns, sometimes $CPP names a directory.
3539 if test -n "$CPP" && test -d "$CPP"; then
3542 if test -z "$CPP"; then
3543 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 # This must be in double quotes, not single quotes, because CPP may get
3547 # substituted into the Makefile and "${CC-cc}" will confuse make.
3549 # On the NeXT, cc -E runs the code through the compiler's parser,
3550 # not just through cpp.
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3558 { (eval echo configure:3559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3560 if test -z "$ac_err"; then
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 CPP="${CC-cc} -E -traditional-cpp"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3575 { (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3577 if test -z "$ac_err"; then
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 CPP="${CC-cc} -nologo -E"
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3592 { (eval echo configure:3593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3594 if test -z "$ac_err"; then
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3608 ac_cv_prog_CPP="$CPP"
3610 CPP="$ac_cv_prog_CPP"
3612 ac_cv_prog_CPP="$CPP"
3614 echo "$ac_t""$CPP" 1>&6
3617 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3618 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3620 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3621 echo "configure: warning: programs compiled here do run here..." 1>&2
3622 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3624 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3625 echo "configure: warning: programs compiled here do not run here..." 1>&2
3626 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3629 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3630 echo "configure:3631: checking for AIX" >&5
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "yes" >/dev/null 2>&1; then
3642 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3643 #define _ALL_SOURCE 1
3648 echo "$ac_t""no" 1>&6
3653 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3654 echo "configure:3655: checking for POSIXized ISC" >&5
3655 if test -d /etc/conf/kconfig.d &&
3656 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3658 echo "$ac_t""yes" 1>&6
3659 ISC=yes # If later tests want to check for ISC.
3660 cat >> confdefs.h <<\EOF
3661 #define _POSIX_SOURCE 1
3664 if test "$GCC" = yes; then
3670 echo "$ac_t""no" 1>&6
3674 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3675 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3676 echo "configure:3677: checking for minix/config.h" >&5
3677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 #include <minix/config.h>
3685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3686 { (eval echo configure:3687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3688 if test -z "$ac_err"; then
3690 eval "ac_cv_header_$ac_safe=yes"
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 eval "ac_cv_header_$ac_safe=no"
3700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3704 echo "$ac_t""no" 1>&6
3708 if test "$MINIX" = yes; then
3709 cat >> confdefs.h <<\EOF
3710 #define _POSIX_SOURCE 1
3713 cat >> confdefs.h <<\EOF
3714 #define _POSIX_1_SOURCE 2
3717 cat >> confdefs.h <<\EOF
3724 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3725 echo "configure:3726: checking for Cygwin environment" >&5
3726 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3736 #define __CYGWIN__ __CYGWIN32__
3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3754 echo "$ac_t""$ac_cv_cygwin" 1>&6
3756 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3757 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3758 echo "configure:3759: checking for mingw32 environment" >&5
3759 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3770 if { (eval echo configure:3771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3783 echo "$ac_t""$ac_cv_mingw32" 1>&6
3785 test "$ac_cv_mingw32" = yes && MINGW32=yes
3788 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3789 echo "configure:3790: checking for executable suffix" >&5
3790 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3797 echo 'int main () { return 0; }' > conftest.$ac_ext
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3800 for file in conftest.*; do
3802 *.c | *.o | *.obj) ;;
3803 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3807 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3810 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3815 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3816 echo "$ac_t""${ac_cv_exeext}" 1>&6
3819 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3820 echo "configure:3821: checking for object suffix" >&5
3821 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3825 echo 'int i = 1;' > conftest.$ac_ext
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 for ac_file in conftest.*; do
3830 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3834 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3839 echo "$ac_t""$ac_cv_objext" 1>&6
3840 OBJEXT=$ac_cv_objext
3841 ac_objext=$ac_cv_objext
3844 cat >> confdefs.h <<EOF
3845 #define EXEEXT "${EXEEXT}"
3849 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3850 echo "configure:3851: checking for be_app in -lbe" >&5
3851 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 ac_save_LIBS="$LIBS"
3856 LIBS="-lbe -lroot -lnet $LIBS"
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3871 eval "ac_cv_lib_$ac_lib_var=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3876 eval "ac_cv_lib_$ac_lib_var=no"
3879 LIBS="$ac_save_LIBS"
3882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 LIBS="$LIBS -lbe -lroot -lnet"
3886 echo "$ac_t""no" 1>&6
3894 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3895 echo "configure:3896: checking for ${CC-cc} option to accept ANSI C" >&5
3896 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 am_cv_prog_cc_stdc=no
3901 # Don't try gcc -ansi; that turns off useful extensions and
3902 # breaks some systems' header files.
3903 # AIX -qlanglvl=ansi
3904 # Ultrix and OSF/1 -std1
3905 # HP-UX 10.20 and later -Ae
3906 # HP-UX older versions -Aa -D_HPUX_SOURCE
3907 # SVR4 -Xc -D__EXTENSIONS__
3908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3916 #include <sys/types.h>
3917 #include <sys/stat.h>
3918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3919 struct buf { int x; };
3920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3921 static char *e (p, i)
3927 static char *f (char * (*g) (char **, int), char **p, ...)
3932 s = g (p, va_arg (v,int));
3936 int test (int i, double x);
3937 struct s1 {int (*f) (int a);};
3938 struct s2 {int (*f) (double a);};
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3949 if { (eval echo configure:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 am_cv_prog_cc_stdc="$ac_arg"; break
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3962 if test -z "$am_cv_prog_cc_stdc"; then
3963 echo "$ac_t""none needed" 1>&6
3965 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3967 case "x$am_cv_prog_cc_stdc" in
3969 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3972 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3973 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3976 # test for make depend flag
3979 if test -z "${MKDEP}"; then
3981 if test -z "${MKDEP_FLAGS}"; then
3982 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3983 echo "configure:3984: checking for ${OL_MKDEP} depend flag" >&5
3984 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3989 for flag in "-M" "-xM"; do
3990 cat > conftest.c <<EOF
3993 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3994 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3996 if test ! -f conftest."${ac_object}" ; then
3998 OL_MKDEP_FLAGS="$flag"
4007 echo "$ac_t""$ol_cv_mkdep" 1>&6
4010 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4015 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4020 if test "${ol_cv_mkdep}" = no ; then
4021 # this will soon become an error
4022 echo "configure: warning: do not know how to generate dependencies" 1>&2
4026 if test $ol_enable_modules != no ; then
4027 for ac_hdr in ltdl.h
4029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4031 echo "configure:4032: checking for $ac_hdr" >&5
4032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4041 { (eval echo configure:4042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4043 if test -z "$ac_err"; then
4045 eval "ac_cv_header_$ac_safe=yes"
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4051 eval "ac_cv_header_$ac_safe=no"
4055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4056 echo "$ac_t""yes" 1>&6
4057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4058 cat >> confdefs.h <<EOF
4059 #define $ac_tr_hdr 1
4063 echo "$ac_t""no" 1>&6
4068 if test $ac_cv_header_ltdl_h = no ; then
4069 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4072 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4073 echo "configure:4074: checking for lt_dlinit in -lltdl" >&5
4074 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-%__p_%'`
4075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 ac_save_LIBS="$LIBS"
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4094 eval "ac_cv_lib_$ac_lib_var=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 eval "ac_cv_lib_$ac_lib_var=no"
4102 LIBS="$ac_save_LIBS"
4105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4106 echo "$ac_t""yes" 1>&6
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_LIBLTDL 1
4115 echo "$ac_t""no" 1>&6
4119 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4120 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4124 ol_with_bdb2_module=static
4125 ol_with_ldap_module=static
4126 ol_with_ldbm_module=static
4127 ol_with_passwd_module=static
4128 ol_with_perl_module=static
4129 ol_with_shell_module=static
4130 ol_with_tcl_module=static
4134 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4135 echo "configure:4136: checking for EBCDIC" >&5
4136 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4145 #include <__ASCII__/generate_error.h>
4149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4150 { (eval echo configure:4151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4152 if test -z "$ac_err"; then
4154 ol_cv_cpp_ebcdic=yes
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4165 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4166 if test $ol_cv_cpp_ebcdic = yes ; then
4167 cat >> confdefs.h <<\EOF
4168 #define HAVE_EBCDIC 1
4173 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4174 echo "configure:4175: checking for ANSI C header files" >&5
4175 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4187 { (eval echo configure:4188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4189 if test -z "$ac_err"; then
4191 ol_cv_header_stdc=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 ol_cv_header_stdc=no
4201 if test $ol_cv_header_stdc = yes; then
4202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 egrep "memchr" >/dev/null 2>&1; then
4213 ol_cv_header_stdc=no
4219 if test $ol_cv_header_stdc = yes; then
4220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 egrep "free" >/dev/null 2>&1; then
4231 ol_cv_header_stdc=no
4237 if test $ol_cv_header_stdc = yes; then
4238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4239 if test "$cross_compiling" = yes; then
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4251 || ('j' <= (c) && (c) <= 'r') \
4252 || ('s' <= (c) && (c) <= 'z'))
4253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 int main () { int i; for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 ol_cv_header_stdc=no
4276 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4277 if test $ol_cv_header_stdc = yes; then
4278 cat >> confdefs.h <<\EOF
4279 #define STDC_HEADERS 1
4283 ac_cv_header_stdc=disable
4286 if test $ol_cv_header_stdc != yes; then
4287 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4294 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_hdr that defines DIR" >&5
4296 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <sys/types.h>
4308 if { (eval echo configure:4309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4310 eval "ac_cv_header_dirent_$ac_safe=yes"
4312 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4315 eval "ac_cv_header_dirent_$ac_safe=no"
4319 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_hdr 1
4325 ac_header_dirent=$ac_hdr; break
4327 echo "$ac_t""no" 1>&6
4330 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4331 if test $ac_header_dirent = dirent.h; then
4332 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4333 echo "configure:4334: checking for opendir in -ldir" >&5
4334 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 ac_save_LIBS="$LIBS"
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 eval "ac_cv_lib_$ac_lib_var=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4359 eval "ac_cv_lib_$ac_lib_var=no"
4362 LIBS="$ac_save_LIBS"
4365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4369 echo "$ac_t""no" 1>&6
4373 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4374 echo "configure:4375: checking for opendir in -lx" >&5
4375 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 ac_save_LIBS="$LIBS"
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 /* Override any gcc2 internal prototype to avoid an error. */
4385 /* We use char because int might match the return type of a gcc2
4386 builtin and then its argument prototype would still apply. */
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_lib_$ac_lib_var=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_lib_$ac_lib_var=no"
4403 LIBS="$ac_save_LIBS"
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4410 echo "$ac_t""no" 1>&6
4415 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4416 echo "configure:4417: checking for sys/wait.h that is POSIX.1 compatible" >&5
4417 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 #include <sys/types.h>
4424 #include <sys/wait.h>
4426 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4429 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4434 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4437 if { (eval echo configure:4438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4439 ac_cv_header_sys_wait_h=yes
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4444 ac_cv_header_sys_wait_h=no
4449 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4450 if test $ac_cv_header_sys_wait_h = yes; then
4451 cat >> confdefs.h <<\EOF
4452 #define HAVE_SYS_WAIT_H 1
4457 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4458 echo "configure:4459: checking POSIX termios" >&5
4459 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 #include <sys/types.h>
4467 #include <termios.h>
4469 /* SunOS 4.0.3 has termios.h but not the library calls. */
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 am_cv_sys_posix_termios=yes
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 am_cv_sys_posix_termios=no
4485 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4488 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4489 echo "configure:4490: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4490 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4495 gwinsz_in_termios_h=no
4496 if test $am_cv_sys_posix_termios = yes; then
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 #include <sys/types.h>
4501 # include <termios.h>
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 egrep "yes" >/dev/null 2>&1; then
4510 gwinsz_in_termios_h=yes
4516 if test $gwinsz_in_termios_h = no; then
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 #include <sys/types.h>
4521 # include <sys/ioctl.h>
4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 egrep "yes" >/dev/null 2>&1; then
4530 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4538 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4539 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4540 cat >> confdefs.h <<\EOF
4541 #define GWINSZ_IN_SYS_IOCTL 1
4546 if test $am_cv_sys_posix_termios = yes ; then
4547 cat >> confdefs.h <<\EOF
4548 #define HAVE_POSIX_TERMIOS 1
4599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_hdr" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 eval "ac_cv_header_$ac_safe=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_header_$ac_safe=no"
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4628 cat >> confdefs.h <<EOF
4629 #define $ac_tr_hdr 1
4633 echo "$ac_t""no" 1>&6
4640 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4641 echo "configure:4642: checking for sigset in -lV3" >&5
4642 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
4643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 ac_save_LIBS="$LIBS"
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4660 if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 eval "ac_cv_lib_$ac_lib_var=yes"
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 eval "ac_cv_lib_$ac_lib_var=no"
4670 LIBS="$ac_save_LIBS"
4673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4677 cat >> confdefs.h <<EOF
4678 #define $ac_tr_lib 1
4684 echo "$ac_t""no" 1>&6
4688 if test $ac_cv_header_winsock_h = yes; then
4689 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4690 echo "configure:4691: checking for winsock" >&5
4691 if eval "test \"`echo '$''{'ol_cv_winsock'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 #include <winsock.h>
4701 select(0,NULL,NULL,NULL,NULL);
4703 gethostname(NULL,0);
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4719 echo "$ac_t""$ol_cv_winsock" 1>&6
4721 if test $ol_cv_winsock = yes ; then
4722 cat >> confdefs.h <<\EOF
4723 #define HAVE_WINSOCK 1
4726 ac_cv_func_socket=yes
4727 ac_cv_func_select=yes
4728 ac_cv_func_closesocket=yes
4729 ac_cv_func_gethostname=yes
4734 echo $ac_n "checking for socket""... $ac_c" 1>&6
4735 echo "configure:4736: checking for socket" >&5
4736 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* System header to define __stub macros and hopefully few prototypes,
4743 which can conflict with char socket(); below. */
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4752 /* The GNU C library defines this for functions which it implements
4753 to always fail with ENOSYS. Some functions are actually named
4754 something starting with __ and the normal name is an alias. */
4755 #if defined (__stub_socket) || defined (__stub___socket)
4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 eval "ac_cv_func_socket=yes"
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4770 eval "ac_cv_func_socket=no"
4775 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4779 echo "$ac_t""no" 1>&6
4781 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4782 echo "configure:4783: checking for main in -lsocket" >&5
4783 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 ac_save_LIBS="$LIBS"
4788 LIBS="-lsocket $LIBS"
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4799 eval "ac_cv_lib_$ac_lib_var=yes"
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 eval "ac_cv_lib_$ac_lib_var=no"
4807 LIBS="$ac_save_LIBS"
4810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4814 cat >> confdefs.h <<EOF
4815 #define $ac_tr_lib 1
4818 LIBS="-lsocket $LIBS"
4821 echo "$ac_t""no" 1>&6
4824 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4825 echo "configure:4826: checking for main in -lnet" >&5
4826 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
4827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 ac_save_LIBS="$LIBS"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 eval "ac_cv_lib_$ac_lib_var=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_lib_$ac_lib_var=no"
4850 LIBS="$ac_save_LIBS"
4853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4856 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4857 cat >> confdefs.h <<EOF
4858 #define $ac_tr_lib 1
4864 echo "$ac_t""no" 1>&6
4867 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4868 echo "configure:4869: checking for main in -lnsl_s" >&5
4869 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
4870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 ac_save_LIBS="$LIBS"
4874 LIBS="-lnsl_s $LIBS"
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4885 eval "ac_cv_lib_$ac_lib_var=yes"
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4890 eval "ac_cv_lib_$ac_lib_var=no"
4893 LIBS="$ac_save_LIBS"
4896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4897 echo "$ac_t""yes" 1>&6
4898 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4899 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4900 cat >> confdefs.h <<EOF
4901 #define $ac_tr_lib 1
4904 LIBS="-lnsl_s $LIBS"
4907 echo "$ac_t""no" 1>&6
4910 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4911 echo "configure:4912: checking for main in -lnsl" >&5
4912 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4916 ac_save_LIBS="$LIBS"
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 eval "ac_cv_lib_$ac_lib_var=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 eval "ac_cv_lib_$ac_lib_var=no"
4936 LIBS="$ac_save_LIBS"
4939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4943 cat >> confdefs.h <<EOF
4944 #define $ac_tr_lib 1
4950 echo "$ac_t""no" 1>&6
4953 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4954 echo "configure:4955: checking for socket in -linet" >&5
4955 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
4956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 ac_save_LIBS="$LIBS"
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 eval "ac_cv_lib_$ac_lib_var=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_lib_$ac_lib_var=no"
4983 LIBS="$ac_save_LIBS"
4986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4988 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4990 cat >> confdefs.h <<EOF
4991 #define $ac_tr_lib 1
4997 echo "$ac_t""no" 1>&6
5000 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5001 echo "configure:5002: checking for main in -lgen" >&5
5002 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
5003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 ac_save_LIBS="$LIBS"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018 eval "ac_cv_lib_$ac_lib_var=yes"
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 eval "ac_cv_lib_$ac_lib_var=no"
5026 LIBS="$ac_save_LIBS"
5029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5030 echo "$ac_t""yes" 1>&6
5031 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5033 cat >> confdefs.h <<EOF
5034 #define $ac_tr_lib 1
5040 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for select""... $ac_c" 1>&6
5048 echo "configure:5049: checking for select" >&5
5049 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* System header to define __stub macros and hopefully few prototypes,
5056 which can conflict with char select(); below. */
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5065 /* The GNU C library defines this for functions which it implements
5066 to always fail with ENOSYS. Some functions are actually named
5067 something starting with __ and the normal name is an alias. */
5068 #if defined (__stub_select) || defined (__stub___select)
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078 eval "ac_cv_func_select=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 eval "ac_cv_func_select=no"
5088 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5092 echo "$ac_t""no" 1>&6
5093 { echo "configure: error: select() required." 1>&2; exit 1; }
5097 if test "${ac_cv_header_winsock_h}" != yes; then
5098 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5099 echo "configure:5100: checking types of arguments for select()" >&5
5100 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5110 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5111 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5112 cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure"
5114 #include "confdefs.h"
5115 #ifdef HAVE_SYS_TYPES_H
5116 #include <sys/types.h>
5118 #ifdef HAVE_SYS_TIME_H
5119 #include <sys/time.h>
5121 #ifdef HAVE_SYS_SELECT_H
5122 #include <sys/select.h>
5124 #ifdef HAVE_SYS_SOCKET_H
5125 #include <sys/socket.h>
5127 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);
5132 if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5134 ac_not_found=no ; break 3
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5151 if test "$ac_not_found" = yes; then
5152 ac_cv_func_select_arg1=int
5153 ac_cv_func_select_arg234='int *'
5154 ac_cv_func_select_arg5='struct timeval *'
5156 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5157 cat >> confdefs.h <<EOF
5158 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5161 cat >> confdefs.h <<EOF
5162 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5165 cat >> confdefs.h <<EOF
5166 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5173 for ac_hdr in regex.h
5175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5177 echo "configure:5178: checking for $ac_hdr" >&5
5178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5187 { (eval echo configure:5188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5189 if test -z "$ac_err"; then
5191 eval "ac_cv_header_$ac_safe=yes"
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 eval "ac_cv_header_$ac_safe=no"
5201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_hdr 1
5209 echo "$ac_t""no" 1>&6
5213 if test "$ac_cv_header_regex_h" != yes ; then
5214 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5216 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5217 echo "configure:5218: checking for regfree" >&5
5218 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char regfree(); below. */
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5234 /* The GNU C library defines this for functions which it implements
5235 to always fail with ENOSYS. Some functions are actually named
5236 something starting with __ and the normal name is an alias. */
5237 #if defined (__stub_regfree) || defined (__stub___regfree)
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5247 eval "ac_cv_func_regfree=yes"
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5252 eval "ac_cv_func_regfree=no"
5257 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5261 echo "$ac_t""no" 1>&6
5262 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5267 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5268 echo "configure:5269: checking for compatible POSIX regex" >&5
5269 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5273 if test "$cross_compiling" = yes; then
5274 ol_cv_c_posix_regex=cross
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5280 #include <sys/types.h>
5282 static char *pattern, *string;
5290 if(regcomp(&re, pattern, 0)) {
5294 string = "ALL MATCH";
5296 rc = regexec(&re, string, 0, (void*)0, 0);
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5305 ol_cv_c_posix_regex=yes
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 ol_cv_c_posix_regex=no
5317 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5319 if test "$ol_cv_c_posix_regex" = no ; then
5320 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5323 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5324 echo "configure:5325: checking for res_search" >&5
5325 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 /* System header to define __stub macros and hopefully few prototypes,
5332 which can conflict with char res_search(); below. */
5334 /* Override any gcc2 internal prototype to avoid an error. */
5335 /* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */
5341 /* The GNU C library defines this for functions which it implements
5342 to always fail with ENOSYS. Some functions are actually named
5343 something starting with __ and the normal name is an alias. */
5344 #if defined (__stub_res_search) || defined (__stub___res_search)
5352 if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5354 eval "ac_cv_func_res_search=yes"
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5359 eval "ac_cv_func_res_search=no"
5364 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5365 echo "$ac_t""yes" 1>&6
5368 echo "$ac_t""no" 1>&6
5371 if test $ac_cv_func_res_search = no ; then
5372 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5373 echo "configure:5374: checking for res_search in -lbind" >&5
5374 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
5375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 ac_save_LIBS="$LIBS"
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 /* Override any gcc2 internal prototype to avoid an error. */
5384 /* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5394 eval "ac_cv_lib_$ac_lib_var=yes"
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5399 eval "ac_cv_lib_$ac_lib_var=no"
5402 LIBS="$ac_save_LIBS"
5405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5407 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5408 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5409 cat >> confdefs.h <<EOF
5410 #define $ac_tr_lib 1
5416 echo "$ac_t""no" 1>&6
5419 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5422 if test $ac_cv_func_res_search = no ; then
5423 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5424 echo "configure:5425: checking for __res_search in -lbind" >&5
5425 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-%__p_%'`
5426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 ac_save_LIBS="$LIBS"
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5437 char __res_search();
5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 eval "ac_cv_lib_$ac_lib_var=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_lib_$ac_lib_var=no"
5453 LIBS="$ac_save_LIBS"
5456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5458 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5460 cat >> confdefs.h <<EOF
5461 #define $ac_tr_lib 1
5467 echo "$ac_t""no" 1>&6
5470 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5473 if test $ac_cv_func_res_search = no ; then
5474 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5475 echo "configure:5476: checking for res_search in -lresolv" >&5
5476 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
5477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 ac_save_LIBS="$LIBS"
5481 LIBS="-lresolv $LIBS"
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 eval "ac_cv_lib_$ac_lib_var=yes"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 eval "ac_cv_lib_$ac_lib_var=no"
5504 LIBS="$ac_save_LIBS"
5507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5511 cat >> confdefs.h <<EOF
5512 #define $ac_tr_lib 1
5515 LIBS="-lresolv $LIBS"
5518 echo "$ac_t""no" 1>&6
5521 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5524 if test "$ac_cv_func_res_search" = yes ; then
5525 cat >> confdefs.h <<\EOF
5526 #define HAVE_RES_SEARCH 1
5529 elif test $ol_enable_dns = yes ; then
5530 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5531 elif test $ol_enable_dns != no ; then
5532 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5537 if test $ol_enable_ldapd != no ; then
5538 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5540 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5541 echo "configure:5542: checking for main in -lxtpp" >&5
5542 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
5543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 ac_save_LIBS="$LIBS"
5547 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5556 if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5558 eval "ac_cv_lib_$ac_lib_var=yes"
5560 echo "configure: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5563 eval "ac_cv_lib_$ac_lib_var=no"
5566 LIBS="$ac_save_LIBS"
5569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5573 cat >> confdefs.h <<\EOF
5577 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5580 echo "$ac_t""no" 1>&6
5584 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5585 echo "configure:5586: checking for main in -ldsap" >&5
5586 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
5587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 ac_save_LIBS="$LIBS"
5591 LIBS="-ldsap -lisode $LIBS"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5600 if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602 eval "ac_cv_lib_$ac_lib_var=yes"
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5607 eval "ac_cv_lib_$ac_lib_var=no"
5610 LIBS="$ac_save_LIBS"
5613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5614 echo "$ac_t""yes" 1>&6
5617 cat >> confdefs.h <<\EOF
5621 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5624 echo "$ac_t""no" 1>&6
5628 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5629 echo "configure:5630: checking for main in -lisode" >&5
5630 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
5631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 ac_save_LIBS="$LIBS"
5635 LIBS="-lisode $LIBS"
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5644 if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5646 eval "ac_cv_lib_$ac_lib_var=yes"
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 eval "ac_cv_lib_$ac_lib_var=no"
5654 LIBS="$ac_save_LIBS"
5657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5658 echo "$ac_t""yes" 1>&6
5661 cat >> confdefs.h <<\EOF
5662 #define HAVE_ISODE 1
5665 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5668 echo "$ac_t""no" 1>&6
5674 if test $ol_link_isode != no; then
5675 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5676 echo "configure:5677: checking for main in -lpp" >&5
5677 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
5678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 ac_save_LIBS="$LIBS"
5683 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5693 eval "ac_cv_lib_$ac_lib_var=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 eval "ac_cv_lib_$ac_lib_var=no"
5701 LIBS="$ac_save_LIBS"
5704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5707 cat >> confdefs.h <<\EOF
5711 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5714 echo "$ac_t""no" 1>&6
5719 # Extract the first word of "pepsy", so it can be a program name with args.
5720 set dummy pepsy; ac_word=$2
5721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5722 echo "configure:5723: checking for $ac_word" >&5
5723 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5728 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5731 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5736 for ac_dir in $ac_dummy; do
5737 test -z "$ac_dir" && ac_dir=.
5738 if test -f $ac_dir/$ac_word; then
5739 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5747 PEPSY="$ac_cv_path_PEPSY"
5748 if test -n "$PEPSY"; then
5749 echo "$ac_t""$PEPSY" 1>&6
5751 echo "$ac_t""no" 1>&6
5756 if test $ol_enable_quipu != no ; then
5757 for ac_hdr in quipu/commonarg.h
5759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5761 echo "configure:5762: checking for $ac_hdr" >&5
5762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5771 { (eval echo configure:5772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5773 if test -z "$ac_err"; then
5775 eval "ac_cv_header_$ac_safe=yes"
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 eval "ac_cv_header_$ac_safe=no"
5785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5786 echo "$ac_t""yes" 1>&6
5787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5788 cat >> confdefs.h <<EOF
5789 #define $ac_tr_hdr 1
5793 echo "$ac_t""no" 1>&6
5798 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5800 elif test $ol_enable_quipu = auto ; then
5801 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5803 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5812 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5813 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5815 for ac_hdr in krb5.h
5817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_hdr" >&5
5820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5829 { (eval echo configure:5830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5831 if test -z "$ac_err"; then
5833 eval "ac_cv_header_$ac_safe=yes"
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 eval "ac_cv_header_$ac_safe=no"
5843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5844 echo "$ac_t""yes" 1>&6
5845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5846 cat >> confdefs.h <<EOF
5847 #define $ac_tr_hdr 1
5851 echo "$ac_t""no" 1>&6
5856 if test $ac_cv_header_krb5_h = yes ; then
5857 for ac_hdr in heim_err.h
5859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_hdr" >&5
5862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5871 { (eval echo configure:5872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5873 if test -z "$ac_err"; then
5875 eval "ac_cv_header_$ac_safe=yes"
5878 echo "configure: failed program was:" >&5
5879 cat conftest.$ac_ext >&5
5881 eval "ac_cv_header_$ac_safe=no"
5885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_hdr 1
5893 echo "$ac_t""no" 1>&6
5897 if test $ac_cv_header_heim_err_h = yes ; then
5903 if test $krb5_impl = mit; then
5904 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5905 echo "configure:5906: checking for main in -lkrb5" >&5
5906 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
5907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 ac_save_LIBS="$LIBS"
5911 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5922 eval "ac_cv_lib_$ac_lib_var=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 eval "ac_cv_lib_$ac_lib_var=no"
5930 LIBS="$ac_save_LIBS"
5933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5936 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5938 echo "$ac_t""no" 1>&6
5943 elif test $krb5_impl = heimdal; then
5944 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5945 echo "configure:5946: checking for main in -lkrb5" >&5
5946 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
5947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 ac_save_LIBS="$LIBS"
5951 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 eval "ac_cv_lib_$ac_lib_var=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_lib_$ac_lib_var=no"
5970 LIBS="$ac_save_LIBS"
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5976 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5978 echo "$ac_t""no" 1>&6
5983 cat >> confdefs.h <<\EOF
5984 #define HAVE_HEIMDAL_KERBEROS 1
5989 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5992 if test $have_krb5 = yes ; then
5995 cat >> confdefs.h <<\EOF
6000 if test $ol_enable_kpasswd != no ; then
6001 ol_link_kpasswd=yes;
6004 if test $ol_with_kerberos = k5only ; then
6005 ol_with_kerberos=found
6008 elif test $ol_with_kerberos != auto ; then
6009 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6015 if test $ol_link_krb5 = yes -a \
6016 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6018 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6022 echo "configure:6023: checking for $ac_hdr" >&5
6023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6032 { (eval echo configure:6033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6034 if test -z "$ac_err"; then
6036 eval "ac_cv_header_$ac_safe=yes"
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 eval "ac_cv_header_$ac_safe=no"
6046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6049 cat >> confdefs.h <<EOF
6050 #define $ac_tr_hdr 1
6054 echo "$ac_t""no" 1>&6
6059 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6060 if test $krb5_impl = mit; then
6061 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6062 echo "configure:6063: checking for main in -lkrb4" >&5
6063 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
6064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 ac_save_LIBS="$LIBS"
6068 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6077 if { (eval echo configure:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6079 eval "ac_cv_lib_$ac_lib_var=yes"
6081 echo "configure: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6084 eval "ac_cv_lib_$ac_lib_var=no"
6087 LIBS="$ac_save_LIBS"
6090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6091 echo "$ac_t""yes" 1>&6
6093 KRB4_LIBS="-lkrb4 -ldes425"
6095 echo "$ac_t""no" 1>&6
6100 elif test $krb5_impl = heimdal; then
6101 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6102 echo "configure:6103: checking for main in -lkrb4" >&5
6103 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
6104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6107 ac_save_LIBS="$LIBS"
6108 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6117 if { (eval echo configure:6118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6119 eval "ac_cv_lib_$ac_lib_var=yes"
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6124 eval "ac_cv_lib_$ac_lib_var=no"
6127 LIBS="$ac_save_LIBS"
6130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6135 echo "$ac_t""no" 1>&6
6142 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6145 if test $have_k425 = yes ; then
6146 ol_with_kerberos=found
6149 cat >> confdefs.h <<\EOF
6150 #define HAVE_KRB425 1
6153 cat >> confdefs.h <<\EOF
6158 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6159 echo "configure:6160: checking for des_debug in Kerberos libraries" >&5
6160 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6165 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6170 #include <kerberosIV/krb.h>
6171 #include <kerberosIV/des.h>
6172 extern int des_debug;
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 ol_cv_var_des_debug=yes
6184 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 ol_cv_var_des_debug=no
6194 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6196 if test $ol_cv_var_des_debug = yes ; then
6197 cat >> confdefs.h <<\EOF
6198 #define HAVE_DES_DEBUG 1
6208 if test $ol_link_krb5 = yes ; then
6209 ol_with_kerberos=found
6212 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6213 -o $ol_with_kerberos = kth ; then
6215 for ac_hdr in krb.h des.h krb-archaeology.h
6217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6219 echo "configure:6220: checking for $ac_hdr" >&5
6220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6229 { (eval echo configure:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6231 if test -z "$ac_err"; then
6233 eval "ac_cv_header_$ac_safe=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6239 eval "ac_cv_header_$ac_safe=no"
6243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6246 cat >> confdefs.h <<EOF
6247 #define $ac_tr_hdr 1
6251 echo "$ac_t""no" 1>&6
6256 if test $ac_cv_header_krb_h = yes ; then
6257 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6258 echo "configure:6259: checking for main in -lkrb" >&5
6259 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
6260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6263 ac_save_LIBS="$LIBS"
6264 LIBS="-lkrb -ldes $LIBS"
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6275 eval "ac_cv_lib_$ac_lib_var=yes"
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 eval "ac_cv_lib_$ac_lib_var=no"
6283 LIBS="$ac_save_LIBS"
6286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6290 echo "$ac_t""no" 1>&6
6295 if test $have_k4 = yes ; then
6296 ol_with_kerberos=found
6299 cat >> confdefs.h <<\EOF
6304 KRB4_LIBS="-lkrb -ldes"
6306 if test $ac_cv_header_krb_archaeology_h = yes ; then
6307 cat >> confdefs.h <<\EOF
6308 #define HAVE_KTH_KERBEROS 1
6316 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6317 ol_link_kpasswd=yes;
6320 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6321 cat >> confdefs.h <<\EOF
6322 #define HAVE_KERBEROS 1
6326 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6327 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6331 if test $ol_with_tls != no ; then
6333 for ac_hdr in openssl/ssl.h ssl.h
6335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6337 echo "configure:6338: checking for $ac_hdr" >&5
6338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6347 { (eval echo configure:6348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6349 if test -z "$ac_err"; then
6351 eval "ac_cv_header_$ac_safe=yes"
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6357 eval "ac_cv_header_$ac_safe=no"
6361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6362 echo "$ac_t""yes" 1>&6
6363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6364 cat >> confdefs.h <<EOF
6365 #define $ac_tr_hdr 1
6369 echo "$ac_t""no" 1>&6
6374 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6375 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6376 echo "configure:6377: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6377 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
6378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 ac_save_LIBS="$LIBS"
6382 LIBS="-lssl -lcrypto $LIBS"
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389 char SSLeay_add_ssl_algorithms();
6392 SSLeay_add_ssl_algorithms()
6395 if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6397 eval "ac_cv_lib_$ac_lib_var=yes"
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6402 eval "ac_cv_lib_$ac_lib_var=no"
6405 LIBS="$ac_save_LIBS"
6408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6413 echo "$ac_t""no" 1>&6
6418 if test $have_ssleay = no ; then
6419 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6420 echo "configure:6421: checking for SSL_library_init in -lssl" >&5
6421 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
6422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 ac_save_LIBS="$LIBS"
6426 LIBS="-lssl -lcrypto $LIBS"
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6433 char SSL_library_init();
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 eval "ac_cv_lib_$ac_lib_var=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 eval "ac_cv_lib_$ac_lib_var=no"
6449 LIBS="$ac_save_LIBS"
6452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6453 echo "$ac_t""yes" 1>&6
6457 echo "$ac_t""no" 1>&6
6463 if test $have_ssleay = no ; then
6464 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6465 echo "configure:6466: checking for ssl3_accept in -lssl" >&5
6466 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 ac_save_LIBS="$LIBS"
6471 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6472 cat > conftest.$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6486 eval "ac_cv_lib_$ac_lib_var=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 eval "ac_cv_lib_$ac_lib_var=no"
6494 LIBS="$ac_save_LIBS"
6497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6502 echo "$ac_t""no" 1>&6
6508 if test $have_ssleay = yes ; then
6512 cat >> confdefs.h <<\EOF
6513 #define HAVE_SSLEAY 1
6517 if test $need_rsaref = yes; then
6518 cat >> confdefs.h <<\EOF
6519 #define HAVE_RSAREF 1
6523 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6525 TLS_LIBS="-lssl -lcrypto"
6531 if test $ol_link_tls = yes ; then
6532 cat >> confdefs.h <<\EOF
6540 gethostbyname_r gethostbyaddr_r \
6543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_func" >&5
6545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 /* System header to define __stub macros and hopefully few prototypes,
6552 which can conflict with char $ac_func(); below. */
6554 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6561 /* The GNU C library defines this for functions which it implements
6562 to always fail with ENOSYS. Some functions are actually named
6563 something starting with __ and the normal name is an alias. */
6564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6574 eval "ac_cv_func_$ac_func=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6579 eval "ac_cv_func_$ac_func=no"
6584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6587 cat >> confdefs.h <<EOF
6588 #define $ac_tr_func 1
6592 echo "$ac_t""no" 1>&6
6597 if test "$ac_cv_func_ctime_r" = no ; then
6598 ol_cv_func_ctime_r_nargs=0
6600 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6601 echo "configure:6602: checking number of arguments of ctime_r" >&5
6602 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6610 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6613 if { (eval echo configure:6614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6615 ol_cv_func_ctime_r_nargs3=yes
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 ol_cv_func_ctime_r_nargs3=no
6624 cat > conftest.$ac_ext <<EOF
6625 #line 6626 "configure"
6626 #include "confdefs.h"
6629 time_t ti; char *buffer; ctime_r(&ti,buffer);
6632 if { (eval echo configure:6633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6634 ol_cv_func_ctime_r_nargs2=yes
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 ol_cv_func_ctime_r_nargs2=no
6643 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6644 $ol_cv_func_ctime_r_nargs2 = no ; then
6646 ol_cv_func_ctime_r_nargs=3
6648 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6649 $ol_cv_func_ctime_r_nargs2 = yes ; then
6651 ol_cv_func_ctime_r_nargs=2
6654 ol_cv_func_ctime_r_nargs=0
6659 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6661 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6662 cat >> confdefs.h <<EOF
6663 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6670 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6671 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6672 echo "configure:6673: checking number of arguments of gethostbyname_r" >&5
6673 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 #include <sys/types.h>
6680 #include <sys/socket.h>
6681 #include <netinet/in.h>
6683 #define BUFSIZE (sizeof(struct hostent)+10)
6685 struct hostent hent; char buffer[BUFSIZE];
6686 int bufsize=BUFSIZE;int h_errno;
6687 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6688 buffer, bufsize, &h_errno);
6691 if { (eval echo configure:6692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6693 ol_cv_func_gethostbyname_r_nargs5=yes
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 ol_cv_func_gethostbyname_r_nargs5=no
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 #include <sys/types.h>
6706 #include <sys/socket.h>
6707 #include <netinet/in.h>
6709 #define BUFSIZE (sizeof(struct hostent)+10)
6711 struct hostent hent;struct hostent *rhent;
6712 char buffer[BUFSIZE];
6713 int bufsize=BUFSIZE;int h_errno;
6714 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6718 if { (eval echo configure:6719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6720 ol_cv_func_gethostbyname_r_nargs6=yes
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 ol_cv_func_gethostbyname_r_nargs6=no
6729 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6730 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6732 ol_cv_func_gethostbyname_r_nargs=5
6734 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6735 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6737 ol_cv_func_gethostbyname_r_nargs=6
6740 ol_cv_func_gethostbyname_r_nargs=0
6745 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6746 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6747 cat >> confdefs.h <<EOF
6748 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6754 ol_cv_func_gethostbyname_r_nargs=0
6757 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6758 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6759 echo "configure:6760: checking number of arguments of gethostbyaddr_r" >&5
6760 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
6761 echo $ac_n "(cached) $ac_c" 1>&6
6763 cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure"
6765 #include "confdefs.h"
6766 #include <sys/types.h>
6767 #include <sys/socket.h>
6768 #include <netinet/in.h>
6770 #define BUFSIZE (sizeof(struct hostent)+10)
6772 struct hostent hent; char buffer[BUFSIZE];
6774 size_t alen=sizeof(struct in_addr);
6775 int bufsize=BUFSIZE;int h_errno;
6776 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6777 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6780 if { (eval echo configure:6781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6782 ol_cv_func_gethostbyaddr_r_nargs7=yes
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 ol_cv_func_gethostbyaddr_r_nargs7=no
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6794 #include <sys/types.h>
6795 #include <sys/socket.h>
6796 #include <netinet/in.h>
6798 #define BUFSIZE (sizeof(struct hostent)+10)
6800 struct hostent hent;
6801 struct hostent *rhent; char buffer[BUFSIZE];
6803 size_t alen=sizeof(struct in_addr);
6804 int bufsize=BUFSIZE;int h_errno;
6805 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6806 alen, AF_INET, &hent, buffer, bufsize,
6810 if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6812 ol_cv_func_gethostbyaddr_r_nargs8=yes
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 ol_cv_func_gethostbyaddr_r_nargs8=no
6821 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6822 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6824 ol_cv_func_gethostbyaddr_r_nargs=7
6826 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6827 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6829 ol_cv_func_gethostbyaddr_r_nargs=8
6832 ol_cv_func_gethostbyaddr_r_nargs=0
6837 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6838 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6839 cat >> confdefs.h <<EOF
6840 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6846 ol_cv_func_gethostbyaddr_r_nargs=0
6849 if test "$ac_cv_func_ctime_r" = yes \
6850 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6851 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6852 -a "$ac_cv_func_gethostbyname_r" = yes \
6853 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6854 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6855 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6856 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6857 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6860 cat >> confdefs.h <<\EOF
6861 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6868 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6869 -o $ol_with_threads = nt ; then
6872 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6873 echo "configure:6874: checking for NT Threads" >&5
6874 if eval "test \"`echo '$''{'ol_cv_nt_threads'+set}'`\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6878 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6879 echo "configure:6880: checking for _beginthread" >&5
6880 if eval "test \"`echo '$''{'ac_cv_func__beginthread'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* System header to define __stub macros and hopefully few prototypes,
6887 which can conflict with char _beginthread(); below. */
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6892 char _beginthread();
6896 /* The GNU C library defines this for functions which it implements
6897 to always fail with ENOSYS. Some functions are actually named
6898 something starting with __ and the normal name is an alias. */
6899 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6909 eval "ac_cv_func__beginthread=yes"
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6914 eval "ac_cv_func__beginthread=no"
6919 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6920 echo "$ac_t""yes" 1>&6
6921 ol_cv_nt_threads=yes
6923 echo "$ac_t""no" 1>&6
6930 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6932 if test $ol_cv_nt_threads = yes ; then
6933 cat >> confdefs.h <<\EOF
6934 #define HAVE_NT_THREADS 1
6940 if test "$ol_cv_nt_threads" = yes ; then
6942 ol_with_threads=found
6943 ol_with_yielding_select=yes
6945 cat >> confdefs.h <<\EOF
6946 #define HAVE_NT_SERVICE_MANAGER 1
6949 cat >> confdefs.h <<\EOF
6950 #define HAVE_NT_EVENT_LOG 1
6955 if test $ol_with_threads = nt ; then
6956 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6960 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6961 -o $ol_with_threads = posix ; then
6963 for ac_hdr in pthread.h
6965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6967 echo "configure:6968: checking for $ac_hdr" >&5
6968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6977 { (eval echo configure:6978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6979 if test -z "$ac_err"; then
6981 eval "ac_cv_header_$ac_safe=yes"
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 eval "ac_cv_header_$ac_safe=no"
6991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6992 echo "$ac_t""yes" 1>&6
6993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6994 cat >> confdefs.h <<EOF
6995 #define $ac_tr_hdr 1
6999 echo "$ac_t""no" 1>&6
7004 if test $ac_cv_header_pthread_h = yes ; then
7005 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7006 echo "configure:7007: checking POSIX thread version" >&5
7007 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7015 # include <pthread.h>
7016 /* this check could be improved */
7017 # ifdef PTHREAD_ONCE_INIT
7018 pthread_version_final;
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 egrep "pthread_version_final" >/dev/null 2>&1; then
7025 ol_pthread_final=yes
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7037 # include <pthread.h>
7038 /* this check could be improved */
7039 # ifdef pthread_once_init
7040 pthread_version_draft4;
7044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7045 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7047 ol_pthread_draft4=yes
7050 ol_pthread_draft4=no
7055 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7056 ol_cv_pthread_version=final
7057 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7058 ol_cv_pthread_version=draft4
7060 ol_cv_pthread_version=unknown
7065 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7068 if test $ol_cv_pthread_version = final ; then
7069 cat >> confdefs.h <<\EOF
7070 #define HAVE_PTHREADS_FINAL 1
7073 elif test $ol_cv_pthread_version = draft4 ; then
7074 cat >> confdefs.h <<\EOF
7075 #define HAVE_PTHREADS_D4 1
7079 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7082 # consider threads found
7083 ol_with_threads=found
7086 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7087 echo "configure:7088: checking for LinuxThreads pthread.h" >&5
7088 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 #include <pthread.h>
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7099 ol_cv_header_linux_threads=yes
7102 ol_cv_header_linux_threads=no
7109 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7110 if test $ol_cv_header_linux_threads = yes; then
7111 cat >> confdefs.h <<\EOF
7112 #define HAVE_LINUX_THREADS 1
7118 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7119 echo "configure:7120: checking for GNU Pth pthread.h" >&5
7120 if eval "test \"`echo '$''{'ol_cv_header_gnu_pth_pthread_h'+set}'`\" = set"; then
7121 echo $ac_n "(cached) $ac_c" 1>&6
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 #include <pthread.h>
7127 #ifdef _POSIX_THREAD_IS_GNU_PTH
7132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7133 egrep "__gnu_pth__" >/dev/null 2>&1; then
7135 ol_cv_header_gnu_pth_pthread_h=yes
7138 ol_cv_header_gnu_pth_pthread_h=no
7145 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7148 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7149 for ac_hdr in sched.h
7151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7153 echo "configure:7154: checking for $ac_hdr" >&5
7154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7163 { (eval echo configure:7164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7165 if test -z "$ac_err"; then
7167 eval "ac_cv_header_$ac_safe=yes"
7170 echo "configure: failed program was:" >&5
7171 cat conftest.$ac_ext >&5
7173 eval "ac_cv_header_$ac_safe=no"
7177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7180 cat >> confdefs.h <<EOF
7181 #define $ac_tr_hdr 1
7185 echo "$ac_t""no" 1>&6
7192 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7193 echo "configure:7194: checking for pthread_create in default libraries" >&5
7194 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7198 if test "$cross_compiling" = yes; then
7199 cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7202 /* pthread test headers */
7203 #include <pthread.h>
7205 #define NULL (void*)0
7208 static void *task(p)
7211 return (void *) (p == NULL);
7216 /* pthread test function */
7220 /* make sure pthread_create() isn't just a stub */
7221 #if HAVE_PTHREADS_D4
7222 status = pthread_create(&t, pthread_attr_default, task, NULL);
7224 status = pthread_create(&t, NULL, task, NULL);
7227 if( status ) exit( status );
7229 /* make sure pthread_detach() isn't just a stub */
7230 #if HAVE_PTHREADS_D4
7231 status = pthread_detach( &t );
7233 status = pthread_detach( t );
7236 #ifdef HAVE_LINUX_THREADS
7237 pthread_kill_other_threads_np();
7244 if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7246 ol_cv_pthread_create=yes
7248 echo "configure: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7251 ol_cv_pthread_create=no
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* pthread test headers */
7259 #include <pthread.h>
7261 #define NULL (void*)0
7264 static void *task(p)
7267 return (void *) (p == NULL);
7271 int main(argc, argv)
7276 /* pthread test function */
7280 /* make sure pthread_create() isn't just a stub */
7281 #if HAVE_PTHREADS_D4
7282 status = pthread_create(&t, pthread_attr_default, task, NULL);
7284 status = pthread_create(&t, NULL, task, NULL);
7287 if( status ) exit( status );
7289 /* make sure pthread_detach() isn't just a stub */
7290 #if HAVE_PTHREADS_D4
7291 status = pthread_detach( &t );
7293 status = pthread_detach( t );
7296 #ifdef HAVE_LINUX_THREADS
7297 pthread_kill_other_threads_np();
7305 if { (eval echo configure:7306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7307 ol_cv_pthread_create=yes
7309 echo "configure: failed program was:" >&5
7310 cat conftest.$ac_ext >&5
7312 ol_cv_pthread_create=no
7319 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7321 if test $ol_cv_pthread_create != no ; then
7322 ol_link_threads=posix
7326 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7327 if test "$ol_link_threads" = no ; then
7329 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7330 echo "configure:7331: checking for pthread link with -kthread" >&5
7331 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7337 LIBS="-kthread $LIBS"
7339 if test "$cross_compiling" = yes; then
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* pthread test headers */
7344 #include <pthread.h>
7346 #define NULL (void*)0
7349 static void *task(p)
7352 return (void *) (p == NULL);
7357 /* pthread test function */
7361 /* make sure pthread_create() isn't just a stub */
7362 #if HAVE_PTHREADS_D4
7363 status = pthread_create(&t, pthread_attr_default, task, NULL);
7365 status = pthread_create(&t, NULL, task, NULL);
7368 if( status ) exit( status );
7370 /* make sure pthread_detach() isn't just a stub */
7371 #if HAVE_PTHREADS_D4
7372 status = pthread_detach( &t );
7374 status = pthread_detach( t );
7377 #ifdef HAVE_LINUX_THREADS
7378 pthread_kill_other_threads_np();
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387 ol_cv_pthread_kthread=yes
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 ol_cv_pthread_kthread=no
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* pthread test headers */
7400 #include <pthread.h>
7402 #define NULL (void*)0
7405 static void *task(p)
7408 return (void *) (p == NULL);
7412 int main(argc, argv)
7417 /* pthread test function */
7421 /* make sure pthread_create() isn't just a stub */
7422 #if HAVE_PTHREADS_D4
7423 status = pthread_create(&t, pthread_attr_default, task, NULL);
7425 status = pthread_create(&t, NULL, task, NULL);
7428 if( status ) exit( status );
7430 /* make sure pthread_detach() isn't just a stub */
7431 #if HAVE_PTHREADS_D4
7432 status = pthread_detach( &t );
7434 status = pthread_detach( t );
7437 #ifdef HAVE_LINUX_THREADS
7438 pthread_kill_other_threads_np();
7446 if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7448 ol_cv_pthread_kthread=yes
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7453 ol_cv_pthread_kthread=no
7464 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7466 if test $ol_cv_pthread_kthread = yes ; then
7467 ol_link_pthreads="-kthread"
7468 ol_link_threads=posix
7472 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7473 if test "$ol_link_threads" = no ; then
7475 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7476 echo "configure:7477: checking for pthread link with -pthread" >&5
7477 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7483 LIBS="-pthread $LIBS"
7485 if test "$cross_compiling" = yes; then
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7489 /* pthread test headers */
7490 #include <pthread.h>
7492 #define NULL (void*)0
7495 static void *task(p)
7498 return (void *) (p == NULL);
7503 /* pthread test function */
7507 /* make sure pthread_create() isn't just a stub */
7508 #if HAVE_PTHREADS_D4
7509 status = pthread_create(&t, pthread_attr_default, task, NULL);
7511 status = pthread_create(&t, NULL, task, NULL);
7514 if( status ) exit( status );
7516 /* make sure pthread_detach() isn't just a stub */
7517 #if HAVE_PTHREADS_D4
7518 status = pthread_detach( &t );
7520 status = pthread_detach( t );
7523 #ifdef HAVE_LINUX_THREADS
7524 pthread_kill_other_threads_np();
7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7533 ol_cv_pthread_pthread=yes
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7538 ol_cv_pthread_pthread=no
7542 cat > conftest.$ac_ext <<EOF
7543 #line 7544 "configure"
7544 #include "confdefs.h"
7545 /* pthread test headers */
7546 #include <pthread.h>
7548 #define NULL (void*)0
7551 static void *task(p)
7554 return (void *) (p == NULL);
7558 int main(argc, argv)
7563 /* pthread test function */
7567 /* make sure pthread_create() isn't just a stub */
7568 #if HAVE_PTHREADS_D4
7569 status = pthread_create(&t, pthread_attr_default, task, NULL);
7571 status = pthread_create(&t, NULL, task, NULL);
7574 if( status ) exit( status );
7576 /* make sure pthread_detach() isn't just a stub */
7577 #if HAVE_PTHREADS_D4
7578 status = pthread_detach( &t );
7580 status = pthread_detach( t );
7583 #ifdef HAVE_LINUX_THREADS
7584 pthread_kill_other_threads_np();
7592 if { (eval echo configure:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7594 ol_cv_pthread_pthread=yes
7596 echo "configure: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7599 ol_cv_pthread_pthread=no
7610 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7612 if test $ol_cv_pthread_pthread = yes ; then
7613 ol_link_pthreads="-pthread"
7614 ol_link_threads=posix
7618 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7619 if test "$ol_link_threads" = no ; then
7621 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7622 echo "configure:7623: checking for pthread link with -pthreads" >&5
7623 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7629 LIBS="-pthreads $LIBS"
7631 if test "$cross_compiling" = yes; then
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* pthread test headers */
7636 #include <pthread.h>
7638 #define NULL (void*)0
7641 static void *task(p)
7644 return (void *) (p == NULL);
7649 /* pthread test function */
7653 /* make sure pthread_create() isn't just a stub */
7654 #if HAVE_PTHREADS_D4
7655 status = pthread_create(&t, pthread_attr_default, task, NULL);
7657 status = pthread_create(&t, NULL, task, NULL);
7660 if( status ) exit( status );
7662 /* make sure pthread_detach() isn't just a stub */
7663 #if HAVE_PTHREADS_D4
7664 status = pthread_detach( &t );
7666 status = pthread_detach( t );
7669 #ifdef HAVE_LINUX_THREADS
7670 pthread_kill_other_threads_np();
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7679 ol_cv_pthread_pthreads=yes
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7684 ol_cv_pthread_pthreads=no
7688 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 /* pthread test headers */
7692 #include <pthread.h>
7694 #define NULL (void*)0
7697 static void *task(p)
7700 return (void *) (p == NULL);
7704 int main(argc, argv)
7709 /* pthread test function */
7713 /* make sure pthread_create() isn't just a stub */
7714 #if HAVE_PTHREADS_D4
7715 status = pthread_create(&t, pthread_attr_default, task, NULL);
7717 status = pthread_create(&t, NULL, task, NULL);
7720 if( status ) exit( status );
7722 /* make sure pthread_detach() isn't just a stub */
7723 #if HAVE_PTHREADS_D4
7724 status = pthread_detach( &t );
7726 status = pthread_detach( t );
7729 #ifdef HAVE_LINUX_THREADS
7730 pthread_kill_other_threads_np();
7738 if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7740 ol_cv_pthread_pthreads=yes
7742 echo "configure: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7745 ol_cv_pthread_pthreads=no
7756 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7758 if test $ol_cv_pthread_pthreads = yes ; then
7759 ol_link_pthreads="-pthreads"
7760 ol_link_threads=posix
7764 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7765 if test "$ol_link_threads" = no ; then
7767 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7768 echo "configure:7769: checking for pthread link with -mthreads" >&5
7769 if eval "test \"`echo '$''{'ol_cv_pthread_mthreads'+set}'`\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7775 LIBS="-mthreads $LIBS"
7777 if test "$cross_compiling" = yes; then
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* pthread test headers */
7782 #include <pthread.h>
7784 #define NULL (void*)0
7787 static void *task(p)
7790 return (void *) (p == NULL);
7795 /* pthread test function */
7799 /* make sure pthread_create() isn't just a stub */
7800 #if HAVE_PTHREADS_D4
7801 status = pthread_create(&t, pthread_attr_default, task, NULL);
7803 status = pthread_create(&t, NULL, task, NULL);
7806 if( status ) exit( status );
7808 /* make sure pthread_detach() isn't just a stub */
7809 #if HAVE_PTHREADS_D4
7810 status = pthread_detach( &t );
7812 status = pthread_detach( t );
7815 #ifdef HAVE_LINUX_THREADS
7816 pthread_kill_other_threads_np();
7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825 ol_cv_pthread_mthreads=yes
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7830 ol_cv_pthread_mthreads=no
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* pthread test headers */
7838 #include <pthread.h>
7840 #define NULL (void*)0
7843 static void *task(p)
7846 return (void *) (p == NULL);
7850 int main(argc, argv)
7855 /* pthread test function */
7859 /* make sure pthread_create() isn't just a stub */
7860 #if HAVE_PTHREADS_D4
7861 status = pthread_create(&t, pthread_attr_default, task, NULL);
7863 status = pthread_create(&t, NULL, task, NULL);
7866 if( status ) exit( status );
7868 /* make sure pthread_detach() isn't just a stub */
7869 #if HAVE_PTHREADS_D4
7870 status = pthread_detach( &t );
7872 status = pthread_detach( t );
7875 #ifdef HAVE_LINUX_THREADS
7876 pthread_kill_other_threads_np();
7884 if { (eval echo configure:7885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7886 ol_cv_pthread_mthreads=yes
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 ol_cv_pthread_mthreads=no
7902 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7904 if test $ol_cv_pthread_mthreads = yes ; then
7905 ol_link_pthreads="-mthreads"
7906 ol_link_threads=posix
7910 # Pthread try link: -thread (ol_cv_pthread_thread)
7911 if test "$ol_link_threads" = no ; then
7913 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7914 echo "configure:7915: checking for pthread link with -thread" >&5
7915 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6
7921 LIBS="-thread $LIBS"
7923 if test "$cross_compiling" = yes; then
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* pthread test headers */
7928 #include <pthread.h>
7930 #define NULL (void*)0
7933 static void *task(p)
7936 return (void *) (p == NULL);
7941 /* pthread test function */
7945 /* make sure pthread_create() isn't just a stub */
7946 #if HAVE_PTHREADS_D4
7947 status = pthread_create(&t, pthread_attr_default, task, NULL);
7949 status = pthread_create(&t, NULL, task, NULL);
7952 if( status ) exit( status );
7954 /* make sure pthread_detach() isn't just a stub */
7955 #if HAVE_PTHREADS_D4
7956 status = pthread_detach( &t );
7958 status = pthread_detach( t );
7961 #ifdef HAVE_LINUX_THREADS
7962 pthread_kill_other_threads_np();
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7971 ol_cv_pthread_thread=yes
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 ol_cv_pthread_thread=no
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7983 /* pthread test headers */
7984 #include <pthread.h>
7986 #define NULL (void*)0
7989 static void *task(p)
7992 return (void *) (p == NULL);
7996 int main(argc, argv)
8001 /* pthread test function */
8005 /* make sure pthread_create() isn't just a stub */
8006 #if HAVE_PTHREADS_D4
8007 status = pthread_create(&t, pthread_attr_default, task, NULL);
8009 status = pthread_create(&t, NULL, task, NULL);
8012 if( status ) exit( status );
8014 /* make sure pthread_detach() isn't just a stub */
8015 #if HAVE_PTHREADS_D4
8016 status = pthread_detach( &t );
8018 status = pthread_detach( t );
8021 #ifdef HAVE_LINUX_THREADS
8022 pthread_kill_other_threads_np();
8030 if { (eval echo configure:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8032 ol_cv_pthread_thread=yes
8034 echo "configure: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8037 ol_cv_pthread_thread=no
8048 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8050 if test $ol_cv_pthread_thread = yes ; then
8051 ol_link_pthreads="-thread"
8052 ol_link_threads=posix
8057 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8058 if test "$ol_link_threads" = no ; then
8059 # try -lpthread -lmach -lexc -lc_r
8060 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8061 echo "configure:8062: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8062 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
8063 echo $ac_n "(cached) $ac_c" 1>&6
8068 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8070 if test "$cross_compiling" = yes; then
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074 /* pthread test headers */
8075 #include <pthread.h>
8077 #define NULL (void*)0
8080 static void *task(p)
8083 return (void *) (p == NULL);
8088 /* pthread test function */
8092 /* make sure pthread_create() isn't just a stub */
8093 #if HAVE_PTHREADS_D4
8094 status = pthread_create(&t, pthread_attr_default, task, NULL);
8096 status = pthread_create(&t, NULL, task, NULL);
8099 if( status ) exit( status );
8101 /* make sure pthread_detach() isn't just a stub */
8102 #if HAVE_PTHREADS_D4
8103 status = pthread_detach( &t );
8105 status = pthread_detach( t );
8108 #ifdef HAVE_LINUX_THREADS
8109 pthread_kill_other_threads_np();
8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8118 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8120 echo "configure: failed program was:" >&5
8121 cat conftest.$ac_ext >&5
8123 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* pthread test headers */
8131 #include <pthread.h>
8133 #define NULL (void*)0
8136 static void *task(p)
8139 return (void *) (p == NULL);
8143 int main(argc, argv)
8148 /* pthread test function */
8152 /* make sure pthread_create() isn't just a stub */
8153 #if HAVE_PTHREADS_D4
8154 status = pthread_create(&t, pthread_attr_default, task, NULL);
8156 status = pthread_create(&t, NULL, task, NULL);
8159 if( status ) exit( status );
8161 /* make sure pthread_detach() isn't just a stub */
8162 #if HAVE_PTHREADS_D4
8163 status = pthread_detach( &t );
8165 status = pthread_detach( t );
8168 #ifdef HAVE_LINUX_THREADS
8169 pthread_kill_other_threads_np();
8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8179 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8184 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8195 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8197 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8198 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8199 ol_link_threads=posix
8203 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8204 if test "$ol_link_threads" = no ; then
8205 # try -lpthread -lmach -lexc
8206 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8207 echo "configure:8208: checking for pthread link with -lpthread -lmach -lexc" >&5
8208 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8214 LIBS="-lpthread -lmach -lexc $LIBS"
8216 if test "$cross_compiling" = yes; then
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 /* pthread test headers */
8221 #include <pthread.h>
8223 #define NULL (void*)0
8226 static void *task(p)
8229 return (void *) (p == NULL);
8234 /* pthread test function */
8238 /* make sure pthread_create() isn't just a stub */
8239 #if HAVE_PTHREADS_D4
8240 status = pthread_create(&t, pthread_attr_default, task, NULL);
8242 status = pthread_create(&t, NULL, task, NULL);
8245 if( status ) exit( status );
8247 /* make sure pthread_detach() isn't just a stub */
8248 #if HAVE_PTHREADS_D4
8249 status = pthread_detach( &t );
8251 status = pthread_detach( t );
8254 #ifdef HAVE_LINUX_THREADS
8255 pthread_kill_other_threads_np();
8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8264 ol_cv_pthread_lpthread_lmach_lexc=yes
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8269 ol_cv_pthread_lpthread_lmach_lexc=no
8273 cat > conftest.$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8276 /* pthread test headers */
8277 #include <pthread.h>
8279 #define NULL (void*)0
8282 static void *task(p)
8285 return (void *) (p == NULL);
8289 int main(argc, argv)
8294 /* pthread test function */
8298 /* make sure pthread_create() isn't just a stub */
8299 #if HAVE_PTHREADS_D4
8300 status = pthread_create(&t, pthread_attr_default, task, NULL);
8302 status = pthread_create(&t, NULL, task, NULL);
8305 if( status ) exit( status );
8307 /* make sure pthread_detach() isn't just a stub */
8308 #if HAVE_PTHREADS_D4
8309 status = pthread_detach( &t );
8311 status = pthread_detach( t );
8314 #ifdef HAVE_LINUX_THREADS
8315 pthread_kill_other_threads_np();
8323 if { (eval echo configure:8324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8325 ol_cv_pthread_lpthread_lmach_lexc=yes
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8330 ol_cv_pthread_lpthread_lmach_lexc=no
8341 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8343 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8344 ol_link_pthreads="-lpthread -lmach -lexc"
8345 ol_link_threads=posix
8350 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8351 if test "$ol_link_threads" = no ; then
8352 # try -lpthread -Wl,-woff,85
8353 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8354 echo "configure:8355: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8355 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8361 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8363 if test "$cross_compiling" = yes; then
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8367 /* pthread test headers */
8368 #include <pthread.h>
8370 #define NULL (void*)0
8373 static void *task(p)
8376 return (void *) (p == NULL);
8381 /* pthread test function */
8385 /* make sure pthread_create() isn't just a stub */
8386 #if HAVE_PTHREADS_D4
8387 status = pthread_create(&t, pthread_attr_default, task, NULL);
8389 status = pthread_create(&t, NULL, task, NULL);
8392 if( status ) exit( status );
8394 /* make sure pthread_detach() isn't just a stub */
8395 #if HAVE_PTHREADS_D4
8396 status = pthread_detach( &t );
8398 status = pthread_detach( t );
8401 #ifdef HAVE_LINUX_THREADS
8402 pthread_kill_other_threads_np();
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8411 ol_cv_pthread_lib_lpthread_woff=yes
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8416 ol_cv_pthread_lib_lpthread_woff=no
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8423 /* pthread test headers */
8424 #include <pthread.h>
8426 #define NULL (void*)0
8429 static void *task(p)
8432 return (void *) (p == NULL);
8436 int main(argc, argv)
8441 /* pthread test function */
8445 /* make sure pthread_create() isn't just a stub */
8446 #if HAVE_PTHREADS_D4
8447 status = pthread_create(&t, pthread_attr_default, task, NULL);
8449 status = pthread_create(&t, NULL, task, NULL);
8452 if( status ) exit( status );
8454 /* make sure pthread_detach() isn't just a stub */
8455 #if HAVE_PTHREADS_D4
8456 status = pthread_detach( &t );
8458 status = pthread_detach( t );
8461 #ifdef HAVE_LINUX_THREADS
8462 pthread_kill_other_threads_np();
8470 if { (eval echo configure:8471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8472 ol_cv_pthread_lib_lpthread_woff=yes
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8477 ol_cv_pthread_lib_lpthread_woff=no
8488 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8490 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8491 ol_link_pthreads="-lpthread -Wl,-woff,85"
8492 ol_link_threads=posix
8497 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8498 if test "$ol_link_threads" = no ; then
8500 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8501 echo "configure:8502: checking for pthread link with -lpthread" >&5
8502 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6
8508 LIBS="-lpthread $LIBS"
8510 if test "$cross_compiling" = yes; then
8511 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8514 /* pthread test headers */
8515 #include <pthread.h>
8517 #define NULL (void*)0
8520 static void *task(p)
8523 return (void *) (p == NULL);
8528 /* pthread test function */
8532 /* make sure pthread_create() isn't just a stub */
8533 #if HAVE_PTHREADS_D4
8534 status = pthread_create(&t, pthread_attr_default, task, NULL);
8536 status = pthread_create(&t, NULL, task, NULL);
8539 if( status ) exit( status );
8541 /* make sure pthread_detach() isn't just a stub */
8542 #if HAVE_PTHREADS_D4
8543 status = pthread_detach( &t );
8545 status = pthread_detach( t );
8548 #ifdef HAVE_LINUX_THREADS
8549 pthread_kill_other_threads_np();
8556 if { (eval echo configure:8557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 ol_cv_pthread_lpthread=yes
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8563 ol_cv_pthread_lpthread=no
8567 cat > conftest.$ac_ext <<EOF
8568 #line 8569 "configure"
8569 #include "confdefs.h"
8570 /* pthread test headers */
8571 #include <pthread.h>
8573 #define NULL (void*)0
8576 static void *task(p)
8579 return (void *) (p == NULL);
8583 int main(argc, argv)
8588 /* pthread test function */
8592 /* make sure pthread_create() isn't just a stub */
8593 #if HAVE_PTHREADS_D4
8594 status = pthread_create(&t, pthread_attr_default, task, NULL);
8596 status = pthread_create(&t, NULL, task, NULL);
8599 if( status ) exit( status );
8601 /* make sure pthread_detach() isn't just a stub */
8602 #if HAVE_PTHREADS_D4
8603 status = pthread_detach( &t );
8605 status = pthread_detach( t );
8608 #ifdef HAVE_LINUX_THREADS
8609 pthread_kill_other_threads_np();
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8619 ol_cv_pthread_lpthread=yes
8621 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8624 ol_cv_pthread_lpthread=no
8635 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8637 if test $ol_cv_pthread_lpthread = yes ; then
8638 ol_link_pthreads="-lpthread"
8639 ol_link_threads=posix
8643 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8644 if test "$ol_link_threads" = no ; then
8646 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8647 echo "configure:8648: checking for pthread link with -lc_r" >&5
8648 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8656 if test "$cross_compiling" = yes; then
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8660 /* pthread test headers */
8661 #include <pthread.h>
8663 #define NULL (void*)0
8666 static void *task(p)
8669 return (void *) (p == NULL);
8674 /* pthread test function */
8678 /* make sure pthread_create() isn't just a stub */
8679 #if HAVE_PTHREADS_D4
8680 status = pthread_create(&t, pthread_attr_default, task, NULL);
8682 status = pthread_create(&t, NULL, task, NULL);
8685 if( status ) exit( status );
8687 /* make sure pthread_detach() isn't just a stub */
8688 #if HAVE_PTHREADS_D4
8689 status = pthread_detach( &t );
8691 status = pthread_detach( t );
8694 #ifdef HAVE_LINUX_THREADS
8695 pthread_kill_other_threads_np();
8702 if { (eval echo configure:8703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8704 ol_cv_pthread_lc_r=yes
8706 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8709 ol_cv_pthread_lc_r=no
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 /* pthread test headers */
8717 #include <pthread.h>
8719 #define NULL (void*)0
8722 static void *task(p)
8725 return (void *) (p == NULL);
8729 int main(argc, argv)
8734 /* pthread test function */
8738 /* make sure pthread_create() isn't just a stub */
8739 #if HAVE_PTHREADS_D4
8740 status = pthread_create(&t, pthread_attr_default, task, NULL);
8742 status = pthread_create(&t, NULL, task, NULL);
8745 if( status ) exit( status );
8747 /* make sure pthread_detach() isn't just a stub */
8748 #if HAVE_PTHREADS_D4
8749 status = pthread_detach( &t );
8751 status = pthread_detach( t );
8754 #ifdef HAVE_LINUX_THREADS
8755 pthread_kill_other_threads_np();
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8765 ol_cv_pthread_lc_r=yes
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 ol_cv_pthread_lc_r=no
8781 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8783 if test $ol_cv_pthread_lc_r = yes ; then
8784 ol_link_pthreads="-lc_r"
8785 ol_link_threads=posix
8790 # Pthread try link: -threads (ol_cv_pthread_threads)
8791 if test "$ol_link_threads" = no ; then
8793 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8794 echo "configure:8795: checking for pthread link with -threads" >&5
8795 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8801 LIBS="-threads $LIBS"
8803 if test "$cross_compiling" = yes; then
8804 cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8807 /* pthread test headers */
8808 #include <pthread.h>
8810 #define NULL (void*)0
8813 static void *task(p)
8816 return (void *) (p == NULL);
8821 /* pthread test function */
8825 /* make sure pthread_create() isn't just a stub */
8826 #if HAVE_PTHREADS_D4
8827 status = pthread_create(&t, pthread_attr_default, task, NULL);
8829 status = pthread_create(&t, NULL, task, NULL);
8832 if( status ) exit( status );
8834 /* make sure pthread_detach() isn't just a stub */
8835 #if HAVE_PTHREADS_D4
8836 status = pthread_detach( &t );
8838 status = pthread_detach( t );
8841 #ifdef HAVE_LINUX_THREADS
8842 pthread_kill_other_threads_np();
8849 if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8851 ol_cv_pthread_threads=yes
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8856 ol_cv_pthread_threads=no
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8863 /* pthread test headers */
8864 #include <pthread.h>
8866 #define NULL (void*)0
8869 static void *task(p)
8872 return (void *) (p == NULL);
8876 int main(argc, argv)
8881 /* pthread test function */
8885 /* make sure pthread_create() isn't just a stub */
8886 #if HAVE_PTHREADS_D4
8887 status = pthread_create(&t, pthread_attr_default, task, NULL);
8889 status = pthread_create(&t, NULL, task, NULL);
8892 if( status ) exit( status );
8894 /* make sure pthread_detach() isn't just a stub */
8895 #if HAVE_PTHREADS_D4
8896 status = pthread_detach( &t );
8898 status = pthread_detach( t );
8901 #ifdef HAVE_LINUX_THREADS
8902 pthread_kill_other_threads_np();
8910 if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8912 ol_cv_pthread_threads=yes
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8917 ol_cv_pthread_threads=no
8928 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8930 if test $ol_cv_pthread_threads = yes ; then
8931 ol_link_pthreads="-threads"
8932 ol_link_threads=posix
8937 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8938 if test "$ol_link_threads" = no ; then
8939 # try -lpthreads -lmach -lexc -lc_r
8940 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8941 echo "configure:8942: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8942 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8948 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8950 if test "$cross_compiling" = yes; then
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 /* pthread test headers */
8955 #include <pthread.h>
8957 #define NULL (void*)0
8960 static void *task(p)
8963 return (void *) (p == NULL);
8968 /* pthread test function */
8972 /* make sure pthread_create() isn't just a stub */
8973 #if HAVE_PTHREADS_D4
8974 status = pthread_create(&t, pthread_attr_default, task, NULL);
8976 status = pthread_create(&t, NULL, task, NULL);
8979 if( status ) exit( status );
8981 /* make sure pthread_detach() isn't just a stub */
8982 #if HAVE_PTHREADS_D4
8983 status = pthread_detach( &t );
8985 status = pthread_detach( t );
8988 #ifdef HAVE_LINUX_THREADS
8989 pthread_kill_other_threads_np();
8996 if { (eval echo configure:8997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8998 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9000 echo "configure: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9003 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 /* pthread test headers */
9011 #include <pthread.h>
9013 #define NULL (void*)0
9016 static void *task(p)
9019 return (void *) (p == NULL);
9023 int main(argc, argv)
9028 /* pthread test function */
9032 /* make sure pthread_create() isn't just a stub */
9033 #if HAVE_PTHREADS_D4
9034 status = pthread_create(&t, pthread_attr_default, task, NULL);
9036 status = pthread_create(&t, NULL, task, NULL);
9039 if( status ) exit( status );
9041 /* make sure pthread_detach() isn't just a stub */
9042 #if HAVE_PTHREADS_D4
9043 status = pthread_detach( &t );
9045 status = pthread_detach( t );
9048 #ifdef HAVE_LINUX_THREADS
9049 pthread_kill_other_threads_np();
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9059 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9064 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9075 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9077 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9078 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9079 ol_link_threads=posix
9083 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9084 if test "$ol_link_threads" = no ; then
9085 # try -lpthreads -lmach -lexc
9086 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9087 echo "configure:9088: checking for pthread link with -lpthreads -lmach -lexc" >&5
9088 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9094 LIBS="-lpthreads -lmach -lexc $LIBS"
9096 if test "$cross_compiling" = yes; then
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 /* pthread test headers */
9101 #include <pthread.h>
9103 #define NULL (void*)0
9106 static void *task(p)
9109 return (void *) (p == NULL);
9114 /* pthread test function */
9118 /* make sure pthread_create() isn't just a stub */
9119 #if HAVE_PTHREADS_D4
9120 status = pthread_create(&t, pthread_attr_default, task, NULL);
9122 status = pthread_create(&t, NULL, task, NULL);
9125 if( status ) exit( status );
9127 /* make sure pthread_detach() isn't just a stub */
9128 #if HAVE_PTHREADS_D4
9129 status = pthread_detach( &t );
9131 status = pthread_detach( t );
9134 #ifdef HAVE_LINUX_THREADS
9135 pthread_kill_other_threads_np();
9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9144 ol_cv_pthread_lpthreads_lmach_lexc=yes
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 ol_cv_pthread_lpthreads_lmach_lexc=no
9153 cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9156 /* pthread test headers */
9157 #include <pthread.h>
9159 #define NULL (void*)0
9162 static void *task(p)
9165 return (void *) (p == NULL);
9169 int main(argc, argv)
9174 /* pthread test function */
9178 /* make sure pthread_create() isn't just a stub */
9179 #if HAVE_PTHREADS_D4
9180 status = pthread_create(&t, pthread_attr_default, task, NULL);
9182 status = pthread_create(&t, NULL, task, NULL);
9185 if( status ) exit( status );
9187 /* make sure pthread_detach() isn't just a stub */
9188 #if HAVE_PTHREADS_D4
9189 status = pthread_detach( &t );
9191 status = pthread_detach( t );
9194 #ifdef HAVE_LINUX_THREADS
9195 pthread_kill_other_threads_np();
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9205 ol_cv_pthread_lpthreads_lmach_lexc=yes
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 ol_cv_pthread_lpthreads_lmach_lexc=no
9221 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9223 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9224 ol_link_pthreads="-lpthreads -lmach -lexc"
9225 ol_link_threads=posix
9229 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9230 if test "$ol_link_threads" = no ; then
9231 # try -lpthreads -lexc
9232 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9233 echo "configure:9234: checking for pthread link with -lpthreads -lexc" >&5
9234 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9240 LIBS="-lpthreads -lexc $LIBS"
9242 if test "$cross_compiling" = yes; then
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246 /* pthread test headers */
9247 #include <pthread.h>
9249 #define NULL (void*)0
9252 static void *task(p)
9255 return (void *) (p == NULL);
9260 /* pthread test function */
9264 /* make sure pthread_create() isn't just a stub */
9265 #if HAVE_PTHREADS_D4
9266 status = pthread_create(&t, pthread_attr_default, task, NULL);
9268 status = pthread_create(&t, NULL, task, NULL);
9271 if( status ) exit( status );
9273 /* make sure pthread_detach() isn't just a stub */
9274 #if HAVE_PTHREADS_D4
9275 status = pthread_detach( &t );
9277 status = pthread_detach( t );
9280 #ifdef HAVE_LINUX_THREADS
9281 pthread_kill_other_threads_np();
9288 if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 ol_cv_pthread_lpthreads_lexc=yes
9292 echo "configure: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9295 ol_cv_pthread_lpthreads_lexc=no
9299 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure"
9301 #include "confdefs.h"
9302 /* pthread test headers */
9303 #include <pthread.h>
9305 #define NULL (void*)0
9308 static void *task(p)
9311 return (void *) (p == NULL);
9315 int main(argc, argv)
9320 /* pthread test function */
9324 /* make sure pthread_create() isn't just a stub */
9325 #if HAVE_PTHREADS_D4
9326 status = pthread_create(&t, pthread_attr_default, task, NULL);
9328 status = pthread_create(&t, NULL, task, NULL);
9331 if( status ) exit( status );
9333 /* make sure pthread_detach() isn't just a stub */
9334 #if HAVE_PTHREADS_D4
9335 status = pthread_detach( &t );
9337 status = pthread_detach( t );
9340 #ifdef HAVE_LINUX_THREADS
9341 pthread_kill_other_threads_np();
9349 if { (eval echo configure:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9351 ol_cv_pthread_lpthreads_lexc=yes
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9356 ol_cv_pthread_lpthreads_lexc=no
9367 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9369 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9370 ol_link_pthreads="-lpthreads -lexc"
9371 ol_link_threads=posix
9376 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9377 if test "$ol_link_threads" = no ; then
9379 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9380 echo "configure:9381: checking for pthread link with -lpthreads" >&5
9381 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9387 LIBS="-lpthreads $LIBS"
9389 if test "$cross_compiling" = yes; then
9390 cat > conftest.$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393 /* pthread test headers */
9394 #include <pthread.h>
9396 #define NULL (void*)0
9399 static void *task(p)
9402 return (void *) (p == NULL);
9407 /* pthread test function */
9411 /* make sure pthread_create() isn't just a stub */
9412 #if HAVE_PTHREADS_D4
9413 status = pthread_create(&t, pthread_attr_default, task, NULL);
9415 status = pthread_create(&t, NULL, task, NULL);
9418 if( status ) exit( status );
9420 /* make sure pthread_detach() isn't just a stub */
9421 #if HAVE_PTHREADS_D4
9422 status = pthread_detach( &t );
9424 status = pthread_detach( t );
9427 #ifdef HAVE_LINUX_THREADS
9428 pthread_kill_other_threads_np();
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9437 ol_cv_pthread_lib_lpthreads=yes
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 ol_cv_pthread_lib_lpthreads=no
9446 cat > conftest.$ac_ext <<EOF
9447 #line 9448 "configure"
9448 #include "confdefs.h"
9449 /* pthread test headers */
9450 #include <pthread.h>
9452 #define NULL (void*)0
9455 static void *task(p)
9458 return (void *) (p == NULL);
9462 int main(argc, argv)
9467 /* pthread test function */
9471 /* make sure pthread_create() isn't just a stub */
9472 #if HAVE_PTHREADS_D4
9473 status = pthread_create(&t, pthread_attr_default, task, NULL);
9475 status = pthread_create(&t, NULL, task, NULL);
9478 if( status ) exit( status );
9480 /* make sure pthread_detach() isn't just a stub */
9481 #if HAVE_PTHREADS_D4
9482 status = pthread_detach( &t );
9484 status = pthread_detach( t );
9487 #ifdef HAVE_LINUX_THREADS
9488 pthread_kill_other_threads_np();
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9498 ol_cv_pthread_lib_lpthreads=yes
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9503 ol_cv_pthread_lib_lpthreads=no
9514 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9516 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9517 ol_link_pthreads="-lpthreads"
9518 ol_link_threads=posix
9523 if test $ol_link_threads != no ; then
9524 cat >> confdefs.h <<\EOF
9525 #define HAVE_PTHREADS 1
9529 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9531 save_CPPFLAGS="$CPPFLAGS"
9533 LIBS="$LTHREAD_LIBS $LIBS"
9535 for ac_func in sched_yield pthread_yield
9537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9538 echo "configure:9539: checking for $ac_func" >&5
9539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 /* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char $ac_func(); below. */
9548 /* Override any gcc2 internal prototype to avoid an error. */
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9555 /* The GNU C library defines this for functions which it implements
9556 to always fail with ENOSYS. Some functions are actually named
9557 something starting with __ and the normal name is an alias. */
9558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 eval "ac_cv_func_$ac_func=yes"
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 eval "ac_cv_func_$ac_func=no"
9578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9579 echo "$ac_t""yes" 1>&6
9580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9581 cat >> confdefs.h <<EOF
9582 #define $ac_tr_func 1
9586 echo "$ac_t""no" 1>&6
9591 if test $ac_cv_func_sched_yield = no -a \
9592 $ac_cv_func_pthread_yield = no ; then
9593 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9594 echo "configure:9595: checking for sched_yield in -lrt" >&5
9595 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
9596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9599 ac_save_LIBS="$LIBS"
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9613 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9615 eval "ac_cv_lib_$ac_lib_var=yes"
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9620 eval "ac_cv_lib_$ac_lib_var=no"
9623 LIBS="$ac_save_LIBS"
9626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9627 echo "$ac_t""yes" 1>&6
9628 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9629 cat >> confdefs.h <<\EOF
9630 #define HAVE_SCHED_YIELD 1
9633 ac_cv_func_sched_yield=yes
9635 echo "$ac_t""no" 1>&6
9636 ac_cv_func_sched_yield=no
9640 if test $ac_cv_func_sched_yield = no -a \
9641 $ac_cv_func_pthread_yield = no ; then
9642 for ac_func in thr_yield
9644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9645 echo "configure:9646: checking for $ac_func" >&5
9646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9652 /* System header to define __stub macros and hopefully few prototypes,
9653 which can conflict with char $ac_func(); below. */
9655 /* Override any gcc2 internal prototype to avoid an error. */
9656 /* We use char because int might match the return type of a gcc2
9657 builtin and then its argument prototype would still apply. */
9662 /* The GNU C library defines this for functions which it implements
9663 to always fail with ENOSYS. Some functions are actually named
9664 something starting with __ and the normal name is an alias. */
9665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9673 if { (eval echo configure:9674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9675 eval "ac_cv_func_$ac_func=yes"
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9680 eval "ac_cv_func_$ac_func=no"
9685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9686 echo "$ac_t""yes" 1>&6
9687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9688 cat >> confdefs.h <<EOF
9689 #define $ac_tr_func 1
9693 echo "$ac_t""no" 1>&6
9698 if test $ac_cv_func_sched_yield = no -a \
9699 $ac_cv_func_pthread_yield = no -a \
9700 "$ac_cv_func_thr_yield" = no ; then
9701 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9704 for ac_func in pthread_kill
9706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9707 echo "configure:9708: checking for $ac_func" >&5
9708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9714 /* System header to define __stub macros and hopefully few prototypes,
9715 which can conflict with char $ac_func(); below. */
9717 /* Override any gcc2 internal prototype to avoid an error. */
9718 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9735 if { (eval echo configure:9736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9737 eval "ac_cv_func_$ac_func=yes"
9739 echo "configure: failed program was:" >&5
9740 cat conftest.$ac_ext >&5
9742 eval "ac_cv_func_$ac_func=no"
9747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9748 echo "$ac_t""yes" 1>&6
9749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9750 cat >> confdefs.h <<EOF
9751 #define $ac_tr_func 1
9755 echo "$ac_t""no" 1>&6
9760 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9761 echo "configure:9762: checking for pthread_detach with <pthread.h>" >&5
9762 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9770 #include <pthread.h>
9772 #define NULL (void*)0
9776 pthread_detach(NULL);
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9781 ol_cv_func_pthread_detach=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 ol_cv_func_pthread_detach=no
9792 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9794 if test $ol_cv_func_pthread_detach = no ; then
9795 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9798 cat >> confdefs.h <<\EOF
9799 #define HAVE_PTHREAD_DETACH 1
9804 pthread_setconcurrency \
9805 pthread_getconcurrency \
9806 thr_setconcurrency \
9807 thr_getconcurrency \
9810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9811 echo "configure:9812: checking for $ac_func" >&5
9812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9813 echo $ac_n "(cached) $ac_c" 1>&6
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 /* System header to define __stub macros and hopefully few prototypes,
9819 which can conflict with char $ac_func(); below. */
9821 /* Override any gcc2 internal prototype to avoid an error. */
9822 /* We use char because int might match the return type of a gcc2
9823 builtin and then its argument prototype would still apply. */
9828 /* The GNU C library defines this for functions which it implements
9829 to always fail with ENOSYS. Some functions are actually named
9830 something starting with __ and the normal name is an alias. */
9831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9839 if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9841 eval "ac_cv_func_$ac_func=yes"
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9846 eval "ac_cv_func_$ac_func=no"
9851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9852 echo "$ac_t""yes" 1>&6
9853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9854 cat >> confdefs.h <<EOF
9855 #define $ac_tr_func 1
9859 echo "$ac_t""no" 1>&6
9865 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9866 echo "configure:9867: checking for pthread_kill_other_threads_np" >&5
9867 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9870 cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure"
9872 #include "confdefs.h"
9873 /* System header to define __stub macros and hopefully few prototypes,
9874 which can conflict with char pthread_kill_other_threads_np(); below. */
9876 /* Override any gcc2 internal prototype to avoid an error. */
9877 /* We use char because int might match the return type of a gcc2
9878 builtin and then its argument prototype would still apply. */
9879 char pthread_kill_other_threads_np();
9883 /* The GNU C library defines this for functions which it implements
9884 to always fail with ENOSYS. Some functions are actually named
9885 something starting with __ and the normal name is an alias. */
9886 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9889 pthread_kill_other_threads_np();
9894 if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9898 echo "configure: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9901 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9906 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9907 echo "$ac_t""yes" 1>&6
9910 echo "$ac_t""no" 1>&6
9913 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9914 echo "configure:9915: checking for LinuxThreads implementation" >&5
9915 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9918 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9921 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9926 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9927 echo "configure:9928: checking for LinuxThreads consistency" >&5
9928 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9932 if test $ol_cv_header_linux_threads = yes -a \
9933 $ol_cv_sys_linux_threads = yes; then
9934 ol_cv_linux_threads=yes
9935 elif test $ol_cv_header_linux_threads = no -a \
9936 $ol_cv_sys_linux_threads = no; then
9937 ol_cv_linux_threads=no
9939 ol_cv_linux_threads=error
9944 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9947 if test $ol_cv_linux_threads = error; then
9948 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9951 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9952 echo "configure:9953: checking if pthread_create() works" >&5
9953 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9957 if test "$cross_compiling" = yes; then
9958 ol_cv_pthread_create_works=yes
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 /* pthread test headers */
9964 #include <pthread.h>
9966 #define NULL (void*)0
9969 static void *task(p)
9972 return (void *) (p == NULL);
9976 int main(argc, argv)
9981 /* pthread test function */
9985 /* make sure pthread_create() isn't just a stub */
9986 #if HAVE_PTHREADS_D4
9987 status = pthread_create(&t, pthread_attr_default, task, NULL);
9989 status = pthread_create(&t, NULL, task, NULL);
9992 if( status ) exit( status );
9994 /* make sure pthread_detach() isn't just a stub */
9995 #if HAVE_PTHREADS_D4
9996 status = pthread_detach( &t );
9998 status = pthread_detach( t );
10001 #ifdef HAVE_LINUX_THREADS
10002 pthread_kill_other_threads_np();
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10012 ol_cv_pthread_create_works=yes
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10017 ol_cv_pthread_create_works=no
10024 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10026 if test $ol_cv_pthread_create_works = no ; then
10027 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10030 if test $ol_with_yielding_select = auto ; then
10031 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10032 echo "configure:10033: checking if select yields when using pthreads" >&5
10033 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10037 if test "$cross_compiling" = yes; then
10038 ol_cv_pthread_select_yields=cross
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10044 #include <sys/types.h>
10045 #include <sys/time.h>
10046 #include <unistd.h>
10047 #include <pthread.h>
10049 #define NULL (void*) 0
10052 static int fildes[2];
10054 static void *task(p)
10066 FD_SET(fildes[0], &rfds);
10068 /* we're not interested in any fds */
10069 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10076 exit(0); /* if we exit here, the select blocked the whole process */
10079 int main(argc, argv)
10085 /* create a pipe to select */
10086 if(pipe(&fildes[0])) {
10091 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10092 (void) pthread_setconcurrency(2);
10094 #ifdef HAVE_THR_SETCONCURRENCY
10095 /* Set Solaris LWP concurrency to 2 */
10096 thr_setconcurrency(2);
10100 #if HAVE_PTHREADS_D4
10101 pthread_create(&t, pthread_attr_default, task, NULL);
10103 pthread_create(&t, NULL, task, NULL);
10106 #if HAVE_SCHED_YIELD
10107 sched_yield(); /* make sure task runs first */
10109 #ifdef HAVE_PTHREAD_YIELD
10110 pthread_yield(); /* make sure task runs first */
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10119 ol_cv_pthread_select_yields=no
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 ol_cv_pthread_select_yields=yes
10131 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10133 if test $ol_cv_pthread_select_yields = cross ; then
10134 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10137 if test $ol_cv_pthread_select_yields = yes ; then
10138 ol_with_yielding_select=yes
10142 CPPFLAGS="$save_CPPFLAGS"
10145 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10149 if test $ol_with_threads = posix ; then
10150 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10154 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10155 -o $ol_with_threads = mach ; then
10157 for ac_hdr in mach/cthreads.h
10159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10161 echo "configure:10162: checking for $ac_hdr" >&5
10162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10171 { (eval echo configure:10172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10173 if test -z "$ac_err"; then
10175 eval "ac_cv_header_$ac_safe=yes"
10178 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10181 eval "ac_cv_header_$ac_safe=no"
10185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10188 cat >> confdefs.h <<EOF
10189 #define $ac_tr_hdr 1
10193 echo "$ac_t""no" 1>&6
10197 if test $ac_cv_header_mach_cthreads_h = yes ; then
10198 ol_with_threads=found
10200 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10201 echo "configure:10202: checking for cthread_fork" >&5
10202 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10208 /* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char cthread_fork(); below. */
10210 #include <assert.h>
10211 /* Override any gcc2 internal prototype to avoid an error. */
10212 /* We use char because int might match the return type of a gcc2
10213 builtin and then its argument prototype would still apply. */
10214 char cthread_fork();
10218 /* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10229 if { (eval echo configure:10230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10231 eval "ac_cv_func_cthread_fork=yes"
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10236 eval "ac_cv_func_cthread_fork=no"
10241 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
10243 ol_link_threads=yes
10245 echo "$ac_t""no" 1>&6
10249 if test $ol_link_threads = no ; then
10250 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10251 echo "configure:10252: checking for cthread_fork with -all_load" >&5
10252 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10257 LIBS="-all_load $LIBS"
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include <mach/cthreads.h>
10264 cthread_fork((void *)0, (void *)0);
10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10270 ol_cv_cthread_all_load=yes
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10275 ol_cv_cthread_all_load=no
10282 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10284 if test $ol_cv_cthread_all_load = yes ; then
10285 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10286 ol_link_threads=mach
10290 if test $ol_link_threads != no ; then
10291 : check for cthread specific functionality here
10292 cat >> confdefs.h <<\EOF
10293 #define HAVE_MACH_CTHREADS 1
10297 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10301 if test $ol_with_threads = mach ; then
10302 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10306 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10307 -o $ol_with_threads = pth ; then
10309 for ac_hdr in pth.h
10311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10313 echo "configure:10314: checking for $ac_hdr" >&5
10314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10315 echo $ac_n "(cached) $ac_c" 1>&6
10317 cat > conftest.$ac_ext <<EOF
10318 #line 10319 "configure"
10319 #include "confdefs.h"
10322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10323 { (eval echo configure:10324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10325 if test -z "$ac_err"; then
10327 eval "ac_cv_header_$ac_safe=yes"
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10333 eval "ac_cv_header_$ac_safe=no"
10337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10338 echo "$ac_t""yes" 1>&6
10339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10340 cat >> confdefs.h <<EOF
10341 #define $ac_tr_hdr 1
10345 echo "$ac_t""no" 1>&6
10350 if test $ac_cv_header_pth_h = yes ; then
10351 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10352 echo "configure:10353: checking for pth_version in -lpth" >&5
10353 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-%__p_%'`
10354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10357 ac_save_LIBS="$LIBS"
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 /* Override any gcc2 internal prototype to avoid an error. */
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10365 char pth_version();
10371 if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 eval "ac_cv_lib_$ac_lib_var=yes"
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10378 eval "ac_cv_lib_$ac_lib_var=no"
10381 LIBS="$ac_save_LIBS"
10384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
10388 echo "$ac_t""no" 1>&6
10393 if test $have_pth = yes ; then
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_GNU_PTH 1
10398 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10399 ol_link_threads=pth
10401 if test $ol_with_yielding_select = auto ; then
10402 ol_with_yielding_select=yes
10408 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10409 -o $ol_with_threads = lwp ; then
10411 for ac_hdr in thread.h synch.h
10413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10415 echo "configure:10416: checking for $ac_hdr" >&5
10416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10417 echo $ac_n "(cached) $ac_c" 1>&6
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10425 { (eval echo configure:10426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10427 if test -z "$ac_err"; then
10429 eval "ac_cv_header_$ac_safe=yes"
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10435 eval "ac_cv_header_$ac_safe=no"
10439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10440 echo "$ac_t""yes" 1>&6
10441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10442 cat >> confdefs.h <<EOF
10443 #define $ac_tr_hdr 1
10447 echo "$ac_t""no" 1>&6
10451 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10452 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10453 echo "configure:10454: checking for thr_create in -lthread" >&5
10454 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
10455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10458 ac_save_LIBS="$LIBS"
10459 LIBS="-lthread $LIBS"
10460 cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10463 /* Override any gcc2 internal prototype to avoid an error. */
10464 /* We use char because int might match the return type of a gcc2
10465 builtin and then its argument prototype would still apply. */
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10474 eval "ac_cv_lib_$ac_lib_var=yes"
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 eval "ac_cv_lib_$ac_lib_var=no"
10482 LIBS="$ac_save_LIBS"
10485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10486 echo "$ac_t""yes" 1>&6
10489 echo "$ac_t""no" 1>&6
10494 if test $have_thr = yes ; then
10495 cat >> confdefs.h <<\EOF
10499 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10500 ol_link_threads=thr
10502 if test $ol_with_yielding_select = auto ; then
10503 ol_with_yielding_select=yes
10507 thr_setconcurrency \
10508 thr_getconcurrency \
10511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10512 echo "configure:10513: checking for $ac_func" >&5
10513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 /* System header to define __stub macros and hopefully few prototypes,
10520 which can conflict with char $ac_func(); below. */
10521 #include <assert.h>
10522 /* Override any gcc2 internal prototype to avoid an error. */
10523 /* We use char because int might match the return type of a gcc2
10524 builtin and then its argument prototype would still apply. */
10529 /* The GNU C library defines this for functions which it implements
10530 to always fail with ENOSYS. Some functions are actually named
10531 something starting with __ and the normal name is an alias. */
10532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10540 if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10542 eval "ac_cv_func_$ac_func=yes"
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10547 eval "ac_cv_func_$ac_func=no"
10552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10553 echo "$ac_t""yes" 1>&6
10554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10555 cat >> confdefs.h <<EOF
10556 #define $ac_tr_func 1
10560 echo "$ac_t""no" 1>&6
10567 for ac_hdr in lwp/lwp.h
10569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10571 echo "configure:10572: checking for $ac_hdr" >&5
10572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10581 { (eval echo configure:10582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10583 if test -z "$ac_err"; then
10585 eval "ac_cv_header_$ac_safe=yes"
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10591 eval "ac_cv_header_$ac_safe=no"
10595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10596 echo "$ac_t""yes" 1>&6
10597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10598 cat >> confdefs.h <<EOF
10599 #define $ac_tr_hdr 1
10603 echo "$ac_t""no" 1>&6
10607 if test $ac_cv_header_lwp_lwp_h = yes ; then
10608 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10609 echo "configure:10610: checking for lwp_create in -llwp" >&5
10610 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
10611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10612 echo $ac_n "(cached) $ac_c" 1>&6
10614 ac_save_LIBS="$LIBS"
10616 cat > conftest.$ac_ext <<EOF
10617 #line 10618 "configure"
10618 #include "confdefs.h"
10619 /* Override any gcc2 internal prototype to avoid an error. */
10620 /* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10628 if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10630 eval "ac_cv_lib_$ac_lib_var=yes"
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10635 eval "ac_cv_lib_$ac_lib_var=no"
10638 LIBS="$ac_save_LIBS"
10641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10642 echo "$ac_t""yes" 1>&6
10645 echo "$ac_t""no" 1>&6
10650 if test $have_lwp = yes ; then
10651 cat >> confdefs.h <<\EOF
10655 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10656 ol_link_threads=lwp
10658 if test $ol_with_yielding_select = auto ; then
10659 ol_with_yielding_select=no
10665 if test $ol_with_yielding_select = yes ; then
10666 cat >> confdefs.h <<\EOF
10667 #define HAVE_YIELDING_SELECT 1
10672 if test $ol_with_threads = manual ; then
10673 ol_link_threads=yes
10675 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10677 for ac_hdr in pthread.h sched.h
10679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10681 echo "configure:10682: checking for $ac_hdr" >&5
10682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10691 { (eval echo configure:10692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10693 if test -z "$ac_err"; then
10695 eval "ac_cv_header_$ac_safe=yes"
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10701 eval "ac_cv_header_$ac_safe=no"
10705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10706 echo "$ac_t""yes" 1>&6
10707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10708 cat >> confdefs.h <<EOF
10709 #define $ac_tr_hdr 1
10713 echo "$ac_t""no" 1>&6
10717 for ac_func in sched_yield pthread_yield
10719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10720 echo "configure:10721: checking for $ac_func" >&5
10721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 /* System header to define __stub macros and hopefully few prototypes,
10728 which can conflict with char $ac_func(); below. */
10729 #include <assert.h>
10730 /* Override any gcc2 internal prototype to avoid an error. */
10731 /* We use char because int might match the return type of a gcc2
10732 builtin and then its argument prototype would still apply. */
10737 /* The GNU C library defines this for functions which it implements
10738 to always fail with ENOSYS. Some functions are actually named
10739 something starting with __ and the normal name is an alias. */
10740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10748 if { (eval echo configure:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10750 eval "ac_cv_func_$ac_func=yes"
10752 echo "configure: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10755 eval "ac_cv_func_$ac_func=no"
10760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10761 echo "$ac_t""yes" 1>&6
10762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10763 cat >> confdefs.h <<EOF
10764 #define $ac_tr_func 1
10768 echo "$ac_t""no" 1>&6
10773 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10774 echo "configure:10775: checking for LinuxThreads pthread.h" >&5
10775 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include <pthread.h>
10783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10784 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10786 ol_cv_header_linux_threads=yes
10789 ol_cv_header_linux_threads=no
10796 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10797 if test $ol_cv_header_linux_threads = yes; then
10798 cat >> confdefs.h <<\EOF
10799 #define HAVE_LINUX_THREADS 1
10805 for ac_hdr in mach/cthreads.h
10807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10809 echo "configure:10810: checking for $ac_hdr" >&5
10810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10813 cat > conftest.$ac_ext <<EOF
10814 #line 10815 "configure"
10815 #include "confdefs.h"
10818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10819 { (eval echo configure:10820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10821 if test -z "$ac_err"; then
10823 eval "ac_cv_header_$ac_safe=yes"
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10829 eval "ac_cv_header_$ac_safe=no"
10833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10834 echo "$ac_t""yes" 1>&6
10835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10836 cat >> confdefs.h <<EOF
10837 #define $ac_tr_hdr 1
10841 echo "$ac_t""no" 1>&6
10845 for ac_hdr in lwp/lwp.h
10847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10849 echo "configure:10850: checking for $ac_hdr" >&5
10850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10859 { (eval echo configure:10860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10861 if test -z "$ac_err"; then
10863 eval "ac_cv_header_$ac_safe=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_header_$ac_safe=no"
10873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10874 echo "$ac_t""yes" 1>&6
10875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10876 cat >> confdefs.h <<EOF
10877 #define $ac_tr_hdr 1
10881 echo "$ac_t""no" 1>&6
10885 for ac_hdr in thread.h synch.h
10887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10889 echo "configure:10890: checking for $ac_hdr" >&5
10890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10891 echo $ac_n "(cached) $ac_c" 1>&6
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10899 { (eval echo configure:10900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10901 if test -z "$ac_err"; then
10903 eval "ac_cv_header_$ac_safe=yes"
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10909 eval "ac_cv_header_$ac_safe=no"
10913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10914 echo "$ac_t""yes" 1>&6
10915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10916 cat >> confdefs.h <<EOF
10917 #define $ac_tr_hdr 1
10921 echo "$ac_t""no" 1>&6
10927 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
10928 cat >> confdefs.h <<\EOF
10929 #define REENTRANT 1
10932 cat >> confdefs.h <<\EOF
10933 #define _REENTRANT 1
10936 cat >> confdefs.h <<\EOF
10937 #define THREAD_SAFE 1
10940 cat >> confdefs.h <<\EOF
10941 #define _THREAD_SAFE 1
10944 cat >> confdefs.h <<\EOF
10945 #define THREADSAFE 1
10948 cat >> confdefs.h <<\EOF
10949 #define _THREADSAFE 1
10952 cat >> confdefs.h <<\EOF
10953 #define _SGI_MP_SOURCE 1
10957 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10958 echo "configure:10959: checking for thread specific errno" >&5
10959 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10963 cat > conftest.$ac_ext <<EOF
10964 #line 10965 "configure"
10965 #include "confdefs.h"
10971 if { (eval echo configure:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10973 ol_cv_errno_thread_specific=yes
10975 echo "configure: failed program was:" >&5
10976 cat conftest.$ac_ext >&5
10978 ol_cv_errno_thread_specific=no
10984 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10986 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10987 echo "configure:10988: checking for thread specific h_errno" >&5
10988 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11002 ol_cv_h_errno_thread_specific=yes
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11007 ol_cv_h_errno_thread_specific=no
11013 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11015 if test $ol_cv_errno_thread_specific != yes \
11016 -o $ol_cv_h_errno_thread_specific != yes ; then
11017 LIBS="$LTHREAD_LIBS $LIBS"
11023 if test $ol_link_threads = no ; then
11024 if test $ol_with_threads = yes ; then
11025 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11028 if test $ol_with_threads = auto ; then
11029 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11033 cat >> confdefs.h <<\EOF
11034 #define NO_THREADS 1
11040 if test $ol_link_threads != no ; then
11041 cat >> confdefs.h <<\EOF
11042 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11049 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11050 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11051 echo "configure:11052: checking for DB2 library" >&5
11052 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11056 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11057 echo "configure:11058: checking for db_appexit in -ldb" >&5
11058 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-%__p_%'`
11059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11062 ac_save_LIBS="$LIBS"
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11076 if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11078 eval "ac_cv_lib_$ac_lib_var=yes"
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11083 eval "ac_cv_lib_$ac_lib_var=no"
11086 LIBS="$ac_save_LIBS"
11089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11093 echo "$ac_t""no" 1>&6
11101 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11107 echo "configure:11108: checking for $ac_hdr" >&5
11108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11109 echo $ac_n "(cached) $ac_c" 1>&6
11111 cat > conftest.$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11117 { (eval echo configure:11118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11119 if test -z "$ac_err"; then
11121 eval "ac_cv_header_$ac_safe=yes"
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11127 eval "ac_cv_header_$ac_safe=no"
11131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11132 echo "$ac_t""yes" 1>&6
11133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11134 cat >> confdefs.h <<EOF
11135 #define $ac_tr_hdr 1
11139 echo "$ac_t""no" 1>&6
11143 if test $ac_cv_header_db_h = yes ; then
11144 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11145 echo "configure:11146: checking if db.h is DB2" >&5
11146 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11150 cat > conftest.$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11155 /* this check could be improved */
11156 # ifdef DB_VERSION_MAJOR
11157 # if DB_VERSION_MAJOR == 2
11163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11164 egrep "__db_version_2" >/dev/null 2>&1; then
11166 ol_cv_header_db2=yes
11169 ol_cv_header_db2=no
11175 echo "$ac_t""$ol_cv_header_db2" 1>&6
11177 ol_cv_header_db2=no
11182 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11183 echo "configure:11184: checking for Berkeley DB2" >&5
11184 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11188 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11189 ol_cv_berkeley_db2=no
11191 ol_cv_berkeley_db2=yes
11196 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11197 if test $ol_cv_berkeley_db2 = yes ; then
11198 cat >> confdefs.h <<\EOF
11199 #define HAVE_BERKELEY_DB2 1
11205 if test $ol_cv_berkeley_db2 = yes ; then
11207 ol_with_ldbm_api=db2
11209 if test $ol_with_ldbm_type = hash ; then
11210 cat >> confdefs.h <<\EOF
11211 #define LDBM_USE_DBHASH 1
11215 cat >> confdefs.h <<\EOF
11216 #define LDBM_USE_DBBTREE 1
11221 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11222 echo "configure:11223: checking for DB_THREAD support" >&5
11223 if eval "test \"`echo '$''{'ol_cv_berkeley_db2_db_thread'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11228 if test $ol_cv_lib_db2 != yes ; then
11229 LIBS="$ol_cv_lib_db2"
11232 if test "$cross_compiling" = yes; then
11233 ol_cv_berkeley_db2_db_thread=cross
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11241 #define NULL ((void *)0)
11247 u_int32_t flags = DB_CREATE | DB_THREAD;
11249 memset( &env, '\0', sizeof(env) );
11251 rc = db_appinit( NULL, NULL, &env, flags );
11254 db_appexit( &env );
11260 if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11262 ol_cv_berkeley_db2_db_thread=yes
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11267 ol_cv_berkeley_db2_db_thread=no
11275 if test $ol_cv_berkeley_db2_db_thread != no ; then
11276 cat >> confdefs.h <<\EOF
11277 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11284 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11286 if test $ol_cv_lib_db2 != yes ; then
11287 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11293 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11294 if test $ol_cv_berkeley_db2_db_thread != no ; then
11297 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11301 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11302 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11303 echo "configure:11304: checking for Berkeley DB library" >&5
11304 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11308 for ac_hdr in db1/db.h
11310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11312 echo "configure:11313: checking for $ac_hdr" >&5
11313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11314 echo $ac_n "(cached) $ac_c" 1>&6
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11322 { (eval echo configure:11323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11324 if test -z "$ac_err"; then
11326 eval "ac_cv_header_$ac_safe=yes"
11329 echo "configure: failed program was:" >&5
11330 cat conftest.$ac_ext >&5
11332 eval "ac_cv_header_$ac_safe=no"
11336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11337 echo "$ac_t""yes" 1>&6
11338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11339 cat >> confdefs.h <<EOF
11340 #define $ac_tr_hdr 1
11344 echo "$ac_t""no" 1>&6
11349 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11350 echo "configure:11351: checking for dbopen" >&5
11351 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
11352 echo $ac_n "(cached) $ac_c" 1>&6
11354 cat > conftest.$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11357 /* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char dbopen(); below. */
11359 #include <assert.h>
11360 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 eval "ac_cv_func_dbopen=yes"
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11385 eval "ac_cv_func_dbopen=no"
11390 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11391 echo "$ac_t""yes" 1>&6
11394 echo "$ac_t""no" 1>&6
11396 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11397 echo "configure:11398: checking for dbopen in -ldb1" >&5
11398 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
11399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11402 ac_save_LIBS="$LIBS"
11404 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11407 /* Override any gcc2 internal prototype to avoid an error. */
11408 /* We use char because int might match the return type of a gcc2
11409 builtin and then its argument prototype would still apply. */
11416 if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11418 eval "ac_cv_lib_$ac_lib_var=yes"
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11423 eval "ac_cv_lib_$ac_lib_var=no"
11426 LIBS="$ac_save_LIBS"
11429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11430 echo "$ac_t""yes" 1>&6
11433 echo "$ac_t""no" 1>&6
11435 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11436 echo "configure:11437: checking for dbopen in -ldb" >&5
11437 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
11438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
11441 ac_save_LIBS="$LIBS"
11443 cat > conftest.$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11446 /* Override any gcc2 internal prototype to avoid an error. */
11447 /* We use char because int might match the return type of a gcc2
11448 builtin and then its argument prototype would still apply. */
11455 if { (eval echo configure:11456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11457 eval "ac_cv_lib_$ac_lib_var=yes"
11459 echo "configure: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11462 eval "ac_cv_lib_$ac_lib_var=no"
11465 LIBS="$ac_save_LIBS"
11468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11469 echo "$ac_t""yes" 1>&6
11472 echo "$ac_t""no" 1>&6
11486 echo "$ac_t""$ol_cv_lib_db" 1>&6
11489 for ac_hdr in db_185.h
11491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11493 echo "configure:11494: checking for $ac_hdr" >&5
11494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11503 { (eval echo configure:11504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11505 if test -z "$ac_err"; then
11507 eval "ac_cv_header_$ac_safe=yes"
11510 echo "configure: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11513 eval "ac_cv_header_$ac_safe=no"
11517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11518 echo "$ac_t""yes" 1>&6
11519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11520 cat >> confdefs.h <<EOF
11521 #define $ac_tr_hdr 1
11525 echo "$ac_t""no" 1>&6
11529 if test "$ol_cv_header_db2" = yes ; then
11531 ol_cv_header_db=$ac_cv_header_db_185_h
11533 ol_cv_header_db=$ac_cv_header_db_h
11538 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11539 echo "configure:11540: checking for Berkeley DB" >&5
11540 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11544 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11545 ol_cv_berkeley_db=no
11547 ol_cv_berkeley_db=yes
11552 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11553 if test $ol_cv_berkeley_db = yes ; then
11554 cat >> confdefs.h <<\EOF
11555 #define HAVE_BERKELEY_DB 1
11561 if test $ol_cv_berkeley_db = yes ; then
11563 ol_with_ldbm_api=db
11565 if test $ol_with_ldbm_type = hash ; then
11566 cat >> confdefs.h <<\EOF
11567 #define LDBM_USE_DBHASH 1
11571 cat >> confdefs.h <<\EOF
11572 #define LDBM_USE_DBBTREE 1
11577 if test $ol_cv_lib_db != yes ; then
11578 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11583 if test $ol_with_ldbm_api = manual ; then
11586 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11588 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11592 echo "configure:11593: checking for $ac_hdr" >&5
11593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11594 echo $ac_n "(cached) $ac_c" 1>&6
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11602 { (eval echo configure:11603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11604 if test -z "$ac_err"; then
11606 eval "ac_cv_header_$ac_safe=yes"
11609 echo "configure: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11612 eval "ac_cv_header_$ac_safe=no"
11616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11617 echo "$ac_t""yes" 1>&6
11618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11619 cat >> confdefs.h <<EOF
11620 #define $ac_tr_hdr 1
11624 echo "$ac_t""no" 1>&6
11630 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11631 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11632 ol_with_ldbm_api=none
11635 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11636 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11637 echo "configure:11638: checking for MDBM library" >&5
11638 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
11639 echo $ac_n "(cached) $ac_c" 1>&6
11642 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11643 echo "configure:11644: checking for mdbm_set_chain" >&5
11644 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 /* System header to define __stub macros and hopefully few prototypes,
11651 which can conflict with char mdbm_set_chain(); below. */
11652 #include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error. */
11654 /* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11656 char mdbm_set_chain();
11660 /* The GNU C library defines this for functions which it implements
11661 to always fail with ENOSYS. Some functions are actually named
11662 something starting with __ and the normal name is an alias. */
11663 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11673 eval "ac_cv_func_mdbm_set_chain=yes"
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11678 eval "ac_cv_func_mdbm_set_chain=no"
11683 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11684 echo "$ac_t""yes" 1>&6
11687 echo "$ac_t""no" 1>&6
11689 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11690 echo "configure:11691: checking for mdbm_set_chain in -lmdbm" >&5
11691 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
11692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11693 echo $ac_n "(cached) $ac_c" 1>&6
11695 ac_save_LIBS="$LIBS"
11696 LIBS="-lmdbm $LIBS"
11697 cat > conftest.$ac_ext <<EOF
11698 #line 11699 "configure"
11699 #include "confdefs.h"
11700 /* Override any gcc2 internal prototype to avoid an error. */
11701 /* We use char because int might match the return type of a gcc2
11702 builtin and then its argument prototype would still apply. */
11703 char mdbm_set_chain();
11709 if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11711 eval "ac_cv_lib_$ac_lib_var=yes"
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11716 eval "ac_cv_lib_$ac_lib_var=no"
11719 LIBS="$ac_save_LIBS"
11722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11723 echo "$ac_t""yes" 1>&6
11724 ol_cv_lib_mdbm=-lmdbm
11726 echo "$ac_t""no" 1>&6
11737 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11740 for ac_hdr in mdbm.h
11742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11744 echo "configure:11745: checking for $ac_hdr" >&5
11745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11746 echo $ac_n "(cached) $ac_c" 1>&6
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11754 { (eval echo configure:11755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11756 if test -z "$ac_err"; then
11758 eval "ac_cv_header_$ac_safe=yes"
11761 echo "configure: failed program was:" >&5
11762 cat conftest.$ac_ext >&5
11764 eval "ac_cv_header_$ac_safe=no"
11768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11769 echo "$ac_t""yes" 1>&6
11770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11771 cat >> confdefs.h <<EOF
11772 #define $ac_tr_hdr 1
11776 echo "$ac_t""no" 1>&6
11780 echo $ac_n "checking for db""... $ac_c" 1>&6
11781 echo "configure:11782: checking for db" >&5
11782 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11786 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11794 echo "$ac_t""$ol_cv_mdbm" 1>&6
11795 if test $ol_cv_mdbm = yes ; then
11796 cat >> confdefs.h <<\EOF
11797 #define HAVE_MDBM 1
11803 if test $ol_cv_mdbm = yes ; then
11805 ol_with_ldbm_api=mdbm
11806 if test $ol_cv_lib_mdbm != yes ; then
11807 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11812 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11813 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11814 echo "configure:11815: checking for GDBM library" >&5
11815 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
11816 echo $ac_n "(cached) $ac_c" 1>&6
11819 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11820 echo "configure:11821: checking for gdbm_open" >&5
11821 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
11822 echo $ac_n "(cached) $ac_c" 1>&6
11824 cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char gdbm_open(); below. */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error. */
11831 /* We use char because int might match the return type of a gcc2
11832 builtin and then its argument prototype would still apply. */
11837 /* The GNU C library defines this for functions which it implements
11838 to always fail with ENOSYS. Some functions are actually named
11839 something starting with __ and the normal name is an alias. */
11840 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11850 eval "ac_cv_func_gdbm_open=yes"
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11855 eval "ac_cv_func_gdbm_open=no"
11860 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11861 echo "$ac_t""yes" 1>&6
11864 echo "$ac_t""no" 1>&6
11866 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11867 echo "configure:11868: checking for gdbm_open in -lgdbm" >&5
11868 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
11869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11870 echo $ac_n "(cached) $ac_c" 1>&6
11872 ac_save_LIBS="$LIBS"
11873 LIBS="-lgdbm $LIBS"
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* Override any gcc2 internal prototype to avoid an error. */
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11886 if { (eval echo configure:11887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11888 eval "ac_cv_lib_$ac_lib_var=yes"
11890 echo "configure: failed program was:" >&5
11891 cat conftest.$ac_ext >&5
11893 eval "ac_cv_lib_$ac_lib_var=no"
11896 LIBS="$ac_save_LIBS"
11899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11900 echo "$ac_t""yes" 1>&6
11901 ol_cv_lib_gdbm=-lgdbm
11903 echo "$ac_t""no" 1>&6
11914 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11917 for ac_hdr in gdbm.h
11919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11921 echo "configure:11922: checking for $ac_hdr" >&5
11922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11923 echo $ac_n "(cached) $ac_c" 1>&6
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11931 { (eval echo configure:11932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11933 if test -z "$ac_err"; then
11935 eval "ac_cv_header_$ac_safe=yes"
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11941 eval "ac_cv_header_$ac_safe=no"
11945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11946 echo "$ac_t""yes" 1>&6
11947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11948 cat >> confdefs.h <<EOF
11949 #define $ac_tr_hdr 1
11953 echo "$ac_t""no" 1>&6
11957 echo $ac_n "checking for db""... $ac_c" 1>&6
11958 echo "configure:11959: checking for db" >&5
11959 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
11960 echo $ac_n "(cached) $ac_c" 1>&6
11963 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11971 echo "$ac_t""$ol_cv_gdbm" 1>&6
11972 if test $ol_cv_gdbm = yes ; then
11973 cat >> confdefs.h <<\EOF
11974 #define HAVE_GDBM 1
11980 if test $ol_cv_gdbm = yes ; then
11982 ol_with_ldbm_api=gdbm
11984 if test $ol_cv_lib_gdbm != yes ; then
11985 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11990 if test $ol_with_ldbm_api = auto ; then
11991 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11992 elif test $ol_with_ldbm_api = ndbm ; then
11993 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11994 echo "configure:11995: checking for NDBM library" >&5
11995 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
11999 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12000 echo "configure:12001: checking for dbm_open" >&5
12001 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12004 cat > conftest.$ac_ext <<EOF
12005 #line 12006 "configure"
12006 #include "confdefs.h"
12007 /* System header to define __stub macros and hopefully few prototypes,
12008 which can conflict with char dbm_open(); below. */
12009 #include <assert.h>
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12017 /* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12028 if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12030 eval "ac_cv_func_dbm_open=yes"
12032 echo "configure: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12035 eval "ac_cv_func_dbm_open=no"
12040 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12041 echo "$ac_t""yes" 1>&6
12044 echo "$ac_t""no" 1>&6
12046 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12047 echo "configure:12048: checking for dbm_open in -lndbm" >&5
12048 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
12049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12050 echo $ac_n "(cached) $ac_c" 1>&6
12052 ac_save_LIBS="$LIBS"
12053 LIBS="-lndbm $LIBS"
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12057 /* Override any gcc2 internal prototype to avoid an error. */
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12066 if { (eval echo configure:12067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12068 eval "ac_cv_lib_$ac_lib_var=yes"
12070 echo "configure: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12073 eval "ac_cv_lib_$ac_lib_var=no"
12076 LIBS="$ac_save_LIBS"
12079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 ol_cv_lib_ndbm=-lndbm
12083 echo "$ac_t""no" 1>&6
12085 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12086 echo "configure:12087: checking for dbm_open in -ldbm" >&5
12087 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12091 ac_save_LIBS="$LIBS"
12093 cat > conftest.$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107 eval "ac_cv_lib_$ac_lib_var=yes"
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12112 eval "ac_cv_lib_$ac_lib_var=no"
12115 LIBS="$ac_save_LIBS"
12118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12119 echo "$ac_t""yes" 1>&6
12120 ol_cv_lib_ndbm=-ldbm
12122 echo "$ac_t""no" 1>&6
12135 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12138 for ac_hdr in ndbm.h
12140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12142 echo "configure:12143: checking for $ac_hdr" >&5
12143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12144 echo $ac_n "(cached) $ac_c" 1>&6
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12152 { (eval echo configure:12153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12154 if test -z "$ac_err"; then
12156 eval "ac_cv_header_$ac_safe=yes"
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12162 eval "ac_cv_header_$ac_safe=no"
12166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12167 echo "$ac_t""yes" 1>&6
12168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12169 cat >> confdefs.h <<EOF
12170 #define $ac_tr_hdr 1
12174 echo "$ac_t""no" 1>&6
12178 echo $ac_n "checking for db""... $ac_c" 1>&6
12179 echo "configure:12180: checking for db" >&5
12180 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12184 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12192 echo "$ac_t""$ol_cv_ndbm" 1>&6
12193 if test $ol_cv_ndbm = yes ; then
12194 cat >> confdefs.h <<\EOF
12195 #define HAVE_NDBM 1
12201 if test $ol_cv_ndbm = yes ; then
12203 ol_with_ldbm_api=ndbm
12205 if test $ol_cv_lib_ndbm != yes ; then
12206 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12211 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12212 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12213 if test $ol_enable_ldbm = yes ; then
12214 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12217 echo "configure: warning: disabling LDBM" 1>&2
12221 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12222 LINK_BINS_DYNAMIC="yes"
12224 LINK_BINS_DYNAMIC="no"
12227 if test $ol_enable_wrappers != no ; then
12228 for ac_hdr in tcpd.h
12230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12232 echo "configure:12233: checking for $ac_hdr" >&5
12233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12236 cat > conftest.$ac_ext <<EOF
12237 #line 12238 "configure"
12238 #include "confdefs.h"
12241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12242 { (eval echo configure:12243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12244 if test -z "$ac_err"; then
12246 eval "ac_cv_header_$ac_safe=yes"
12249 echo "configure: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12252 eval "ac_cv_header_$ac_safe=no"
12256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12257 echo "$ac_t""yes" 1>&6
12258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12259 cat >> confdefs.h <<EOF
12260 #define $ac_tr_hdr 1
12264 echo "$ac_t""no" 1>&6
12269 if test $ac_cv_header_tcpd_h != yes ; then
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12276 int allow_severity = 0;
12277 int deny_severity = 0;
12283 if { (eval echo configure:12284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12287 echo "configure: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12295 if test $have_wrappers = yes ; then
12296 cat >> confdefs.h <<\EOF
12297 #define HAVE_TCPD 1
12302 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12303 echo "configure:12304: checking for main in -lnsl" >&5
12304 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
12305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12306 echo $ac_n "(cached) $ac_c" 1>&6
12308 ac_save_LIBS="$LIBS"
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12318 if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12320 eval "ac_cv_lib_$ac_lib_var=yes"
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12325 eval "ac_cv_lib_$ac_lib_var=no"
12328 LIBS="$ac_save_LIBS"
12331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12332 echo "$ac_t""yes" 1>&6
12333 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12335 cat >> confdefs.h <<EOF
12336 #define $ac_tr_lib 1
12342 echo "$ac_t""no" 1>&6
12346 echo "configure: warning: could not find -lwrap" 1>&2
12347 if test $ol_enable_wrappers = yes ; then
12348 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12351 echo "configure: warning: disabling wrappers support" 1>&2
12352 ol_enable_wrappers=no
12357 if test $ol_enable_syslog != no ; then
12358 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12359 echo "configure:12360: checking for openlog" >&5
12360 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
12361 echo $ac_n "(cached) $ac_c" 1>&6
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char openlog(); below. */
12368 #include <assert.h>
12369 /* Override any gcc2 internal prototype to avoid an error. */
12370 /* We use char because int might match the return type of a gcc2
12371 builtin and then its argument prototype would still apply. */
12376 /* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
12379 #if defined (__stub_openlog) || defined (__stub___openlog)
12387 if { (eval echo configure:12388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12389 eval "ac_cv_func_openlog=yes"
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12394 eval "ac_cv_func_openlog=no"
12399 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12400 echo "$ac_t""yes" 1>&6
12403 echo "$ac_t""no" 1>&6
12406 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12407 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12409 ol_enable_syslog=$ac_cv_func_openlog
12412 if test $ol_enable_dmalloc != no ; then
12413 for ac_hdr in dmalloc.h
12415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12417 echo "configure:12418: checking for $ac_hdr" >&5
12418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12427 { (eval echo configure:12428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12429 if test -z "$ac_err"; then
12431 eval "ac_cv_header_$ac_safe=yes"
12434 echo "configure: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12437 eval "ac_cv_header_$ac_safe=no"
12441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12442 echo "$ac_t""yes" 1>&6
12443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12444 cat >> confdefs.h <<EOF
12445 #define $ac_tr_hdr 1
12449 echo "$ac_t""no" 1>&6
12453 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12454 echo "configure:12455: checking for dmalloc_shutdown in -ldmalloc" >&5
12455 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
12456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12459 ac_save_LIBS="$LIBS"
12460 LIBS="-ldmalloc $LIBS"
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464 /* Override any gcc2 internal prototype to avoid an error. */
12465 /* We use char because int might match the return type of a gcc2
12466 builtin and then its argument prototype would still apply. */
12467 char dmalloc_shutdown();
12473 if { (eval echo configure:12474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12475 eval "ac_cv_lib_$ac_lib_var=yes"
12477 echo "configure: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12480 eval "ac_cv_lib_$ac_lib_var=no"
12483 LIBS="$ac_save_LIBS"
12486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12487 echo "$ac_t""yes" 1>&6
12488 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12490 cat >> confdefs.h <<EOF
12491 #define $ac_tr_lib 1
12494 LIBS="-ldmalloc $LIBS"
12497 echo "$ac_t""no" 1>&6
12502 if test $ol_enable_tcl != no ; then
12503 for ac_hdr in tcl.h
12505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12507 echo "configure:12508: checking for $ac_hdr" >&5
12508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12509 echo $ac_n "(cached) $ac_c" 1>&6
12511 cat > conftest.$ac_ext <<EOF
12512 #line 12513 "configure"
12513 #include "confdefs.h"
12516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12517 { (eval echo configure:12518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12519 if test -z "$ac_err"; then
12521 eval "ac_cv_header_$ac_safe=yes"
12524 echo "configure: failed program was:" >&5
12525 cat conftest.$ac_ext >&5
12527 eval "ac_cv_header_$ac_safe=no"
12531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12532 echo "$ac_t""yes" 1>&6
12533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12534 cat >> confdefs.h <<EOF
12535 #define $ac_tr_hdr 1
12539 echo "$ac_t""no" 1>&6
12544 if test $ac_cv_header_tcl_h != yes ; then
12547 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12548 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12549 echo "configure:12550: checking for main in -l$lib" >&5
12550 ac_lib_var=`echo $lib'_'main | sed 'y%./+-%__p_%'`
12551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12552 echo $ac_n "(cached) $ac_c" 1>&6
12554 ac_save_LIBS="$LIBS"
12555 LIBS="-l$lib $LIBS"
12556 cat > conftest.$ac_ext <<EOF
12557 #line 12558 "configure"
12558 #include "confdefs.h"
12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566 eval "ac_cv_lib_$ac_lib_var=yes"
12568 echo "configure: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12571 eval "ac_cv_lib_$ac_lib_var=no"
12574 LIBS="$ac_save_LIBS"
12577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12578 echo "$ac_t""yes" 1>&6
12580 if test x"$ol_with_tcl_module" = "xstatic" ; then
12581 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12583 MOD_TCL_LIB="-l${lib}"
12586 echo "$ac_t""no" 1>&6
12593 if test $have_tcl != yes ; then
12594 echo "configure: warning: could not find -ltcl" 1>&2
12595 if test $ol_enable_tcl = yes ; then
12596 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12604 for ac_hdr in termcap.h ncurses.h
12606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12608 echo "configure:12609: checking for $ac_hdr" >&5
12609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12612 cat > conftest.$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12618 { (eval echo configure:12619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12620 if test -z "$ac_err"; then
12622 eval "ac_cv_header_$ac_safe=yes"
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12628 eval "ac_cv_header_$ac_safe=no"
12632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12633 echo "$ac_t""yes" 1>&6
12634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12635 cat >> confdefs.h <<EOF
12636 #define $ac_tr_hdr 1
12640 echo "$ac_t""no" 1>&6
12645 if test $ol_link_termcap = no ; then
12646 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12647 echo "configure:12648: checking for tputs in -ltermcap" >&5
12648 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
12649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12650 echo $ac_n "(cached) $ac_c" 1>&6
12652 ac_save_LIBS="$LIBS"
12653 LIBS="-ltermcap $LIBS"
12654 cat > conftest.$ac_ext <<EOF
12655 #line 12656 "configure"
12656 #include "confdefs.h"
12657 /* Override any gcc2 internal prototype to avoid an error. */
12658 /* We use char because int might match the return type of a gcc2
12659 builtin and then its argument prototype would still apply. */
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668 eval "ac_cv_lib_$ac_lib_var=yes"
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12673 eval "ac_cv_lib_$ac_lib_var=no"
12676 LIBS="$ac_save_LIBS"
12679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12680 echo "$ac_t""yes" 1>&6
12683 echo "$ac_t""no" 1>&6
12687 if test $have_termcap = yes ; then
12688 cat >> confdefs.h <<\EOF
12689 #define HAVE_TERMCAP 1
12692 ol_link_termcap=yes
12693 TERMCAP_LIBS=-ltermcap
12697 if test $ol_link_termcap = no ; then
12698 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12699 echo "configure:12700: checking for initscr in -lncurses" >&5
12700 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
12701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12704 ac_save_LIBS="$LIBS"
12705 LIBS="-lncurses $LIBS"
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12709 /* Override any gcc2 internal prototype to avoid an error. */
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12718 if { (eval echo configure:12719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 eval "ac_cv_lib_$ac_lib_var=yes"
12722 echo "configure: failed program was:" >&5
12723 cat conftest.$ac_ext >&5
12725 eval "ac_cv_lib_$ac_lib_var=no"
12728 LIBS="$ac_save_LIBS"
12731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12732 echo "$ac_t""yes" 1>&6
12735 echo "$ac_t""no" 1>&6
12739 if test $have_ncurses = yes ; then
12740 cat >> confdefs.h <<\EOF
12741 #define HAVE_NCURSES 1
12744 ol_link_termcap=yes
12745 TERMCAP_LIBS=-lncurses
12749 if test $ol_link_termcap = no ; then
12750 cat >> confdefs.h <<\EOF
12751 #define NO_TERMCAP 1
12758 if test $ol_with_cyrus_sasl != no ; then
12759 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12760 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12761 echo "configure:12762: checking for sasl.h" >&5
12762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12765 cat > conftest.$ac_ext <<EOF
12766 #line 12767 "configure"
12767 #include "confdefs.h"
12770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12771 { (eval echo configure:12772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12773 if test -z "$ac_err"; then
12775 eval "ac_cv_header_$ac_safe=yes"
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12781 eval "ac_cv_header_$ac_safe=no"
12785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12786 echo "$ac_t""yes" 1>&6
12789 echo "$ac_t""no" 1>&6
12793 if test $ac_cv_header_sasl_h = yes ; then
12794 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12795 echo "configure:12796: checking for sasl_client_init in -lsasl" >&5
12796 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
12797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12798 echo $ac_n "(cached) $ac_c" 1>&6
12800 ac_save_LIBS="$LIBS"
12801 LIBS="-lsasl $LIBS"
12802 cat > conftest.$ac_ext <<EOF
12803 #line 12804 "configure"
12804 #include "confdefs.h"
12805 /* Override any gcc2 internal prototype to avoid an error. */
12806 /* We use char because int might match the return type of a gcc2
12807 builtin and then its argument prototype would still apply. */
12808 char sasl_client_init();
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12816 eval "ac_cv_lib_$ac_lib_var=yes"
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 eval "ac_cv_lib_$ac_lib_var=no"
12824 LIBS="$ac_save_LIBS"
12827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12828 echo "$ac_t""yes" 1>&6
12829 have_cyrus_sasl=yes
12831 echo "$ac_t""no" 1>&6
12836 if test $have_cyrus_sasl != no ; then
12838 cat >> confdefs.h <<\EOF
12839 #define HAVE_CYRUS_SASL 1
12846 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12847 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12851 if test $cross_compiling != yes ; then
12853 if test -r /dev/urandom ; then
12854 dev="/dev/urandom";
12855 elif test -r /idev/urandom ; then
12856 dev="/idev/urandom";
12857 elif test -r /dev/srandom ; then
12858 dev="/dev/srandom";
12859 elif test -r /dev/random ; then
12861 elif test -r /idev/random ; then
12862 dev="/idev/random";
12865 if test $dev != no ; then
12866 cat >> confdefs.h <<EOF
12867 #define URANDOM_DEVICE "$dev"
12874 if test $ol_with_fetch != no ; then
12876 LIBS="-lfetch -lcom_err $LIBS"
12877 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12878 echo "configure:12879: checking fetch(3) library" >&5
12879 if eval "test \"`echo '$''{'ol_cv_lib_fetch'+set}'`\" = set"; then
12880 echo $ac_n "(cached) $ac_c" 1>&6
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12887 #include <sys/param.h>
12891 struct url *u = fetchParseURL("file:///");
12894 if { (eval echo configure:12895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12896 ol_cv_lib_fetch=yes
12898 echo "configure: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12906 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12908 if test $ol_cv_lib_fetch != no ; then
12909 ol_link_fetch="-lfetch -lcom_err"
12910 cat >> confdefs.h <<\EOF
12911 #define HAVE_FETCH 1
12917 if test $ol_cv_lib_fetch != no ; then
12918 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12919 ol_link_fetch=freebsd
12921 elif test $ol_with_fetch != auto ; then
12922 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12926 ol_link_readline=no
12927 if test $ol_with_readline != no ; then
12928 for ac_hdr in readline/readline.h readline/history.h
12930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12932 echo "configure:12933: checking for $ac_hdr" >&5
12933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12934 echo $ac_n "(cached) $ac_c" 1>&6
12936 cat > conftest.$ac_ext <<EOF
12937 #line 12938 "configure"
12938 #include "confdefs.h"
12941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12942 { (eval echo configure:12943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12944 if test -z "$ac_err"; then
12946 eval "ac_cv_header_$ac_safe=yes"
12949 echo "configure: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12952 eval "ac_cv_header_$ac_safe=no"
12956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12957 echo "$ac_t""yes" 1>&6
12958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12959 cat >> confdefs.h <<EOF
12960 #define $ac_tr_hdr 1
12964 echo "$ac_t""no" 1>&6
12969 if test $ac_cv_header_readline_readline_h = yes ; then
12971 LIBS="$TERMCAP_LIBS $LIBS"
12972 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12973 echo "configure:12974: checking for readline in -lreadline" >&5
12974 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
12975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12976 echo $ac_n "(cached) $ac_c" 1>&6
12978 ac_save_LIBS="$LIBS"
12979 LIBS="-lreadline $LIBS"
12980 cat > conftest.$ac_ext <<EOF
12981 #line 12982 "configure"
12982 #include "confdefs.h"
12983 /* Override any gcc2 internal prototype to avoid an error. */
12984 /* We use char because int might match the return type of a gcc2
12985 builtin and then its argument prototype would still apply. */
12992 if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12994 eval "ac_cv_lib_$ac_lib_var=yes"
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 eval "ac_cv_lib_$ac_lib_var=no"
13002 LIBS="$ac_save_LIBS"
13005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13006 echo "$ac_t""yes" 1>&6
13009 echo "$ac_t""no" 1>&6
13015 if test $have_readline = yes ; then
13016 ol_with_readline=found
13017 ol_link_readline=yes
13019 READLINE_LIBS="-lreadline"
13024 if test $ol_link_readline = yes ; then
13025 cat >> confdefs.h <<\EOF
13026 #define HAVE_READLINE 1
13032 if test $ol_enable_crypt != no ; then
13033 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13034 echo "configure:13035: checking for crypt" >&5
13035 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
13038 cat > conftest.$ac_ext <<EOF
13039 #line 13040 "configure"
13040 #include "confdefs.h"
13041 /* System header to define __stub macros and hopefully few prototypes,
13042 which can conflict with char crypt(); below. */
13043 #include <assert.h>
13044 /* Override any gcc2 internal prototype to avoid an error. */
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13051 /* The GNU C library defines this for functions which it implements
13052 to always fail with ENOSYS. Some functions are actually named
13053 something starting with __ and the normal name is an alias. */
13054 #if defined (__stub_crypt) || defined (__stub___crypt)
13062 if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13064 eval "ac_cv_func_crypt=yes"
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13069 eval "ac_cv_func_crypt=no"
13074 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13075 echo "$ac_t""yes" 1>&6
13078 echo "$ac_t""no" 1>&6
13080 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13081 echo "configure:13082: checking for crypt in -lcrypt" >&5
13082 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13086 ac_save_LIBS="$LIBS"
13087 LIBS="-lcrypt $LIBS"
13088 cat > conftest.$ac_ext <<EOF
13089 #line 13090 "configure"
13090 #include "confdefs.h"
13091 /* Override any gcc2 internal prototype to avoid an error. */
13092 /* We use char because int might match the return type of a gcc2
13093 builtin and then its argument prototype would still apply. */
13100 if { (eval echo configure:13101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13102 eval "ac_cv_lib_$ac_lib_var=yes"
13104 echo "configure: failed program was:" >&5
13105 cat conftest.$ac_ext >&5
13107 eval "ac_cv_lib_$ac_lib_var=no"
13110 LIBS="$ac_save_LIBS"
13113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13114 echo "$ac_t""yes" 1>&6
13115 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13118 echo "$ac_t""no" 1>&6
13125 if test $have_crypt = yes ; then
13126 cat >> confdefs.h <<\EOF
13127 #define HAVE_CRYPT 1
13131 echo "configure: warning: could not find crypt" 1>&2
13132 if test $ol_enable_crypt = yes ; then
13133 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13136 echo "configure: warning: disabling crypt support" 1>&2
13141 if test $ol_enable_proctitle != no ; then
13142 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13143 echo "configure:13144: checking for setproctitle" >&5
13144 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
13145 echo $ac_n "(cached) $ac_c" 1>&6
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13150 /* System header to define __stub macros and hopefully few prototypes,
13151 which can conflict with char setproctitle(); below. */
13152 #include <assert.h>
13153 /* Override any gcc2 internal prototype to avoid an error. */
13154 /* We use char because int might match the return type of a gcc2
13155 builtin and then its argument prototype would still apply. */
13156 char setproctitle();
13160 /* The GNU C library defines this for functions which it implements
13161 to always fail with ENOSYS. Some functions are actually named
13162 something starting with __ and the normal name is an alias. */
13163 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13171 if { (eval echo configure:13172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13173 eval "ac_cv_func_setproctitle=yes"
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13178 eval "ac_cv_func_setproctitle=no"
13183 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13184 echo "$ac_t""yes" 1>&6
13185 have_setproctitle=yes
13187 echo "$ac_t""no" 1>&6
13189 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13190 echo "configure:13191: checking for setproctitle in -lutil" >&5
13191 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
13192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13193 echo $ac_n "(cached) $ac_c" 1>&6
13195 ac_save_LIBS="$LIBS"
13196 LIBS="-lutil $LIBS"
13197 cat > conftest.$ac_ext <<EOF
13198 #line 13199 "configure"
13199 #include "confdefs.h"
13200 /* Override any gcc2 internal prototype to avoid an error. */
13201 /* We use char because int might match the return type of a gcc2
13202 builtin and then its argument prototype would still apply. */
13203 char setproctitle();
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13211 eval "ac_cv_lib_$ac_lib_var=yes"
13213 echo "configure: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13216 eval "ac_cv_lib_$ac_lib_var=no"
13219 LIBS="$ac_save_LIBS"
13222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224 have_setproctitle=yes
13225 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13227 echo "$ac_t""no" 1>&6
13228 have_setproctitle=no
13229 LIBOBJS="$LIBOBJS setproctitle.o"
13230 LIBSRCS="$LIBSRCS setproctitle.c"
13236 if test $have_setproctitle = yes ; then
13237 cat >> confdefs.h <<\EOF
13238 #define HAVE_SETPROCTITLE 1
13244 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13245 echo "configure:13246: checking for ANSI C header files" >&5
13246 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13247 echo $ac_n "(cached) $ac_c" 1>&6
13249 cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure"
13251 #include "confdefs.h"
13252 #include <stdlib.h>
13253 #include <stdarg.h>
13254 #include <string.h>
13257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13258 { (eval echo configure:13259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13260 if test -z "$ac_err"; then
13262 ac_cv_header_stdc=yes
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13268 ac_cv_header_stdc=no
13272 if test $ac_cv_header_stdc = yes; then
13273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13274 cat > conftest.$ac_ext <<EOF
13275 #line 13276 "configure"
13276 #include "confdefs.h"
13277 #include <string.h>
13279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280 egrep "memchr" >/dev/null 2>&1; then
13284 ac_cv_header_stdc=no
13290 if test $ac_cv_header_stdc = yes; then
13291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13292 cat > conftest.$ac_ext <<EOF
13293 #line 13294 "configure"
13294 #include "confdefs.h"
13295 #include <stdlib.h>
13297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298 egrep "free" >/dev/null 2>&1; then
13302 ac_cv_header_stdc=no
13308 if test $ac_cv_header_stdc = yes; then
13309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13310 if test "$cross_compiling" = yes; then
13313 cat > conftest.$ac_ext <<EOF
13314 #line 13315 "configure"
13315 #include "confdefs.h"
13317 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13318 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13320 int main () { int i; for (i = 0; i < 256; i++)
13321 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13325 if { (eval echo configure:13326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13329 echo "configure: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13332 ac_cv_header_stdc=no
13340 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13341 if test $ac_cv_header_stdc = yes; then
13342 cat >> confdefs.h <<\EOF
13343 #define STDC_HEADERS 1
13348 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13349 echo "configure:13350: checking for mode_t" >&5
13350 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13351 echo $ac_n "(cached) $ac_c" 1>&6
13353 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure"
13355 #include "confdefs.h"
13356 #include <sys/types.h>
13358 #include <stdlib.h>
13359 #include <stddef.h>
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13365 ac_cv_type_mode_t=yes
13368 ac_cv_type_mode_t=no
13373 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13374 if test $ac_cv_type_mode_t = no; then
13375 cat >> confdefs.h <<\EOF
13381 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13382 echo "configure:13383: checking for off_t" >&5
13383 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
13386 cat > conftest.$ac_ext <<EOF
13387 #line 13388 "configure"
13388 #include "confdefs.h"
13389 #include <sys/types.h>
13391 #include <stdlib.h>
13392 #include <stddef.h>
13395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13396 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13398 ac_cv_type_off_t=yes
13401 ac_cv_type_off_t=no
13406 echo "$ac_t""$ac_cv_type_off_t" 1>&6
13407 if test $ac_cv_type_off_t = no; then
13408 cat >> confdefs.h <<\EOF
13414 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13415 echo "configure:13416: checking for pid_t" >&5
13416 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13417 echo $ac_n "(cached) $ac_c" 1>&6
13419 cat > conftest.$ac_ext <<EOF
13420 #line 13421 "configure"
13421 #include "confdefs.h"
13422 #include <sys/types.h>
13424 #include <stdlib.h>
13425 #include <stddef.h>
13428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13429 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13431 ac_cv_type_pid_t=yes
13434 ac_cv_type_pid_t=no
13439 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13440 if test $ac_cv_type_pid_t = no; then
13441 cat >> confdefs.h <<\EOF
13447 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13448 echo "configure:13449: checking for ptrdiff_t" >&5
13449 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
13450 echo $ac_n "(cached) $ac_c" 1>&6
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13455 #include <stddef.h>
13460 if { (eval echo configure:13461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13462 am_cv_type_ptrdiff_t=yes
13464 echo "configure: failed program was:" >&5
13465 cat conftest.$ac_ext >&5
13467 am_cv_type_ptrdiff_t=no
13472 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13473 if test $am_cv_type_ptrdiff_t = yes; then
13474 cat >> confdefs.h <<\EOF
13475 #define HAVE_PTRDIFF_T 1
13480 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13481 echo "configure:13482: checking return type of signal handlers" >&5
13482 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
13483 echo $ac_n "(cached) $ac_c" 1>&6
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488 #include <sys/types.h>
13489 #include <signal.h>
13494 extern "C" void (*signal (int, void (*)(int)))(int);
13496 void (*signal ()) ();
13503 if { (eval echo configure:13504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13505 ac_cv_type_signal=void
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 ac_cv_type_signal=int
13515 echo "$ac_t""$ac_cv_type_signal" 1>&6
13516 cat >> confdefs.h <<EOF
13517 #define RETSIGTYPE $ac_cv_type_signal
13521 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13522 echo "configure:13523: checking for size_t" >&5
13523 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13524 echo $ac_n "(cached) $ac_c" 1>&6
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 #include <sys/types.h>
13531 #include <stdlib.h>
13532 #include <stddef.h>
13535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13536 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13538 ac_cv_type_size_t=yes
13541 ac_cv_type_size_t=no
13546 echo "$ac_t""$ac_cv_type_size_t" 1>&6
13547 if test $ac_cv_type_size_t = no; then
13548 cat >> confdefs.h <<\EOF
13549 #define size_t unsigned
13555 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13556 echo "configure:13557: checking for ssize_t" >&5
13557 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
13558 echo $ac_n "(cached) $ac_c" 1>&6
13560 cat > conftest.$ac_ext <<EOF
13561 #line 13562 "configure"
13562 #include "confdefs.h"
13563 #include <sys/types.h>
13565 #include <stdlib.h>
13566 #include <stddef.h>
13569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13570 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13572 ac_cv_type_ssize_t=yes
13575 ac_cv_type_ssize_t=no
13580 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
13581 if test $ac_cv_type_ssize_t = no; then
13582 cat >> confdefs.h <<\EOF
13583 #define ssize_t signed int
13588 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13589 echo "configure:13590: checking for caddr_t" >&5
13590 if eval "test \"`echo '$''{'ac_cv_type_caddr_t'+set}'`\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13593 cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure"
13595 #include "confdefs.h"
13596 #include <sys/types.h>
13598 #include <stdlib.h>
13599 #include <stddef.h>
13602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13603 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13605 ac_cv_type_caddr_t=yes
13608 ac_cv_type_caddr_t=no
13613 echo "$ac_t""$ac_cv_type_caddr_t" 1>&6
13614 if test $ac_cv_type_caddr_t = no; then
13615 cat >> confdefs.h <<\EOF
13616 #define caddr_t char *
13622 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13623 echo "configure:13624: checking for socklen_t" >&5
13624 if eval "test \"`echo '$''{'ol_cv_type_socklen_t'+set}'`\" = set"; then
13625 echo $ac_n "(cached) $ac_c" 1>&6
13627 cat > conftest.$ac_ext <<EOF
13628 #line 13629 "configure"
13629 #include "confdefs.h"
13631 #ifdef HAVE_SYS_TYPES_H
13632 #include <sys/types.h>
13634 #ifdef HAVE_SYS_SOCKET_H
13635 #include <sys/socket.h>
13642 if { (eval echo configure:13643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13644 ol_cv_type_socklen_t=yes
13646 echo "configure: failed program was:" >&5
13647 cat conftest.$ac_ext >&5
13649 ol_cv_type_socklen_t=no
13654 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13655 if test $ol_cv_type_socklen_t = no; then
13656 cat >> confdefs.h <<\EOF
13657 #define socklen_t int
13662 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
13663 echo "configure:13664: checking for st_blksize in struct stat" >&5
13664 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
13665 echo $ac_n "(cached) $ac_c" 1>&6
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 #include <sys/types.h>
13671 #include <sys/stat.h>
13673 struct stat s; s.st_blksize;
13676 if { (eval echo configure:13677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13678 ac_cv_struct_st_blksize=yes
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13683 ac_cv_struct_st_blksize=no
13688 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
13689 if test $ac_cv_struct_st_blksize = yes; then
13690 cat >> confdefs.h <<\EOF
13691 #define HAVE_ST_BLKSIZE 1
13696 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13697 echo "configure:13698: checking whether time.h and sys/time.h may both be included" >&5
13698 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
13699 echo $ac_n "(cached) $ac_c" 1>&6
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13704 #include <sys/types.h>
13705 #include <sys/time.h>
13711 if { (eval echo configure:13712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13713 ac_cv_header_time=yes
13715 echo "configure: failed program was:" >&5
13716 cat conftest.$ac_ext >&5
13718 ac_cv_header_time=no
13723 echo "$ac_t""$ac_cv_header_time" 1>&6
13724 if test $ac_cv_header_time = yes; then
13725 cat >> confdefs.h <<\EOF
13726 #define TIME_WITH_SYS_TIME 1
13731 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13732 echo "configure:13733: checking whether struct tm is in sys/time.h or time.h" >&5
13733 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
13734 echo $ac_n "(cached) $ac_c" 1>&6
13736 cat > conftest.$ac_ext <<EOF
13737 #line 13738 "configure"
13738 #include "confdefs.h"
13739 #include <sys/types.h>
13742 struct tm *tp; tp->tm_sec;
13745 if { (eval echo configure:13746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13747 ac_cv_struct_tm=time.h
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13752 ac_cv_struct_tm=sys/time.h
13757 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13758 if test $ac_cv_struct_tm = sys/time.h; then
13759 cat >> confdefs.h <<\EOF
13760 #define TM_IN_SYS_TIME 1
13765 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13766 echo "configure:13767: checking for uid_t in sys/types.h" >&5
13767 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13768 echo $ac_n "(cached) $ac_c" 1>&6
13770 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773 #include <sys/types.h>
13775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13776 egrep "uid_t" >/dev/null 2>&1; then
13778 ac_cv_type_uid_t=yes
13781 ac_cv_type_uid_t=no
13787 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13788 if test $ac_cv_type_uid_t = no; then
13789 cat >> confdefs.h <<\EOF
13793 cat >> confdefs.h <<\EOF
13799 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13800 echo "configure:13801: checking for sig_atomic_t" >&5
13801 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
13802 echo $ac_n "(cached) $ac_c" 1>&6
13804 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure"
13806 #include "confdefs.h"
13807 #include <signal.h>
13809 sig_atomic_t atomic;
13812 if { (eval echo configure:13813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13814 ol_cv_type_sig_atomic_t=yes
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13819 ol_cv_type_sig_atomic_t=no
13824 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13825 if test $ol_cv_type_sig_atomic_t = no; then
13826 cat >> confdefs.h <<\EOF
13827 #define sig_atomic_t int
13834 # test for pw_gecos in struct passwd
13835 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13836 echo "configure:13837: checking struct passwd for pw_gecos" >&5
13837 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
13838 echo $ac_n "(cached) $ac_c" 1>&6
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13848 pwd.pw_gecos = pwd.pw_name;
13852 if { (eval echo configure:13853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13854 ol_cv_struct_passwd_pw_gecos=yes
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13859 ol_cv_struct_passwd_pw_gecos=no
13864 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13865 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13866 cat >> confdefs.h <<\EOF
13867 #define HAVE_PW_GECOS 1
13872 # test for pw_passwd in struct passwd
13873 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13874 echo "configure:13875: checking struct passwd for pw_passwd" >&5
13875 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_passwd'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13886 pwd.pw_passwd = pwd.pw_name;
13890 if { (eval echo configure:13891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13892 ol_cv_struct_passwd_pw_passwd=yes
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13897 ol_cv_struct_passwd_pw_passwd=no
13902 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13903 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13904 cat >> confdefs.h <<\EOF
13905 #define HAVE_PW_PASSWD 1
13911 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13912 echo "configure:13913: checking if toupper() requires islower()" >&5
13913 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
13914 echo $ac_n "(cached) $ac_c" 1>&6
13917 if test "$cross_compiling" = yes; then
13918 ol_cv_c_upper_lower=safe
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13927 if ('C' == toupper('C'))
13933 if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13935 ol_cv_c_upper_lower=no
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13940 ol_cv_c_upper_lower=yes
13947 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13948 if test $ol_cv_c_upper_lower != no ; then
13949 cat >> confdefs.h <<\EOF
13950 #define C_UPPER_LOWER 1
13955 echo $ac_n "checking for working const""... $ac_c" 1>&6
13956 echo "configure:13957: checking for working const" >&5
13957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13966 /* Ultrix mips cc rejects this. */
13967 typedef int charset[2]; const charset x;
13968 /* SunOS 4.1.1 cc rejects this. */
13969 char const *const *ccp;
13971 /* NEC SVR4.0.2 mips cc rejects this. */
13972 struct point {int x, y;};
13973 static struct point const zero = {0,0};
13974 /* AIX XL C 1.02.0.0 rejects this.
13975 It does not let you subtract one const X* pointer from another in an arm
13976 of an if-expression whose if-part is not a constant expression */
13977 const char *g = "string";
13978 ccp = &g + (g ? g-g : 0);
13979 /* HPUX 7.0 cc rejects these. */
13982 ccp = (char const *const *) p;
13983 { /* SCO 3.2v4 cc rejects this. */
13985 char const *s = 0 ? (char *) 0 : (char const *) 0;
13989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13990 int x[] = {25, 17};
13991 const int *foo = &x[0];
13994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13995 typedef const int *iptr;
13999 { /* AIX XL C 1.02.0.0 rejects this saying
14000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14001 struct s { int j; const int *ap[3]; };
14002 struct s *b; b->j = 5;
14004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14005 const int foo = 10;
14010 if { (eval echo configure:14011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14014 echo "configure: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14022 echo "$ac_t""$ac_cv_c_const" 1>&6
14023 if test $ac_cv_c_const = no; then
14024 cat >> confdefs.h <<\EOF
14030 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14031 echo "configure:14032: checking if compiler understands volatile" >&5
14032 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
14033 echo $ac_n "(cached) $ac_c" 1>&6
14035 cat > conftest.$ac_ext <<EOF
14036 #line 14037 "configure"
14037 #include "confdefs.h"
14040 volatile int a; int * volatile b = x ? &y : &z;
14041 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14045 if { (eval echo configure:14046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14047 ol_cv_c_volatile=yes
14049 echo "configure: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14052 ol_cv_c_volatile=no
14057 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14058 if test $ol_cv_c_volatile = yes; then
14061 cat >> confdefs.h <<\EOF
14068 if test $cross_compiling = yes ; then
14069 cat >> confdefs.h <<\EOF
14070 #define CROSS_COMPILING 1
14074 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14075 echo "configure:14076: checking whether byte ordering is bigendian" >&5
14076 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14077 echo $ac_n "(cached) $ac_c" 1>&6
14079 ac_cv_c_bigendian=unknown
14080 # See if sys/param.h defines the BYTE_ORDER macro.
14081 cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14084 #include <sys/types.h>
14085 #include <sys/param.h>
14088 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14089 bogus endian macros
14093 if { (eval echo configure:14094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14095 # It does; now see whether it defined to BIG_ENDIAN or not.
14096 cat > conftest.$ac_ext <<EOF
14097 #line 14098 "configure"
14098 #include "confdefs.h"
14099 #include <sys/types.h>
14100 #include <sys/param.h>
14103 #if BYTE_ORDER != BIG_ENDIAN
14108 if { (eval echo configure:14109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14110 ac_cv_c_bigendian=yes
14112 echo "configure: failed program was:" >&5
14113 cat conftest.$ac_ext >&5
14115 ac_cv_c_bigendian=no
14119 echo "configure: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14123 if test $ac_cv_c_bigendian = unknown; then
14124 if test "$cross_compiling" = yes; then
14125 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14127 cat > conftest.$ac_ext <<EOF
14128 #line 14129 "configure"
14129 #include "confdefs.h"
14131 /* Are we little or big endian? From Harbison&Steele. */
14135 char c[sizeof (long)];
14138 exit (u.c[sizeof (long) - 1] == 1);
14141 if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14143 ac_cv_c_bigendian=no
14145 echo "configure: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14148 ac_cv_c_bigendian=yes
14156 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14157 if test $ac_cv_c_bigendian = yes; then
14158 cat >> confdefs.h <<\EOF
14159 #define WORDS_BIGENDIAN 1
14166 echo $ac_n "checking size of short""... $ac_c" 1>&6
14167 echo "configure:14168: checking size of short" >&5
14168 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14171 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14172 cat > conftest.$ac_ext <<EOF
14173 #line 14174 "configure"
14174 #include "confdefs.h"
14175 #include "confdefs.h"
14176 #include <sys/types.h>
14180 switch (0) case 0: case (sizeof (short) == $ac_size):;
14183 if { (eval echo configure:14184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14185 ac_cv_sizeof_short=$ac_size
14187 echo "configure: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14191 if test x$ac_cv_sizeof_short != x ; then break; fi
14196 if test x$ac_cv_sizeof_short = x ; then
14197 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14199 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14200 cat >> confdefs.h <<EOF
14201 #define SIZEOF_SHORT $ac_cv_sizeof_short
14205 echo $ac_n "checking size of int""... $ac_c" 1>&6
14206 echo "configure:14207: checking size of int" >&5
14207 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14208 echo $ac_n "(cached) $ac_c" 1>&6
14210 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14211 cat > conftest.$ac_ext <<EOF
14212 #line 14213 "configure"
14213 #include "confdefs.h"
14214 #include "confdefs.h"
14215 #include <sys/types.h>
14219 switch (0) case 0: case (sizeof (int) == $ac_size):;
14222 if { (eval echo configure:14223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14224 ac_cv_sizeof_int=$ac_size
14226 echo "configure: failed program was:" >&5
14227 cat conftest.$ac_ext >&5
14230 if test x$ac_cv_sizeof_int != x ; then break; fi
14235 if test x$ac_cv_sizeof_int = x ; then
14236 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14238 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14239 cat >> confdefs.h <<EOF
14240 #define SIZEOF_INT $ac_cv_sizeof_int
14244 echo $ac_n "checking size of long""... $ac_c" 1>&6
14245 echo "configure:14246: checking size of long" >&5
14246 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14247 echo $ac_n "(cached) $ac_c" 1>&6
14249 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14250 cat > conftest.$ac_ext <<EOF
14251 #line 14252 "configure"
14252 #include "confdefs.h"
14253 #include "confdefs.h"
14254 #include <sys/types.h>
14258 switch (0) case 0: case (sizeof (long) == $ac_size):;
14261 if { (eval echo configure:14262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14263 ac_cv_sizeof_long=$ac_size
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14269 if test x$ac_cv_sizeof_long != x ; then break; fi
14274 if test x$ac_cv_sizeof_long = x ; then
14275 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14277 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14278 cat >> confdefs.h <<EOF
14279 #define SIZEOF_LONG $ac_cv_sizeof_long
14284 if test "$ac_cv_sizeof_int" -lt 4 ; then
14285 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14287 cat >> confdefs.h <<\EOF
14288 #define LBER_INT_T long
14292 cat >> confdefs.h <<\EOF
14293 #define LBER_INT_T int
14298 cat >> confdefs.h <<\EOF
14299 #define LBER_LEN_T long
14302 cat >> confdefs.h <<\EOF
14303 #define LBER_SOCKET_T int
14306 cat >> confdefs.h <<\EOF
14307 #define LBER_TAG_T long
14311 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14312 echo "configure:14313: checking for 8-bit clean memcmp" >&5
14313 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14316 if test "$cross_compiling" = yes; then
14317 ac_cv_func_memcmp_clean=no
14319 cat > conftest.$ac_ext <<EOF
14320 #line 14321 "configure"
14321 #include "confdefs.h"
14325 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14326 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14330 if { (eval echo configure:14331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14332 ac_cv_func_memcmp_clean=yes
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14337 ac_cv_func_memcmp_clean=no
14344 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14345 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14347 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14348 echo "configure:14349: checking for strftime" >&5
14349 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
14350 echo $ac_n "(cached) $ac_c" 1>&6
14352 cat > conftest.$ac_ext <<EOF
14353 #line 14354 "configure"
14354 #include "confdefs.h"
14355 /* System header to define __stub macros and hopefully few prototypes,
14356 which can conflict with char strftime(); below. */
14357 #include <assert.h>
14358 /* Override any gcc2 internal prototype to avoid an error. */
14359 /* We use char because int might match the return type of a gcc2
14360 builtin and then its argument prototype would still apply. */
14365 /* The GNU C library defines this for functions which it implements
14366 to always fail with ENOSYS. Some functions are actually named
14367 something starting with __ and the normal name is an alias. */
14368 #if defined (__stub_strftime) || defined (__stub___strftime)
14376 if { (eval echo configure:14377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14378 eval "ac_cv_func_strftime=yes"
14380 echo "configure: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
14383 eval "ac_cv_func_strftime=no"
14388 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14389 echo "$ac_t""yes" 1>&6
14390 cat >> confdefs.h <<\EOF
14391 #define HAVE_STRFTIME 1
14395 echo "$ac_t""no" 1>&6
14396 # strftime is in -lintl on SCO UNIX.
14397 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14398 echo "configure:14399: checking for strftime in -lintl" >&5
14399 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
14400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14401 echo $ac_n "(cached) $ac_c" 1>&6
14403 ac_save_LIBS="$LIBS"
14404 LIBS="-lintl $LIBS"
14405 cat > conftest.$ac_ext <<EOF
14406 #line 14407 "configure"
14407 #include "confdefs.h"
14408 /* Override any gcc2 internal prototype to avoid an error. */
14409 /* We use char because int might match the return type of a gcc2
14410 builtin and then its argument prototype would still apply. */
14417 if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14419 eval "ac_cv_lib_$ac_lib_var=yes"
14421 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14424 eval "ac_cv_lib_$ac_lib_var=no"
14427 LIBS="$ac_save_LIBS"
14430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14431 echo "$ac_t""yes" 1>&6
14432 cat >> confdefs.h <<\EOF
14433 #define HAVE_STRFTIME 1
14436 LIBS="-lintl $LIBS"
14438 echo "$ac_t""no" 1>&6
14444 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14445 echo "configure:14446: checking for inet_aton()" >&5
14446 if eval "test \"`echo '$''{'ol_cv_func_inet_aton'+set}'`\" = set"; then
14447 echo $ac_n "(cached) $ac_c" 1>&6
14449 cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14453 #ifdef HAVE_SYS_TYPES_H
14454 # include <sys/types.h>
14456 #ifdef HAVE_SYS_SOCKET_H
14457 # include <sys/socket.h>
14458 # ifdef HAVE_SYS_SELECT_H
14459 # include <sys/select.h>
14461 # include <netinet/in.h>
14462 # ifdef HAVE_ARPA_INET_H
14463 # include <arpa/inet.h>
14469 int rc = inet_aton( "255.255.255.255", &in );
14472 if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14474 ol_cv_func_inet_aton=yes
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14479 ol_cv_func_inet_aton=no
14484 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14485 if test $ol_cv_func_inet_aton != no; then
14486 cat >> confdefs.h <<\EOF
14487 #define HAVE_INET_ATON 1
14493 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14494 echo "configure:14495: checking for _spawnlp" >&5
14495 if eval "test \"`echo '$''{'ac_cv_func__spawnlp'+set}'`\" = set"; then
14496 echo $ac_n "(cached) $ac_c" 1>&6
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14501 /* System header to define __stub macros and hopefully few prototypes,
14502 which can conflict with char _spawnlp(); below. */
14503 #include <assert.h>
14504 /* Override any gcc2 internal prototype to avoid an error. */
14505 /* We use char because int might match the return type of a gcc2
14506 builtin and then its argument prototype would still apply. */
14511 /* The GNU C library defines this for functions which it implements
14512 to always fail with ENOSYS. Some functions are actually named
14513 something starting with __ and the normal name is an alias. */
14514 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14522 if { (eval echo configure:14523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 eval "ac_cv_func__spawnlp=yes"
14526 echo "configure: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 eval "ac_cv_func__spawnlp=no"
14534 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14535 echo "$ac_t""yes" 1>&6
14536 cat >> confdefs.h <<\EOF
14537 #define HAVE_SPAWNLP 1
14541 echo "$ac_t""no" 1>&6
14545 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14546 echo "configure:14547: checking for _snprintf" >&5
14547 if eval "test \"`echo '$''{'ac_cv_func__snprintf'+set}'`\" = set"; then
14548 echo $ac_n "(cached) $ac_c" 1>&6
14550 cat > conftest.$ac_ext <<EOF
14551 #line 14552 "configure"
14552 #include "confdefs.h"
14553 /* System header to define __stub macros and hopefully few prototypes,
14554 which can conflict with char _snprintf(); below. */
14555 #include <assert.h>
14556 /* Override any gcc2 internal prototype to avoid an error. */
14557 /* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14563 /* The GNU C library defines this for functions which it implements
14564 to always fail with ENOSYS. Some functions are actually named
14565 something starting with __ and the normal name is an alias. */
14566 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14574 if { (eval echo configure:14575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14576 eval "ac_cv_func__snprintf=yes"
14578 echo "configure: failed program was:" >&5
14579 cat conftest.$ac_ext >&5
14581 eval "ac_cv_func__snprintf=no"
14586 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14587 echo "$ac_t""yes" 1>&6
14588 ac_cv_func_snprintf=yes
14589 cat >> confdefs.h <<\EOF
14590 #define snprintf _snprintf
14595 echo "$ac_t""no" 1>&6
14599 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14600 echo "configure:14601: checking for _vsnprintf" >&5
14601 if eval "test \"`echo '$''{'ac_cv_func__vsnprintf'+set}'`\" = set"; then
14602 echo $ac_n "(cached) $ac_c" 1>&6
14604 cat > conftest.$ac_ext <<EOF
14605 #line 14606 "configure"
14606 #include "confdefs.h"
14607 /* System header to define __stub macros and hopefully few prototypes,
14608 which can conflict with char _vsnprintf(); below. */
14609 #include <assert.h>
14610 /* Override any gcc2 internal prototype to avoid an error. */
14611 /* We use char because int might match the return type of a gcc2
14612 builtin and then its argument prototype would still apply. */
14617 /* The GNU C library defines this for functions which it implements
14618 to always fail with ENOSYS. Some functions are actually named
14619 something starting with __ and the normal name is an alias. */
14620 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14628 if { (eval echo configure:14629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14630 eval "ac_cv_func__vsnprintf=yes"
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14635 eval "ac_cv_func__vsnprintf=no"
14640 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14641 echo "$ac_t""yes" 1>&6
14642 ac_cv_func_vsnprintf=yes
14643 cat >> confdefs.h <<\EOF
14644 #define vsnprintf _vsnprintf
14649 echo "$ac_t""no" 1>&6
14653 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14654 echo "configure:14655: checking for vprintf" >&5
14655 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14656 echo $ac_n "(cached) $ac_c" 1>&6
14658 cat > conftest.$ac_ext <<EOF
14659 #line 14660 "configure"
14660 #include "confdefs.h"
14661 /* System header to define __stub macros and hopefully few prototypes,
14662 which can conflict with char vprintf(); below. */
14663 #include <assert.h>
14664 /* Override any gcc2 internal prototype to avoid an error. */
14665 /* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14671 /* The GNU C library defines this for functions which it implements
14672 to always fail with ENOSYS. Some functions are actually named
14673 something starting with __ and the normal name is an alias. */
14674 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14682 if { (eval echo configure:14683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14684 eval "ac_cv_func_vprintf=yes"
14686 echo "configure: failed program was:" >&5
14687 cat conftest.$ac_ext >&5
14689 eval "ac_cv_func_vprintf=no"
14694 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14695 echo "$ac_t""yes" 1>&6
14696 cat >> confdefs.h <<\EOF
14697 #define HAVE_VPRINTF 1
14701 echo "$ac_t""no" 1>&6
14704 if test "$ac_cv_func_vprintf" != yes; then
14705 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14706 echo "configure:14707: checking for _doprnt" >&5
14707 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14708 echo $ac_n "(cached) $ac_c" 1>&6
14710 cat > conftest.$ac_ext <<EOF
14711 #line 14712 "configure"
14712 #include "confdefs.h"
14713 /* System header to define __stub macros and hopefully few prototypes,
14714 which can conflict with char _doprnt(); below. */
14715 #include <assert.h>
14716 /* Override any gcc2 internal prototype to avoid an error. */
14717 /* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14734 if { (eval echo configure:14735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14736 eval "ac_cv_func__doprnt=yes"
14738 echo "configure: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14741 eval "ac_cv_func__doprnt=no"
14746 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14747 echo "$ac_t""yes" 1>&6
14748 cat >> confdefs.h <<\EOF
14749 #define HAVE_DOPRNT 1
14753 echo "$ac_t""no" 1>&6
14759 if test $ac_cv_func_vprintf = yes ; then
14760 for ac_func in vsnprintf vsprintf
14762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_func" >&5
14764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func(); below. */
14772 #include <assert.h>
14773 /* Override any gcc2 internal prototype to avoid an error. */
14774 /* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14791 if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14793 eval "ac_cv_func_$ac_func=yes"
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14798 eval "ac_cv_func_$ac_func=no"
14803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14806 cat >> confdefs.h <<EOF
14807 #define $ac_tr_func 1
14811 echo "$ac_t""no" 1>&6
14867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14868 echo "configure:14869: checking for $ac_func" >&5
14869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
14872 cat > conftest.$ac_ext <<EOF
14873 #line 14874 "configure"
14874 #include "confdefs.h"
14875 /* System header to define __stub macros and hopefully few prototypes,
14876 which can conflict with char $ac_func(); below. */
14877 #include <assert.h>
14878 /* Override any gcc2 internal prototype to avoid an error. */
14879 /* We use char because int might match the return type of a gcc2
14880 builtin and then its argument prototype would still apply. */
14885 /* The GNU C library defines this for functions which it implements
14886 to always fail with ENOSYS. Some functions are actually named
14887 something starting with __ and the normal name is an alias. */
14888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14896 if { (eval echo configure:14897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14898 eval "ac_cv_func_$ac_func=yes"
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14903 eval "ac_cv_func_$ac_func=no"
14908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14909 echo "$ac_t""yes" 1>&6
14910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14911 cat >> confdefs.h <<EOF
14912 #define $ac_tr_func 1
14916 echo "$ac_t""no" 1>&6
14921 for ac_func in getopt tempnam
14923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14924 echo "configure:14925: checking for $ac_func" >&5
14925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14926 echo $ac_n "(cached) $ac_c" 1>&6
14928 cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 /* System header to define __stub macros and hopefully few prototypes,
14932 which can conflict with char $ac_func(); below. */
14933 #include <assert.h>
14934 /* Override any gcc2 internal prototype to avoid an error. */
14935 /* We use char because int might match the return type of a gcc2
14936 builtin and then its argument prototype would still apply. */
14941 /* The GNU C library defines this for functions which it implements
14942 to always fail with ENOSYS. Some functions are actually named
14943 something starting with __ and the normal name is an alias. */
14944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14952 if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14954 eval "ac_cv_func_$ac_func=yes"
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14959 eval "ac_cv_func_$ac_func=no"
14964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14965 echo "$ac_t""yes" 1>&6
14966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14967 cat >> confdefs.h <<EOF
14968 #define $ac_tr_func 1
14972 echo "$ac_t""no" 1>&6
14973 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14979 if test "$ac_cv_func_getopt" != yes; then
14980 LIBSRCS="$LIBSRCS getopt.c"
14983 if test "$ac_cv_func_tempnam" != yes; then
14984 LIBSRCS="$LIBSRCS tempnam.c"
14987 # Check Configuration
14988 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14989 echo "configure:14990: checking declaration of sys_errlist" >&5
14990 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
14991 echo $ac_n "(cached) $ac_c" 1>&6
14994 cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14999 #include <sys/types.h>
15002 #include <stdlib.h>
15005 char *c = (char *) *sys_errlist
15008 if { (eval echo configure:15009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15010 ol_cv_dcl_sys_errlist=yes
15011 ol_cv_have_sys_errlist=yes
15013 echo "configure: failed program was:" >&5
15014 cat conftest.$ac_ext >&5
15016 ol_cv_dcl_sys_errlist=no
15021 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15023 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15024 if test $ol_cv_dcl_sys_errlist = no ; then
15025 cat >> confdefs.h <<\EOF
15026 #define DECL_SYS_ERRLIST 1
15030 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15031 echo "configure:15032: checking existence of sys_errlist" >&5
15032 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
15033 echo $ac_n "(cached) $ac_c" 1>&6
15036 cat > conftest.$ac_ext <<EOF
15037 #line 15038 "configure"
15038 #include "confdefs.h"
15041 char *c = (char *) *sys_errlist
15044 if { (eval echo configure:15045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15046 ol_cv_have_sys_errlist=yes
15048 echo "configure: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15051 ol_cv_have_sys_errlist=no
15056 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15058 if test $ol_cv_have_sys_errlist = yes ; then
15059 cat >> confdefs.h <<\EOF
15060 #define HAVE_SYS_ERRLIST 1
15067 if test "$ol_enable_debug" != no ; then
15068 cat >> confdefs.h <<\EOF
15069 #define LDAP_DEBUG 1
15073 if test "$ol_enable_syslog" = yes ; then
15074 cat >> confdefs.h <<\EOF
15075 #define LDAP_SYSLOG 1
15079 if test "$ol_enable_libui" = yes ; then
15080 cat >> confdefs.h <<\EOF
15081 #define LDAP_LIBUI 1
15085 if test "$ol_enable_cache" = no ; then
15086 cat >> confdefs.h <<\EOF
15087 #define LDAP_NOCACHE 1
15091 if test "$ol_link_kbind" != no ; then
15092 cat >> confdefs.h <<\EOF
15093 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15097 if test "$ol_enable_dns" != no ; then
15098 cat >> confdefs.h <<\EOF
15099 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15103 if test "$ol_enable_proctitle" != no ; then
15104 cat >> confdefs.h <<\EOF
15105 #define LDAP_PROCTITLE 1
15109 if test "$ol_enable_referrals" != no ; then
15110 cat >> confdefs.h <<\EOF
15111 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15115 if test "$ol_enable_cldap" != no ; then
15116 cat >> confdefs.h <<\EOF
15117 #define LDAP_CONNECTIONLESS 1
15121 if test "$ol_enable_ldapi" != no; then
15122 cat >> confdefs.h <<\EOF
15123 #define USE_PF_LOCAL 1
15128 if test "$ol_enable_cleartext" != no ; then
15129 cat >> confdefs.h <<\EOF
15130 #define SLAPD_CLEARTEXT 1
15134 if test "$ol_enable_crypt" != no ; then
15135 cat >> confdefs.h <<\EOF
15136 #define SLAPD_CRYPT 1
15140 if test "$ol_link_kpasswd" != no ; then
15141 cat >> confdefs.h <<\EOF
15142 #define SLAPD_KPASSWD 1
15146 if test "$ol_enable_multimaster" != no ; then
15147 cat >> confdefs.h <<\EOF
15148 #define SLAPD_MULTIMASTER 1
15152 if test "$ol_enable_phonetic" != no ; then
15153 cat >> confdefs.h <<\EOF
15154 #define SLAPD_PHONETIC 1
15158 if test "$ol_enable_rlookups" != no ; then
15159 cat >> confdefs.h <<\EOF
15160 #define SLAPD_RLOOKUPS 1
15164 if test "$ol_enable_aci" != no ; then
15165 cat >> confdefs.h <<\EOF
15166 #define SLAPD_ACI_ENABLED 1
15170 if test "$ol_enable_discreteaci" != no ; then
15171 cat >> confdefs.h <<\EOF
15172 #define SLAPD_ACI_DISCRETE_RIGHTS 1
15177 if test "$ol_link_modules" != no ; then
15178 cat >> confdefs.h <<\EOF
15179 #define SLAPD_MODULES 1
15183 SLAPD_MODULES_LDFLAGS="-dlopen self"
15186 if test "$ol_link_bdb2" != no ; then
15187 cat >> confdefs.h <<\EOF
15188 #define SLAPD_BDB2 1
15193 if test "$ol_with_bdb2_module" != static ; then
15194 cat >> confdefs.h <<\EOF
15195 #define SLAPD_BDB2_DYNAMIC 1
15199 BUILD_BDB2_DYNAMIC=shared
15200 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15204 if test "$ol_enable_ldap" != no ; then
15205 cat >> confdefs.h <<\EOF
15206 #define SLAPD_LDAP 1
15211 if test "$ol_with_ldap_module" != static ; then
15212 cat >> confdefs.h <<\EOF
15213 #define SLAPD_LDAP_DYNAMIC 1
15217 BUILD_LDAP_DYNAMIC=shared
15218 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15222 if test "$ol_link_ldbm" != no ; then
15223 cat >> confdefs.h <<\EOF
15224 #define SLAPD_LDBM 1
15229 if test "$ol_with_ldbm_module" != static ; then
15230 cat >> confdefs.h <<\EOF
15231 #define SLAPD_LDBM_DYNAMIC 1
15235 BUILD_LDBM_DYNAMIC=shared
15236 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15240 if test "$ol_enable_passwd" != no ; then
15241 cat >> confdefs.h <<\EOF
15242 #define SLAPD_PASSWD 1
15247 if test "$ol_with_passwd_module" != static ; then
15248 cat >> confdefs.h <<\EOF
15249 #define SLAPD_PASSWD_DYNAMIC 1
15253 BUILD_PASSWD_DYNAMIC=shared
15254 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15258 if test "$ol_link_perl" != no ; then
15259 cat >> confdefs.h <<\EOF
15260 #define SLAPD_PERL 1
15265 if test "$ol_with_perl_module" != static ; then
15266 cat >> confdefs.h <<\EOF
15267 #define SLAPD_PERL_DYNAMIC 1
15271 BUILD_PERL_DYNAMIC=shared
15272 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15276 if test "$ol_enable_shell" != no ; then
15277 cat >> confdefs.h <<\EOF
15278 #define SLAPD_SHELL 1
15283 if test "$ol_with_shell_module" != static ; then
15284 cat >> confdefs.h <<\EOF
15285 #define SLAPD_SHELL_DYNAMIC 1
15289 BUILD_SHELL_DYNAMIC=shared
15290 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15294 if test "$ol_enable_tcl" != no ; then
15295 cat >> confdefs.h <<\EOF
15296 #define SLAPD_TCL 1
15301 if test "$ol_with_tcl_module" != static; then
15302 cat >> confdefs.h <<\EOF
15303 #define SLAPD_TCL_DYNAMIC 1
15307 BUILD_TCL_DYNAMIC=shared
15308 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15312 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15313 $BUILD_SLAPD = yes ; then
15317 if test "$ol_link_isode" != no ; then
15322 if test "$LINK_BINS_DYNAMIC" = yes; then
15324 LT_LIB_LINKAGE=shared
15327 LT_LIB_LINKAGE=static
15330 if test "$ac_cv_mingw32" = yes ; then
15395 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15398 # Let make expand exec_prefix.
15399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15401 # Any assignment to VPATH causes Sun make to only execute
15402 # the first set of double-colon rules, so remove it if not needed.
15403 # If there is a colon in the path, we need to keep it.
15404 if test "x$srcdir" = x.; then
15405 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15408 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15410 DEFS=-DHAVE_CONFIG_H
15412 # Without the "./", some shells look in PATH for config.status.
15413 : ${CONFIG_STATUS=./config.status}
15415 echo creating $CONFIG_STATUS
15416 rm -f $CONFIG_STATUS
15417 cat > $CONFIG_STATUS <<EOF
15419 # Generated automatically by configure.
15420 # Run this file to recreate the current configuration.
15421 # This directory was configured as follows,
15422 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15424 # $0 $ac_configure_args
15426 # Compiler output produced by configure, useful for debugging
15427 # configure, is in ./config.log if it exists.
15429 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15432 case "\$ac_option" in
15433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15434 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15435 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15436 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15437 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15439 -help | --help | --hel | --he | --h)
15440 echo "\$ac_cs_usage"; exit 0 ;;
15441 *) echo "\$ac_cs_usage"; exit 1 ;;
15445 ac_given_srcdir=$srcdir
15446 ac_given_INSTALL="$INSTALL"
15448 trap 'rm -fr `echo "\
15449 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15450 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15451 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15452 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15453 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15454 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15455 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15456 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15457 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15458 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15459 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15460 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15461 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15462 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15463 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15464 include/Makefile:build/top.mk:include/Makefile.in \
15465 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15466 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15467 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15468 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15469 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15470 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15471 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15472 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15473 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15474 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15475 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15476 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15477 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15478 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15479 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15480 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15481 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15482 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15483 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15484 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15485 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15486 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15487 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15488 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15489 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15490 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15491 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15493 cat >> $CONFIG_STATUS <<EOF
15495 # Protect against being on the right side of a sed subst in config.status.
15496 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15497 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15501 s%@CFLAGS@%$CFLAGS%g
15502 s%@CPPFLAGS@%$CPPFLAGS%g
15503 s%@CXXFLAGS@%$CXXFLAGS%g
15504 s%@FFLAGS@%$FFLAGS%g
15506 s%@LDFLAGS@%$LDFLAGS%g
15508 s%@exec_prefix@%$exec_prefix%g
15509 s%@prefix@%$prefix%g
15510 s%@program_transform_name@%$program_transform_name%g
15511 s%@bindir@%$bindir%g
15512 s%@sbindir@%$sbindir%g
15513 s%@libexecdir@%$libexecdir%g
15514 s%@datadir@%$datadir%g
15515 s%@sysconfdir@%$sysconfdir%g
15516 s%@sharedstatedir@%$sharedstatedir%g
15517 s%@localstatedir@%$localstatedir%g
15518 s%@libdir@%$libdir%g
15519 s%@includedir@%$includedir%g
15520 s%@oldincludedir@%$oldincludedir%g
15521 s%@infodir@%$infodir%g
15522 s%@mandir@%$mandir%g
15524 s%@host_alias@%$host_alias%g
15525 s%@host_cpu@%$host_cpu%g
15526 s%@host_vendor@%$host_vendor%g
15527 s%@host_os@%$host_os%g
15528 s%@target@%$target%g
15529 s%@target_alias@%$target_alias%g
15530 s%@target_cpu@%$target_cpu%g
15531 s%@target_vendor@%$target_vendor%g
15532 s%@target_os@%$target_os%g
15534 s%@build_alias@%$build_alias%g
15535 s%@build_cpu@%$build_cpu%g
15536 s%@build_vendor@%$build_vendor%g
15537 s%@build_os@%$build_os%g
15538 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15539 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15540 s%@INSTALL_DATA@%$INSTALL_DATA%g
15541 s%@PACKAGE@%$PACKAGE%g
15542 s%@VERSION@%$VERSION%g
15543 s%@ACLOCAL@%$ACLOCAL%g
15544 s%@AUTOCONF@%$AUTOCONF%g
15545 s%@AUTOMAKE@%$AUTOMAKE%g
15546 s%@AUTOHEADER@%$AUTOHEADER%g
15547 s%@MAKEINFO@%$MAKEINFO%g
15548 s%@install_sh@%$install_sh%g
15551 s%@AMTARFLAGS@%$AMTARFLAGS%g
15552 s%@SET_MAKE@%$SET_MAKE%g
15553 s%@top_builddir@%$top_builddir%g
15554 s%@ldap_subdir@%$ldap_subdir%g
15556 s%@RANLIB@%$RANLIB%g
15560 s%@DLLTOOL@%$DLLTOOL%g
15562 s%@OBJDUMP@%$OBJDUMP%g
15563 s%@LIBTOOL@%$LIBTOOL%g
15565 s%@SENDMAIL@%$SENDMAIL%g
15566 s%@EDITOR@%$EDITOR%g
15567 s%@FINGER@%$FINGER%g
15568 s%@PERLBIN@%$PERLBIN%g
15570 s%@EXEEXT@%$EXEEXT%g
15571 s%@OBJEXT@%$OBJEXT%g
15572 s%@OL_MKDEP@%$OL_MKDEP%g
15573 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15575 s%@LIBOBJS@%$LIBOBJS%g
15576 s%@LIBSRCS@%$LIBSRCS%g
15578 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15579 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15580 s%@DYN_EXT@%$DYN_EXT%g
15581 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15582 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15583 s%@BUILD_BDB2@%$BUILD_BDB2%g
15584 s%@BUILD_LDAP@%$BUILD_LDAP%g
15585 s%@BUILD_LDBM@%$BUILD_LDBM%g
15586 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15587 s%@BUILD_PERL@%$BUILD_PERL%g
15588 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15589 s%@BUILD_SHELL@%$BUILD_SHELL%g
15590 s%@BUILD_TCL@%$BUILD_TCL%g
15591 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15592 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15593 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15594 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15595 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15596 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15597 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15598 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15599 s%@LDAP_LIBS@%$LDAP_LIBS%g
15600 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15601 s%@LDIF_LIBS@%$LDIF_LIBS%g
15602 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15603 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15604 s%@LDBM_LIBS@%$LDBM_LIBS%g
15605 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15606 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15607 s%@WRAP_LIBS@%$WRAP_LIBS%g
15608 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15609 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15610 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15611 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15612 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15613 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15614 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15615 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15616 s%@KRB4_LIBS@%$KRB4_LIBS%g
15617 s%@KRB5_LIBS@%$KRB5_LIBS%g
15618 s%@READLINE_LIBS@%$READLINE_LIBS%g
15619 s%@SASL_LIBS@%$SASL_LIBS%g
15620 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15621 s%@TLS_LIBS@%$TLS_LIBS%g
15622 s%@MODULES_LIBS@%$MODULES_LIBS%g
15627 cat >> $CONFIG_STATUS <<\EOF
15629 # Split the substitutions into bite-sized pieces for seds with
15630 # small command number limits, like on Digital OSF/1 and HP-UX.
15631 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15632 ac_file=1 # Number of current file.
15633 ac_beg=1 # First line for current file.
15634 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15637 while $ac_more_lines; do
15638 if test $ac_beg -gt 1; then
15639 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15641 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15643 if test ! -s conftest.s$ac_file; then
15644 ac_more_lines=false
15645 rm -f conftest.s$ac_file
15647 if test -z "$ac_sed_cmds"; then
15648 ac_sed_cmds="sed -f conftest.s$ac_file"
15650 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15652 ac_file=`expr $ac_file + 1`
15654 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15657 if test -z "$ac_sed_cmds"; then
15662 cat >> $CONFIG_STATUS <<EOF
15664 CONFIG_FILES=\${CONFIG_FILES-"\
15665 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15666 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15667 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15668 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15669 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15670 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15671 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15672 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15673 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15674 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15675 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15676 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15677 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15678 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15679 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15680 include/Makefile:build/top.mk:include/Makefile.in \
15681 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15682 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15683 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15684 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15685 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15686 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15687 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15688 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15689 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15690 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15691 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15692 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15693 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15694 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15695 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15696 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15697 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15698 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15699 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15700 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15701 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15702 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15703 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15704 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15705 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15706 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15709 cat >> $CONFIG_STATUS <<\EOF
15710 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15711 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15713 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15714 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15715 *) ac_file_in="${ac_file}.in" ;;
15718 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15720 # Remove last slash and all that follows it. Not all systems have dirname.
15721 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15722 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15723 # The file is in a subdirectory.
15724 test ! -d "$ac_dir" && mkdir "$ac_dir"
15725 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15726 # A "../" for each directory in $ac_dir_suffix.
15727 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15729 ac_dir_suffix= ac_dots=
15732 case "$ac_given_srcdir" in
15734 if test -z "$ac_dots"; then top_srcdir=.
15735 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15736 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15737 *) # Relative path.
15738 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15739 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15742 case "$ac_given_INSTALL" in
15743 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15744 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15747 echo creating "$ac_file"
15749 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15751 *Makefile*) ac_comsub="1i\\
15752 # $configure_input" ;;
15756 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15758 s%@configure_input@%$configure_input%g
15759 s%@srcdir@%$srcdir%g
15760 s%@top_srcdir@%$top_srcdir%g
15761 s%@INSTALL@%$INSTALL%g
15762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15769 # ac_d sets the value in "#define NAME VALUE" lines.
15770 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15771 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15775 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15776 ac_uB='\([ ]\)%\1#\2define\3'
15779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15780 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15781 ac_eB='$%\1#\2define\3'
15785 if test "${CONFIG_HEADERS+set}" != set; then
15787 cat >> $CONFIG_STATUS <<EOF
15788 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
15790 cat >> $CONFIG_STATUS <<\EOF
15792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15795 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15796 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15797 *) ac_file_in="${ac_file}.in" ;;
15800 echo creating $ac_file
15802 rm -f conftest.frag conftest.in conftest.out
15803 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15804 cat $ac_file_inputs > conftest.in
15808 # Transform confdefs.h into a sed script conftest.vals that substitutes
15809 # the proper values into config.h.in to produce config.h. And first:
15810 # Protect against being on the right side of a sed subst in config.status.
15811 # Protect against being in an unquoted here document in config.status.
15812 rm -f conftest.vals
15813 cat > conftest.hdr <<\EOF
15816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15820 sed -n -f conftest.hdr confdefs.h > conftest.vals
15823 # This sed command replaces #undef with comments. This is necessary, for
15824 # example, in the case of _POSIX_SOURCE, which is predefined and required
15825 # on some systems where configure will not decide to define it.
15826 cat >> conftest.vals <<\EOF
15827 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15830 # Break up conftest.vals because some shells have a limit on
15831 # the size of here documents, and old seds have small limits too.
15833 rm -f conftest.tail
15836 ac_lines=`grep -c . conftest.vals`
15837 # grep -c gives empty output for an empty file on some AIX systems.
15838 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15839 # Write a limited-size here document to conftest.frag.
15840 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15841 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15843 sed -f conftest.frag conftest.in > conftest.out
15845 mv conftest.out conftest.in
15846 ' >> $CONFIG_STATUS
15847 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15848 rm -f conftest.vals
15849 mv conftest.tail conftest.vals
15851 rm -f conftest.vals
15853 cat >> $CONFIG_STATUS <<\EOF
15854 rm -f conftest.frag conftest.h
15855 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15856 cat conftest.in >> conftest.h
15858 if cmp -s $ac_file conftest.h 2>/dev/null; then
15859 echo "$ac_file is unchanged"
15862 # Remove last slash and all that follows it. Not all systems have dirname.
15863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15865 # The file is in a subdirectory.
15866 test ! -d "$ac_dir" && mkdir "$ac_dir"
15869 mv conftest.h $ac_file
15874 cat >> $CONFIG_STATUS <<EOF
15877 cat >> $CONFIG_STATUS <<\EOF
15880 echo Please \"make depend\" to build dependencies
15884 chmod +x $CONFIG_STATUS
15885 rm -fr confdefs* $ac_clean_files
15886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1