3 # from OpenLDAP: pkg/ldap/configure.in,v 1.339 2000/10/16 02:10:27 kurt 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 "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
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-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (no)"
42 --enable-ipv6 enable IPv6 support (auto)"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads with threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable Kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-rlookups enable reverse lookups (auto)"
82 --enable-aci enable per-object ACIs (no)"
84 --enable-wrappers enable tcp wrapper support (no)"
86 --enable-dynamic enable linking built binaries with dynamic libs (no)"
88 --enable-bdb enable Berkeley DB backend (no)"
90 --with-bdb-module module type (static)"
92 --enable-dnssrv enable dnssrv backend (no)"
94 --with-dnssrv-module module type (static)"
96 --enable-ldap enable ldap backend (no)"
98 --with-ldap-module module type (static)"
100 --enable-ldbm enable ldbm backend (yes)"
102 --with-ldbm-api with LDBM API (auto)"
104 --with-ldbm-module module type (static)"
106 --with-ldbm-type use LDBM type (auto)"
108 --enable-passwd enable passwd backend (no)"
110 --with-passwd-module module type (static)"
112 --enable-perl enable perl backend (no)"
114 --with-perl-module module type (static)"
116 --enable-shell enable shell backend (no)"
118 --with-shell-module module type (static)"
120 --enable-sql enable sql backend (no)"
122 --with-sql-module module type (static)"
124 --enable-tcl enable tcl backend (no)"
126 --with-tcl-module module type (static)"
128 SLURPD (Replication Daemon) Options:"
130 --enable-slurpd enable building slurpd (auto)"
132 Library Generation & Linking Options"
134 --enable-static[=PKGS] build static libraries [default=yes]"
136 --enable-shared[=PKGS] build shared libraries [default=yes]"
138 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
140 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
142 --disable-libtool-lock avoid locking (might break parallel builds)"
144 # Initialize some variables set by options.
145 # The variables have the same names as the options, with
146 # dashes changed to underlines.
148 cache_file=./config.cache
157 program_transform_name=s,x,x,
165 bindir='${exec_prefix}/bin'
166 sbindir='${exec_prefix}/sbin'
167 libexecdir='${exec_prefix}/libexec'
168 datadir='${prefix}/share'
169 sysconfdir='${prefix}/etc'
170 sharedstatedir='${prefix}/com'
171 localstatedir='${prefix}/var'
172 libdir='${exec_prefix}/lib'
173 includedir='${prefix}/include'
174 oldincludedir='/usr/include'
175 infodir='${prefix}/info'
176 mandir='${prefix}/man'
178 # Initialize some other variables.
181 SHELL=${CONFIG_SHELL-/bin/sh}
182 # Maximum number of lines to put in a shell here document.
189 # If the previous option needs an argument, assign it.
190 if test -n "$ac_prev"; then
191 eval "$ac_prev=\$ac_option"
197 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
201 # Accept the important Cygnus configure options, so we can diagnose typos.
205 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
208 bindir="$ac_optarg" ;;
210 -build | --build | --buil | --bui | --bu)
212 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
213 build="$ac_optarg" ;;
215 -cache-file | --cache-file | --cache-fil | --cache-fi \
216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217 ac_prev=cache_file ;;
218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
220 cache_file="$ac_optarg" ;;
222 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
224 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
226 datadir="$ac_optarg" ;;
228 -disable-* | --disable-*)
229 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
232 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
234 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}=no" ;;
237 -enable-* | --enable-*)
238 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
239 # Reject names that are not valid shell variable names.
240 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
241 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
243 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}='$ac_optarg'" ;;
250 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
251 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
252 | --exec | --exe | --ex)
253 ac_prev=exec_prefix ;;
254 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
255 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
256 | --exec=* | --exe=* | --ex=*)
257 exec_prefix="$ac_optarg" ;;
259 -gas | --gas | --ga | --g)
260 # Obsolete; use --with-gas.
263 -help | --help | --hel | --he)
264 # Omit some internal or obsolete options to make the list less imposing.
265 # This message is too long to be a string in the A/UX 3.1 sh.
267 Usage: configure [options] [host]
268 Options: [defaults in brackets after descriptions]
270 --cache-file=FILE cache test results in FILE
271 --help print this message
272 --no-create do not create output files
273 --quiet, --silent do not print \`checking...' messages
274 --version print the version of autoconf that created configure
275 Directory and file names:
276 --prefix=PREFIX install architecture-independent files in PREFIX
278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
280 --bindir=DIR user executables in DIR [EPREFIX/bin]
281 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
282 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
283 --datadir=DIR read-only architecture-independent data in DIR
285 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
286 --sharedstatedir=DIR modifiable architecture-independent data in DIR
288 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
289 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
290 --includedir=DIR C header files in DIR [PREFIX/include]
291 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
292 --infodir=DIR info documentation in DIR [PREFIX/info]
293 --mandir=DIR man documentation in DIR [PREFIX/man]
294 --srcdir=DIR find the sources in DIR [configure dir or ..]
295 --program-prefix=PREFIX prepend PREFIX to installed program names
296 --program-suffix=SUFFIX append SUFFIX to installed program names
297 --program-transform-name=PROGRAM
298 run sed PROGRAM on installed program names
302 --build=BUILD configure for building on BUILD [BUILD=HOST]
303 --host=HOST configure for HOST [guessed]
304 --target=TARGET configure for TARGET [TARGET=HOST]
305 Features and packages:
306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
310 --x-includes=DIR X include files are in DIR
311 --x-libraries=DIR X library files are in DIR
313 if test -n "$ac_help"; then
314 echo "--enable and --with options recognized:$ac_help"
318 -host | --host | --hos | --ho)
320 -host=* | --host=* | --hos=* | --ho=*)
323 -includedir | --includedir | --includedi | --included | --include \
324 | --includ | --inclu | --incl | --inc)
325 ac_prev=includedir ;;
326 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
327 | --includ=* | --inclu=* | --incl=* | --inc=*)
328 includedir="$ac_optarg" ;;
330 -infodir | --infodir | --infodi | --infod | --info | --inf)
332 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
333 infodir="$ac_optarg" ;;
335 -libdir | --libdir | --libdi | --libd)
337 -libdir=* | --libdir=* | --libdi=* | --libd=*)
338 libdir="$ac_optarg" ;;
340 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
341 | --libexe | --libex | --libe)
342 ac_prev=libexecdir ;;
343 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
344 | --libexe=* | --libex=* | --libe=*)
345 libexecdir="$ac_optarg" ;;
347 -localstatedir | --localstatedir | --localstatedi | --localstated \
348 | --localstate | --localstat | --localsta | --localst \
349 | --locals | --local | --loca | --loc | --lo)
350 ac_prev=localstatedir ;;
351 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
352 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
353 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
354 localstatedir="$ac_optarg" ;;
356 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
358 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
359 mandir="$ac_optarg" ;;
362 # Obsolete; use --without-fp.
365 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
369 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
370 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
373 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
374 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
375 | --oldin | --oldi | --old | --ol | --o)
376 ac_prev=oldincludedir ;;
377 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
378 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
379 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
380 oldincludedir="$ac_optarg" ;;
382 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
384 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
385 prefix="$ac_optarg" ;;
387 -program-prefix | --program-prefix | --program-prefi | --program-pref \
388 | --program-pre | --program-pr | --program-p)
389 ac_prev=program_prefix ;;
390 -program-prefix=* | --program-prefix=* | --program-prefi=* \
391 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
392 program_prefix="$ac_optarg" ;;
394 -program-suffix | --program-suffix | --program-suffi | --program-suff \
395 | --program-suf | --program-su | --program-s)
396 ac_prev=program_suffix ;;
397 -program-suffix=* | --program-suffix=* | --program-suffi=* \
398 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
399 program_suffix="$ac_optarg" ;;
401 -program-transform-name | --program-transform-name \
402 | --program-transform-nam | --program-transform-na \
403 | --program-transform-n | --program-transform- \
404 | --program-transform | --program-transfor \
405 | --program-transfo | --program-transf \
406 | --program-trans | --program-tran \
407 | --progr-tra | --program-tr | --program-t)
408 ac_prev=program_transform_name ;;
409 -program-transform-name=* | --program-transform-name=* \
410 | --program-transform-nam=* | --program-transform-na=* \
411 | --program-transform-n=* | --program-transform-=* \
412 | --program-transform=* | --program-transfor=* \
413 | --program-transfo=* | --program-transf=* \
414 | --program-trans=* | --program-tran=* \
415 | --progr-tra=* | --program-tr=* | --program-t=*)
416 program_transform_name="$ac_optarg" ;;
418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
419 | -silent | --silent | --silen | --sile | --sil)
422 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
424 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
426 sbindir="$ac_optarg" ;;
428 -sharedstatedir | --sharedstatedir | --sharedstatedi \
429 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
430 | --sharedst | --shareds | --shared | --share | --shar \
432 ac_prev=sharedstatedir ;;
433 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
434 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
435 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
437 sharedstatedir="$ac_optarg" ;;
439 -site | --site | --sit)
441 -site=* | --site=* | --sit=*)
444 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
446 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
447 srcdir="$ac_optarg" ;;
449 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
450 | --syscon | --sysco | --sysc | --sys | --sy)
451 ac_prev=sysconfdir ;;
452 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
453 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
454 sysconfdir="$ac_optarg" ;;
456 -target | --target | --targe | --targ | --tar | --ta | --t)
458 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
459 target="$ac_optarg" ;;
461 -v | -verbose | --verbose | --verbos | --verbo | --verb)
464 -version | --version | --versio | --versi | --vers)
465 echo "configure generated by autoconf version 2.13.1"
469 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
479 eval "with_${ac_package}='$ac_optarg'" ;;
481 -without-* | --without-*)
482 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
488 eval "with_${ac_package}=no" ;;
491 # Obsolete; use --with-x.
494 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
495 | --x-incl | --x-inc | --x-in | --x-i)
496 ac_prev=x_includes ;;
497 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
498 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
499 x_includes="$ac_optarg" ;;
501 -x-libraries | --x-libraries | --x-librarie | --x-librari \
502 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
503 ac_prev=x_libraries ;;
504 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
505 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
506 x_libraries="$ac_optarg" ;;
508 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
512 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
513 echo "configure: warning: $ac_option: invalid host type" 1>&2
515 if test "x$nonopt" != xNONE; then
516 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
524 if test -n "$ac_prev"; then
525 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
528 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
530 # File descriptor usage:
533 # 2 errors and warnings
534 # 3 some systems may open it to /dev/tty
535 # 4 used on the Kubota Titan
536 # 6 checking for... messages and results
537 # 5 compiler messages saved in config.log
538 if test "$silent" = yes; then
546 This file contains any messages produced by compilers while
547 running configure, to aid debugging if configure makes a mistake.
550 # Strip out --no-create and --no-recursion so they do not pile up.
551 # Also quote any args containing shell metacharacters.
556 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
557 | --no-cr | --no-c) ;;
558 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
559 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
560 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
561 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
562 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
567 # Only set these to C if already set. These must not be set unconditionally
568 # because not all systems understand e.g. LANG=C (notably SCO).
569 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
570 # Non-C LC_CTYPE values break the ctype check.
571 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
572 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
573 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
574 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
576 # confdefs.h avoids OS command line length limits that DEFS can exceed.
577 rm -rf conftest* confdefs.h
578 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
581 # A filename unique to this package, relative to the directory that
582 # configure is in, which we can look for to find out if srcdir is correct.
583 ac_unique_file=build/version.sh
585 # Find the source files, if location was not specified.
586 if test -z "$srcdir"; then
587 ac_srcdir_defaulted=yes
588 # Try the directory containing this script, then its parent.
590 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
591 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
593 if test ! -r $srcdir/$ac_unique_file; then
597 ac_srcdir_defaulted=no
599 if test ! -r $srcdir/$ac_unique_file; then
600 if test "$ac_srcdir_defaulted" = yes; then
601 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
603 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
606 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
608 # Prefer explicitly selected file to automatically selected ones.
609 if test -z "$CONFIG_SITE"; then
610 if test "x$prefix" != xNONE; then
611 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
613 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
616 for ac_site_file in $CONFIG_SITE; do
617 if test -r "$ac_site_file"; then
618 echo "loading site script $ac_site_file"
625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
626 ac_cpp='$CPP $CPPFLAGS'
627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
629 cross_compiling=$ac_cv_prog_cc_cross
633 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
634 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
635 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
642 ac_n= ac_c='\c' ac_t=
646 # set unset (borrowed from autoconf 2.14a)
647 if (unset FOO) >/dev/null 2>&1; then
653 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
656 for ac_dir in build $srcdir/build; do
657 if test -f $ac_dir/install-sh; then
659 ac_install_sh="$ac_aux_dir/install-sh -c"
661 elif test -f $ac_dir/install.sh; then
663 ac_install_sh="$ac_aux_dir/install.sh -c"
665 elif test -f $ac_dir/shtool; then
667 ac_install_sh="$ac_aux_dir/shtool install -c"
671 if test -z "$ac_aux_dir"; then
672 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
674 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
675 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
676 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
678 eval `$ac_aux_dir/version.sh`
679 if test -z "$OL_STRING"; then
680 { echo "configure: error: could not determine version" 1>&2; exit 1; }
683 echo "Configuring $OL_STRING ..."
686 echo $ac_n "checking host system type""... $ac_c" 1>&6
687 echo "configure:688: checking host system type" >&5
688 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
690 # Make sure we can run config.sub.
691 if $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 ac_cv_host_alias=$host
696 case "$ac_cv_host_alias" in
700 if ac_cv_host_alias=`$ac_config_guess`; then :
701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 *) ac_cv_host_alias=$nonopt ;;
707 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
708 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo $ac_n "(cached) $ac_c" 1>&6
715 echo "$ac_t""$ac_cv_host" 1>&6
718 host_alias=$ac_cv_host_alias
719 host_cpu=$ac_cv_host_cpu
720 host_vendor=$ac_cv_host_vendor
721 host_os=$ac_cv_host_os
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
729 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
731 # Make sure we can run config.sub.
732 if $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 ac_cv_target_alias=$target
737 case "$ac_cv_target_alias" in
741 ac_cv_target_alias=$host_alias ;;
743 *) ac_cv_target_alias=$nonopt ;;
747 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
748 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo $ac_n "(cached) $ac_c" 1>&6
755 echo "$ac_t""$ac_cv_target" 1>&6
758 target_alias=$ac_cv_target_alias
759 target_cpu=$ac_cv_target_cpu
760 target_vendor=$ac_cv_target_vendor
761 target_os=$ac_cv_target_os
767 echo $ac_n "checking build system type""... $ac_c" 1>&6
768 echo "configure:769: checking build system type" >&5
769 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
771 # Make sure we can run config.sub.
772 if $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
776 ac_cv_build_alias=$build
777 case "$ac_cv_build_alias" in
781 ac_cv_build_alias=$host_alias ;;
783 *) ac_cv_build_alias=$nonopt ;;
787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
788 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo $ac_n "(cached) $ac_c" 1>&6
795 echo "$ac_t""$ac_cv_build" 1>&6
798 build_alias=$ac_cv_build_alias
799 build_cpu=$ac_cv_build_cpu
800 build_vendor=$ac_cv_build_vendor
801 build_os=$ac_cv_build_os
807 # Do some error checking and defaulting for the host and target type.
809 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
812 # 1. You are not allowed to specify --host, --target, and nonopt at the
814 # 2. Host defaults to nonopt.
815 # 3. If nonopt is not specified, then host defaults to the current host,
816 # as determined by config.guess.
817 # 4. Target and build default to nonopt.
818 # 5. If nonopt is not specified, then target and build default to host.
820 # The aliases save the names the user supplied, while $host etc.
821 # will get canonicalized.
822 case $host---$target---$nonopt in
823 NONE---*---* | *---NONE---* | *---*---NONE) ;;
824 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
827 test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
830 program_prefix=${target_alias}-
833 # Find a good install program. We prefer a C program (faster),
834 # so one script is as good as another. But avoid the broken or
835 # incompatible versions:
836 # SysV /etc/install, /usr/sbin/install
837 # SunOS /usr/etc/install
840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843 # ./install, which can be erroneously created by make from ./install.sh.
844 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845 echo "configure:846: checking for a BSD compatible install" >&5
846 if test -z "$INSTALL"; then
847 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
851 for ac_dir in $PATH; do
852 # Account for people who put trailing slashes in PATH elements.
854 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
856 # OSF1 and SCO ODT 3.0 have their own names for install.
857 # Don't use installbsd from OSF since it installs stuff as root
859 for ac_prog in ginstall scoinst install; do
860 if test -f $ac_dir/$ac_prog; then
861 if test $ac_prog = install &&
862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # AIX install. It has an incompatible calling convention.
865 elif test $ac_prog = install &&
866 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # program-specific install script used by HP pwplus--don't use.
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
891 echo "$ac_t""$INSTALL" 1>&6
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
901 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
902 echo "configure:903: checking whether build environment is sane" >&5
905 echo timestamp > conftestfile
906 # Do `set' in a subshell so we don't clobber the current shell's
907 # arguments. Must try -L first in case configure is actually a
908 # symlink; some systems play weird games with the mod time of symlinks
909 # (eg FreeBSD returns the mod time of the symlink's containing
912 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
913 if test "$*" = "X"; then
915 set X `ls -t $srcdir/configure conftestfile`
917 if test "$*" != "X $srcdir/configure conftestfile" \
918 && test "$*" != "X conftestfile $srcdir/configure"; then
920 # If neither matched, then we have a broken ls. This can happen
921 # if, for instance, CONFIG_SHELL is bash and it inherits a
922 # broken ls alias from the environment. This has actually
923 # happened. Such a system could not be considered "sane".
924 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
925 alias in your environment" 1>&2; exit 1; }
928 test "$2" = conftestfile
934 { echo "configure: error: newly created file is older than distributed files!
935 Check your system clock" 1>&2; exit 1; }
938 echo "$ac_t""yes" 1>&6
939 if test "$program_transform_name" = s,x,x,; then
940 program_transform_name=
942 # Double any \ or $. echo might interpret backslashes.
943 cat <<\EOF_SED > conftestsed
944 s,\\,\\\\,g; s,\$,$$,g
946 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
949 test "$program_prefix" != NONE &&
950 program_transform_name="s,^,${program_prefix},;$program_transform_name"
951 # Use a double $ so make ignores it.
952 test "$program_suffix" != NONE &&
953 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
955 # sed with no file args requires a program.
956 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
958 for ac_prog in mawk gawk nawk awk
960 # Extract the first word of "$ac_prog", so it can be a program name with args.
961 set dummy $ac_prog; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$AWK"; then
968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_AWK="$ac_prog"
982 AWK="$ac_cv_prog_AWK"
983 if test -n "$AWK"; then
984 echo "$ac_t""$AWK" 1>&6
986 echo "$ac_t""no" 1>&6
989 test -n "$AWK" && break
992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5
994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
995 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftestmake <<\EOF
1000 @echo 'ac_maketemp="${MAKE}"'
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1004 if test -n "$ac_maketemp"; then
1005 eval ac_cv_prog_make_${ac_make}_set=yes
1007 eval ac_cv_prog_make_${ac_make}_set=no
1011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1016 SET_MAKE="MAKE=${MAKE-make}"
1025 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1026 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1031 missing_dir=`cd $ac_aux_dir && pwd`
1032 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working aclocal" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 ACLOCAL="$missing_dir/missing aclocal"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working autoconf" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOCONF="$missing_dir/missing autoconf"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working automake" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (automake --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOMAKE="$missing_dir/missing automake"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working autoheader" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1077 AUTOHEADER=autoheader
1078 echo "$ac_t""found" 1>&6
1080 AUTOHEADER="$missing_dir/missing autoheader"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working makeinfo" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 MAKEINFO="$missing_dir/missing makeinfo"
1094 echo "$ac_t""missing" 1>&6
1097 install_sh="$missing_dir/install-sh"
1098 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1100 for ac_prog in gnutar gtar tar
1102 # Extract the first word of "$ac_prog", so it can be a program name with args.
1103 set dummy $ac_prog; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$AMTAR"; then
1110 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_AMTAR="$ac_prog"
1124 AMTAR="$ac_cv_prog_AMTAR"
1125 if test -n "$AMTAR"; then
1126 echo "$ac_t""$AMTAR" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 test -n "$AMTAR" && break
1136 if test -n "$AMTAR"; then
1137 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1142 cat >> confdefs.h <<EOF
1143 #define OPENLDAP_PACKAGE "$PACKAGE"
1146 cat >> confdefs.h <<EOF
1147 #define OPENLDAP_VERSION "$VERSION"
1151 cat >> confdefs.h <<EOF
1152 #define LDAP_VENDOR_VERSION $OL_API_INC
1155 cat >> confdefs.h <<EOF
1156 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1159 cat >> confdefs.h <<EOF
1160 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1163 cat >> confdefs.h <<EOF
1164 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1168 OPENLDAP_LIBVERSION=$OL_API_LIB
1172 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1173 echo "configure:1174: checking configure arguments" >&5
1178 ldap_subdir="/openldap"
1180 # Check whether --with-subdir or --without-subdir was given.
1181 if test "${with_subdir+set}" = set; then
1182 withval="$with_subdir"
1189 ldap_subdir="$withval"
1192 ldap_subdir="/$withval"
1199 # OpenLDAP --enable-debug
1200 # Check whether --enable-debug or --disable-debug was given.
1201 if test "${enable_debug+set}" = set; then
1202 enableval="$enable_debug"
1205 for ol_val in auto yes no ; do
1206 if test "$enableval" = "$ol_val" ; then
1210 if test "$ol_arg" = "invalid" ; then
1211 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1213 ol_enable_debug="$ol_arg"
1216 ol_enable_debug="yes"
1218 # end --enable-debug
1219 # OpenLDAP --enable-syslog
1220 # Check whether --enable-syslog or --disable-syslog was given.
1221 if test "${enable_syslog+set}" = set; then
1222 enableval="$enable_syslog"
1225 for ol_val in auto yes no ; do
1226 if test "$enableval" = "$ol_val" ; then
1230 if test "$ol_arg" = "invalid" ; then
1231 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1233 ol_enable_syslog="$ol_arg"
1236 ol_enable_syslog="auto"
1238 # end --enable-syslog
1239 # OpenLDAP --enable-proctitle
1240 # Check whether --enable-proctitle or --disable-proctitle was given.
1241 if test "${enable_proctitle+set}" = set; then
1242 enableval="$enable_proctitle"
1245 for ol_val in auto yes no ; do
1246 if test "$enableval" = "$ol_val" ; then
1250 if test "$ol_arg" = "invalid" ; then
1251 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1253 ol_enable_proctitle="$ol_arg"
1256 ol_enable_proctitle="yes"
1258 # end --enable-proctitle
1259 # OpenLDAP --enable-cache
1260 # Check whether --enable-cache or --disable-cache was given.
1261 if test "${enable_cache+set}" = set; then
1262 enableval="$enable_cache"
1265 for ol_val in auto yes no ; do
1266 if test "$enableval" = "$ol_val" ; then
1270 if test "$ol_arg" = "invalid" ; then
1271 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1273 ol_enable_cache="$ol_arg"
1276 ol_enable_cache="yes"
1278 # end --enable-cache
1279 # OpenLDAP --enable-referrals
1280 # Check whether --enable-referrals or --disable-referrals was given.
1281 if test "${enable_referrals+set}" = set; then
1282 enableval="$enable_referrals"
1285 for ol_val in auto yes no ; do
1286 if test "$enableval" = "$ol_val" ; then
1290 if test "$ol_arg" = "invalid" ; then
1291 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1293 ol_enable_referrals="$ol_arg"
1296 ol_enable_referrals="yes"
1298 # end --enable-referrals
1299 # OpenLDAP --enable-kbind
1300 # Check whether --enable-kbind or --disable-kbind was given.
1301 if test "${enable_kbind+set}" = set; then
1302 enableval="$enable_kbind"
1305 for ol_val in auto yes no ; do
1306 if test "$enableval" = "$ol_val" ; then
1310 if test "$ol_arg" = "invalid" ; then
1311 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1313 ol_enable_kbind="$ol_arg"
1316 ol_enable_kbind="no"
1318 # end --enable-kbind
1319 # OpenLDAP --enable-ipv6
1320 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1321 if test "${enable_ipv6+set}" = set; then
1322 enableval="$enable_ipv6"
1325 for ol_val in auto yes no ; do
1326 if test "$enableval" = "$ol_val" ; then
1330 if test "$ol_arg" = "invalid" ; then
1331 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1333 ol_enable_ipv6="$ol_arg"
1336 ol_enable_ipv6="auto"
1339 # OpenLDAP --enable-local
1340 # Check whether --enable-local or --disable-local was given.
1341 if test "${enable_local+set}" = set; then
1342 enableval="$enable_local"
1345 for ol_val in auto yes no ; do
1346 if test "$enableval" = "$ol_val" ; then
1350 if test "$ol_arg" = "invalid" ; then
1351 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1353 ol_enable_local="$ol_arg"
1356 ol_enable_local="auto"
1358 # end --enable-local
1359 # OpenLDAP --enable-x_compile
1360 # Check whether --enable-x_compile or --disable-x_compile was given.
1361 if test "${enable_x_compile+set}" = set; then
1362 enableval="$enable_x_compile"
1365 for ol_val in yes no ; do
1366 if test "$enableval" = "$ol_val" ; then
1370 if test "$ol_arg" = "invalid" ; then
1371 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1373 ol_enable_x_compile="$ol_arg"
1376 ol_enable_x_compile="no"
1378 # end --enable-x_compile
1381 # OpenLDAP --with-cyrus_sasl
1382 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1383 if test "${with_cyrus_sasl+set}" = set; then
1384 withval="$with_cyrus_sasl"
1387 for ol_val in auto yes no ; do
1388 if test "$withval" = "$ol_val" ; then
1392 if test "$ol_arg" = "invalid" ; then
1393 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1395 ol_with_cyrus_sasl="$ol_arg"
1398 ol_with_cyrus_sasl="auto"
1400 # end --with-cyrus_sasl
1402 # OpenLDAP --with-fetch
1403 # Check whether --with-fetch or --without-fetch was given.
1404 if test "${with_fetch+set}" = set; then
1405 withval="$with_fetch"
1408 for ol_val in auto yes no ; do
1409 if test "$withval" = "$ol_val" ; then
1413 if test "$ol_arg" = "invalid" ; then
1414 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1416 ol_with_fetch="$ol_arg"
1419 ol_with_fetch="auto"
1423 # OpenLDAP --with-kerberos
1424 # Check whether --with-kerberos or --without-kerberos was given.
1425 if test "${with_kerberos+set}" = set; then
1426 withval="$with_kerberos"
1429 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1430 if test "$withval" = "$ol_val" ; then
1434 if test "$ol_arg" = "invalid" ; then
1435 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1437 ol_with_kerberos="$ol_arg"
1440 ol_with_kerberos="auto"
1442 # end --with-kerberos
1444 # OpenLDAP --with-readline
1445 # Check whether --with-readline or --without-readline was given.
1446 if test "${with_readline+set}" = set; then
1447 withval="$with_readline"
1450 for ol_val in auto yes no ; do
1451 if test "$withval" = "$ol_val" ; then
1455 if test "$ol_arg" = "invalid" ; then
1456 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1458 ol_with_readline="$ol_arg"
1461 ol_with_readline="auto"
1463 # end --with-readline
1465 # OpenLDAP --with-threads
1466 # Check whether --with-threads or --without-threads was given.
1467 if test "${with_threads+set}" = set; then
1468 withval="$with_threads"
1471 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1472 if test "$withval" = "$ol_val" ; then
1476 if test "$ol_arg" = "invalid" ; then
1477 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1479 ol_with_threads="$ol_arg"
1482 ol_with_threads="auto"
1484 # end --with-threads
1486 # OpenLDAP --with-tls
1487 # Check whether --with-tls or --without-tls was given.
1488 if test "${with_tls+set}" = set; then
1492 for ol_val in auto ssleay openssl yes no ; do
1493 if test "$withval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1500 ol_with_tls="$ol_arg"
1507 # OpenLDAP --with-yielding_select
1508 # Check whether --with-yielding_select or --without-yielding_select was given.
1509 if test "${with_yielding_select+set}" = set; then
1510 withval="$with_yielding_select"
1513 for ol_val in auto yes no manual ; do
1514 if test "$withval" = "$ol_val" ; then
1518 if test "$ol_arg" = "invalid" ; then
1519 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1521 ol_with_yielding_select="$ol_arg"
1524 ol_with_yielding_select="auto"
1526 # end --with-yielding_select
1530 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1531 if test "${with_xxslapdoptions+set}" = set; then
1532 withval="$with_xxslapdoptions"
1536 # OpenLDAP --enable-slapd
1537 # Check whether --enable-slapd or --disable-slapd was given.
1538 if test "${enable_slapd+set}" = set; then
1539 enableval="$enable_slapd"
1542 for ol_val in auto yes no ; do
1543 if test "$enableval" = "$ol_val" ; then
1547 if test "$ol_arg" = "invalid" ; then
1548 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1550 ol_enable_slapd="$ol_arg"
1553 ol_enable_slapd="yes"
1555 # end --enable-slapd
1556 # OpenLDAP --enable-cleartext
1557 # Check whether --enable-cleartext or --disable-cleartext was given.
1558 if test "${enable_cleartext+set}" = set; then
1559 enableval="$enable_cleartext"
1562 for ol_val in auto yes no ; do
1563 if test "$enableval" = "$ol_val" ; then
1567 if test "$ol_arg" = "invalid" ; then
1568 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1570 ol_enable_cleartext="$ol_arg"
1573 ol_enable_cleartext="yes"
1575 # end --enable-cleartext
1576 # OpenLDAP --enable-crypt
1577 # Check whether --enable-crypt or --disable-crypt was given.
1578 if test "${enable_crypt+set}" = set; then
1579 enableval="$enable_crypt"
1582 for ol_val in auto yes no ; do
1583 if test "$enableval" = "$ol_val" ; then
1587 if test "$ol_arg" = "invalid" ; then
1588 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1590 ol_enable_crypt="$ol_arg"
1593 ol_enable_crypt="auto"
1595 # end --enable-crypt
1596 # OpenLDAP --enable-kpasswd
1597 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1598 if test "${enable_kpasswd+set}" = set; then
1599 enableval="$enable_kpasswd"
1602 for ol_val in auto yes no ; do
1603 if test "$enableval" = "$ol_val" ; then
1607 if test "$ol_arg" = "invalid" ; then
1608 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1610 ol_enable_kpasswd="$ol_arg"
1613 ol_enable_kpasswd="no"
1615 # end --enable-kpasswd
1616 # OpenLDAP --enable-spasswd
1617 # Check whether --enable-spasswd or --disable-spasswd was given.
1618 if test "${enable_spasswd+set}" = set; then
1619 enableval="$enable_spasswd"
1622 for ol_val in auto yes no ; do
1623 if test "$enableval" = "$ol_val" ; then
1627 if test "$ol_arg" = "invalid" ; then
1628 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1630 ol_enable_spasswd="$ol_arg"
1633 ol_enable_spasswd="no"
1635 # end --enable-spasswd
1636 # OpenLDAP --enable-modules
1637 # Check whether --enable-modules or --disable-modules was given.
1638 if test "${enable_modules+set}" = set; then
1639 enableval="$enable_modules"
1642 for ol_val in auto yes no ; do
1643 if test "$enableval" = "$ol_val" ; then
1647 if test "$ol_arg" = "invalid" ; then
1648 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1650 ol_enable_modules="$ol_arg"
1653 ol_enable_modules="no"
1655 # end --enable-modules
1656 # OpenLDAP --enable-multimaster
1657 # Check whether --enable-multimaster or --disable-multimaster was given.
1658 if test "${enable_multimaster+set}" = set; then
1659 enableval="$enable_multimaster"
1662 for ol_val in auto yes no ; do
1663 if test "$enableval" = "$ol_val" ; then
1667 if test "$ol_arg" = "invalid" ; then
1668 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1670 ol_enable_multimaster="$ol_arg"
1673 ol_enable_multimaster="no"
1675 # end --enable-multimaster
1676 # OpenLDAP --enable-phonetic
1677 # Check whether --enable-phonetic or --disable-phonetic was given.
1678 if test "${enable_phonetic+set}" = set; then
1679 enableval="$enable_phonetic"
1682 for ol_val in auto yes no ; do
1683 if test "$enableval" = "$ol_val" ; then
1687 if test "$ol_arg" = "invalid" ; then
1688 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1690 ol_enable_phonetic="$ol_arg"
1693 ol_enable_phonetic="no"
1695 # end --enable-phonetic
1696 # OpenLDAP --enable-rlookups
1697 # Check whether --enable-rlookups or --disable-rlookups was given.
1698 if test "${enable_rlookups+set}" = set; then
1699 enableval="$enable_rlookups"
1702 for ol_val in auto yes no ; do
1703 if test "$enableval" = "$ol_val" ; then
1707 if test "$ol_arg" = "invalid" ; then
1708 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1710 ol_enable_rlookups="$ol_arg"
1713 ol_enable_rlookups="auto"
1715 # end --enable-rlookups
1716 # OpenLDAP --enable-aci
1717 # Check whether --enable-aci or --disable-aci was given.
1718 if test "${enable_aci+set}" = set; then
1719 enableval="$enable_aci"
1722 for ol_val in auto yes no ; do
1723 if test "$enableval" = "$ol_val" ; then
1727 if test "$ol_arg" = "invalid" ; then
1728 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1730 ol_enable_aci="$ol_arg"
1736 # OpenLDAP --enable-wrappers
1737 # Check whether --enable-wrappers or --disable-wrappers was given.
1738 if test "${enable_wrappers+set}" = set; then
1739 enableval="$enable_wrappers"
1742 for ol_val in auto yes no ; do
1743 if test "$enableval" = "$ol_val" ; then
1747 if test "$ol_arg" = "invalid" ; then
1748 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1750 ol_enable_wrappers="$ol_arg"
1753 ol_enable_wrappers="no"
1755 # end --enable-wrappers
1756 # OpenLDAP --enable-dynamic
1757 # Check whether --enable-dynamic or --disable-dynamic was given.
1758 if test "${enable_dynamic+set}" = set; then
1759 enableval="$enable_dynamic"
1762 for ol_val in auto yes no ; do
1763 if test "$enableval" = "$ol_val" ; then
1767 if test "$ol_arg" = "invalid" ; then
1768 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1770 ol_enable_dynamic="$ol_arg"
1773 ol_enable_dynamic="no"
1775 # end --enable-dynamic
1777 # OpenLDAP --enable-bdb
1778 # Check whether --enable-bdb or --disable-bdb was given.
1779 if test "${enable_bdb+set}" = set; then
1780 enableval="$enable_bdb"
1783 for ol_val in auto yes no ; do
1784 if test "$enableval" = "$ol_val" ; then
1788 if test "$ol_arg" = "invalid" ; then
1789 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1791 ol_enable_bdb="$ol_arg"
1797 # OpenLDAP --with-bdb_module
1798 # Check whether --with-bdb_module or --without-bdb_module was given.
1799 if test "${with_bdb_module+set}" = set; then
1800 withval="$with_bdb_module"
1803 for ol_val in static dynamic ; do
1804 if test "$withval" = "$ol_val" ; then
1808 if test "$ol_arg" = "invalid" ; then
1809 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1811 ol_with_bdb_module="$ol_arg"
1814 ol_with_bdb_module="static"
1816 # end --with-bdb_module
1818 # OpenLDAP --enable-dnssrv
1819 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1820 if test "${enable_dnssrv+set}" = set; then
1821 enableval="$enable_dnssrv"
1824 for ol_val in auto yes no ; do
1825 if test "$enableval" = "$ol_val" ; then
1829 if test "$ol_arg" = "invalid" ; then
1830 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1832 ol_enable_dnssrv="$ol_arg"
1835 ol_enable_dnssrv="no"
1837 # end --enable-dnssrv
1838 # OpenLDAP --with-dnssrv_module
1839 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1840 if test "${with_dnssrv_module+set}" = set; then
1841 withval="$with_dnssrv_module"
1844 for ol_val in static dynamic ; do
1845 if test "$withval" = "$ol_val" ; then
1849 if test "$ol_arg" = "invalid" ; then
1850 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1852 ol_with_dnssrv_module="$ol_arg"
1855 ol_with_dnssrv_module="static"
1857 # end --with-dnssrv_module
1859 # OpenLDAP --enable-ldap
1860 # Check whether --enable-ldap or --disable-ldap was given.
1861 if test "${enable_ldap+set}" = set; then
1862 enableval="$enable_ldap"
1865 for ol_val in auto yes no ; do
1866 if test "$enableval" = "$ol_val" ; then
1870 if test "$ol_arg" = "invalid" ; then
1871 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1873 ol_enable_ldap="$ol_arg"
1879 # OpenLDAP --with-ldap_module
1880 # Check whether --with-ldap_module or --without-ldap_module was given.
1881 if test "${with_ldap_module+set}" = set; then
1882 withval="$with_ldap_module"
1885 for ol_val in static dynamic ; do
1886 if test "$withval" = "$ol_val" ; then
1890 if test "$ol_arg" = "invalid" ; then
1891 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1893 ol_with_ldap_module="$ol_arg"
1896 ol_with_ldap_module="static"
1898 # end --with-ldap_module
1900 # OpenLDAP --enable-ldbm
1901 # Check whether --enable-ldbm or --disable-ldbm was given.
1902 if test "${enable_ldbm+set}" = set; then
1903 enableval="$enable_ldbm"
1906 for ol_val in auto yes no ; do
1907 if test "$enableval" = "$ol_val" ; then
1911 if test "$ol_arg" = "invalid" ; then
1912 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1914 ol_enable_ldbm="$ol_arg"
1917 ol_enable_ldbm="yes"
1920 # OpenLDAP --with-ldbm_api
1921 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1922 if test "${with_ldbm_api+set}" = set; then
1923 withval="$with_ldbm_api"
1926 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1927 if test "$withval" = "$ol_val" ; then
1931 if test "$ol_arg" = "invalid" ; then
1932 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1934 ol_with_ldbm_api="$ol_arg"
1937 ol_with_ldbm_api="auto"
1939 # end --with-ldbm_api
1941 # OpenLDAP --with-ldbm_module
1942 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1943 if test "${with_ldbm_module+set}" = set; then
1944 withval="$with_ldbm_module"
1947 for ol_val in static dynamic ; do
1948 if test "$withval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1955 ol_with_ldbm_module="$ol_arg"
1958 ol_with_ldbm_module="static"
1960 # end --with-ldbm_module
1962 # OpenLDAP --with-ldbm_type
1963 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1964 if test "${with_ldbm_type+set}" = set; then
1965 withval="$with_ldbm_type"
1968 for ol_val in auto btree hash ; do
1969 if test "$withval" = "$ol_val" ; then
1973 if test "$ol_arg" = "invalid" ; then
1974 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1976 ol_with_ldbm_type="$ol_arg"
1979 ol_with_ldbm_type="auto"
1981 # end --with-ldbm_type
1983 # OpenLDAP --enable-passwd
1984 # Check whether --enable-passwd or --disable-passwd was given.
1985 if test "${enable_passwd+set}" = set; then
1986 enableval="$enable_passwd"
1989 for ol_val in auto yes no ; do
1990 if test "$enableval" = "$ol_val" ; then
1994 if test "$ol_arg" = "invalid" ; then
1995 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1997 ol_enable_passwd="$ol_arg"
2000 ol_enable_passwd="no"
2002 # end --enable-passwd
2003 # OpenLDAP --with-passwd_module
2004 # Check whether --with-passwd_module or --without-passwd_module was given.
2005 if test "${with_passwd_module+set}" = set; then
2006 withval="$with_passwd_module"
2009 for ol_val in static dynamic ; do
2010 if test "$withval" = "$ol_val" ; then
2014 if test "$ol_arg" = "invalid" ; then
2015 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2017 ol_with_passwd_module="$ol_arg"
2020 ol_with_passwd_module="static"
2022 # end --with-passwd_module
2024 # OpenLDAP --enable-perl
2025 # Check whether --enable-perl or --disable-perl was given.
2026 if test "${enable_perl+set}" = set; then
2027 enableval="$enable_perl"
2030 for ol_val in auto yes no ; do
2031 if test "$enableval" = "$ol_val" ; then
2035 if test "$ol_arg" = "invalid" ; then
2036 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2038 ol_enable_perl="$ol_arg"
2044 # OpenLDAP --with-perl_module
2045 # Check whether --with-perl_module or --without-perl_module was given.
2046 if test "${with_perl_module+set}" = set; then
2047 withval="$with_perl_module"
2050 for ol_val in static dynamic ; do
2051 if test "$withval" = "$ol_val" ; then
2055 if test "$ol_arg" = "invalid" ; then
2056 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2058 ol_with_perl_module="$ol_arg"
2061 ol_with_perl_module="static"
2063 # end --with-perl_module
2065 # OpenLDAP --enable-shell
2066 # Check whether --enable-shell or --disable-shell was given.
2067 if test "${enable_shell+set}" = set; then
2068 enableval="$enable_shell"
2071 for ol_val in auto yes no ; do
2072 if test "$enableval" = "$ol_val" ; then
2076 if test "$ol_arg" = "invalid" ; then
2077 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2079 ol_enable_shell="$ol_arg"
2082 ol_enable_shell="no"
2084 # end --enable-shell
2085 # OpenLDAP --with-shell_module
2086 # Check whether --with-shell_module or --without-shell_module was given.
2087 if test "${with_shell_module+set}" = set; then
2088 withval="$with_shell_module"
2091 for ol_val in static dynamic ; do
2092 if test "$withval" = "$ol_val" ; then
2096 if test "$ol_arg" = "invalid" ; then
2097 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2099 ol_with_shell_module="$ol_arg"
2102 ol_with_shell_module="static"
2104 # end --with-shell_module
2106 # OpenLDAP --enable-sql
2107 # Check whether --enable-sql or --disable-sql was given.
2108 if test "${enable_sql+set}" = set; then
2109 enableval="$enable_sql"
2112 for ol_val in auto yes no ; do
2113 if test "$enableval" = "$ol_val" ; then
2117 if test "$ol_arg" = "invalid" ; then
2118 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2120 ol_enable_sql="$ol_arg"
2126 # OpenLDAP --with-sql_module
2127 # Check whether --with-sql_module or --without-sql_module was given.
2128 if test "${with_sql_module+set}" = set; then
2129 withval="$with_sql_module"
2132 for ol_val in static dynamic ; do
2133 if test "$withval" = "$ol_val" ; then
2137 if test "$ol_arg" = "invalid" ; then
2138 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2140 ol_with_sql_module="$ol_arg"
2143 ol_with_sql_module="static"
2145 # end --with-sql_module
2147 # OpenLDAP --enable-tcl
2148 # Check whether --enable-tcl or --disable-tcl was given.
2149 if test "${enable_tcl+set}" = set; then
2150 enableval="$enable_tcl"
2153 for ol_val in auto yes no ; do
2154 if test "$enableval" = "$ol_val" ; then
2158 if test "$ol_arg" = "invalid" ; then
2159 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2161 ol_enable_tcl="$ol_arg"
2167 # OpenLDAP --with-tcl_module
2168 # Check whether --with-tcl_module or --without-tcl_module was given.
2169 if test "${with_tcl_module+set}" = set; then
2170 withval="$with_tcl_module"
2173 for ol_val in static dynamic ; do
2174 if test "$withval" = "$ol_val" ; then
2178 if test "$ol_arg" = "invalid" ; then
2179 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2181 ol_with_tcl_module="$ol_arg"
2184 ol_with_tcl_module="static"
2186 # end --with-tcl_module
2189 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2190 if test "${with_xxslurpdoptions+set}" = set; then
2191 withval="$with_xxslurpdoptions"
2195 # OpenLDAP --enable-slurpd
2196 # Check whether --enable-slurpd or --disable-slurpd was given.
2197 if test "${enable_slurpd+set}" = set; then
2198 enableval="$enable_slurpd"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2209 ol_enable_slurpd="$ol_arg"
2212 ol_enable_slurpd="auto"
2214 # end --enable-slurpd
2216 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2217 if test "${with_xxliboptions+set}" = set; then
2218 withval="$with_xxliboptions"
2222 # Check whether --enable-static or --disable-static was given.
2223 if test "${enable_static+set}" = set; then
2224 enableval="$enable_static"
2225 p=${PACKAGE-default}
2226 case "$enableval" in
2227 yes) enable_static=yes ;;
2228 no) enable_static=no ;;
2231 # Look at the argument we got. We use all the common list separators.
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2233 for pkg in $enableval; do
2234 if test "X$pkg" = "X$p"; then
2245 # Check whether --enable-shared or --disable-shared was given.
2246 if test "${enable_shared+set}" = set; then
2247 enableval="$enable_shared"
2248 p=${PACKAGE-default}
2249 case "$enableval" in
2250 yes) enable_shared=yes ;;
2251 no) enable_shared=no ;;
2254 # Look at the argument we got. We use all the common list separators.
2255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2256 for pkg in $enableval; do
2257 if test "X$pkg" = "X$p"; then
2271 if test $ol_enable_slapd = no ; then
2272 if test $ol_enable_bdb = yes ; then
2273 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2275 if test $ol_enable_dnssrv = yes ; then
2276 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2278 if test $ol_enable_ldap = yes ; then
2279 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2281 if test $ol_enable_ldbm = yes ; then
2282 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2284 if test $ol_enable_passwd = yes ; then
2285 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2287 if test $ol_enable_perl = yes ; then
2288 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2290 if test $ol_enable_shell = yes ; then
2291 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2293 if test $ol_enable_tcl = yes ; then
2294 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2296 if test $ol_enable_sql = yes ; then
2297 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2299 if test $ol_enable_modules = yes ; then
2300 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2302 if test $ol_enable_multimaster = yes ; then
2303 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2305 if test $ol_enable_wrappers = yes ; then
2306 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2308 if test $ol_enable_phonetic = yes ; then
2309 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2311 if test $ol_enable_rlookups = yes ; then
2312 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2314 if test $ol_enable_aci = yes ; then
2315 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2317 if test $ol_with_ldbm_api != auto ; then
2318 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2320 if test $ol_with_ldbm_type != auto ; then
2321 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2323 if test $ol_with_bdb_module != static ; then
2324 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2326 if test $ol_with_dnssrv_module != static ; then
2327 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2329 if test $ol_with_ldap_module != static ; then
2330 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2332 if test $ol_with_ldbm_module != static ; then
2333 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2335 if test $ol_with_passwd_module != static ; then
2336 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2338 if test $ol_with_perl_module != static ; then
2339 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2341 if test $ol_with_shell_module != static ; then
2342 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2344 if test $ol_with_tcl_module != static ; then
2345 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2347 if test $ol_with_sql_module != static ; then
2348 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2350 if test $ol_enable_slurpd = yes ; then
2351 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2354 # force settings to no
2365 ol_enable_modules=no
2366 ol_enable_multimaster=no
2367 ol_enable_phonetic=no
2368 ol_enable_rlookups=no
2370 ol_enable_wrappers=no
2371 ol_enable_dynamic=no
2374 ol_with_ldbm_type=no
2376 ol_with_bdb_module=static
2377 ol_with_dnssrv_module=static
2378 ol_with_ldap_module=static
2379 ol_with_ldbm_module=static
2380 ol_with_passwd_module=static
2381 ol_with_perl_module=static
2382 ol_with_shell_module=static
2383 ol_with_tcl_module=static
2384 ol_with_sql_module=static
2388 elif test $ol_enable_ldbm = no ; then
2390 if test $ol_with_ldbm_api != auto ; then
2391 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2394 if test $ol_with_ldbm_type != auto ; then
2395 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2398 if test $ol_with_ldbm_module != static ; then
2399 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2402 if test $ol_enable_modules != yes -a \
2403 $ol_enable_bdb = no -a \
2404 $ol_enable_dnssrv = no -a \
2405 $ol_enable_ldap = no -a \
2406 $ol_enable_passwd = no -a \
2407 $ol_enable_perl = no -a \
2408 $ol_enable_shell = no -a \
2409 $ol_enable_sql = no -a \
2410 $ol_enable_tcl = no ; then
2411 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2415 ol_with_ldbm_type=no
2416 ol_with_ldbm_module=static
2419 if test $ol_with_ldbm_api = gdbm -a \
2420 $ol_with_ldbm_type = btree ; then
2421 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2423 if test $ol_with_ldbm_api = mdbm -a \
2424 $ol_with_ldbm_type = btree ; then
2425 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2427 if test $ol_with_ldbm_api = ndbm -a \
2428 $ol_with_ldbm_type = btree ; then
2429 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2433 if test $ol_enable_slurpd = yes ; then
2434 if test $ol_with_threads = no ; then
2435 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2439 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2440 if test $ol_with_kerberos = no ; then
2441 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2443 ol_with_kerberos=yes
2444 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2445 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2446 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2451 if test $ol_enable_spasswd = yes ; then
2452 if test $ol_with_cyrus_sasl = no ; then
2453 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2455 ol_with_cyrus_sasl=yes
2458 echo "$ac_t""done" 1>&6
2484 BUILD_BDB_DYNAMIC=static
2485 BUILD_DNSSRV_DYNAMIC=static
2486 BUILD_LDAP_DYNAMIC=static
2487 BUILD_LDBM_DYNAMIC=static
2488 BUILD_PASSWD_DYNAMIC=static
2489 BUILD_PERL_DYNAMIC=static
2490 BUILD_SHELL_DYNAMIC=static
2491 BUILD_TCL_DYNAMIC=static
2492 BUILD_SQL_DYNAMIC=static
2494 SLAPD_MODULES_LDFLAGS=
2495 SLAPD_MODULES_CPPFLAGS=
2518 cat >> confdefs.h <<\EOF
2519 #define HAVE_MKVERSION 1
2527 *-*-aix*) if test -z "$CC" ; then
2528 case "$ol_with_threads" in
2529 auto | yes | posix) ol_aix_threads=yes ;;
2535 if test $ol_aix_threads = yes ; then
2536 if test -z "${CC}" ; then
2537 for ac_prog in cc_r xlc_r cc
2539 # Extract the first word of "$ac_prog", so it can be a program name with args.
2540 set dummy $ac_prog; ac_word=$2
2541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_word" >&5
2543 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2551 for ac_dir in $ac_dummy; do
2552 test -z "$ac_dir" && ac_dir=.
2553 if test -f $ac_dir/$ac_word; then
2554 ac_cv_prog_CC="$ac_prog"
2562 if test -n "$CC"; then
2563 echo "$ac_t""$CC" 1>&6
2565 echo "$ac_t""no" 1>&6
2568 test -n "$CC" && break
2572 if test "$CC" = cc ; then
2573 if test $ol_with_threads != auto ; then
2574 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2576 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2582 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2583 ol_with_threads=posix
2584 ol_cv_pthread_create=yes
2588 if test -z "${CC}"; then
2591 # Extract the first word of "$ac_prog", so it can be a program name with args.
2592 set dummy $ac_prog; ac_word=$2
2593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_word" >&5
2595 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2603 for ac_dir in $ac_dummy; do
2604 test -z "$ac_dir" && ac_dir=.
2605 if test -f $ac_dir/$ac_word; then
2606 ac_cv_prog_CC="$ac_prog"
2614 if test -n "$CC"; then
2615 echo "$ac_t""$CC" 1>&6
2617 echo "$ac_t""no" 1>&6
2620 test -n "$CC" && break
2628 # Check whether --enable-fast-install or --disable-fast-install was given.
2629 if test "${enable_fast_install+set}" = set; then
2630 enableval="$enable_fast_install"
2631 p=${PACKAGE-default}
2632 case "$enableval" in
2633 yes) enable_fast_install=yes ;;
2634 no) enable_fast_install=no ;;
2636 enable_fast_install=no
2637 # Look at the argument we got. We use all the common list separators.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2639 for pkg in $enableval; do
2640 if test "X$pkg" = "X$p"; then
2641 enable_fast_install=yes
2648 enable_fast_install=yes
2651 # Extract the first word of "ranlib", so it can be a program name with args.
2652 set dummy ranlib; ac_word=$2
2653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_word" >&5
2655 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 if test -n "$RANLIB"; then
2659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2663 for ac_dir in $ac_dummy; do
2664 test -z "$ac_dir" && ac_dir=.
2665 if test -f $ac_dir/$ac_word; then
2666 ac_cv_prog_RANLIB="ranlib"
2671 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2674 RANLIB="$ac_cv_prog_RANLIB"
2675 if test -n "$RANLIB"; then
2676 echo "$ac_t""$RANLIB" 1>&6
2678 echo "$ac_t""no" 1>&6
2681 # Extract the first word of "gcc", so it can be a program name with args.
2682 set dummy gcc; ac_word=$2
2683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_word" >&5
2685 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2693 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 if test -f $ac_dir/$ac_word; then
2704 if test -n "$CC"; then
2705 echo "$ac_t""$CC" 1>&6
2707 echo "$ac_t""no" 1>&6
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_word" >&5
2715 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2724 for ac_dir in $ac_dummy; do
2725 test -z "$ac_dir" && ac_dir=.
2726 if test -f $ac_dir/$ac_word; then
2727 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2728 ac_prog_rejected=yes
2736 if test $ac_prog_rejected = yes; then
2737 # We found a bogon in the path, so make sure we never use it.
2738 set dummy $ac_cv_prog_CC
2740 if test $# -gt 0; then
2741 # We chose a different compiler from the bogus one.
2742 # However, it has the same basename, so the bogon will be chosen
2743 # first if we set CC to just the basename; use the full file name.
2745 set dummy "$ac_dir/$ac_word" "$@"
2753 if test -n "$CC"; then
2754 echo "$ac_t""$CC" 1>&6
2756 echo "$ac_t""no" 1>&6
2759 if test -z "$CC"; then
2760 case "`uname -s`" in
2761 *win32* | *WIN32* | *CYGWIN*)
2762 # Extract the first word of "cl", so it can be a program name with args.
2763 set dummy cl; ac_word=$2
2764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_word" >&5
2766 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2774 for ac_dir in $ac_dummy; do
2775 test -z "$ac_dir" && ac_dir=.
2776 if test -f $ac_dir/$ac_word; then
2785 if test -n "$CC"; then
2786 echo "$ac_t""$CC" 1>&6
2788 echo "$ac_t""no" 1>&6
2793 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2796 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2797 echo "configure:2798: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2804 cross_compiling=$ac_cv_prog_cc_cross
2806 cat > conftest.$ac_ext << EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2813 if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814 ac_cv_prog_cc_works=yes
2815 # If we can't run a trivial program, we are probably using a cross compiler.
2816 if (./conftest; exit) 2>/dev/null; then
2817 ac_cv_prog_cc_cross=no
2819 ac_cv_prog_cc_cross=yes
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 ac_cv_prog_cc_works=no
2828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2831 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2832 cross_compiling=$ac_cv_prog_cc_cross
2834 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2835 if test $ac_cv_prog_cc_works = no; then
2836 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2838 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2839 echo "configure:2840: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2840 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2841 cross_compiling=$ac_cv_prog_cc_cross
2843 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2844 echo "configure:2845: checking whether we are using GNU C" >&5
2845 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.c <<EOF
2853 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2860 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2862 if test $ac_cv_prog_gcc = yes; then
2868 ac_test_CFLAGS="${CFLAGS+set}"
2869 ac_save_CFLAGS="$CFLAGS"
2871 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2872 echo "configure:2873: checking whether ${CC-cc} accepts -g" >&5
2873 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 echo 'void f(){}' > conftest.c
2877 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2886 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2887 if test "$ac_test_CFLAGS" = set; then
2888 CFLAGS="$ac_save_CFLAGS"
2889 elif test $ac_cv_prog_cc_g = yes; then
2890 if test "$GCC" = yes; then
2896 if test "$GCC" = yes; then
2903 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2904 if test "${with_gnu_ld+set}" = set; then
2905 withval="$with_gnu_ld"
2906 test "$withval" = no || with_gnu_ld=yes
2912 if test "$ac_cv_prog_gcc" = yes; then
2913 # Check if gcc -print-prog-name=ld gives a path.
2914 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2915 echo "configure:2916: checking for ld used by GCC" >&5
2916 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2918 # Accept absolute paths.
2919 [\\/]* | [A-Za-z]:[\\/]*)
2920 re_direlt='/[^/][^/]*/\.\./'
2921 # Canonicalize the path of ld
2922 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2923 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2924 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2926 test -z "$LD" && LD="$ac_prog"
2929 # If it fails, then pretend we aren't using GCC.
2933 # If it is relative, then search for the first ld in PATH.
2937 elif test "$with_gnu_ld" = yes; then
2938 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2939 echo "configure:2940: checking for GNU ld" >&5
2941 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2942 echo "configure:2943: checking for non-GNU ld" >&5
2944 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 if test -z "$LD"; then
2948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2949 for ac_dir in $PATH; do
2950 test -z "$ac_dir" && ac_dir=.
2951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2952 ac_cv_path_LD="$ac_dir/$ac_prog"
2953 # Check to see if the program is GNU ld. I'd rather use --version,
2954 # but apparently some GNU ld's only accept -v.
2955 # Break only if it was the GNU/non-GNU ld that we prefer.
2956 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2957 test "$with_gnu_ld" != no && break
2959 test "$with_gnu_ld" != yes && break
2965 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2970 if test -n "$LD"; then
2971 echo "$ac_t""$LD" 1>&6
2973 echo "$ac_t""no" 1>&6
2975 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2976 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2977 echo "configure:2978: checking if the linker ($LD) is GNU ld" >&5
2978 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2982 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2983 ac_cv_prog_gnu_ld=yes
2985 ac_cv_prog_gnu_ld=no
2989 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2992 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2993 echo "configure:2994: checking for BSD-compatible nm" >&5
2994 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$NM"; then
2998 # Let the user override the test.
3001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3002 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3005 # Check to see if the nm accepts a BSD-compat flag.
3006 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3007 # nm: unknown option "B" ignored
3008 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3009 ac_cv_path_NM="$ac_dir/nm -B"
3011 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3012 ac_cv_path_NM="$ac_dir/nm -p"
3015 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3016 continue # so that we can try to find one that supports BSD flags
3021 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3026 echo "$ac_t""$NM" 1>&6
3028 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3029 echo "configure:3030: checking whether ln -s works" >&5
3030 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3034 if ln -s X conftestdata 2>/dev/null
3037 ac_cv_prog_LN_S="ln -s"
3042 LN_S="$ac_cv_prog_LN_S"
3043 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3044 echo "$ac_t""yes" 1>&6
3046 echo "$ac_t""no" 1>&6
3049 if test $host != $build; then
3050 ac_tool_prefix=${host_alias}-
3057 NONE) lt_target="$host" ;;
3058 *) lt_target="$target" ;;
3061 # Check for any special flags to pass to ltconfig.
3062 libtool_flags="--cache-file=$cache_file"
3063 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3064 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3065 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3066 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3067 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3068 libtool_flags="$libtool_flags --enable-dlopen"
3069 libtool_flags="$libtool_flags --enable-win32-dll"
3070 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3071 if test "${enable_libtool_lock+set}" = set; then
3072 enableval="$enable_libtool_lock"
3076 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3077 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3079 # Some flags need to be propagated to the compiler or linker for good
3081 case "$lt_target" in
3083 # Find out which ABI we are using.
3084 echo '#line 3085 "configure"' > conftest.$ac_ext
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 case "`/usr/bin/file conftest.o`" in
3102 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3103 SAVE_CFLAGS="$CFLAGS"
3104 CFLAGS="$CFLAGS -belf"
3105 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3106 echo "configure:3107: checking whether the C compiler needs -belf" >&5
3107 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120 lt_cv_cc_needs_belf=yes
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3125 lt_cv_cc_needs_belf=no
3130 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3133 CFLAGS="$SAVE_CFLAGS"
3137 *-*-cygwin* | *-*-mingw*)
3138 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_word" >&5
3142 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 if test -n "$DLLTOOL"; then
3146 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3150 for ac_dir in $ac_dummy; do
3151 test -z "$ac_dir" && ac_dir=.
3152 if test -f $ac_dir/$ac_word; then
3153 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3160 DLLTOOL="$ac_cv_prog_DLLTOOL"
3161 if test -n "$DLLTOOL"; then
3162 echo "$ac_t""$DLLTOOL" 1>&6
3164 echo "$ac_t""no" 1>&6
3168 if test -z "$ac_cv_prog_DLLTOOL"; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "dlltool", so it can be a program name with args.
3171 set dummy dlltool; ac_word=$2
3172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3173 echo "configure:3174: checking for $ac_word" >&5
3174 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 if test -n "$DLLTOOL"; then
3178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3182 for ac_dir in $ac_dummy; do
3183 test -z "$ac_dir" && ac_dir=.
3184 if test -f $ac_dir/$ac_word; then
3185 ac_cv_prog_DLLTOOL="dlltool"
3190 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3193 DLLTOOL="$ac_cv_prog_DLLTOOL"
3194 if test -n "$DLLTOOL"; then
3195 echo "$ac_t""$DLLTOOL" 1>&6
3197 echo "$ac_t""no" 1>&6
3205 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}as; ac_word=$2
3207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3208 echo "configure:3209: checking for $ac_word" >&5
3209 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 if test -n "$AS"; then
3213 ac_cv_prog_AS="$AS" # Let the user override the test.
3215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3217 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 if test -f $ac_dir/$ac_word; then
3220 ac_cv_prog_AS="${ac_tool_prefix}as"
3228 if test -n "$AS"; then
3229 echo "$ac_t""$AS" 1>&6
3231 echo "$ac_t""no" 1>&6
3235 if test -z "$ac_cv_prog_AS"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "as", so it can be a program name with args.
3238 set dummy as; ac_word=$2
3239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3240 echo "configure:3241: checking for $ac_word" >&5
3241 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 if test -n "$AS"; then
3245 ac_cv_prog_AS="$AS" # Let the user override the test.
3247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3249 for ac_dir in $ac_dummy; do
3250 test -z "$ac_dir" && ac_dir=.
3251 if test -f $ac_dir/$ac_word; then
3257 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3261 if test -n "$AS"; then
3262 echo "$ac_t""$AS" 1>&6
3264 echo "$ac_t""no" 1>&6
3272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_word" >&5
3276 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 if test -n "$OBJDUMP"; then
3280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3284 for ac_dir in $ac_dummy; do
3285 test -z "$ac_dir" && ac_dir=.
3286 if test -f $ac_dir/$ac_word; then
3287 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3294 OBJDUMP="$ac_cv_prog_OBJDUMP"
3295 if test -n "$OBJDUMP"; then
3296 echo "$ac_t""$OBJDUMP" 1>&6
3298 echo "$ac_t""no" 1>&6
3302 if test -z "$ac_cv_prog_OBJDUMP"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "objdump", so it can be a program name with args.
3305 set dummy objdump; ac_word=$2
3306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_word" >&5
3308 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 if test -n "$OBJDUMP"; then
3312 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 for ac_dir in $ac_dummy; do
3317 test -z "$ac_dir" && ac_dir=.
3318 if test -f $ac_dir/$ac_word; then
3319 ac_cv_prog_OBJDUMP="objdump"
3324 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3327 OBJDUMP="$ac_cv_prog_OBJDUMP"
3328 if test -n "$OBJDUMP"; then
3329 echo "$ac_t""$OBJDUMP" 1>&6
3331 echo "$ac_t""no" 1>&6
3344 # Save cache, so that ltconfig can load it
3347 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3348 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3349 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3350 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3351 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3352 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3353 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3354 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3356 # Reload cache, that may have been modified by ltconfig
3359 # This can be used to rebuild libtool when needed
3360 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3362 # Always use our own libtool.
3363 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3365 # Redirect the config.log output again, so that the ltconfig log is not
3366 # clobbered by the next message.
3367 exec 5>>./config.log
3370 for ac_prog in mawk gawk nawk awk
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; 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 \"\${ac_cv_prog_AWK+set}\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 if test -n "$AWK"; then
3380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3384 for ac_dir in $ac_dummy; do
3385 test -z "$ac_dir" && ac_dir=.
3386 if test -f $ac_dir/$ac_word; then
3387 ac_cv_prog_AWK="$ac_prog"
3394 AWK="$ac_cv_prog_AWK"
3395 if test -n "$AWK"; then
3396 echo "$ac_t""$AWK" 1>&6
3398 echo "$ac_t""no" 1>&6
3401 test -n "$AWK" && break
3404 # test for ln hardlink support
3405 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3406 echo "configure:3407: checking whether ln works" >&5
3407 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 rm -f conftest.src conftest.dst
3411 echo "conftest" > conftest.src
3412 if ln conftest.src conftest.dst 2>/dev/null
3414 ol_cv_prog_LN_H="ln"
3416 ol_cv_prog_LN_H="cp"
3418 rm -f conftest.src conftest.dst
3421 LN_H="$ol_cv_prog_LN_H"
3422 if test "$ol_cv_prog_LN_H" = "ln"; then
3423 echo "$ac_t""yes" 1>&6
3425 echo "$ac_t""no" 1>&6
3428 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3429 echo "configure:3430: checking whether ln -s works" >&5
3430 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3434 if ln -s X conftestdata 2>/dev/null
3437 ac_cv_prog_LN_S="ln -s"
3442 LN_S="$ac_cv_prog_LN_S"
3443 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3444 echo "$ac_t""yes" 1>&6
3446 echo "$ac_t""no" 1>&6
3450 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3454 # Extract the first word of "sendmail", so it can be a program name with args.
3455 set dummy sendmail; ac_word=$2
3456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3457 echo "configure:3458: checking for $ac_word" >&5
3458 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3463 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3466 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3470 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3471 for ac_dir in $ac_dummy; do
3472 test -z "$ac_dir" && ac_dir=.
3473 if test -f $ac_dir/$ac_word; then
3474 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3479 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3483 SENDMAIL="$ac_cv_path_SENDMAIL"
3484 if test -n "$SENDMAIL"; then
3485 echo "$ac_t""$SENDMAIL" 1>&6
3487 echo "$ac_t""no" 1>&6
3490 # Extract the first word of "vi", so it can be a program name with args.
3491 set dummy vi; ac_word=$2
3492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3493 echo "configure:3494: checking for $ac_word" >&5
3494 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3502 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3506 ac_dummy="$PATH:/usr/ucb"
3507 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 if test -f $ac_dir/$ac_word; then
3510 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3515 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3519 EDITOR="$ac_cv_path_EDITOR"
3520 if test -n "$EDITOR"; then
3521 echo "$ac_t""$EDITOR" 1>&6
3523 echo "$ac_t""no" 1>&6
3526 # Extract the first word of "finger", so it can be a program name with args.
3527 set dummy finger; ac_word=$2
3528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_word" >&5
3530 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3535 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3538 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3542 ac_dummy="$PATH:/usr/ucb"
3543 for ac_dir in $ac_dummy; do
3544 test -z "$ac_dir" && ac_dir=.
3545 if test -f $ac_dir/$ac_word; then
3546 ac_cv_path_FINGER="$ac_dir/$ac_word"
3551 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3555 FINGER="$ac_cv_path_FINGER"
3556 if test -n "$FINGER"; then
3557 echo "$ac_t""$FINGER" 1>&6
3559 echo "$ac_t""no" 1>&6
3564 if test $ol_enable_perl != no ; then
3565 # Extract the first word of "perl", so it can be a program name with args.
3566 set dummy perl; ac_word=$2
3567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3568 echo "configure:3569: checking for $ac_word" >&5
3569 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3574 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3577 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3582 for ac_dir in $ac_dummy; do
3583 test -z "$ac_dir" && ac_dir=.
3584 if test -f $ac_dir/$ac_word; then
3585 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3590 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3594 PERLBIN="$ac_cv_path_PERLBIN"
3595 if test -n "$PERLBIN"; then
3596 echo "$ac_t""$PERLBIN" 1>&6
3598 echo "$ac_t""no" 1>&6
3602 if test "no$PERLBIN" = "no" ; then
3603 if test $ol_enable_perl = yes ; then
3604 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3608 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3609 if test x"$ol_with_perl_module" = "xstatic" ; then
3610 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3612 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3618 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3619 echo "configure:3620: checking how to run the C preprocessor" >&5
3620 # On Suns, sometimes $CPP names a directory.
3621 if test -n "$CPP" && test -d "$CPP"; then
3624 if test -z "$CPP"; then
3625 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 # This must be in double quotes, not single quotes, because CPP may get
3629 # substituted into the Makefile and "${CC-cc}" will confuse make.
3631 # On the NeXT, cc -E runs the code through the compiler's parser,
3632 # not just through cpp.
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3640 { (eval echo configure:3641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3642 if test -z "$ac_err"; then
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 CPP="${CC-cc} -E -traditional-cpp"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3657 { (eval echo configure:3658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3659 if test -z "$ac_err"; then
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 CPP="${CC-cc} -nologo -E"
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3674 { (eval echo configure:3675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3676 if test -z "$ac_err"; then
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3690 ac_cv_prog_CPP="$CPP"
3692 CPP="$ac_cv_prog_CPP"
3694 ac_cv_prog_CPP="$CPP"
3696 echo "$ac_t""$CPP" 1>&6
3699 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3700 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3702 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3703 echo "configure: warning: programs compiled here do run here..." 1>&2
3704 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3706 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3707 echo "configure: warning: programs compiled here do not run here..." 1>&2
3708 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3711 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3712 echo "configure:3713: checking for AIX" >&5
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722 egrep "yes" >/dev/null 2>&1; then
3724 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3725 #define _ALL_SOURCE 1
3730 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3736 echo "configure:3737: checking for POSIXized ISC" >&5
3737 if test -d /etc/conf/kconfig.d &&
3738 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3740 echo "$ac_t""yes" 1>&6
3741 ISC=yes # If later tests want to check for ISC.
3742 cat >> confdefs.h <<\EOF
3743 #define _POSIX_SOURCE 1
3746 if test "$GCC" = yes; then
3752 echo "$ac_t""no" 1>&6
3756 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3757 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3758 echo "configure:3759: checking for minix/config.h" >&5
3759 if eval "test \"\${ac_cv_header_$ac_safe+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"
3765 #include <minix/config.h>
3767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3768 { (eval echo configure:3769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3770 if test -z "$ac_err"; then
3772 eval "ac_cv_header_$ac_safe=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_header_$ac_safe=no"
3782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3786 echo "$ac_t""no" 1>&6
3790 if test "$MINIX" = yes; then
3791 cat >> confdefs.h <<\EOF
3792 #define _POSIX_SOURCE 1
3795 cat >> confdefs.h <<\EOF
3796 #define _POSIX_1_SOURCE 2
3799 cat >> confdefs.h <<\EOF
3806 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3807 echo "configure:3808: checking for Cygwin environment" >&5
3808 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3818 #define __CYGWIN__ __CYGWIN32__
3823 if { (eval echo configure:3824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3835 echo "$ac_t""$ac_cv_cygwin" 1>&6
3837 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3838 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3839 echo "configure:3840: checking for mingw32 environment" >&5
3840 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3851 if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3863 echo "$ac_t""$ac_cv_mingw32" 1>&6
3865 test "$ac_cv_mingw32" = yes && MINGW32=yes
3866 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3867 echo "configure:3868: checking for EMX OS/2 environment" >&5
3868 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3891 echo "$ac_t""$ac_cv_emxos2" 1>&6
3893 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3897 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3898 echo "configure:3899: checking for executable suffix" >&5
3899 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3906 echo 'int main () { return 0; }' > conftest.$ac_ext
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3909 for file in conftest.*; do
3911 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3912 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3916 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3919 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3924 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3925 echo "$ac_t""${ac_cv_exeext}" 1>&6
3928 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3929 echo "configure:3930: checking for object suffix" >&5
3930 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3934 echo 'int i = 1;' > conftest.$ac_ext
3935 if { (eval echo configure:3936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3936 for ac_file in conftest.*; do
3939 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3943 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3948 echo "$ac_t""$ac_cv_objext" 1>&6
3949 OBJEXT=$ac_cv_objext
3950 ac_objext=$ac_cv_objext
3953 cat >> confdefs.h <<EOF
3954 #define EXEEXT "${EXEEXT}"
3958 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3959 echo "configure:3960: checking for be_app in -lbe" >&5
3960 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3961 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3964 ac_save_LIBS="$LIBS"
3965 LIBS="-lbe -lroot -lnet $LIBS"
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 eval "ac_cv_lib_$ac_lib_var=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 eval "ac_cv_lib_$ac_lib_var=no"
3988 LIBS="$ac_save_LIBS"
3991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 LIBS="$LIBS -lbe -lroot -lnet"
3995 echo "$ac_t""no" 1>&6
4003 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4004 echo "configure:4005: checking for ${CC-cc} option to accept ANSI C" >&5
4005 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4008 am_cv_prog_cc_stdc=no
4010 # Don't try gcc -ansi; that turns off useful extensions and
4011 # breaks some systems' header files.
4012 # AIX -qlanglvl=ansi
4013 # Ultrix and OSF/1 -std1
4014 # HP-UX 10.20 and later -Ae
4015 # HP-UX older versions -Aa -D_HPUX_SOURCE
4016 # SVR4 -Xc -D__EXTENSIONS__
4017 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 CC="$ac_save_CC $ac_arg"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4025 #include <sys/types.h>
4026 #include <sys/stat.h>
4027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4028 struct buf { int x; };
4029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030 static char *e (p, i)
4036 static char *f (char * (*g) (char **, int), char **p, ...)
4041 s = g (p, va_arg (v,int));
4045 int test (int i, double x);
4046 struct s1 {int (*f) (int a);};
4047 struct s2 {int (*f) (double a);};
4048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4058 if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4060 am_cv_prog_cc_stdc="$ac_arg"; break
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4071 if test -z "$am_cv_prog_cc_stdc"; then
4072 echo "$ac_t""none needed" 1>&6
4074 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4076 case "x$am_cv_prog_cc_stdc" in
4078 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4081 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4082 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4085 # test for make depend flag
4088 if test -z "${MKDEP}"; then
4090 if test -z "${MKDEP_FLAGS}"; then
4091 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4092 echo "configure:4093: checking for ${OL_MKDEP} depend flag" >&5
4093 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4098 for flag in "-M" "-xM"; do
4099 cat > conftest.c <<EOF
4102 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4103 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4105 if test ! -f conftest."${ac_object}" ; then
4107 OL_MKDEP_FLAGS="$flag"
4116 echo "$ac_t""$ol_cv_mkdep" 1>&6
4119 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4124 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4129 if test "${ol_cv_mkdep}" = no ; then
4130 # this will soon become an error
4131 echo "configure: warning: do not know how to generate dependencies" 1>&2
4134 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4135 echo "configure:4136: checking for afopen in -ls" >&5
4136 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS="$LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4171 cat >> confdefs.h <<\EOF
4172 #define HAVE_AIX_SECURITY 1
4177 echo "$ac_t""no" 1>&6
4183 if test $ol_enable_modules != no ; then
4184 for ac_hdr in ltdl.h
4186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4188 echo "configure:4189: checking for $ac_hdr" >&5
4189 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4198 { (eval echo configure:4199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4200 if test -z "$ac_err"; then
4202 eval "ac_cv_header_$ac_safe=yes"
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4208 eval "ac_cv_header_$ac_safe=no"
4212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4213 echo "$ac_t""yes" 1>&6
4214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4215 cat >> confdefs.h <<EOF
4216 #define $ac_tr_hdr 1
4220 echo "$ac_t""no" 1>&6
4225 if test $ac_cv_header_ltdl_h = no ; then
4226 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4229 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4230 echo "configure:4231: checking for lt_dlinit in -lltdl" >&5
4231 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 ac_save_LIBS="$LIBS"
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4240 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251 eval "ac_cv_lib_$ac_lib_var=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_lib_$ac_lib_var=no"
4259 LIBS="$ac_save_LIBS"
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4266 cat >> confdefs.h <<\EOF
4267 #define HAVE_LIBLTDL 1
4272 echo "$ac_t""no" 1>&6
4276 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4277 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4281 ol_with_bdb_module=static
4282 ol_with_dnssrv_module=static
4283 ol_with_ldap_module=static
4284 ol_with_ldbm_module=static
4285 ol_with_passwd_module=static
4286 ol_with_perl_module=static
4287 ol_with_shell_module=static
4288 ol_with_tcl_module=static
4289 ol_with_sql_module=static
4293 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4294 echo "configure:4295: checking for EBCDIC" >&5
4295 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4304 #include <__ASCII__/generate_error.h>
4308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4309 { (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4311 if test -z "$ac_err"; then
4313 ol_cv_cpp_ebcdic=yes
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4324 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4325 if test $ol_cv_cpp_ebcdic = yes ; then
4326 cat >> confdefs.h <<\EOF
4327 #define HAVE_EBCDIC 1
4332 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4333 echo "configure:4334: checking for ANSI C header files" >&5
4334 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4346 { (eval echo configure:4347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4348 if test -z "$ac_err"; then
4350 ol_cv_header_stdc=yes
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 ol_cv_header_stdc=no
4360 if test $ol_cv_header_stdc = yes; then
4361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4368 egrep "memchr" >/dev/null 2>&1; then
4372 ol_cv_header_stdc=no
4378 if test $ol_cv_header_stdc = yes; then
4379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 egrep "free" >/dev/null 2>&1; then
4390 ol_cv_header_stdc=no
4396 if test $ol_cv_header_stdc = yes; then
4397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4398 if test "$cross_compiling" = yes; then
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4409 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4410 || ('j' <= (c) && (c) <= 'r') \
4411 || ('s' <= (c) && (c) <= 'z'))
4412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4415 int main () { int i; for (i = 0; i < 256; i++)
4416 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 ol_cv_header_stdc=no
4435 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4436 if test $ol_cv_header_stdc = yes; then
4437 cat >> confdefs.h <<\EOF
4438 #define STDC_HEADERS 1
4442 ac_cv_header_stdc=disable
4445 if test $ol_cv_header_stdc != yes; then
4446 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_hdr that defines DIR" >&5
4455 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 #include <sys/types.h>
4467 if { (eval echo configure:4468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4469 eval "ac_cv_header_dirent_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_header_dirent_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_hdr 1
4484 ac_header_dirent=$ac_hdr; break
4486 echo "$ac_t""no" 1>&6
4489 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4490 if test $ac_header_dirent = dirent.h; then
4491 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4492 echo "configure:4493: checking for opendir in -ldir" >&5
4493 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4497 ac_save_LIBS="$LIBS"
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_lib_$ac_lib_var=no"
4521 LIBS="$ac_save_LIBS"
4524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4528 echo "$ac_t""no" 1>&6
4532 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4533 echo "configure:4534: checking for opendir in -lx" >&5
4534 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4535 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 ac_save_LIBS="$LIBS"
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4554 eval "ac_cv_lib_$ac_lib_var=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 eval "ac_cv_lib_$ac_lib_var=no"
4562 LIBS="$ac_save_LIBS"
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4569 echo "$ac_t""no" 1>&6
4574 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4575 echo "configure:4576: checking for sys/wait.h that is POSIX.1 compatible" >&5
4576 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 #include <sys/types.h>
4583 #include <sys/wait.h>
4585 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4588 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4593 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4596 if { (eval echo configure:4597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4598 ac_cv_header_sys_wait_h=yes
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4603 ac_cv_header_sys_wait_h=no
4608 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4609 if test $ac_cv_header_sys_wait_h = yes; then
4610 cat >> confdefs.h <<\EOF
4611 #define HAVE_SYS_WAIT_H 1
4616 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4617 echo "configure:4618: checking POSIX termios" >&5
4618 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 #include <sys/types.h>
4626 #include <termios.h>
4628 /* SunOS 4.0.3 has termios.h but not the library calls. */
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 am_cv_sys_posix_termios=yes
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 am_cv_sys_posix_termios=no
4644 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4647 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4648 echo "configure:4649: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4649 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4654 gwinsz_in_termios_h=no
4655 if test $am_cv_sys_posix_termios = yes; then
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <sys/types.h>
4660 # include <termios.h>
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 egrep "yes" >/dev/null 2>&1; then
4669 gwinsz_in_termios_h=yes
4675 if test $gwinsz_in_termios_h = no; then
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <sys/types.h>
4680 # include <sys/ioctl.h>
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 egrep "yes" >/dev/null 2>&1; then
4689 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4697 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4698 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4699 cat >> confdefs.h <<\EOF
4700 #define GWINSZ_IN_SYS_IOCTL 1
4705 if test $am_cv_sys_posix_termios = yes ; then
4706 cat >> confdefs.h <<\EOF
4707 #define HAVE_POSIX_TERMIOS 1
4758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_hdr" >&5
4761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4770 { (eval echo configure:4771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4772 if test -z "$ac_err"; then
4774 eval "ac_cv_header_$ac_safe=yes"
4777 echo "configure: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4780 eval "ac_cv_header_$ac_safe=no"
4784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4787 cat >> confdefs.h <<EOF
4788 #define $ac_tr_hdr 1
4792 echo "$ac_t""no" 1>&6
4799 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4800 echo "configure:4801: checking for sigset in -lV3" >&5
4801 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4802 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 ac_save_LIBS="$LIBS"
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4819 if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4826 eval "ac_cv_lib_$ac_lib_var=no"
4829 LIBS="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4836 cat >> confdefs.h <<EOF
4837 #define $ac_tr_lib 1
4843 echo "$ac_t""no" 1>&6
4847 if test $ac_cv_header_winsock_h = yes; then
4848 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4849 echo "configure:4850: checking for winsock" >&5
4850 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4856 #include <winsock.h>
4860 select(0,NULL,NULL,NULL,NULL);
4862 gethostname(NULL,0);
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4878 echo "$ac_t""$ol_cv_winsock" 1>&6
4880 if test $ol_cv_winsock = yes ; then
4881 cat >> confdefs.h <<\EOF
4882 #define HAVE_WINSOCK 1
4885 ac_cv_func_socket=yes
4886 ac_cv_func_select=yes
4887 ac_cv_func_closesocket=yes
4888 ac_cv_func_gethostname=yes
4893 echo $ac_n "checking for socket""... $ac_c" 1>&6
4894 echo "configure:4895: checking for socket" >&5
4895 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 /* System header to define __stub macros and hopefully few prototypes,
4902 which can conflict with char socket(); below. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4912 /* The GNU C library defines this for functions which it implements
4913 to always fail with ENOSYS. Some functions are actually named
4914 something starting with __ and the normal name is an alias. */
4915 #if defined (__stub_socket) || defined (__stub___socket)
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 eval "ac_cv_func_socket=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 eval "ac_cv_func_socket=no"
4935 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4939 echo "$ac_t""no" 1>&6
4941 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4942 echo "configure:4943: checking for main in -lsocket" >&5
4943 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 ac_save_LIBS="$LIBS"
4948 LIBS="-lsocket $LIBS"
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 eval "ac_cv_lib_$ac_lib_var=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_lib_$ac_lib_var=no"
4967 LIBS="$ac_save_LIBS"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4974 cat >> confdefs.h <<EOF
4975 #define $ac_tr_lib 1
4978 LIBS="-lsocket $LIBS"
4981 echo "$ac_t""no" 1>&6
4984 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4985 echo "configure:4986: checking for main in -lnet" >&5
4986 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 ac_save_LIBS="$LIBS"
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5010 LIBS="$ac_save_LIBS"
5013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5017 cat >> confdefs.h <<EOF
5018 #define $ac_tr_lib 1
5024 echo "$ac_t""no" 1>&6
5027 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5028 echo "configure:5029: checking for main in -lnsl_s" >&5
5029 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5030 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 ac_save_LIBS="$LIBS"
5034 LIBS="-lnsl_s $LIBS"
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5043 if { (eval echo configure:5044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5045 eval "ac_cv_lib_$ac_lib_var=yes"
5047 echo "configure: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5050 eval "ac_cv_lib_$ac_lib_var=no"
5053 LIBS="$ac_save_LIBS"
5056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5058 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5059 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5060 cat >> confdefs.h <<EOF
5061 #define $ac_tr_lib 1
5064 LIBS="-lnsl_s $LIBS"
5067 echo "$ac_t""no" 1>&6
5070 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5071 echo "configure:5072: checking for main in -lnsl" >&5
5072 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5073 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 ac_save_LIBS="$LIBS"
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 eval "ac_cv_lib_$ac_lib_var=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 eval "ac_cv_lib_$ac_lib_var=no"
5096 LIBS="$ac_save_LIBS"
5099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5103 cat >> confdefs.h <<EOF
5104 #define $ac_tr_lib 1
5110 echo "$ac_t""no" 1>&6
5113 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5114 echo "configure:5115: checking for socket in -linet" >&5
5115 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5116 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 ac_save_LIBS="$LIBS"
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 eval "ac_cv_lib_$ac_lib_var=yes"
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_lib_$ac_lib_var=no"
5143 LIBS="$ac_save_LIBS"
5146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5150 cat >> confdefs.h <<EOF
5151 #define $ac_tr_lib 1
5157 echo "$ac_t""no" 1>&6
5160 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5161 echo "configure:5162: checking for main in -lgen" >&5
5162 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5166 ac_save_LIBS="$LIBS"
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 eval "ac_cv_lib_$ac_lib_var=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 eval "ac_cv_lib_$ac_lib_var=no"
5186 LIBS="$ac_save_LIBS"
5189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5190 echo "$ac_t""yes" 1>&6
5191 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5193 cat >> confdefs.h <<EOF
5194 #define $ac_tr_lib 1
5200 echo "$ac_t""no" 1>&6
5207 echo $ac_n "checking for select""... $ac_c" 1>&6
5208 echo "configure:5209: checking for select" >&5
5209 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char select(); below. */
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5226 /* The GNU C library defines this for functions which it implements
5227 to always fail with ENOSYS. Some functions are actually named
5228 something starting with __ and the normal name is an alias. */
5229 #if defined (__stub_select) || defined (__stub___select)
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 eval "ac_cv_func_select=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_func_select=no"
5249 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5253 echo "$ac_t""no" 1>&6
5254 { echo "configure: error: select() required." 1>&2; exit 1; }
5258 if test "${ac_cv_header_winsock_h}" != yes; then
5259 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5260 echo "configure:5261: checking types of arguments for select()" >&5
5261 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5270 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5271 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5272 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 #ifdef HAVE_SYS_TYPES_H
5277 #include <sys/types.h>
5279 #ifdef HAVE_SYS_TIME_H
5280 #include <sys/time.h>
5282 #ifdef HAVE_SYS_SELECT_H
5283 #include <sys/select.h>
5285 #ifdef HAVE_SYS_SOCKET_H
5286 #include <sys/socket.h>
5288 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);
5293 if { (eval echo configure:5294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5295 ac_not_found=no ; break 3
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5312 if test "$ac_not_found" = yes; then
5313 ac_cv_func_select_arg1=int
5314 ac_cv_func_select_arg234='int *'
5315 ac_cv_func_select_arg5='struct timeval *'
5317 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5318 cat >> confdefs.h <<EOF
5319 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5322 cat >> confdefs.h <<EOF
5323 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5326 cat >> confdefs.h <<EOF
5327 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5334 for ac_hdr in regex.h
5336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_hdr" >&5
5339 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5348 { (eval echo configure:5349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5350 if test -z "$ac_err"; then
5352 eval "ac_cv_header_$ac_safe=yes"
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 eval "ac_cv_header_$ac_safe=no"
5362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5365 cat >> confdefs.h <<EOF
5366 #define $ac_tr_hdr 1
5370 echo "$ac_t""no" 1>&6
5374 if test "$ac_cv_header_regex_h" != yes ; then
5375 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5377 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5378 echo "configure:5379: checking for regfree" >&5
5379 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char regfree(); below. */
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5396 /* The GNU C library defines this for functions which it implements
5397 to always fail with ENOSYS. Some functions are actually named
5398 something starting with __ and the normal name is an alias. */
5399 #if defined (__stub_regfree) || defined (__stub___regfree)
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5409 eval "ac_cv_func_regfree=yes"
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 eval "ac_cv_func_regfree=no"
5419 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5420 echo "$ac_t""yes" 1>&6
5423 echo "$ac_t""no" 1>&6
5424 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5429 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5430 echo "configure:5431: checking for compatible POSIX regex" >&5
5431 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5435 if test "$cross_compiling" = yes; then
5436 ol_cv_c_posix_regex=cross
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5442 #include <sys/types.h>
5444 static char *pattern, *string;
5452 if(regcomp(&re, pattern, 0)) {
5456 string = "ALL MATCH";
5458 rc = regexec(&re, string, 0, (void*)0, 0);
5465 if { (eval echo configure:5466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5467 ol_cv_c_posix_regex=yes
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 ol_cv_c_posix_regex=no
5479 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5481 if test "$ol_cv_c_posix_regex" = no ; then
5482 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5486 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5487 echo "configure:5488: checking for res_query" >&5
5488 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char res_query(); below. */
5497 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5505 /* The GNU C library defines this for functions which it implements
5506 to always fail with ENOSYS. Some functions are actually named
5507 something starting with __ and the normal name is an alias. */
5508 #if defined (__stub_res_query) || defined (__stub___res_query)
5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5518 eval "ac_cv_func_res_query=yes"
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 eval "ac_cv_func_res_query=no"
5528 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5529 echo "$ac_t""yes" 1>&6
5532 echo "$ac_t""no" 1>&6
5535 if test $ac_cv_func_res_query = no ; then
5536 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5537 echo "configure:5538: checking for res_query in -lbind" >&5
5538 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5539 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 ac_save_LIBS="$LIBS"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
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
5571 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5572 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5573 cat >> confdefs.h <<EOF
5574 #define $ac_tr_lib 1
5580 echo "$ac_t""no" 1>&6
5583 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5586 if test $ac_cv_func_res_query = no ; then
5587 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5588 echo "configure:5589: checking for __res_query in -lbind" >&5
5589 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5590 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5593 ac_save_LIBS="$LIBS"
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5607 if { (eval echo configure:5608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5609 eval "ac_cv_lib_$ac_lib_var=yes"
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5614 eval "ac_cv_lib_$ac_lib_var=no"
5617 LIBS="$ac_save_LIBS"
5620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5621 echo "$ac_t""yes" 1>&6
5622 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5623 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5624 cat >> confdefs.h <<EOF
5625 #define $ac_tr_lib 1
5631 echo "$ac_t""no" 1>&6
5634 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5637 if test $ac_cv_func_res_query = no ; then
5638 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5639 echo "configure:5640: checking for res_query in -lresolv" >&5
5640 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 ac_save_LIBS="$LIBS"
5645 LIBS="-lresolv $LIBS"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 /* Override any gcc2 internal prototype to avoid an error. */
5650 /* We use char because int might match the return type of a gcc2
5651 builtin and then its argument prototype would still apply. */
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 eval "ac_cv_lib_$ac_lib_var=yes"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 eval "ac_cv_lib_$ac_lib_var=no"
5668 LIBS="$ac_save_LIBS"
5671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5672 echo "$ac_t""yes" 1>&6
5673 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5675 cat >> confdefs.h <<EOF
5676 #define $ac_tr_lib 1
5679 LIBS="-lresolv $LIBS"
5682 echo "$ac_t""no" 1>&6
5685 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5688 if test "$ac_cv_func_res_query" = yes ; then
5689 cat >> confdefs.h <<\EOF
5690 #define HAVE_RES_QUERY 1
5694 if test $ol_enable_dnssrv != no ; then
5699 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5700 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5703 for ac_func in getaddrinfo
5705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5706 echo "configure:5707: checking for $ac_func" >&5
5707 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char $ac_func(); below. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 eval "ac_cv_func_$ac_func=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5742 eval "ac_cv_func_$ac_func=no"
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_func 1
5755 echo "$ac_t""no" 1>&6
5761 if test $ac_cv_func_getaddrinfo = no ; then
5762 if test $ol_enable_ipv6 = yes ; then
5763 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
5766 for ac_func in gai_strerror
5768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_func" >&5
5770 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777 which can conflict with char $ac_func(); below. */
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5787 /* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5800 eval "ac_cv_func_$ac_func=yes"
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5805 eval "ac_cv_func_$ac_func=no"
5810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h <<EOF
5814 #define $ac_tr_func 1
5818 echo "$ac_t""no" 1>&6
5823 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5824 echo "configure:5825: checking INET6_ADDRSTRLEN" >&5
5825 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5833 # include <netinet/in.h>
5834 # ifdef INET6_ADDRSTRLEN
5835 __has_inet6_addrstrlen__;
5839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5840 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5842 ol_cv_inet6_addrstrlen=yes
5845 ol_cv_inet6_addrstrlen=no
5851 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5853 if test $ol_cv_inet6_addrstrlen = yes ; then
5855 elif test $ol_enable_ipv6 = yes ; then
5856 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5860 if test $ol_enable_local != no ; then
5861 for ac_hdr in sys/un.h
5863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5865 echo "configure:5866: checking for $ac_hdr" >&5
5866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5875 { (eval echo configure:5876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5877 if test -z "$ac_err"; then
5879 eval "ac_cv_header_$ac_safe=yes"
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5885 eval "ac_cv_header_$ac_safe=no"
5889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5892 cat >> confdefs.h <<EOF
5893 #define $ac_tr_hdr 1
5897 echo "$ac_t""no" 1>&6
5902 if test $ol_enable_local = auto ; then
5903 ol_enable_local=$ac_cv_header_sys_un_h
5904 elif test $ac_cv_header_sys_un_h = no ; then
5905 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5914 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5915 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5916 -o $ol_with_kerberos = k425 ; then
5918 for ac_hdr in krb5.h
5920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_hdr" >&5
5923 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5932 { (eval echo configure:5933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5934 if test -z "$ac_err"; then
5936 eval "ac_cv_header_$ac_safe=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 eval "ac_cv_header_$ac_safe=no"
5946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5949 cat >> confdefs.h <<EOF
5950 #define $ac_tr_hdr 1
5954 echo "$ac_t""no" 1>&6
5959 if test $ac_cv_header_krb5_h = yes ; then
5960 for ac_hdr in heim_err.h
5962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5964 echo "configure:5965: checking for $ac_hdr" >&5
5965 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5968 cat > conftest.$ac_ext <<EOF
5969 #line 5970 "configure"
5970 #include "confdefs.h"
5973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5974 { (eval echo configure:5975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5976 if test -z "$ac_err"; then
5978 eval "ac_cv_header_$ac_safe=yes"
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 eval "ac_cv_header_$ac_safe=no"
5988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5989 echo "$ac_t""yes" 1>&6
5990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5991 cat >> confdefs.h <<EOF
5992 #define $ac_tr_hdr 1
5996 echo "$ac_t""no" 1>&6
6000 if test $ac_cv_header_heim_err_h = yes ; then
6006 if test $krb5_impl = mit; then
6007 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6008 echo "configure:6009: checking for main in -lkrb5" >&5
6009 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6013 ac_save_LIBS="$LIBS"
6014 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 eval "ac_cv_lib_$ac_lib_var=yes"
6027 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6030 eval "ac_cv_lib_$ac_lib_var=no"
6033 LIBS="$ac_save_LIBS"
6036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6039 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6041 echo "$ac_t""no" 1>&6
6046 elif test $krb5_impl = heimdal; then
6047 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6048 echo "configure:6049: checking for main in -lkrb5" >&5
6049 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6053 ac_save_LIBS="$LIBS"
6054 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6063 if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065 eval "ac_cv_lib_$ac_lib_var=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 eval "ac_cv_lib_$ac_lib_var=no"
6073 LIBS="$ac_save_LIBS"
6076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6079 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6081 echo "$ac_t""no" 1>&6
6086 cat >> confdefs.h <<\EOF
6087 #define HAVE_HEIMDAL_KERBEROS 1
6092 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6095 if test $have_krb5 = yes ; then
6098 cat >> confdefs.h <<\EOF
6103 if test $ol_enable_kpasswd != no ; then
6104 ol_link_kpasswd=yes;
6107 if test $ol_with_kerberos = k5only ; then
6108 ol_with_kerberos=found
6111 elif test $ol_with_kerberos != auto ; then
6112 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6118 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6119 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6121 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6125 echo "configure:6126: checking for $ac_hdr" >&5
6126 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6135 { (eval echo configure:6136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6137 if test -z "$ac_err"; then
6139 eval "ac_cv_header_$ac_safe=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_header_$ac_safe=no"
6149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6152 cat >> confdefs.h <<EOF
6153 #define $ac_tr_hdr 1
6157 echo "$ac_t""no" 1>&6
6162 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6163 if test $krb5_impl = mit; then
6164 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6165 echo "configure:6166: checking for main in -lkrb4" >&5
6166 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 ac_save_LIBS="$LIBS"
6171 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 eval "ac_cv_lib_$ac_lib_var=yes"
6184 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 eval "ac_cv_lib_$ac_lib_var=no"
6190 LIBS="$ac_save_LIBS"
6193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6196 KRB4_LIBS="-lkrb4 -ldes425"
6198 echo "$ac_t""no" 1>&6
6203 elif test $krb5_impl = heimdal; then
6204 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6205 echo "configure:6206: checking for main in -lkrb4" >&5
6206 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 ac_save_LIBS="$LIBS"
6211 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222 eval "ac_cv_lib_$ac_lib_var=yes"
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6227 eval "ac_cv_lib_$ac_lib_var=no"
6230 LIBS="$ac_save_LIBS"
6233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6238 echo "$ac_t""no" 1>&6
6245 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6248 if test $have_k425 = yes ; then
6249 ol_with_kerberos=found
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_KRB425 1
6256 cat >> confdefs.h <<\EOF
6261 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6262 echo "configure:6263: checking for des_debug in Kerberos libraries" >&5
6263 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6268 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6273 #include <kerberosIV/krb.h>
6274 #include <kerberosIV/des.h>
6275 extern int des_debug;
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 ol_cv_var_des_debug=yes
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 ol_cv_var_des_debug=no
6297 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6299 if test $ol_cv_var_des_debug = yes ; then
6300 cat >> confdefs.h <<\EOF
6301 #define HAVE_DES_DEBUG 1
6311 if test $ol_link_krb5 = yes ; then
6312 ol_with_kerberos=found
6315 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6316 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6318 for ac_hdr in krb.h des.h krb-archaeology.h
6320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6322 echo "configure:6323: checking for $ac_hdr" >&5
6323 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6332 { (eval echo configure:6333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6334 if test -z "$ac_err"; then
6336 eval "ac_cv_header_$ac_safe=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_header_$ac_safe=no"
6346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6349 cat >> confdefs.h <<EOF
6350 #define $ac_tr_hdr 1
6354 echo "$ac_t""no" 1>&6
6359 if test $ac_cv_header_krb_h = yes ; then
6360 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6361 echo "configure:6362: checking for main in -lkrb" >&5
6362 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6366 ac_save_LIBS="$LIBS"
6367 LIBS="-lkrb -ldes $LIBS"
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6378 eval "ac_cv_lib_$ac_lib_var=yes"
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6383 eval "ac_cv_lib_$ac_lib_var=no"
6386 LIBS="$ac_save_LIBS"
6389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6390 echo "$ac_t""yes" 1>&6
6393 echo "$ac_t""no" 1>&6
6398 if test $have_k4 = yes ; then
6399 ol_with_kerberos=found
6402 cat >> confdefs.h <<\EOF
6407 KRB4_LIBS="-lkrb -ldes"
6409 if test $ac_cv_header_krb_archaeology_h = yes ; then
6410 cat >> confdefs.h <<\EOF
6411 #define HAVE_KTH_KERBEROS 1
6419 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6423 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6426 elif test $ol_enable_kbind = yes ; then
6427 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6430 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6431 cat >> confdefs.h <<\EOF
6432 #define HAVE_KERBEROS 1
6436 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6437 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6441 if test $ol_with_tls != no ; then
6442 for ac_hdr in openssl/ssl.h ssl.h
6444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6446 echo "configure:6447: checking for $ac_hdr" >&5
6447 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6456 { (eval echo configure:6457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6458 if test -z "$ac_err"; then
6460 eval "ac_cv_header_$ac_safe=yes"
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 eval "ac_cv_header_$ac_safe=no"
6470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6473 cat >> confdefs.h <<EOF
6474 #define $ac_tr_hdr 1
6478 echo "$ac_t""no" 1>&6
6483 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6484 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6485 echo "configure:6486: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6486 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6487 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 ac_save_LIBS="$LIBS"
6491 LIBS="-lssl -lcrypto $LIBS"
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6498 char SSLeay_add_ssl_algorithms();
6501 SSLeay_add_ssl_algorithms()
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 eval "ac_cv_lib_$ac_lib_var=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 eval "ac_cv_lib_$ac_lib_var=no"
6514 LIBS="$ac_save_LIBS"
6517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6522 echo "$ac_t""no" 1>&6
6527 if test $have_ssleay = no ; then
6528 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6529 echo "configure:6530: checking for SSL_library_init in -lssl" >&5
6530 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6531 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 ac_save_LIBS="$LIBS"
6535 LIBS="-lssl -lcrypto $LIBS"
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char SSL_library_init();
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 eval "ac_cv_lib_$ac_lib_var=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_lib_$ac_lib_var=no"
6558 LIBS="$ac_save_LIBS"
6561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6566 echo "$ac_t""no" 1>&6
6572 if test $have_ssleay = no ; then
6573 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6574 echo "configure:6575: checking for ssl3_accept in -lssl" >&5
6575 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6576 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6579 ac_save_LIBS="$LIBS"
6580 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6581 cat > conftest.$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6593 if { (eval echo configure:6594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6595 eval "ac_cv_lib_$ac_lib_var=yes"
6597 echo "configure: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6600 eval "ac_cv_lib_$ac_lib_var=no"
6603 LIBS="$ac_save_LIBS"
6606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6607 echo "$ac_t""yes" 1>&6
6611 echo "$ac_t""no" 1>&6
6617 if test $have_ssleay = yes ; then
6621 cat >> confdefs.h <<\EOF
6622 #define HAVE_SSLEAY 1
6626 if test $need_rsaref = yes; then
6627 cat >> confdefs.h <<\EOF
6628 #define HAVE_RSAREF 1
6632 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6634 TLS_LIBS="-lssl -lcrypto"
6640 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6643 if test $ol_link_tls = yes ; then
6644 cat >> confdefs.h <<\EOF
6649 elif test $ol_with_tls = auto ; then
6650 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6651 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6653 elif test $ol_with_tls != no ; then
6654 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6659 gethostbyname_r gethostbyaddr_r \
6662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_func" >&5
6664 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char $ac_func(); below. */
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 eval "ac_cv_func_$ac_func=yes"
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 eval "ac_cv_func_$ac_func=no"
6704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6707 cat >> confdefs.h <<EOF
6708 #define $ac_tr_func 1
6712 echo "$ac_t""no" 1>&6
6717 if test "$ac_cv_func_ctime_r" = no ; then
6718 ol_cv_func_ctime_r_nargs=0
6720 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6721 echo "configure:6722: checking number of arguments of ctime_r" >&5
6722 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6730 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6733 if { (eval echo configure:6734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6735 ol_cv_func_ctime_r_nargs3=yes
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 ol_cv_func_ctime_r_nargs3=no
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6749 time_t ti; char *buffer; ctime_r(&ti,buffer);
6752 if { (eval echo configure:6753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6754 ol_cv_func_ctime_r_nargs2=yes
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 ol_cv_func_ctime_r_nargs2=no
6763 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6764 $ol_cv_func_ctime_r_nargs2 = no ; then
6766 ol_cv_func_ctime_r_nargs=3
6768 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6769 $ol_cv_func_ctime_r_nargs2 = yes ; then
6771 ol_cv_func_ctime_r_nargs=2
6774 ol_cv_func_ctime_r_nargs=0
6779 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6781 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6782 cat >> confdefs.h <<EOF
6783 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6790 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6791 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6792 echo "configure:6793: checking number of arguments of gethostbyname_r" >&5
6793 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include <sys/types.h>
6800 #include <sys/socket.h>
6801 #include <netinet/in.h>
6803 #define BUFSIZE (sizeof(struct hostent)+10)
6805 struct hostent hent; char buffer[BUFSIZE];
6806 int bufsize=BUFSIZE;int h_errno;
6807 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6808 buffer, bufsize, &h_errno);
6811 if { (eval echo configure:6812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6813 ol_cv_func_gethostbyname_r_nargs5=yes
6815 echo "configure: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 ol_cv_func_gethostbyname_r_nargs5=no
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 #include <sys/types.h>
6826 #include <sys/socket.h>
6827 #include <netinet/in.h>
6829 #define BUFSIZE (sizeof(struct hostent)+10)
6831 struct hostent hent;struct hostent *rhent;
6832 char buffer[BUFSIZE];
6833 int bufsize=BUFSIZE;int h_errno;
6834 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6838 if { (eval echo configure:6839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6840 ol_cv_func_gethostbyname_r_nargs6=yes
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 ol_cv_func_gethostbyname_r_nargs6=no
6849 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6850 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6852 ol_cv_func_gethostbyname_r_nargs=5
6854 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6855 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6857 ol_cv_func_gethostbyname_r_nargs=6
6860 ol_cv_func_gethostbyname_r_nargs=0
6865 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6866 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6867 cat >> confdefs.h <<EOF
6868 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6874 ol_cv_func_gethostbyname_r_nargs=0
6877 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6878 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6879 echo "configure:6880: checking number of arguments of gethostbyaddr_r" >&5
6880 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+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 #include <sys/types.h>
6887 #include <sys/socket.h>
6888 #include <netinet/in.h>
6890 #define BUFSIZE (sizeof(struct hostent)+10)
6892 struct hostent hent; char buffer[BUFSIZE];
6894 size_t alen=sizeof(struct in_addr);
6895 int bufsize=BUFSIZE;int h_errno;
6896 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6897 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6900 if { (eval echo configure:6901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6902 ol_cv_func_gethostbyaddr_r_nargs7=yes
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 ol_cv_func_gethostbyaddr_r_nargs7=no
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 #include <sys/types.h>
6915 #include <sys/socket.h>
6916 #include <netinet/in.h>
6918 #define BUFSIZE (sizeof(struct hostent)+10)
6920 struct hostent hent;
6921 struct hostent *rhent; char buffer[BUFSIZE];
6923 size_t alen=sizeof(struct in_addr);
6924 int bufsize=BUFSIZE;int h_errno;
6925 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6926 alen, AF_INET, &hent, buffer, bufsize,
6930 if { (eval echo configure:6931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6932 ol_cv_func_gethostbyaddr_r_nargs8=yes
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6937 ol_cv_func_gethostbyaddr_r_nargs8=no
6941 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6942 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6944 ol_cv_func_gethostbyaddr_r_nargs=7
6946 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6947 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6949 ol_cv_func_gethostbyaddr_r_nargs=8
6952 ol_cv_func_gethostbyaddr_r_nargs=0
6957 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6958 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6959 cat >> confdefs.h <<EOF
6960 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6966 ol_cv_func_gethostbyaddr_r_nargs=0
6969 if test "$ac_cv_func_ctime_r" = yes \
6970 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6971 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6972 -a "$ac_cv_func_gethostbyname_r" = yes \
6973 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6974 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6975 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6976 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6977 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6980 cat >> confdefs.h <<\EOF
6981 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6988 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6989 -o $ol_with_threads = nt ; then
6992 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6993 echo "configure:6994: checking for NT Threads" >&5
6994 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6995 echo $ac_n "(cached) $ac_c" 1>&6
6998 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6999 echo "configure:7000: checking for _beginthread" >&5
7000 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7003 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure"
7005 #include "confdefs.h"
7006 /* System header to define __stub macros and hopefully few prototypes,
7007 which can conflict with char _beginthread(); below. */
7009 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char _beginthread();
7017 /* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7028 if { (eval echo configure:7029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7030 eval "ac_cv_func__beginthread=yes"
7032 echo "configure: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7035 eval "ac_cv_func__beginthread=no"
7040 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7041 echo "$ac_t""yes" 1>&6
7042 ol_cv_nt_threads=yes
7044 echo "$ac_t""no" 1>&6
7051 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7053 if test $ol_cv_nt_threads = yes ; then
7054 cat >> confdefs.h <<\EOF
7055 #define HAVE_NT_THREADS 1
7061 if test "$ol_cv_nt_threads" = yes ; then
7063 ol_with_threads=found
7064 ol_with_yielding_select=yes
7066 cat >> confdefs.h <<\EOF
7067 #define HAVE_NT_SERVICE_MANAGER 1
7070 cat >> confdefs.h <<\EOF
7071 #define HAVE_NT_EVENT_LOG 1
7076 if test $ol_with_threads = nt ; then
7077 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7081 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7082 -o $ol_with_threads = posix ; then
7084 for ac_hdr in pthread.h
7086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_hdr" >&5
7089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7098 { (eval echo configure:7099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7100 if test -z "$ac_err"; then
7102 eval "ac_cv_header_$ac_safe=yes"
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 eval "ac_cv_header_$ac_safe=no"
7112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7113 echo "$ac_t""yes" 1>&6
7114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7115 cat >> confdefs.h <<EOF
7116 #define $ac_tr_hdr 1
7120 echo "$ac_t""no" 1>&6
7125 if test $ac_cv_header_pthread_h = yes ; then
7126 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7127 echo "configure:7128: checking POSIX thread version" >&5
7128 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7136 # include <pthread.h>
7137 /* this check could be improved */
7138 # ifdef PTHREAD_ONCE_INIT
7139 pthread_version_final;
7143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7144 egrep "pthread_version_final" >/dev/null 2>&1; then
7146 ol_pthread_final=yes
7154 cat > conftest.$ac_ext <<EOF
7155 #line 7156 "configure"
7156 #include "confdefs.h"
7158 # include <pthread.h>
7159 /* this check could be improved */
7160 # ifdef pthread_once_init
7161 pthread_version_draft4;
7165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7166 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7168 ol_pthread_draft4=yes
7171 ol_pthread_draft4=no
7176 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7177 ol_cv_pthread_version=final
7178 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7179 ol_cv_pthread_version=draft4
7181 ol_cv_pthread_version=unknown
7186 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7189 if test $ol_cv_pthread_version = final ; then
7190 cat >> confdefs.h <<\EOF
7191 #define HAVE_PTHREADS_FINAL 1
7194 elif test $ol_cv_pthread_version = draft4 ; then
7195 cat >> confdefs.h <<\EOF
7196 #define HAVE_PTHREADS_D4 1
7200 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7203 # consider threads found
7204 ol_with_threads=found
7207 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7208 echo "configure:7209: checking for LinuxThreads pthread.h" >&5
7209 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <pthread.h>
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7220 ol_cv_header_linux_threads=yes
7223 ol_cv_header_linux_threads=no
7230 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7231 if test $ol_cv_header_linux_threads = yes; then
7232 cat >> confdefs.h <<\EOF
7233 #define HAVE_LINUX_THREADS 1
7239 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7240 echo "configure:7241: checking for GNU Pth pthread.h" >&5
7241 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7242 echo $ac_n "(cached) $ac_c" 1>&6
7244 cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 #include <pthread.h>
7248 #ifdef _POSIX_THREAD_IS_GNU_PTH
7253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7254 egrep "__gnu_pth__" >/dev/null 2>&1; then
7256 ol_cv_header_gnu_pth_pthread_h=yes
7259 ol_cv_header_gnu_pth_pthread_h=no
7266 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7269 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7270 for ac_hdr in sched.h
7272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7274 echo "configure:7275: checking for $ac_hdr" >&5
7275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7276 echo $ac_n "(cached) $ac_c" 1>&6
7278 cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7284 { (eval echo configure:7285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7286 if test -z "$ac_err"; then
7288 eval "ac_cv_header_$ac_safe=yes"
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 eval "ac_cv_header_$ac_safe=no"
7298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6
7300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7301 cat >> confdefs.h <<EOF
7302 #define $ac_tr_hdr 1
7306 echo "$ac_t""no" 1>&6
7313 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7314 echo "configure:7315: checking for pthread_create in default libraries" >&5
7315 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7316 echo $ac_n "(cached) $ac_c" 1>&6
7319 if test "$cross_compiling" = yes; then
7320 cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 /* pthread test headers */
7324 #include <pthread.h>
7326 #define NULL (void*)0
7329 static void *task(p)
7332 return (void *) (p == NULL);
7337 /* pthread test function */
7340 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7341 /* This system (e.g. AIX) defaults detached; must override */
7342 pthread_attr_t attr;
7344 status = pthread_attr_init(&attr);
7345 if( status ) exit( status );
7347 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7348 if( status ) exit( status );
7352 #if HAVE_PTHREADS_D4
7353 #define ATTR pthread_attr_default
7358 /* make sure pthread_create() isn't just a stub */
7359 status = pthread_create(&t, ATTR, task, NULL);
7360 if( status ) exit( status );
7362 /* make sure pthread_detach() isn't just a stub */
7363 #if HAVE_PTHREADS_D4
7364 status = pthread_detach( &t );
7366 status = pthread_detach( t );
7369 #ifdef HAVE_LINUX_THREADS
7370 pthread_kill_other_threads_np();
7377 if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7379 ol_cv_pthread_create=yes
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7384 ol_cv_pthread_create=no
7388 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7391 /* pthread test headers */
7392 #include <pthread.h>
7394 #define NULL (void*)0
7397 static void *task(p)
7400 return (void *) (p == NULL);
7404 int main(argc, argv)
7409 /* pthread test function */
7412 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7413 /* This system (e.g. AIX) defaults detached; must override */
7414 pthread_attr_t attr;
7416 status = pthread_attr_init(&attr);
7417 if( status ) exit( status );
7419 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7420 if( status ) exit( status );
7424 #if HAVE_PTHREADS_D4
7425 #define ATTR pthread_attr_default
7430 /* make sure pthread_create() isn't just a stub */
7431 status = pthread_create(&t, ATTR, task, NULL);
7432 if( status ) exit( status );
7434 /* make sure pthread_detach() isn't just a stub */
7435 #if HAVE_PTHREADS_D4
7436 status = pthread_detach( &t );
7438 status = pthread_detach( t );
7441 #ifdef HAVE_LINUX_THREADS
7442 pthread_kill_other_threads_np();
7450 if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7452 ol_cv_pthread_create=yes
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7457 ol_cv_pthread_create=no
7464 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7466 if test $ol_cv_pthread_create != no ; then
7467 ol_link_threads=posix
7471 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7472 if test "$ol_link_threads" = no ; then
7474 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7475 echo "configure:7476: checking for pthread link with -kthread" >&5
7476 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7482 LIBS="-kthread $LIBS"
7484 if test "$cross_compiling" = yes; then
7485 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7488 /* pthread test headers */
7489 #include <pthread.h>
7491 #define NULL (void*)0
7494 static void *task(p)
7497 return (void *) (p == NULL);
7502 /* pthread test function */
7505 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7506 /* This system (e.g. AIX) defaults detached; must override */
7507 pthread_attr_t attr;
7509 status = pthread_attr_init(&attr);
7510 if( status ) exit( status );
7512 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7513 if( status ) exit( status );
7517 #if HAVE_PTHREADS_D4
7518 #define ATTR pthread_attr_default
7523 /* make sure pthread_create() isn't just a stub */
7524 status = pthread_create(&t, ATTR, task, NULL);
7525 if( status ) exit( status );
7527 /* make sure pthread_detach() isn't just a stub */
7528 #if HAVE_PTHREADS_D4
7529 status = pthread_detach( &t );
7531 status = pthread_detach( t );
7534 #ifdef HAVE_LINUX_THREADS
7535 pthread_kill_other_threads_np();
7542 if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7544 ol_cv_pthread_kthread=yes
7546 echo "configure: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7549 ol_cv_pthread_kthread=no
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* pthread test headers */
7557 #include <pthread.h>
7559 #define NULL (void*)0
7562 static void *task(p)
7565 return (void *) (p == NULL);
7569 int main(argc, argv)
7574 /* pthread test function */
7577 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7578 /* This system (e.g. AIX) defaults detached; must override */
7579 pthread_attr_t attr;
7581 status = pthread_attr_init(&attr);
7582 if( status ) exit( status );
7584 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7585 if( status ) exit( status );
7589 #if HAVE_PTHREADS_D4
7590 #define ATTR pthread_attr_default
7595 /* make sure pthread_create() isn't just a stub */
7596 status = pthread_create(&t, ATTR, task, NULL);
7597 if( status ) exit( status );
7599 /* make sure pthread_detach() isn't just a stub */
7600 #if HAVE_PTHREADS_D4
7601 status = pthread_detach( &t );
7603 status = pthread_detach( t );
7606 #ifdef HAVE_LINUX_THREADS
7607 pthread_kill_other_threads_np();
7615 if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7617 ol_cv_pthread_kthread=yes
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7622 ol_cv_pthread_kthread=no
7633 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7635 if test $ol_cv_pthread_kthread = yes ; then
7636 ol_link_pthreads="-kthread"
7637 ol_link_threads=posix
7641 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7642 if test "$ol_link_threads" = no ; then
7644 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7645 echo "configure:7646: checking for pthread link with -pthread" >&5
7646 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7652 LIBS="-pthread $LIBS"
7654 if test "$cross_compiling" = yes; then
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* pthread test headers */
7659 #include <pthread.h>
7661 #define NULL (void*)0
7664 static void *task(p)
7667 return (void *) (p == NULL);
7672 /* pthread test function */
7675 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7676 /* This system (e.g. AIX) defaults detached; must override */
7677 pthread_attr_t attr;
7679 status = pthread_attr_init(&attr);
7680 if( status ) exit( status );
7682 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7683 if( status ) exit( status );
7687 #if HAVE_PTHREADS_D4
7688 #define ATTR pthread_attr_default
7693 /* make sure pthread_create() isn't just a stub */
7694 status = pthread_create(&t, ATTR, task, NULL);
7695 if( status ) exit( status );
7697 /* make sure pthread_detach() isn't just a stub */
7698 #if HAVE_PTHREADS_D4
7699 status = pthread_detach( &t );
7701 status = pthread_detach( t );
7704 #ifdef HAVE_LINUX_THREADS
7705 pthread_kill_other_threads_np();
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7714 ol_cv_pthread_pthread=yes
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 ol_cv_pthread_pthread=no
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* pthread test headers */
7727 #include <pthread.h>
7729 #define NULL (void*)0
7732 static void *task(p)
7735 return (void *) (p == NULL);
7739 int main(argc, argv)
7744 /* pthread test function */
7747 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7748 /* This system (e.g. AIX) defaults detached; must override */
7749 pthread_attr_t attr;
7751 status = pthread_attr_init(&attr);
7752 if( status ) exit( status );
7754 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7755 if( status ) exit( status );
7759 #if HAVE_PTHREADS_D4
7760 #define ATTR pthread_attr_default
7765 /* make sure pthread_create() isn't just a stub */
7766 status = pthread_create(&t, ATTR, task, NULL);
7767 if( status ) exit( status );
7769 /* make sure pthread_detach() isn't just a stub */
7770 #if HAVE_PTHREADS_D4
7771 status = pthread_detach( &t );
7773 status = pthread_detach( t );
7776 #ifdef HAVE_LINUX_THREADS
7777 pthread_kill_other_threads_np();
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7787 ol_cv_pthread_pthread=yes
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 ol_cv_pthread_pthread=no
7803 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7805 if test $ol_cv_pthread_pthread = yes ; then
7806 ol_link_pthreads="-pthread"
7807 ol_link_threads=posix
7811 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7812 if test "$ol_link_threads" = no ; then
7814 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7815 echo "configure:7816: checking for pthread link with -pthreads" >&5
7816 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7822 LIBS="-pthreads $LIBS"
7824 if test "$cross_compiling" = yes; then
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* pthread test headers */
7829 #include <pthread.h>
7831 #define NULL (void*)0
7834 static void *task(p)
7837 return (void *) (p == NULL);
7842 /* pthread test function */
7845 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7846 /* This system (e.g. AIX) defaults detached; must override */
7847 pthread_attr_t attr;
7849 status = pthread_attr_init(&attr);
7850 if( status ) exit( status );
7852 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7853 if( status ) exit( status );
7857 #if HAVE_PTHREADS_D4
7858 #define ATTR pthread_attr_default
7863 /* make sure pthread_create() isn't just a stub */
7864 status = pthread_create(&t, ATTR, task, NULL);
7865 if( status ) exit( status );
7867 /* make sure pthread_detach() isn't just a stub */
7868 #if HAVE_PTHREADS_D4
7869 status = pthread_detach( &t );
7871 status = pthread_detach( t );
7874 #ifdef HAVE_LINUX_THREADS
7875 pthread_kill_other_threads_np();
7882 if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7884 ol_cv_pthread_pthreads=yes
7886 echo "configure: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7889 ol_cv_pthread_pthreads=no
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* pthread test headers */
7897 #include <pthread.h>
7899 #define NULL (void*)0
7902 static void *task(p)
7905 return (void *) (p == NULL);
7909 int main(argc, argv)
7914 /* pthread test function */
7917 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7918 /* This system (e.g. AIX) defaults detached; must override */
7919 pthread_attr_t attr;
7921 status = pthread_attr_init(&attr);
7922 if( status ) exit( status );
7924 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7925 if( status ) exit( status );
7929 #if HAVE_PTHREADS_D4
7930 #define ATTR pthread_attr_default
7935 /* make sure pthread_create() isn't just a stub */
7936 status = pthread_create(&t, ATTR, task, NULL);
7937 if( status ) exit( status );
7939 /* make sure pthread_detach() isn't just a stub */
7940 #if HAVE_PTHREADS_D4
7941 status = pthread_detach( &t );
7943 status = pthread_detach( t );
7946 #ifdef HAVE_LINUX_THREADS
7947 pthread_kill_other_threads_np();
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7957 ol_cv_pthread_pthreads=yes
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 ol_cv_pthread_pthreads=no
7973 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7975 if test $ol_cv_pthread_pthreads = yes ; then
7976 ol_link_pthreads="-pthreads"
7977 ol_link_threads=posix
7981 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7982 if test "$ol_link_threads" = no ; then
7984 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7985 echo "configure:7986: checking for pthread link with -mthreads" >&5
7986 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7992 LIBS="-mthreads $LIBS"
7994 if test "$cross_compiling" = yes; then
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 /* pthread test headers */
7999 #include <pthread.h>
8001 #define NULL (void*)0
8004 static void *task(p)
8007 return (void *) (p == NULL);
8012 /* pthread test function */
8015 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8016 /* This system (e.g. AIX) defaults detached; must override */
8017 pthread_attr_t attr;
8019 status = pthread_attr_init(&attr);
8020 if( status ) exit( status );
8022 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8023 if( status ) exit( status );
8027 #if HAVE_PTHREADS_D4
8028 #define ATTR pthread_attr_default
8033 /* make sure pthread_create() isn't just a stub */
8034 status = pthread_create(&t, ATTR, task, NULL);
8035 if( status ) exit( status );
8037 /* make sure pthread_detach() isn't just a stub */
8038 #if HAVE_PTHREADS_D4
8039 status = pthread_detach( &t );
8041 status = pthread_detach( t );
8044 #ifdef HAVE_LINUX_THREADS
8045 pthread_kill_other_threads_np();
8052 if { (eval echo configure:8053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8054 ol_cv_pthread_mthreads=yes
8056 echo "configure: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8059 ol_cv_pthread_mthreads=no
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 /* pthread test headers */
8067 #include <pthread.h>
8069 #define NULL (void*)0
8072 static void *task(p)
8075 return (void *) (p == NULL);
8079 int main(argc, argv)
8084 /* pthread test function */
8087 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8088 /* This system (e.g. AIX) defaults detached; must override */
8089 pthread_attr_t attr;
8091 status = pthread_attr_init(&attr);
8092 if( status ) exit( status );
8094 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8095 if( status ) exit( status );
8099 #if HAVE_PTHREADS_D4
8100 #define ATTR pthread_attr_default
8105 /* make sure pthread_create() isn't just a stub */
8106 status = pthread_create(&t, ATTR, task, NULL);
8107 if( status ) exit( status );
8109 /* make sure pthread_detach() isn't just a stub */
8110 #if HAVE_PTHREADS_D4
8111 status = pthread_detach( &t );
8113 status = pthread_detach( t );
8116 #ifdef HAVE_LINUX_THREADS
8117 pthread_kill_other_threads_np();
8125 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8127 ol_cv_pthread_mthreads=yes
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 ol_cv_pthread_mthreads=no
8143 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8145 if test $ol_cv_pthread_mthreads = yes ; then
8146 ol_link_pthreads="-mthreads"
8147 ol_link_threads=posix
8151 # Pthread try link: -thread (ol_cv_pthread_thread)
8152 if test "$ol_link_threads" = no ; then
8154 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8155 echo "configure:8156: checking for pthread link with -thread" >&5
8156 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8162 LIBS="-thread $LIBS"
8164 if test "$cross_compiling" = yes; then
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 /* pthread test headers */
8169 #include <pthread.h>
8171 #define NULL (void*)0
8174 static void *task(p)
8177 return (void *) (p == NULL);
8182 /* pthread test function */
8185 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8186 /* This system (e.g. AIX) defaults detached; must override */
8187 pthread_attr_t attr;
8189 status = pthread_attr_init(&attr);
8190 if( status ) exit( status );
8192 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8193 if( status ) exit( status );
8197 #if HAVE_PTHREADS_D4
8198 #define ATTR pthread_attr_default
8203 /* make sure pthread_create() isn't just a stub */
8204 status = pthread_create(&t, ATTR, task, NULL);
8205 if( status ) exit( status );
8207 /* make sure pthread_detach() isn't just a stub */
8208 #if HAVE_PTHREADS_D4
8209 status = pthread_detach( &t );
8211 status = pthread_detach( t );
8214 #ifdef HAVE_LINUX_THREADS
8215 pthread_kill_other_threads_np();
8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8224 ol_cv_pthread_thread=yes
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8229 ol_cv_pthread_thread=no
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* pthread test headers */
8237 #include <pthread.h>
8239 #define NULL (void*)0
8242 static void *task(p)
8245 return (void *) (p == NULL);
8249 int main(argc, argv)
8254 /* pthread test function */
8257 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8258 /* This system (e.g. AIX) defaults detached; must override */
8259 pthread_attr_t attr;
8261 status = pthread_attr_init(&attr);
8262 if( status ) exit( status );
8264 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8265 if( status ) exit( status );
8269 #if HAVE_PTHREADS_D4
8270 #define ATTR pthread_attr_default
8275 /* make sure pthread_create() isn't just a stub */
8276 status = pthread_create(&t, ATTR, task, NULL);
8277 if( status ) exit( status );
8279 /* make sure pthread_detach() isn't just a stub */
8280 #if HAVE_PTHREADS_D4
8281 status = pthread_detach( &t );
8283 status = pthread_detach( t );
8286 #ifdef HAVE_LINUX_THREADS
8287 pthread_kill_other_threads_np();
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8297 ol_cv_pthread_thread=yes
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 ol_cv_pthread_thread=no
8313 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8315 if test $ol_cv_pthread_thread = yes ; then
8316 ol_link_pthreads="-thread"
8317 ol_link_threads=posix
8322 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8323 if test "$ol_link_threads" = no ; then
8324 # try -lpthread -lmach -lexc -lc_r
8325 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8326 echo "configure:8327: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8327 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8333 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8335 if test "$cross_compiling" = yes; then
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 /* pthread test headers */
8340 #include <pthread.h>
8342 #define NULL (void*)0
8345 static void *task(p)
8348 return (void *) (p == NULL);
8353 /* pthread test function */
8356 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8357 /* This system (e.g. AIX) defaults detached; must override */
8358 pthread_attr_t attr;
8360 status = pthread_attr_init(&attr);
8361 if( status ) exit( status );
8363 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8364 if( status ) exit( status );
8368 #if HAVE_PTHREADS_D4
8369 #define ATTR pthread_attr_default
8374 /* make sure pthread_create() isn't just a stub */
8375 status = pthread_create(&t, ATTR, task, NULL);
8376 if( status ) exit( status );
8378 /* make sure pthread_detach() isn't just a stub */
8379 #if HAVE_PTHREADS_D4
8380 status = pthread_detach( &t );
8382 status = pthread_detach( t );
8385 #ifdef HAVE_LINUX_THREADS
8386 pthread_kill_other_threads_np();
8393 if { (eval echo configure:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8395 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8404 cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8407 /* pthread test headers */
8408 #include <pthread.h>
8410 #define NULL (void*)0
8413 static void *task(p)
8416 return (void *) (p == NULL);
8420 int main(argc, argv)
8425 /* pthread test function */
8428 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8429 /* This system (e.g. AIX) defaults detached; must override */
8430 pthread_attr_t attr;
8432 status = pthread_attr_init(&attr);
8433 if( status ) exit( status );
8435 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8436 if( status ) exit( status );
8440 #if HAVE_PTHREADS_D4
8441 #define ATTR pthread_attr_default
8446 /* make sure pthread_create() isn't just a stub */
8447 status = pthread_create(&t, ATTR, task, NULL);
8448 if( status ) exit( status );
8450 /* make sure pthread_detach() isn't just a stub */
8451 #if HAVE_PTHREADS_D4
8452 status = pthread_detach( &t );
8454 status = pthread_detach( t );
8457 #ifdef HAVE_LINUX_THREADS
8458 pthread_kill_other_threads_np();
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8468 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8470 echo "configure: failed program was:" >&5
8471 cat conftest.$ac_ext >&5
8473 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8484 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8486 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8487 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8488 ol_link_threads=posix
8492 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8493 if test "$ol_link_threads" = no ; then
8494 # try -lpthread -lmach -lexc
8495 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8496 echo "configure:8497: checking for pthread link with -lpthread -lmach -lexc" >&5
8497 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8503 LIBS="-lpthread -lmach -lexc $LIBS"
8505 if test "$cross_compiling" = yes; then
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 /* pthread test headers */
8510 #include <pthread.h>
8512 #define NULL (void*)0
8515 static void *task(p)
8518 return (void *) (p == NULL);
8523 /* pthread test function */
8526 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8527 /* This system (e.g. AIX) defaults detached; must override */
8528 pthread_attr_t attr;
8530 status = pthread_attr_init(&attr);
8531 if( status ) exit( status );
8533 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8534 if( status ) exit( status );
8538 #if HAVE_PTHREADS_D4
8539 #define ATTR pthread_attr_default
8544 /* make sure pthread_create() isn't just a stub */
8545 status = pthread_create(&t, ATTR, task, NULL);
8546 if( status ) exit( status );
8548 /* make sure pthread_detach() isn't just a stub */
8549 #if HAVE_PTHREADS_D4
8550 status = pthread_detach( &t );
8552 status = pthread_detach( t );
8555 #ifdef HAVE_LINUX_THREADS
8556 pthread_kill_other_threads_np();
8563 if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8565 ol_cv_pthread_lpthread_lmach_lexc=yes
8567 echo "configure: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8570 ol_cv_pthread_lpthread_lmach_lexc=no
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 /* pthread test headers */
8578 #include <pthread.h>
8580 #define NULL (void*)0
8583 static void *task(p)
8586 return (void *) (p == NULL);
8590 int main(argc, argv)
8595 /* pthread test function */
8598 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8599 /* This system (e.g. AIX) defaults detached; must override */
8600 pthread_attr_t attr;
8602 status = pthread_attr_init(&attr);
8603 if( status ) exit( status );
8605 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8606 if( status ) exit( status );
8610 #if HAVE_PTHREADS_D4
8611 #define ATTR pthread_attr_default
8616 /* make sure pthread_create() isn't just a stub */
8617 status = pthread_create(&t, ATTR, task, NULL);
8618 if( status ) exit( status );
8620 /* make sure pthread_detach() isn't just a stub */
8621 #if HAVE_PTHREADS_D4
8622 status = pthread_detach( &t );
8624 status = pthread_detach( t );
8627 #ifdef HAVE_LINUX_THREADS
8628 pthread_kill_other_threads_np();
8636 if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8638 ol_cv_pthread_lpthread_lmach_lexc=yes
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8643 ol_cv_pthread_lpthread_lmach_lexc=no
8654 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8656 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8657 ol_link_pthreads="-lpthread -lmach -lexc"
8658 ol_link_threads=posix
8663 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8664 if test "$ol_link_threads" = no ; then
8665 # try -lpthread -Wl,-woff,85
8666 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8667 echo "configure:8668: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8668 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8674 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8676 if test "$cross_compiling" = yes; then
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 /* pthread test headers */
8681 #include <pthread.h>
8683 #define NULL (void*)0
8686 static void *task(p)
8689 return (void *) (p == NULL);
8694 /* pthread test function */
8697 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8698 /* This system (e.g. AIX) defaults detached; must override */
8699 pthread_attr_t attr;
8701 status = pthread_attr_init(&attr);
8702 if( status ) exit( status );
8704 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8705 if( status ) exit( status );
8709 #if HAVE_PTHREADS_D4
8710 #define ATTR pthread_attr_default
8715 /* make sure pthread_create() isn't just a stub */
8716 status = pthread_create(&t, ATTR, task, NULL);
8717 if( status ) exit( status );
8719 /* make sure pthread_detach() isn't just a stub */
8720 #if HAVE_PTHREADS_D4
8721 status = pthread_detach( &t );
8723 status = pthread_detach( t );
8726 #ifdef HAVE_LINUX_THREADS
8727 pthread_kill_other_threads_np();
8734 if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8736 ol_cv_pthread_lib_lpthread_woff=yes
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8741 ol_cv_pthread_lib_lpthread_woff=no
8745 cat > conftest.$ac_ext <<EOF
8746 #line 8747 "configure"
8747 #include "confdefs.h"
8748 /* pthread test headers */
8749 #include <pthread.h>
8751 #define NULL (void*)0
8754 static void *task(p)
8757 return (void *) (p == NULL);
8761 int main(argc, argv)
8766 /* pthread test function */
8769 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8770 /* This system (e.g. AIX) defaults detached; must override */
8771 pthread_attr_t attr;
8773 status = pthread_attr_init(&attr);
8774 if( status ) exit( status );
8776 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8777 if( status ) exit( status );
8781 #if HAVE_PTHREADS_D4
8782 #define ATTR pthread_attr_default
8787 /* make sure pthread_create() isn't just a stub */
8788 status = pthread_create(&t, ATTR, task, NULL);
8789 if( status ) exit( status );
8791 /* make sure pthread_detach() isn't just a stub */
8792 #if HAVE_PTHREADS_D4
8793 status = pthread_detach( &t );
8795 status = pthread_detach( t );
8798 #ifdef HAVE_LINUX_THREADS
8799 pthread_kill_other_threads_np();
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8809 ol_cv_pthread_lib_lpthread_woff=yes
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8814 ol_cv_pthread_lib_lpthread_woff=no
8825 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8827 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8828 ol_link_pthreads="-lpthread -Wl,-woff,85"
8829 ol_link_threads=posix
8834 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8835 if test "$ol_link_threads" = no ; then
8837 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8838 echo "configure:8839: checking for pthread link with -lpthread" >&5
8839 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8845 LIBS="-lpthread $LIBS"
8847 if test "$cross_compiling" = yes; then
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 /* pthread test headers */
8852 #include <pthread.h>
8854 #define NULL (void*)0
8857 static void *task(p)
8860 return (void *) (p == NULL);
8865 /* pthread test function */
8868 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8869 /* This system (e.g. AIX) defaults detached; must override */
8870 pthread_attr_t attr;
8872 status = pthread_attr_init(&attr);
8873 if( status ) exit( status );
8875 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8876 if( status ) exit( status );
8880 #if HAVE_PTHREADS_D4
8881 #define ATTR pthread_attr_default
8886 /* make sure pthread_create() isn't just a stub */
8887 status = pthread_create(&t, ATTR, task, NULL);
8888 if( status ) exit( status );
8890 /* make sure pthread_detach() isn't just a stub */
8891 #if HAVE_PTHREADS_D4
8892 status = pthread_detach( &t );
8894 status = pthread_detach( t );
8897 #ifdef HAVE_LINUX_THREADS
8898 pthread_kill_other_threads_np();
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8907 ol_cv_pthread_lpthread=yes
8909 echo "configure: failed program was:" >&5
8910 cat conftest.$ac_ext >&5
8912 ol_cv_pthread_lpthread=no
8916 cat > conftest.$ac_ext <<EOF
8917 #line 8918 "configure"
8918 #include "confdefs.h"
8919 /* pthread test headers */
8920 #include <pthread.h>
8922 #define NULL (void*)0
8925 static void *task(p)
8928 return (void *) (p == NULL);
8932 int main(argc, argv)
8937 /* pthread test function */
8940 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8941 /* This system (e.g. AIX) defaults detached; must override */
8942 pthread_attr_t attr;
8944 status = pthread_attr_init(&attr);
8945 if( status ) exit( status );
8947 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8948 if( status ) exit( status );
8952 #if HAVE_PTHREADS_D4
8953 #define ATTR pthread_attr_default
8958 /* make sure pthread_create() isn't just a stub */
8959 status = pthread_create(&t, ATTR, task, NULL);
8960 if( status ) exit( status );
8962 /* make sure pthread_detach() isn't just a stub */
8963 #if HAVE_PTHREADS_D4
8964 status = pthread_detach( &t );
8966 status = pthread_detach( t );
8969 #ifdef HAVE_LINUX_THREADS
8970 pthread_kill_other_threads_np();
8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8980 ol_cv_pthread_lpthread=yes
8982 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5
8985 ol_cv_pthread_lpthread=no
8996 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8998 if test $ol_cv_pthread_lpthread = yes ; then
8999 ol_link_pthreads="-lpthread"
9000 ol_link_threads=posix
9004 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9005 if test "$ol_link_threads" = no ; then
9007 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9008 echo "configure:9009: checking for pthread link with -lc_r" >&5
9009 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9017 if test "$cross_compiling" = yes; then
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9021 /* pthread test headers */
9022 #include <pthread.h>
9024 #define NULL (void*)0
9027 static void *task(p)
9030 return (void *) (p == NULL);
9035 /* pthread test function */
9038 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9039 /* This system (e.g. AIX) defaults detached; must override */
9040 pthread_attr_t attr;
9042 status = pthread_attr_init(&attr);
9043 if( status ) exit( status );
9045 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9046 if( status ) exit( status );
9050 #if HAVE_PTHREADS_D4
9051 #define ATTR pthread_attr_default
9056 /* make sure pthread_create() isn't just a stub */
9057 status = pthread_create(&t, ATTR, task, NULL);
9058 if( status ) exit( status );
9060 /* make sure pthread_detach() isn't just a stub */
9061 #if HAVE_PTHREADS_D4
9062 status = pthread_detach( &t );
9064 status = pthread_detach( t );
9067 #ifdef HAVE_LINUX_THREADS
9068 pthread_kill_other_threads_np();
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9077 ol_cv_pthread_lc_r=yes
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 ol_cv_pthread_lc_r=no
9086 cat > conftest.$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 /* pthread test headers */
9090 #include <pthread.h>
9092 #define NULL (void*)0
9095 static void *task(p)
9098 return (void *) (p == NULL);
9102 int main(argc, argv)
9107 /* pthread test function */
9110 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9111 /* This system (e.g. AIX) defaults detached; must override */
9112 pthread_attr_t attr;
9114 status = pthread_attr_init(&attr);
9115 if( status ) exit( status );
9117 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9118 if( status ) exit( status );
9122 #if HAVE_PTHREADS_D4
9123 #define ATTR pthread_attr_default
9128 /* make sure pthread_create() isn't just a stub */
9129 status = pthread_create(&t, ATTR, task, NULL);
9130 if( status ) exit( status );
9132 /* make sure pthread_detach() isn't just a stub */
9133 #if HAVE_PTHREADS_D4
9134 status = pthread_detach( &t );
9136 status = pthread_detach( t );
9139 #ifdef HAVE_LINUX_THREADS
9140 pthread_kill_other_threads_np();
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9150 ol_cv_pthread_lc_r=yes
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 ol_cv_pthread_lc_r=no
9166 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9168 if test $ol_cv_pthread_lc_r = yes ; then
9169 ol_link_pthreads="-lc_r"
9170 ol_link_threads=posix
9175 # Pthread try link: -threads (ol_cv_pthread_threads)
9176 if test "$ol_link_threads" = no ; then
9178 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9179 echo "configure:9180: checking for pthread link with -threads" >&5
9180 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9186 LIBS="-threads $LIBS"
9188 if test "$cross_compiling" = yes; then
9189 cat > conftest.$ac_ext <<EOF
9190 #line 9191 "configure"
9191 #include "confdefs.h"
9192 /* pthread test headers */
9193 #include <pthread.h>
9195 #define NULL (void*)0
9198 static void *task(p)
9201 return (void *) (p == NULL);
9206 /* pthread test function */
9209 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9210 /* This system (e.g. AIX) defaults detached; must override */
9211 pthread_attr_t attr;
9213 status = pthread_attr_init(&attr);
9214 if( status ) exit( status );
9216 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9217 if( status ) exit( status );
9221 #if HAVE_PTHREADS_D4
9222 #define ATTR pthread_attr_default
9227 /* make sure pthread_create() isn't just a stub */
9228 status = pthread_create(&t, ATTR, task, NULL);
9229 if( status ) exit( status );
9231 /* make sure pthread_detach() isn't just a stub */
9232 #if HAVE_PTHREADS_D4
9233 status = pthread_detach( &t );
9235 status = pthread_detach( t );
9238 #ifdef HAVE_LINUX_THREADS
9239 pthread_kill_other_threads_np();
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9248 ol_cv_pthread_threads=yes
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9253 ol_cv_pthread_threads=no
9257 cat > conftest.$ac_ext <<EOF
9258 #line 9259 "configure"
9259 #include "confdefs.h"
9260 /* pthread test headers */
9261 #include <pthread.h>
9263 #define NULL (void*)0
9266 static void *task(p)
9269 return (void *) (p == NULL);
9273 int main(argc, argv)
9278 /* pthread test function */
9281 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9282 /* This system (e.g. AIX) defaults detached; must override */
9283 pthread_attr_t attr;
9285 status = pthread_attr_init(&attr);
9286 if( status ) exit( status );
9288 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9289 if( status ) exit( status );
9293 #if HAVE_PTHREADS_D4
9294 #define ATTR pthread_attr_default
9299 /* make sure pthread_create() isn't just a stub */
9300 status = pthread_create(&t, ATTR, task, NULL);
9301 if( status ) exit( status );
9303 /* make sure pthread_detach() isn't just a stub */
9304 #if HAVE_PTHREADS_D4
9305 status = pthread_detach( &t );
9307 status = pthread_detach( t );
9310 #ifdef HAVE_LINUX_THREADS
9311 pthread_kill_other_threads_np();
9319 if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9321 ol_cv_pthread_threads=yes
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9326 ol_cv_pthread_threads=no
9337 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9339 if test $ol_cv_pthread_threads = yes ; then
9340 ol_link_pthreads="-threads"
9341 ol_link_threads=posix
9346 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9347 if test "$ol_link_threads" = no ; then
9348 # try -lpthreads -lmach -lexc -lc_r
9349 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9350 echo "configure:9351: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9351 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
9357 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9359 if test "$cross_compiling" = yes; then
9360 cat > conftest.$ac_ext <<EOF
9361 #line 9362 "configure"
9362 #include "confdefs.h"
9363 /* pthread test headers */
9364 #include <pthread.h>
9366 #define NULL (void*)0
9369 static void *task(p)
9372 return (void *) (p == NULL);
9377 /* pthread test function */
9380 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9381 /* This system (e.g. AIX) defaults detached; must override */
9382 pthread_attr_t attr;
9384 status = pthread_attr_init(&attr);
9385 if( status ) exit( status );
9387 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9388 if( status ) exit( status );
9392 #if HAVE_PTHREADS_D4
9393 #define ATTR pthread_attr_default
9398 /* make sure pthread_create() isn't just a stub */
9399 status = pthread_create(&t, ATTR, task, NULL);
9400 if( status ) exit( status );
9402 /* make sure pthread_detach() isn't just a stub */
9403 #if HAVE_PTHREADS_D4
9404 status = pthread_detach( &t );
9406 status = pthread_detach( t );
9409 #ifdef HAVE_LINUX_THREADS
9410 pthread_kill_other_threads_np();
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 /* pthread test headers */
9432 #include <pthread.h>
9434 #define NULL (void*)0
9437 static void *task(p)
9440 return (void *) (p == NULL);
9444 int main(argc, argv)
9449 /* pthread test function */
9452 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9453 /* This system (e.g. AIX) defaults detached; must override */
9454 pthread_attr_t attr;
9456 status = pthread_attr_init(&attr);
9457 if( status ) exit( status );
9459 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9460 if( status ) exit( status );
9464 #if HAVE_PTHREADS_D4
9465 #define ATTR pthread_attr_default
9470 /* make sure pthread_create() isn't just a stub */
9471 status = pthread_create(&t, ATTR, task, NULL);
9472 if( status ) exit( status );
9474 /* make sure pthread_detach() isn't just a stub */
9475 #if HAVE_PTHREADS_D4
9476 status = pthread_detach( &t );
9478 status = pthread_detach( t );
9481 #ifdef HAVE_LINUX_THREADS
9482 pthread_kill_other_threads_np();
9490 if { (eval echo configure:9491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9492 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9497 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9508 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9510 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9511 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9512 ol_link_threads=posix
9516 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9517 if test "$ol_link_threads" = no ; then
9518 # try -lpthreads -lmach -lexc
9519 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9520 echo "configure:9521: checking for pthread link with -lpthreads -lmach -lexc" >&5
9521 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9527 LIBS="-lpthreads -lmach -lexc $LIBS"
9529 if test "$cross_compiling" = yes; then
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 /* pthread test headers */
9534 #include <pthread.h>
9536 #define NULL (void*)0
9539 static void *task(p)
9542 return (void *) (p == NULL);
9547 /* pthread test function */
9550 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9551 /* This system (e.g. AIX) defaults detached; must override */
9552 pthread_attr_t attr;
9554 status = pthread_attr_init(&attr);
9555 if( status ) exit( status );
9557 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9558 if( status ) exit( status );
9562 #if HAVE_PTHREADS_D4
9563 #define ATTR pthread_attr_default
9568 /* make sure pthread_create() isn't just a stub */
9569 status = pthread_create(&t, ATTR, task, NULL);
9570 if( status ) exit( status );
9572 /* make sure pthread_detach() isn't just a stub */
9573 #if HAVE_PTHREADS_D4
9574 status = pthread_detach( &t );
9576 status = pthread_detach( t );
9579 #ifdef HAVE_LINUX_THREADS
9580 pthread_kill_other_threads_np();
9587 if { (eval echo configure:9588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9589 ol_cv_pthread_lpthreads_lmach_lexc=yes
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 ol_cv_pthread_lpthreads_lmach_lexc=no
9598 cat > conftest.$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9601 /* pthread test headers */
9602 #include <pthread.h>
9604 #define NULL (void*)0
9607 static void *task(p)
9610 return (void *) (p == NULL);
9614 int main(argc, argv)
9619 /* pthread test function */
9622 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9623 /* This system (e.g. AIX) defaults detached; must override */
9624 pthread_attr_t attr;
9626 status = pthread_attr_init(&attr);
9627 if( status ) exit( status );
9629 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9630 if( status ) exit( status );
9634 #if HAVE_PTHREADS_D4
9635 #define ATTR pthread_attr_default
9640 /* make sure pthread_create() isn't just a stub */
9641 status = pthread_create(&t, ATTR, task, NULL);
9642 if( status ) exit( status );
9644 /* make sure pthread_detach() isn't just a stub */
9645 #if HAVE_PTHREADS_D4
9646 status = pthread_detach( &t );
9648 status = pthread_detach( t );
9651 #ifdef HAVE_LINUX_THREADS
9652 pthread_kill_other_threads_np();
9660 if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9662 ol_cv_pthread_lpthreads_lmach_lexc=yes
9664 echo "configure: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9667 ol_cv_pthread_lpthreads_lmach_lexc=no
9678 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9680 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9681 ol_link_pthreads="-lpthreads -lmach -lexc"
9682 ol_link_threads=posix
9686 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9687 if test "$ol_link_threads" = no ; then
9688 # try -lpthreads -lexc
9689 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9690 echo "configure:9691: checking for pthread link with -lpthreads -lexc" >&5
9691 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9697 LIBS="-lpthreads -lexc $LIBS"
9699 if test "$cross_compiling" = yes; then
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9703 /* pthread test headers */
9704 #include <pthread.h>
9706 #define NULL (void*)0
9709 static void *task(p)
9712 return (void *) (p == NULL);
9717 /* pthread test function */
9720 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9721 /* This system (e.g. AIX) defaults detached; must override */
9722 pthread_attr_t attr;
9724 status = pthread_attr_init(&attr);
9725 if( status ) exit( status );
9727 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9728 if( status ) exit( status );
9732 #if HAVE_PTHREADS_D4
9733 #define ATTR pthread_attr_default
9738 /* make sure pthread_create() isn't just a stub */
9739 status = pthread_create(&t, ATTR, task, NULL);
9740 if( status ) exit( status );
9742 /* make sure pthread_detach() isn't just a stub */
9743 #if HAVE_PTHREADS_D4
9744 status = pthread_detach( &t );
9746 status = pthread_detach( t );
9749 #ifdef HAVE_LINUX_THREADS
9750 pthread_kill_other_threads_np();
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9759 ol_cv_pthread_lpthreads_lexc=yes
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9764 ol_cv_pthread_lpthreads_lexc=no
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 /* pthread test headers */
9772 #include <pthread.h>
9774 #define NULL (void*)0
9777 static void *task(p)
9780 return (void *) (p == NULL);
9784 int main(argc, argv)
9789 /* pthread test function */
9792 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9793 /* This system (e.g. AIX) defaults detached; must override */
9794 pthread_attr_t attr;
9796 status = pthread_attr_init(&attr);
9797 if( status ) exit( status );
9799 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9800 if( status ) exit( status );
9804 #if HAVE_PTHREADS_D4
9805 #define ATTR pthread_attr_default
9810 /* make sure pthread_create() isn't just a stub */
9811 status = pthread_create(&t, ATTR, task, NULL);
9812 if( status ) exit( status );
9814 /* make sure pthread_detach() isn't just a stub */
9815 #if HAVE_PTHREADS_D4
9816 status = pthread_detach( &t );
9818 status = pthread_detach( t );
9821 #ifdef HAVE_LINUX_THREADS
9822 pthread_kill_other_threads_np();
9830 if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9832 ol_cv_pthread_lpthreads_lexc=yes
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9837 ol_cv_pthread_lpthreads_lexc=no
9848 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9850 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9851 ol_link_pthreads="-lpthreads -lexc"
9852 ol_link_threads=posix
9857 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9858 if test "$ol_link_threads" = no ; then
9860 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9861 echo "configure:9862: checking for pthread link with -lpthreads" >&5
9862 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9868 LIBS="-lpthreads $LIBS"
9870 if test "$cross_compiling" = yes; then
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 /* pthread test headers */
9875 #include <pthread.h>
9877 #define NULL (void*)0
9880 static void *task(p)
9883 return (void *) (p == NULL);
9888 /* pthread test function */
9891 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9892 /* This system (e.g. AIX) defaults detached; must override */
9893 pthread_attr_t attr;
9895 status = pthread_attr_init(&attr);
9896 if( status ) exit( status );
9898 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9899 if( status ) exit( status );
9903 #if HAVE_PTHREADS_D4
9904 #define ATTR pthread_attr_default
9909 /* make sure pthread_create() isn't just a stub */
9910 status = pthread_create(&t, ATTR, task, NULL);
9911 if( status ) exit( status );
9913 /* make sure pthread_detach() isn't just a stub */
9914 #if HAVE_PTHREADS_D4
9915 status = pthread_detach( &t );
9917 status = pthread_detach( t );
9920 #ifdef HAVE_LINUX_THREADS
9921 pthread_kill_other_threads_np();
9928 if { (eval echo configure:9929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9930 ol_cv_pthread_lib_lpthreads=yes
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9935 ol_cv_pthread_lib_lpthreads=no
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 /* pthread test headers */
9943 #include <pthread.h>
9945 #define NULL (void*)0
9948 static void *task(p)
9951 return (void *) (p == NULL);
9955 int main(argc, argv)
9960 /* pthread test function */
9963 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9964 /* This system (e.g. AIX) defaults detached; must override */
9965 pthread_attr_t attr;
9967 status = pthread_attr_init(&attr);
9968 if( status ) exit( status );
9970 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9971 if( status ) exit( status );
9975 #if HAVE_PTHREADS_D4
9976 #define ATTR pthread_attr_default
9981 /* make sure pthread_create() isn't just a stub */
9982 status = pthread_create(&t, ATTR, task, NULL);
9983 if( status ) exit( status );
9985 /* make sure pthread_detach() isn't just a stub */
9986 #if HAVE_PTHREADS_D4
9987 status = pthread_detach( &t );
9989 status = pthread_detach( t );
9992 #ifdef HAVE_LINUX_THREADS
9993 pthread_kill_other_threads_np();
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10003 ol_cv_pthread_lib_lpthreads=yes
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10008 ol_cv_pthread_lib_lpthreads=no
10019 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10021 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10022 ol_link_pthreads="-lpthreads"
10023 ol_link_threads=posix
10028 if test $ol_link_threads != no ; then
10029 cat >> confdefs.h <<\EOF
10030 #define HAVE_PTHREADS 1
10034 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10036 save_CPPFLAGS="$CPPFLAGS"
10038 LIBS="$LTHREAD_LIBS $LIBS"
10040 for ac_func in sched_yield pthread_yield
10042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10043 echo "configure:10044: checking for $ac_func" >&5
10044 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10047 cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func(); below. */
10052 #include <assert.h>
10053 /* Override any gcc2 internal prototype to avoid an error. */
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10061 /* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10074 eval "ac_cv_func_$ac_func=yes"
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10079 eval "ac_cv_func_$ac_func=no"
10084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10085 echo "$ac_t""yes" 1>&6
10086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10087 cat >> confdefs.h <<EOF
10088 #define $ac_tr_func 1
10092 echo "$ac_t""no" 1>&6
10097 if test $ac_cv_func_sched_yield = no -a \
10098 $ac_cv_func_pthread_yield = no ; then
10099 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10100 echo "configure:10101: checking for sched_yield in -lrt" >&5
10101 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10102 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10105 ac_save_LIBS="$LIBS"
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10113 char sched_yield();
10119 if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10121 eval "ac_cv_lib_$ac_lib_var=yes"
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10126 eval "ac_cv_lib_$ac_lib_var=no"
10129 LIBS="$ac_save_LIBS"
10132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10133 echo "$ac_t""yes" 1>&6
10134 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10135 cat >> confdefs.h <<\EOF
10136 #define HAVE_SCHED_YIELD 1
10139 ac_cv_func_sched_yield=yes
10141 echo "$ac_t""no" 1>&6
10142 ac_cv_func_sched_yield=no
10146 if test $ac_cv_func_sched_yield = no -a \
10147 $ac_cv_func_pthread_yield = no ; then
10148 for ac_func in thr_yield
10150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10151 echo "configure:10152: checking for $ac_func" >&5
10152 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10153 echo $ac_n "(cached) $ac_c" 1>&6
10155 cat > conftest.$ac_ext <<EOF
10156 #line 10157 "configure"
10157 #include "confdefs.h"
10158 /* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char $ac_func(); below. */
10160 #include <assert.h>
10161 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10169 /* The GNU C library defines this for functions which it implements
10170 to always fail with ENOSYS. Some functions are actually named
10171 something starting with __ and the normal name is an alias. */
10172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10180 if { (eval echo configure:10181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10182 eval "ac_cv_func_$ac_func=yes"
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 eval "ac_cv_func_$ac_func=no"
10192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10195 cat >> confdefs.h <<EOF
10196 #define $ac_tr_func 1
10200 echo "$ac_t""no" 1>&6
10205 if test $ac_cv_func_sched_yield = no -a \
10206 $ac_cv_func_pthread_yield = no -a \
10207 "$ac_cv_func_thr_yield" = no ; then
10208 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10211 for ac_func in pthread_kill pthread_rwlock_destroy
10213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10214 echo "configure:10215: checking for $ac_func" >&5
10215 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char $ac_func(); below. */
10223 #include <assert.h>
10224 /* Override any gcc2 internal prototype to avoid an error. */
10225 /* We use char because int might match the return type of a gcc2
10226 builtin and then its argument prototype would still apply. */
10232 /* The GNU C library defines this for functions which it implements
10233 to always fail with ENOSYS. Some functions are actually named
10234 something starting with __ and the normal name is an alias. */
10235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10243 if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10245 eval "ac_cv_func_$ac_func=yes"
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 eval "ac_cv_func_$ac_func=no"
10255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10256 echo "$ac_t""yes" 1>&6
10257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10258 cat >> confdefs.h <<EOF
10259 #define $ac_tr_func 1
10263 echo "$ac_t""no" 1>&6
10268 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10269 echo "configure:10270: checking for pthread_detach with <pthread.h>" >&5
10270 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10278 #include <pthread.h>
10280 #define NULL (void*)0
10284 pthread_detach(NULL);
10287 if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10289 ol_cv_func_pthread_detach=yes
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10294 ol_cv_func_pthread_detach=no
10300 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10302 if test $ol_cv_func_pthread_detach = no ; then
10303 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10306 cat >> confdefs.h <<\EOF
10307 #define HAVE_PTHREAD_DETACH 1
10312 pthread_setconcurrency \
10313 pthread_getconcurrency \
10314 thr_setconcurrency \
10315 thr_getconcurrency \
10318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10319 echo "configure:10320: checking for $ac_func" >&5
10320 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10323 cat > conftest.$ac_ext <<EOF
10324 #line 10325 "configure"
10325 #include "confdefs.h"
10326 /* System header to define __stub macros and hopefully few prototypes,
10327 which can conflict with char $ac_func(); below. */
10328 #include <assert.h>
10329 /* Override any gcc2 internal prototype to avoid an error. */
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10337 /* The GNU C library defines this for functions which it implements
10338 to always fail with ENOSYS. Some functions are actually named
10339 something starting with __ and the normal name is an alias. */
10340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10348 if { (eval echo configure:10349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10350 eval "ac_cv_func_$ac_func=yes"
10352 echo "configure: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 eval "ac_cv_func_$ac_func=no"
10360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10363 cat >> confdefs.h <<EOF
10364 #define $ac_tr_func 1
10368 echo "$ac_t""no" 1>&6
10374 for ac_func in pthread_kill_other_threads_np
10376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10377 echo "configure:10378: checking for $ac_func" >&5
10378 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func(); below. */
10386 #include <assert.h>
10387 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10395 /* The GNU C library defines this for functions which it implements
10396 to always fail with ENOSYS. Some functions are actually named
10397 something starting with __ and the normal name is an alias. */
10398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10406 if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10408 eval "ac_cv_func_$ac_func=yes"
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10413 eval "ac_cv_func_$ac_func=no"
10418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10419 echo "$ac_t""yes" 1>&6
10420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10421 cat >> confdefs.h <<EOF
10422 #define $ac_tr_func 1
10426 echo "$ac_t""no" 1>&6
10430 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10431 echo "configure:10432: checking for LinuxThreads implementation" >&5
10432 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10435 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10438 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10443 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10444 echo "configure:10445: checking for LinuxThreads consistency" >&5
10445 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10449 if test $ol_cv_header_linux_threads = yes -a \
10450 $ol_cv_sys_linux_threads = yes; then
10451 ol_cv_linux_threads=yes
10452 elif test $ol_cv_header_linux_threads = no -a \
10453 $ol_cv_sys_linux_threads = no; then
10454 ol_cv_linux_threads=no
10456 ol_cv_linux_threads=error
10461 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10464 if test $ol_cv_linux_threads = error; then
10465 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10468 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10469 echo "configure:10470: checking if pthread_create() works" >&5
10470 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10474 if test "$cross_compiling" = yes; then
10475 ol_cv_pthread_create_works=yes
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 /* pthread test headers */
10481 #include <pthread.h>
10483 #define NULL (void*)0
10486 static void *task(p)
10489 return (void *) (p == NULL);
10493 int main(argc, argv)
10498 /* pthread test function */
10501 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10502 /* This system (e.g. AIX) defaults detached; must override */
10503 pthread_attr_t attr;
10505 status = pthread_attr_init(&attr);
10506 if( status ) exit( status );
10508 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10509 if( status ) exit( status );
10513 #if HAVE_PTHREADS_D4
10514 #define ATTR pthread_attr_default
10519 /* make sure pthread_create() isn't just a stub */
10520 status = pthread_create(&t, ATTR, task, NULL);
10521 if( status ) exit( status );
10523 /* make sure pthread_detach() isn't just a stub */
10524 #if HAVE_PTHREADS_D4
10525 status = pthread_detach( &t );
10527 status = pthread_detach( t );
10530 #ifdef HAVE_LINUX_THREADS
10531 pthread_kill_other_threads_np();
10539 if { (eval echo configure:10540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10541 ol_cv_pthread_create_works=yes
10543 echo "configure: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10546 ol_cv_pthread_create_works=no
10553 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10555 if test $ol_cv_pthread_create_works = no ; then
10556 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10559 if test $ol_with_yielding_select = auto ; then
10560 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10561 echo "configure:10562: checking if select yields when using pthreads" >&5
10562 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10563 echo $ac_n "(cached) $ac_c" 1>&6
10566 if test "$cross_compiling" = yes; then
10567 ol_cv_pthread_select_yields=cross
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10573 #include <sys/types.h>
10574 #include <sys/time.h>
10575 #include <unistd.h>
10576 #include <pthread.h>
10578 #define NULL (void*) 0
10581 static int fildes[2];
10583 static void *task(p)
10595 FD_SET(fildes[0], &rfds);
10597 /* we're not interested in any fds */
10598 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10605 exit(0); /* if we exit here, the select blocked the whole process */
10608 int main(argc, argv)
10614 /* create a pipe to select */
10615 if(pipe(&fildes[0])) {
10620 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10621 (void) pthread_setconcurrency(2);
10623 #ifdef HAVE_THR_SETCONCURRENCY
10624 /* Set Solaris LWP concurrency to 2 */
10625 thr_setconcurrency(2);
10629 #if HAVE_PTHREADS_D4
10630 pthread_create(&t, pthread_attr_default, task, NULL);
10632 pthread_create(&t, NULL, task, NULL);
10635 #if HAVE_SCHED_YIELD
10636 sched_yield(); /* make sure task runs first */
10638 #ifdef HAVE_PTHREAD_YIELD
10639 pthread_yield(); /* make sure task runs first */
10646 if { (eval echo configure:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10648 ol_cv_pthread_select_yields=no
10650 echo "configure: failed program was:" >&5
10651 cat conftest.$ac_ext >&5
10653 ol_cv_pthread_select_yields=yes
10660 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10662 if test $ol_cv_pthread_select_yields = cross ; then
10663 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10666 if test $ol_cv_pthread_select_yields = yes ; then
10667 ol_with_yielding_select=yes
10671 CPPFLAGS="$save_CPPFLAGS"
10674 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10678 if test $ol_with_threads = posix ; then
10679 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10683 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10684 -o $ol_with_threads = mach ; then
10686 for ac_hdr in mach/cthreads.h
10688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10690 echo "configure:10691: checking for $ac_hdr" >&5
10691 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10700 { (eval echo configure:10701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10702 if test -z "$ac_err"; then
10704 eval "ac_cv_header_$ac_safe=yes"
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10710 eval "ac_cv_header_$ac_safe=no"
10714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10715 echo "$ac_t""yes" 1>&6
10716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10717 cat >> confdefs.h <<EOF
10718 #define $ac_tr_hdr 1
10722 echo "$ac_t""no" 1>&6
10726 if test $ac_cv_header_mach_cthreads_h = yes ; then
10727 ol_with_threads=found
10729 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10730 echo "configure:10731: checking for cthread_fork" >&5
10731 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10732 echo $ac_n "(cached) $ac_c" 1>&6
10734 cat > conftest.$ac_ext <<EOF
10735 #line 10736 "configure"
10736 #include "confdefs.h"
10737 /* System header to define __stub macros and hopefully few prototypes,
10738 which can conflict with char cthread_fork(); below. */
10739 #include <assert.h>
10740 /* Override any gcc2 internal prototype to avoid an error. */
10741 /* We use char because int might match the return type of a gcc2
10742 builtin and then its argument prototype would still apply. */
10743 char cthread_fork();
10748 /* The GNU C library defines this for functions which it implements
10749 to always fail with ENOSYS. Some functions are actually named
10750 something starting with __ and the normal name is an alias. */
10751 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10761 eval "ac_cv_func_cthread_fork=yes"
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10766 eval "ac_cv_func_cthread_fork=no"
10771 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10772 echo "$ac_t""yes" 1>&6
10773 ol_link_threads=yes
10775 echo "$ac_t""no" 1>&6
10779 if test $ol_link_threads = no ; then
10780 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10781 echo "configure:10782: checking for cthread_fork with -all_load" >&5
10782 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10787 LIBS="-all_load $LIBS"
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10791 #include <mach/cthreads.h>
10794 cthread_fork((void *)0, (void *)0);
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10800 ol_cv_cthread_all_load=yes
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 ol_cv_cthread_all_load=no
10812 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10814 if test $ol_cv_cthread_all_load = yes ; then
10815 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10816 ol_link_threads=mach
10820 if test $ol_link_threads != no ; then
10821 : check for cthread specific functionality here
10822 cat >> confdefs.h <<\EOF
10823 #define HAVE_MACH_CTHREADS 1
10827 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10831 if test $ol_with_threads = mach ; then
10832 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10836 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10837 -o $ol_with_threads = pth ; then
10839 for ac_hdr in pth.h
10841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10843 echo "configure:10844: checking for $ac_hdr" >&5
10844 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10845 echo $ac_n "(cached) $ac_c" 1>&6
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10853 { (eval echo configure:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10855 if test -z "$ac_err"; then
10857 eval "ac_cv_header_$ac_safe=yes"
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10863 eval "ac_cv_header_$ac_safe=no"
10867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10870 cat >> confdefs.h <<EOF
10871 #define $ac_tr_hdr 1
10875 echo "$ac_t""no" 1>&6
10880 if test $ac_cv_header_pth_h = yes ; then
10881 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10882 echo "configure:10883: checking for pth_version in -lpth" >&5
10883 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10884 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10885 echo $ac_n "(cached) $ac_c" 1>&6
10887 ac_save_LIBS="$LIBS"
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10895 char pth_version();
10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10903 eval "ac_cv_lib_$ac_lib_var=yes"
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10908 eval "ac_cv_lib_$ac_lib_var=no"
10911 LIBS="$ac_save_LIBS"
10914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10918 echo "$ac_t""no" 1>&6
10923 if test $have_pth = yes ; then
10924 cat >> confdefs.h <<\EOF
10925 #define HAVE_GNU_PTH 1
10928 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10929 ol_link_threads=pth
10931 if test $ol_with_yielding_select = auto ; then
10932 ol_with_yielding_select=yes
10938 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10939 -o $ol_with_threads = lwp ; then
10941 for ac_hdr in thread.h synch.h
10943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10945 echo "configure:10946: checking for $ac_hdr" >&5
10946 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10947 echo $ac_n "(cached) $ac_c" 1>&6
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10955 { (eval echo configure:10956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10957 if test -z "$ac_err"; then
10959 eval "ac_cv_header_$ac_safe=yes"
10962 echo "configure: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10965 eval "ac_cv_header_$ac_safe=no"
10969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10970 echo "$ac_t""yes" 1>&6
10971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10972 cat >> confdefs.h <<EOF
10973 #define $ac_tr_hdr 1
10977 echo "$ac_t""no" 1>&6
10981 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10982 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10983 echo "configure:10984: checking for thr_create in -lthread" >&5
10984 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10988 ac_save_LIBS="$LIBS"
10989 LIBS="-lthread $LIBS"
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 /* Override any gcc2 internal prototype to avoid an error. */
10994 /* We use char because int might match the return type of a gcc2
10995 builtin and then its argument prototype would still apply. */
11002 if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11004 eval "ac_cv_lib_$ac_lib_var=yes"
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11009 eval "ac_cv_lib_$ac_lib_var=no"
11012 LIBS="$ac_save_LIBS"
11015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11016 echo "$ac_t""yes" 1>&6
11019 echo "$ac_t""no" 1>&6
11024 if test $have_thr = yes ; then
11025 cat >> confdefs.h <<\EOF
11029 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11030 ol_link_threads=thr
11032 if test $ol_with_yielding_select = auto ; then
11033 ol_with_yielding_select=yes
11037 thr_setconcurrency \
11038 thr_getconcurrency \
11041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11042 echo "configure:11043: checking for $ac_func" >&5
11043 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11046 cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char $ac_func(); below. */
11051 #include <assert.h>
11052 /* Override any gcc2 internal prototype to avoid an error. */
11053 /* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11073 eval "ac_cv_func_$ac_func=yes"
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11078 eval "ac_cv_func_$ac_func=no"
11083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11084 echo "$ac_t""yes" 1>&6
11085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11086 cat >> confdefs.h <<EOF
11087 #define $ac_tr_func 1
11091 echo "$ac_t""no" 1>&6
11098 for ac_hdr in lwp/lwp.h
11100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11102 echo "configure:11103: checking for $ac_hdr" >&5
11103 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11104 echo $ac_n "(cached) $ac_c" 1>&6
11106 cat > conftest.$ac_ext <<EOF
11107 #line 11108 "configure"
11108 #include "confdefs.h"
11111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11112 { (eval echo configure:11113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11114 if test -z "$ac_err"; then
11116 eval "ac_cv_header_$ac_safe=yes"
11119 echo "configure: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11122 eval "ac_cv_header_$ac_safe=no"
11126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11127 echo "$ac_t""yes" 1>&6
11128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11129 cat >> confdefs.h <<EOF
11130 #define $ac_tr_hdr 1
11134 echo "$ac_t""no" 1>&6
11138 if test $ac_cv_header_lwp_lwp_h = yes ; then
11139 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11140 echo "configure:11141: checking for lwp_create in -llwp" >&5
11141 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11143 echo $ac_n "(cached) $ac_c" 1>&6
11145 ac_save_LIBS="$LIBS"
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11161 eval "ac_cv_lib_$ac_lib_var=yes"
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11166 eval "ac_cv_lib_$ac_lib_var=no"
11169 LIBS="$ac_save_LIBS"
11172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11173 echo "$ac_t""yes" 1>&6
11176 echo "$ac_t""no" 1>&6
11181 if test $have_lwp = yes ; then
11182 cat >> confdefs.h <<\EOF
11186 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11187 ol_link_threads=lwp
11189 if test $ol_with_yielding_select = auto ; then
11190 ol_with_yielding_select=no
11196 if test $ol_with_yielding_select = yes ; then
11197 cat >> confdefs.h <<\EOF
11198 #define HAVE_YIELDING_SELECT 1
11203 if test $ol_with_threads = manual ; then
11204 ol_link_threads=yes
11206 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11208 for ac_hdr in pthread.h sched.h
11210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11212 echo "configure:11213: checking for $ac_hdr" >&5
11213 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11214 echo $ac_n "(cached) $ac_c" 1>&6
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11222 { (eval echo configure:11223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11224 if test -z "$ac_err"; then
11226 eval "ac_cv_header_$ac_safe=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_header_$ac_safe=no"
11236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11237 echo "$ac_t""yes" 1>&6
11238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11239 cat >> confdefs.h <<EOF
11240 #define $ac_tr_hdr 1
11244 echo "$ac_t""no" 1>&6
11248 for ac_func in sched_yield pthread_yield
11250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_func" >&5
11252 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 /* System header to define __stub macros and hopefully few prototypes,
11259 which can conflict with char $ac_func(); below. */
11260 #include <assert.h>
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 /* We use char because int might match the return type of a gcc2
11263 builtin and then its argument prototype would still apply. */
11269 /* The GNU C library defines this for functions which it implements
11270 to always fail with ENOSYS. Some functions are actually named
11271 something starting with __ and the normal name is an alias. */
11272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282 eval "ac_cv_func_$ac_func=yes"
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11287 eval "ac_cv_func_$ac_func=no"
11292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11295 cat >> confdefs.h <<EOF
11296 #define $ac_tr_func 1
11300 echo "$ac_t""no" 1>&6
11305 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11306 echo "configure:11307: checking for LinuxThreads pthread.h" >&5
11307 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 #include <pthread.h>
11315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11316 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11318 ol_cv_header_linux_threads=yes
11321 ol_cv_header_linux_threads=no
11328 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11329 if test $ol_cv_header_linux_threads = yes; then
11330 cat >> confdefs.h <<\EOF
11331 #define HAVE_LINUX_THREADS 1
11337 for ac_hdr in mach/cthreads.h
11339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11341 echo "configure:11342: checking for $ac_hdr" >&5
11342 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11343 echo $ac_n "(cached) $ac_c" 1>&6
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11351 { (eval echo configure:11352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11353 if test -z "$ac_err"; then
11355 eval "ac_cv_header_$ac_safe=yes"
11358 echo "configure: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11361 eval "ac_cv_header_$ac_safe=no"
11365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11366 echo "$ac_t""yes" 1>&6
11367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11368 cat >> confdefs.h <<EOF
11369 #define $ac_tr_hdr 1
11373 echo "$ac_t""no" 1>&6
11377 for ac_hdr in lwp/lwp.h
11379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11381 echo "configure:11382: checking for $ac_hdr" >&5
11382 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11391 { (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11393 if test -z "$ac_err"; then
11395 eval "ac_cv_header_$ac_safe=yes"
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11401 eval "ac_cv_header_$ac_safe=no"
11405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11406 echo "$ac_t""yes" 1>&6
11407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11408 cat >> confdefs.h <<EOF
11409 #define $ac_tr_hdr 1
11413 echo "$ac_t""no" 1>&6
11417 for ac_hdr in thread.h synch.h
11419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11421 echo "configure:11422: checking for $ac_hdr" >&5
11422 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11431 { (eval echo configure:11432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11433 if test -z "$ac_err"; then
11435 eval "ac_cv_header_$ac_safe=yes"
11438 echo "configure: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11441 eval "ac_cv_header_$ac_safe=no"
11445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11446 echo "$ac_t""yes" 1>&6
11447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11448 cat >> confdefs.h <<EOF
11449 #define $ac_tr_hdr 1
11453 echo "$ac_t""no" 1>&6
11459 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11460 cat >> confdefs.h <<\EOF
11461 #define REENTRANT 1
11464 cat >> confdefs.h <<\EOF
11465 #define _REENTRANT 1
11468 cat >> confdefs.h <<\EOF
11469 #define THREAD_SAFE 1
11472 cat >> confdefs.h <<\EOF
11473 #define _THREAD_SAFE 1
11476 cat >> confdefs.h <<\EOF
11477 #define THREADSAFE 1
11480 cat >> confdefs.h <<\EOF
11481 #define _THREADSAFE 1
11484 cat >> confdefs.h <<\EOF
11485 #define _SGI_MP_SOURCE 1
11489 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11490 echo "configure:11491: checking for thread specific errno" >&5
11491 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11492 echo $ac_n "(cached) $ac_c" 1>&6
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11503 if { (eval echo configure:11504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11505 ol_cv_errno_thread_specific=yes
11507 echo "configure: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11510 ol_cv_errno_thread_specific=no
11516 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11518 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11519 echo "configure:11520: checking for thread specific h_errno" >&5
11520 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11534 ol_cv_h_errno_thread_specific=yes
11536 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11539 ol_cv_h_errno_thread_specific=no
11545 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11547 if test $ol_cv_errno_thread_specific != yes \
11548 -o $ol_cv_h_errno_thread_specific != yes ; then
11549 LIBS="$LTHREAD_LIBS $LIBS"
11555 if test $ol_link_threads = no ; then
11556 if test $ol_with_threads = yes ; then
11557 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11560 if test $ol_with_threads = auto ; then
11561 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11565 cat >> confdefs.h <<\EOF
11566 #define NO_THREADS 1
11572 if test $ol_link_threads != no ; then
11573 cat >> confdefs.h <<\EOF
11574 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11581 if test $ol_with_ldbm_api = auto \
11582 -o $ol_with_ldbm_api = berkeley \
11583 -o $ol_with_ldbm_api = bcompat ; then
11585 if test $ol_with_ldbm_api = bcompat; then \
11586 ol_cv_berkeley_db=no
11587 for ac_hdr in db_185.h db.h
11589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11591 echo "configure:11592: checking for $ac_hdr" >&5
11592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11601 { (eval echo configure:11602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11603 if test -z "$ac_err"; then
11605 eval "ac_cv_header_$ac_safe=yes"
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11611 eval "ac_cv_header_$ac_safe=no"
11615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11618 cat >> confdefs.h <<EOF
11619 #define $ac_tr_hdr 1
11623 echo "$ac_t""no" 1>&6
11627 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11628 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11629 echo "configure:11630: checking if Berkeley DB header compatibility" >&5
11630 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11631 echo $ac_n "(cached) $ac_c" 1>&6
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11639 # include <db_185.h>
11644 /* this check could be improved */
11645 #ifndef DB_VERSION_MAJOR
11646 # define DB_VERSION_MAJOR 1
11649 #if DB_VERSION_MAJOR == 1
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 egrep "__db_version_1" >/dev/null 2>&1; then
11657 ol_cv_header_db1=yes
11660 ol_cv_header_db1=no
11666 echo "$ac_t""$ol_cv_header_db1" 1>&6
11668 if test ol_cv_header_db1=yes ; then
11670 if test $ol_cv_lib_db = no ; then
11671 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11672 echo "configure:11673: checking for Berkeley DB link (default)" >&5
11673 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11674 echo $ac_n "(cached) $ac_c" 1>&6
11679 LIBS="$ol_DB_LIB $LIBS"
11681 cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11685 #ifdef HAVE_DB_185_H
11686 # include <db_185.h>
11691 #ifndef DB_VERSION_MAJOR
11692 # define DB_VERSION_MAJOR 1
11696 #define NULL ((void*)0)
11701 #if DB_VERSION_MAJOR > 2
11702 db_env_create( NULL, 0 );
11703 #elif DB_VERSION_MAJOR > 1
11704 db_appexit( NULL );
11706 (void) dbopen( NULL, 0, 0, 0, NULL);
11711 if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11715 echo "configure: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11726 echo "$ac_t""$ol_cv_db_none" 1>&6
11728 if test $ol_cv_db_none = yes ; then
11733 if test $ol_cv_lib_db = no ; then
11734 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11735 echo "configure:11736: checking for Berkeley DB link (-ldb)" >&5
11736 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
11742 LIBS="$ol_DB_LIB $LIBS"
11744 cat > conftest.$ac_ext <<EOF
11745 #line 11746 "configure"
11746 #include "confdefs.h"
11748 #ifdef HAVE_DB_185_H
11749 # include <db_185.h>
11754 #ifndef DB_VERSION_MAJOR
11755 # define DB_VERSION_MAJOR 1
11759 #define NULL ((void*)0)
11764 #if DB_VERSION_MAJOR > 2
11765 db_env_create( NULL, 0 );
11766 #elif DB_VERSION_MAJOR > 1
11767 db_appexit( NULL );
11769 (void) dbopen( NULL, 0, 0, 0, NULL);
11774 if { (eval echo configure:11775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11778 echo "configure: failed program was:" >&5
11779 cat conftest.$ac_ext >&5
11789 echo "$ac_t""$ol_cv_db_db" 1>&6
11791 if test $ol_cv_db_db = yes ; then
11796 if test $ol_cv_lib_db = no ; then
11797 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11798 echo "configure:11799: checking for Berkeley DB link (-ldb3)" >&5
11799 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11805 LIBS="$ol_DB_LIB $LIBS"
11807 cat > conftest.$ac_ext <<EOF
11808 #line 11809 "configure"
11809 #include "confdefs.h"
11811 #ifdef HAVE_DB_185_H
11812 # include <db_185.h>
11817 #ifndef DB_VERSION_MAJOR
11818 # define DB_VERSION_MAJOR 1
11822 #define NULL ((void*)0)
11827 #if DB_VERSION_MAJOR > 2
11828 db_env_create( NULL, 0 );
11829 #elif DB_VERSION_MAJOR > 1
11830 db_appexit( NULL );
11832 (void) dbopen( NULL, 0, 0, 0, NULL);
11837 if { (eval echo configure:11838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11841 echo "configure: failed program was:" >&5
11842 cat conftest.$ac_ext >&5
11852 echo "$ac_t""$ol_cv_db_db3" 1>&6
11854 if test $ol_cv_db_db3 = yes ; then
11859 if test $ol_cv_lib_db = no ; then
11860 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11861 echo "configure:11862: checking for Berkeley DB link (-ldb2)" >&5
11862 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11868 LIBS="$ol_DB_LIB $LIBS"
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11874 #ifdef HAVE_DB_185_H
11875 # include <db_185.h>
11880 #ifndef DB_VERSION_MAJOR
11881 # define DB_VERSION_MAJOR 1
11885 #define NULL ((void*)0)
11890 #if DB_VERSION_MAJOR > 2
11891 db_env_create( NULL, 0 );
11892 #elif DB_VERSION_MAJOR > 1
11893 db_appexit( NULL );
11895 (void) dbopen( NULL, 0, 0, 0, NULL);
11900 if { (eval echo configure:11901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11904 echo "configure: failed program was:" >&5
11905 cat conftest.$ac_ext >&5
11915 echo "$ac_t""$ol_cv_db_db2" 1>&6
11917 if test $ol_cv_db_db2 = yes ; then
11922 if test $ol_cv_lib_db = no ; then
11923 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11924 echo "configure:11925: checking for Berkeley DB link (-ldb1)" >&5
11925 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11926 echo $ac_n "(cached) $ac_c" 1>&6
11931 LIBS="$ol_DB_LIB $LIBS"
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11937 #ifdef HAVE_DB_185_H
11938 # include <db_185.h>
11943 #ifndef DB_VERSION_MAJOR
11944 # define DB_VERSION_MAJOR 1
11948 #define NULL ((void*)0)
11953 #if DB_VERSION_MAJOR > 2
11954 db_env_create( NULL, 0 );
11955 #elif DB_VERSION_MAJOR > 1
11956 db_appexit( NULL );
11958 (void) dbopen( NULL, 0, 0, 0, NULL);
11963 if { (eval echo configure:11964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11967 echo "configure: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11978 echo "$ac_t""$ol_cv_db_db1" 1>&6
11980 if test $ol_cv_db_db1 = yes ; then
11986 if test "$ol_cv_lib_db" != no ; then
11987 ol_cv_berkeley_db=yes
11993 ol_cv_berkeley_db=no
11996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11998 echo "configure:11999: checking for $ac_hdr" >&5
11999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12000 echo $ac_n "(cached) $ac_c" 1>&6
12002 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12008 { (eval echo configure:12009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12010 if test -z "$ac_err"; then
12012 eval "ac_cv_header_$ac_safe=yes"
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12018 eval "ac_cv_header_$ac_safe=no"
12022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12023 echo "$ac_t""yes" 1>&6
12024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12025 cat >> confdefs.h <<EOF
12026 #define $ac_tr_hdr 1
12030 echo "$ac_t""no" 1>&6
12034 if test $ac_cv_header_db_h = yes; then
12036 if test $ol_cv_lib_db = no ; then
12037 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12038 echo "configure:12039: checking for Berkeley DB link (default)" >&5
12039 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12045 LIBS="$ol_DB_LIB $LIBS"
12047 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12051 #ifdef HAVE_DB_185_H
12052 # include <db_185.h>
12057 #ifndef DB_VERSION_MAJOR
12058 # define DB_VERSION_MAJOR 1
12062 #define NULL ((void*)0)
12067 #if DB_VERSION_MAJOR > 2
12068 db_env_create( NULL, 0 );
12069 #elif DB_VERSION_MAJOR > 1
12070 db_appexit( NULL );
12072 (void) dbopen( NULL, 0, 0, 0, NULL);
12077 if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12092 echo "$ac_t""$ol_cv_db_none" 1>&6
12094 if test $ol_cv_db_none = yes ; then
12099 if test $ol_cv_lib_db = no ; then
12100 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12101 echo "configure:12102: checking for Berkeley DB link (-ldb)" >&5
12102 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12108 LIBS="$ol_DB_LIB $LIBS"
12110 cat > conftest.$ac_ext <<EOF
12111 #line 12112 "configure"
12112 #include "confdefs.h"
12114 #ifdef HAVE_DB_185_H
12115 # include <db_185.h>
12120 #ifndef DB_VERSION_MAJOR
12121 # define DB_VERSION_MAJOR 1
12125 #define NULL ((void*)0)
12130 #if DB_VERSION_MAJOR > 2
12131 db_env_create( NULL, 0 );
12132 #elif DB_VERSION_MAJOR > 1
12133 db_appexit( NULL );
12135 (void) dbopen( NULL, 0, 0, 0, NULL);
12140 if { (eval echo configure:12141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12155 echo "$ac_t""$ol_cv_db_db" 1>&6
12157 if test $ol_cv_db_db = yes ; then
12162 if test $ol_cv_lib_db = no ; then
12163 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12164 echo "configure:12165: checking for Berkeley DB link (-ldb3)" >&5
12165 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12166 echo $ac_n "(cached) $ac_c" 1>&6
12171 LIBS="$ol_DB_LIB $LIBS"
12173 cat > conftest.$ac_ext <<EOF
12174 #line 12175 "configure"
12175 #include "confdefs.h"
12177 #ifdef HAVE_DB_185_H
12178 # include <db_185.h>
12183 #ifndef DB_VERSION_MAJOR
12184 # define DB_VERSION_MAJOR 1
12188 #define NULL ((void*)0)
12193 #if DB_VERSION_MAJOR > 2
12194 db_env_create( NULL, 0 );
12195 #elif DB_VERSION_MAJOR > 1
12196 db_appexit( NULL );
12198 (void) dbopen( NULL, 0, 0, 0, NULL);
12203 if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12218 echo "$ac_t""$ol_cv_db_db3" 1>&6
12220 if test $ol_cv_db_db3 = yes ; then
12225 if test $ol_cv_lib_db = no ; then
12226 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12227 echo "configure:12228: checking for Berkeley DB link (-ldb2)" >&5
12228 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12229 echo $ac_n "(cached) $ac_c" 1>&6
12234 LIBS="$ol_DB_LIB $LIBS"
12236 cat > conftest.$ac_ext <<EOF
12237 #line 12238 "configure"
12238 #include "confdefs.h"
12240 #ifdef HAVE_DB_185_H
12241 # include <db_185.h>
12246 #ifndef DB_VERSION_MAJOR
12247 # define DB_VERSION_MAJOR 1
12251 #define NULL ((void*)0)
12256 #if DB_VERSION_MAJOR > 2
12257 db_env_create( NULL, 0 );
12258 #elif DB_VERSION_MAJOR > 1
12259 db_appexit( NULL );
12261 (void) dbopen( NULL, 0, 0, 0, NULL);
12266 if { (eval echo configure:12267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12281 echo "$ac_t""$ol_cv_db_db2" 1>&6
12283 if test $ol_cv_db_db2 = yes ; then
12288 if test $ol_cv_lib_db = no ; then
12289 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12290 echo "configure:12291: checking for Berkeley DB link (-ldb1)" >&5
12291 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12297 LIBS="$ol_DB_LIB $LIBS"
12299 cat > conftest.$ac_ext <<EOF
12300 #line 12301 "configure"
12301 #include "confdefs.h"
12303 #ifdef HAVE_DB_185_H
12304 # include <db_185.h>
12309 #ifndef DB_VERSION_MAJOR
12310 # define DB_VERSION_MAJOR 1
12314 #define NULL ((void*)0)
12319 #if DB_VERSION_MAJOR > 2
12320 db_env_create( NULL, 0 );
12321 #elif DB_VERSION_MAJOR > 1
12322 db_appexit( NULL );
12324 (void) dbopen( NULL, 0, 0, 0, NULL);
12329 if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12333 echo "configure: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12344 echo "$ac_t""$ol_cv_db_db1" 1>&6
12346 if test $ol_cv_db_db1 = yes ; then
12352 if test "$ol_cv_lib_db" != no ; then
12353 ol_cv_berkeley_db=yes
12354 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12355 echo "configure:12356: checking for Berkeley DB thread support" >&5
12356 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12357 echo $ac_n "(cached) $ac_c" 1>&6
12361 if test $ol_cv_lib_db != yes ; then
12362 LIBS="$ol_cv_lib_db"
12365 if test "$cross_compiling" = yes; then
12366 ol_cv_berkeley_db_thread=cross
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12372 #ifdef HAVE_DB_185_H
12378 #define NULL ((void *)0)
12383 u_int32_t flags = DB_CREATE | DB_THREAD;
12385 #if DB_VERSION_MAJOR > 2
12386 DB_ENV *env = NULL;
12388 rc = db_env_create( &env, 0 );
12391 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12392 rc = env->open( env, NULL, flags, 0 );
12394 rc = env->open( env, NULL, NULL, flags, 0 );
12400 memset( &env, '\0', sizeof(env) );
12402 rc = db_appinit( NULL, NULL, &env, flags );
12405 db_appexit( &env );
12408 #if DB_VERSION_MAJOR > 2
12409 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12410 env->remove( env, NULL, DB_FORCE);
12412 env->remove( env, NULL, NULL, DB_FORCE);
12419 if { (eval echo configure:12420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12421 ol_cv_berkeley_db_thread=yes
12423 echo "configure: failed program was:" >&5
12424 cat conftest.$ac_ext >&5
12426 ol_cv_berkeley_db_thread=no
12434 if test $ol_cv_berkeley_db_thread != no ; then
12435 cat >> confdefs.h <<\EOF
12436 #define HAVE_BERKELEY_DB_THREAD 1
12443 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12449 if test $ol_cv_berkeley_db != no ; then
12450 cat >> confdefs.h <<\EOF
12451 #define HAVE_BERKELEY_DB 1
12455 ol_link_ldbm=berkeley
12456 ol_with_ldbm_api=db
12458 if test $ol_with_ldbm_type = hash ; then
12459 cat >> confdefs.h <<\EOF
12460 #define LDBM_USE_DBHASH 1
12464 cat >> confdefs.h <<\EOF
12465 #define LDBM_USE_DBBTREE 1
12470 if test $ol_cv_lib_db != yes ; then
12471 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12476 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12477 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12478 ol_with_ldbm_api=none
12481 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12482 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12483 echo "configure:12484: checking for MDBM library" >&5
12484 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12488 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12489 echo "configure:12490: checking for mdbm_set_chain" >&5
12490 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12491 echo $ac_n "(cached) $ac_c" 1>&6
12493 cat > conftest.$ac_ext <<EOF
12494 #line 12495 "configure"
12495 #include "confdefs.h"
12496 /* System header to define __stub macros and hopefully few prototypes,
12497 which can conflict with char mdbm_set_chain(); below. */
12498 #include <assert.h>
12499 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char mdbm_set_chain();
12507 /* The GNU C library defines this for functions which it implements
12508 to always fail with ENOSYS. Some functions are actually named
12509 something starting with __ and the normal name is an alias. */
12510 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12513 f = mdbm_set_chain;
12518 if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12520 eval "ac_cv_func_mdbm_set_chain=yes"
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12525 eval "ac_cv_func_mdbm_set_chain=no"
12530 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12531 echo "$ac_t""yes" 1>&6
12534 echo "$ac_t""no" 1>&6
12536 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12537 echo "configure:12538: checking for mdbm_set_chain in -lmdbm" >&5
12538 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12539 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12540 echo $ac_n "(cached) $ac_c" 1>&6
12542 ac_save_LIBS="$LIBS"
12543 LIBS="-lmdbm $LIBS"
12544 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure"
12546 #include "confdefs.h"
12547 /* Override any gcc2 internal prototype to avoid an error. */
12548 /* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12550 char mdbm_set_chain();
12556 if { (eval echo configure:12557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12558 eval "ac_cv_lib_$ac_lib_var=yes"
12560 echo "configure: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12563 eval "ac_cv_lib_$ac_lib_var=no"
12566 LIBS="$ac_save_LIBS"
12569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12570 echo "$ac_t""yes" 1>&6
12571 ol_cv_lib_mdbm=-lmdbm
12573 echo "$ac_t""no" 1>&6
12584 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12587 for ac_hdr in mdbm.h
12589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12591 echo "configure:12592: checking for $ac_hdr" >&5
12592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12601 { (eval echo configure:12602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12603 if test -z "$ac_err"; then
12605 eval "ac_cv_header_$ac_safe=yes"
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 eval "ac_cv_header_$ac_safe=no"
12615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12616 echo "$ac_t""yes" 1>&6
12617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12618 cat >> confdefs.h <<EOF
12619 #define $ac_tr_hdr 1
12623 echo "$ac_t""no" 1>&6
12627 echo $ac_n "checking for db""... $ac_c" 1>&6
12628 echo "configure:12629: checking for db" >&5
12629 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12630 echo $ac_n "(cached) $ac_c" 1>&6
12633 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12641 echo "$ac_t""$ol_cv_mdbm" 1>&6
12642 if test $ol_cv_mdbm = yes ; then
12643 cat >> confdefs.h <<\EOF
12644 #define HAVE_MDBM 1
12650 if test $ol_cv_mdbm = yes ; then
12652 ol_with_ldbm_api=mdbm
12653 if test $ol_cv_lib_mdbm != yes ; then
12654 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12659 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12660 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12661 echo "configure:12662: checking for GDBM library" >&5
12662 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12663 echo $ac_n "(cached) $ac_c" 1>&6
12666 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12667 echo "configure:12668: checking for gdbm_open" >&5
12668 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12669 echo $ac_n "(cached) $ac_c" 1>&6
12671 cat > conftest.$ac_ext <<EOF
12672 #line 12673 "configure"
12673 #include "confdefs.h"
12674 /* System header to define __stub macros and hopefully few prototypes,
12675 which can conflict with char gdbm_open(); below. */
12676 #include <assert.h>
12677 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12685 /* The GNU C library defines this for functions which it implements
12686 to always fail with ENOSYS. Some functions are actually named
12687 something starting with __ and the normal name is an alias. */
12688 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12696 if { (eval echo configure:12697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12698 eval "ac_cv_func_gdbm_open=yes"
12700 echo "configure: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12703 eval "ac_cv_func_gdbm_open=no"
12708 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12709 echo "$ac_t""yes" 1>&6
12712 echo "$ac_t""no" 1>&6
12714 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12715 echo "configure:12716: checking for gdbm_open in -lgdbm" >&5
12716 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12717 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12718 echo $ac_n "(cached) $ac_c" 1>&6
12720 ac_save_LIBS="$LIBS"
12721 LIBS="-lgdbm $LIBS"
12722 cat > conftest.$ac_ext <<EOF
12723 #line 12724 "configure"
12724 #include "confdefs.h"
12725 /* Override any gcc2 internal prototype to avoid an error. */
12726 /* We use char because int might match the return type of a gcc2
12727 builtin and then its argument prototype would still apply. */
12734 if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12736 eval "ac_cv_lib_$ac_lib_var=yes"
12738 echo "configure: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12741 eval "ac_cv_lib_$ac_lib_var=no"
12744 LIBS="$ac_save_LIBS"
12747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12748 echo "$ac_t""yes" 1>&6
12749 ol_cv_lib_gdbm=-lgdbm
12751 echo "$ac_t""no" 1>&6
12762 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12765 for ac_hdr in gdbm.h
12767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12769 echo "configure:12770: checking for $ac_hdr" >&5
12770 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12771 echo $ac_n "(cached) $ac_c" 1>&6
12773 cat > conftest.$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12779 { (eval echo configure:12780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12781 if test -z "$ac_err"; then
12783 eval "ac_cv_header_$ac_safe=yes"
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12789 eval "ac_cv_header_$ac_safe=no"
12793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12794 echo "$ac_t""yes" 1>&6
12795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12796 cat >> confdefs.h <<EOF
12797 #define $ac_tr_hdr 1
12801 echo "$ac_t""no" 1>&6
12805 echo $ac_n "checking for db""... $ac_c" 1>&6
12806 echo "configure:12807: checking for db" >&5
12807 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12808 echo $ac_n "(cached) $ac_c" 1>&6
12811 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12819 echo "$ac_t""$ol_cv_gdbm" 1>&6
12820 if test $ol_cv_gdbm = yes ; then
12821 cat >> confdefs.h <<\EOF
12822 #define HAVE_GDBM 1
12828 if test $ol_cv_gdbm = yes ; then
12830 ol_with_ldbm_api=gdbm
12832 if test $ol_cv_lib_gdbm != yes ; then
12833 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12838 if test $ol_with_ldbm_api = ndbm ; then
12839 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12840 echo "configure:12841: checking for NDBM library" >&5
12841 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12845 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12846 echo "configure:12847: checking for dbm_open" >&5
12847 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12848 echo $ac_n "(cached) $ac_c" 1>&6
12850 cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12853 /* System header to define __stub macros and hopefully few prototypes,
12854 which can conflict with char dbm_open(); below. */
12855 #include <assert.h>
12856 /* Override any gcc2 internal prototype to avoid an error. */
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12864 /* The GNU C library defines this for functions which it implements
12865 to always fail with ENOSYS. Some functions are actually named
12866 something starting with __ and the normal name is an alias. */
12867 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12875 if { (eval echo configure:12876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877 eval "ac_cv_func_dbm_open=yes"
12879 echo "configure: failed program was:" >&5
12880 cat conftest.$ac_ext >&5
12882 eval "ac_cv_func_dbm_open=no"
12887 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12888 echo "$ac_t""yes" 1>&6
12891 echo "$ac_t""no" 1>&6
12893 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12894 echo "configure:12895: checking for dbm_open in -lndbm" >&5
12895 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12897 echo $ac_n "(cached) $ac_c" 1>&6
12899 ac_save_LIBS="$LIBS"
12900 LIBS="-lndbm $LIBS"
12901 cat > conftest.$ac_ext <<EOF
12902 #line 12903 "configure"
12903 #include "confdefs.h"
12904 /* Override any gcc2 internal prototype to avoid an error. */
12905 /* We use char because int might match the return type of a gcc2
12906 builtin and then its argument prototype would still apply. */
12913 if { (eval echo configure:12914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12915 eval "ac_cv_lib_$ac_lib_var=yes"
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12920 eval "ac_cv_lib_$ac_lib_var=no"
12923 LIBS="$ac_save_LIBS"
12926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12927 echo "$ac_t""yes" 1>&6
12928 ol_cv_lib_ndbm=-lndbm
12930 echo "$ac_t""no" 1>&6
12932 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12933 echo "configure:12934: checking for dbm_open in -ldbm" >&5
12934 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12936 echo $ac_n "(cached) $ac_c" 1>&6
12938 ac_save_LIBS="$LIBS"
12940 cat > conftest.$ac_ext <<EOF
12941 #line 12942 "configure"
12942 #include "confdefs.h"
12943 /* Override any gcc2 internal prototype to avoid an error. */
12944 /* We use char because int might match the return type of a gcc2
12945 builtin and then its argument prototype would still apply. */
12952 if { (eval echo configure:12953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12954 eval "ac_cv_lib_$ac_lib_var=yes"
12956 echo "configure: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12959 eval "ac_cv_lib_$ac_lib_var=no"
12962 LIBS="$ac_save_LIBS"
12965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12966 echo "$ac_t""yes" 1>&6
12967 ol_cv_lib_ndbm=-ldbm
12969 echo "$ac_t""no" 1>&6
12982 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12985 for ac_hdr in ndbm.h
12987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12989 echo "configure:12990: checking for $ac_hdr" >&5
12990 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12991 echo $ac_n "(cached) $ac_c" 1>&6
12993 cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure"
12995 #include "confdefs.h"
12998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12999 { (eval echo configure:13000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13001 if test -z "$ac_err"; then
13003 eval "ac_cv_header_$ac_safe=yes"
13006 echo "configure: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13009 eval "ac_cv_header_$ac_safe=no"
13013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13014 echo "$ac_t""yes" 1>&6
13015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13016 cat >> confdefs.h <<EOF
13017 #define $ac_tr_hdr 1
13021 echo "$ac_t""no" 1>&6
13025 echo $ac_n "checking for db""... $ac_c" 1>&6
13026 echo "configure:13027: checking for db" >&5
13027 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13028 echo $ac_n "(cached) $ac_c" 1>&6
13031 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13039 echo "$ac_t""$ol_cv_ndbm" 1>&6
13040 if test $ol_cv_ndbm = yes ; then
13041 cat >> confdefs.h <<\EOF
13042 #define HAVE_NDBM 1
13048 if test $ol_cv_ndbm = yes ; then
13050 ol_with_ldbm_api=ndbm
13052 if test $ol_cv_lib_ndbm != yes ; then
13053 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13058 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13059 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13060 if test $ol_enable_ldbm = yes ; then
13061 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13064 echo "configure: warning: disabling LDBM" 1>&2
13068 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13069 LINK_BINS_DYNAMIC="yes"
13071 LINK_BINS_DYNAMIC="no"
13074 if test $ol_enable_wrappers != no ; then
13075 for ac_hdr in tcpd.h
13077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13079 echo "configure:13080: checking for $ac_hdr" >&5
13080 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13089 { (eval echo configure:13090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13091 if test -z "$ac_err"; then
13093 eval "ac_cv_header_$ac_safe=yes"
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13099 eval "ac_cv_header_$ac_safe=no"
13103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13104 echo "$ac_t""yes" 1>&6
13105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13106 cat >> confdefs.h <<EOF
13107 #define $ac_tr_hdr 1
13111 echo "$ac_t""no" 1>&6
13116 if test $ac_cv_header_tcpd_h != yes ; then
13119 cat > conftest.$ac_ext <<EOF
13120 #line 13121 "configure"
13121 #include "confdefs.h"
13123 int allow_severity = 0;
13124 int deny_severity = 0;
13130 if { (eval echo configure:13131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13142 if test $have_wrappers = yes ; then
13143 cat >> confdefs.h <<\EOF
13144 #define HAVE_TCPD 1
13149 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13150 echo "configure:13151: checking for main in -lnsl" >&5
13151 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13152 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13153 echo $ac_n "(cached) $ac_c" 1>&6
13155 ac_save_LIBS="$LIBS"
13157 cat > conftest.$ac_ext <<EOF
13158 #line 13159 "configure"
13159 #include "confdefs.h"
13165 if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13167 eval "ac_cv_lib_$ac_lib_var=yes"
13169 echo "configure: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13172 eval "ac_cv_lib_$ac_lib_var=no"
13175 LIBS="$ac_save_LIBS"
13178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13179 echo "$ac_t""yes" 1>&6
13180 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13182 cat >> confdefs.h <<EOF
13183 #define $ac_tr_lib 1
13189 echo "$ac_t""no" 1>&6
13193 echo "configure: warning: could not find -lwrap" 1>&2
13194 if test $ol_enable_wrappers = yes ; then
13195 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13198 echo "configure: warning: disabling wrappers support" 1>&2
13199 ol_enable_wrappers=no
13204 if test $ol_enable_syslog != no ; then
13205 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13206 echo "configure:13207: checking for openlog" >&5
13207 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13213 /* System header to define __stub macros and hopefully few prototypes,
13214 which can conflict with char openlog(); below. */
13215 #include <assert.h>
13216 /* Override any gcc2 internal prototype to avoid an error. */
13217 /* We use char because int might match the return type of a gcc2
13218 builtin and then its argument prototype would still apply. */
13224 /* The GNU C library defines this for functions which it implements
13225 to always fail with ENOSYS. Some functions are actually named
13226 something starting with __ and the normal name is an alias. */
13227 #if defined (__stub_openlog) || defined (__stub___openlog)
13235 if { (eval echo configure:13236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13237 eval "ac_cv_func_openlog=yes"
13239 echo "configure: failed program was:" >&5
13240 cat conftest.$ac_ext >&5
13242 eval "ac_cv_func_openlog=no"
13247 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13248 echo "$ac_t""yes" 1>&6
13251 echo "$ac_t""no" 1>&6
13254 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13255 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13257 ol_enable_syslog=$ac_cv_func_openlog
13262 if test $ol_enable_sql != no ; then
13263 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13264 echo "configure:13265: checking for SQLDriverConnect in -liodbc" >&5
13265 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13266 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13267 echo $ac_n "(cached) $ac_c" 1>&6
13269 ac_save_LIBS="$LIBS"
13270 LIBS="-liodbc $LIBS"
13271 cat > conftest.$ac_ext <<EOF
13272 #line 13273 "configure"
13273 #include "confdefs.h"
13274 /* Override any gcc2 internal prototype to avoid an error. */
13275 /* We use char because int might match the return type of a gcc2
13276 builtin and then its argument prototype would still apply. */
13277 char SQLDriverConnect();
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13285 eval "ac_cv_lib_$ac_lib_var=yes"
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13290 eval "ac_cv_lib_$ac_lib_var=no"
13293 LIBS="$ac_save_LIBS"
13296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13297 echo "$ac_t""yes" 1>&6
13300 echo "$ac_t""no" 1>&6
13304 if test $have_iodbc = yes ; then
13305 ol_link_sql="-liodbc"
13307 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13308 echo "configure:13309: checking for SQLDriverConnect in -lodbc" >&5
13309 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13311 echo $ac_n "(cached) $ac_c" 1>&6
13313 ac_save_LIBS="$LIBS"
13314 LIBS="-lodbc $LIBS"
13315 cat > conftest.$ac_ext <<EOF
13316 #line 13317 "configure"
13317 #include "confdefs.h"
13318 /* Override any gcc2 internal prototype to avoid an error. */
13319 /* We use char because int might match the return type of a gcc2
13320 builtin and then its argument prototype would still apply. */
13321 char SQLDriverConnect();
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13329 eval "ac_cv_lib_$ac_lib_var=yes"
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13334 eval "ac_cv_lib_$ac_lib_var=no"
13337 LIBS="$ac_save_LIBS"
13340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13341 echo "$ac_t""yes" 1>&6
13344 echo "$ac_t""no" 1>&6
13348 if test $have_odbc = yes ; then
13349 ol_link_sql="-lodbc"
13353 if test $ol_link_sql != no ; then
13354 SLAPD_SQL_LIBS="$ol_link_sql"
13356 elif test $ol_enable_sql != auto ; then
13357 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13361 if test $ol_enable_tcl != no ; then
13362 for ac_hdr in tcl.h
13364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13366 echo "configure:13367: checking for $ac_hdr" >&5
13367 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13368 echo $ac_n "(cached) $ac_c" 1>&6
13370 cat > conftest.$ac_ext <<EOF
13371 #line 13372 "configure"
13372 #include "confdefs.h"
13375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13376 { (eval echo configure:13377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13378 if test -z "$ac_err"; then
13380 eval "ac_cv_header_$ac_safe=yes"
13383 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13386 eval "ac_cv_header_$ac_safe=no"
13390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13391 echo "$ac_t""yes" 1>&6
13392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13393 cat >> confdefs.h <<EOF
13394 #define $ac_tr_hdr 1
13398 echo "$ac_t""no" 1>&6
13403 if test $ac_cv_header_tcl_h != yes ; then
13406 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13407 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13408 echo "configure:13409: checking for main in -l$lib" >&5
13409 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13410 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13413 ac_save_LIBS="$LIBS"
13414 LIBS="-l$lib $LIBS"
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13423 if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13425 eval "ac_cv_lib_$ac_lib_var=yes"
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13430 eval "ac_cv_lib_$ac_lib_var=no"
13433 LIBS="$ac_save_LIBS"
13436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13437 echo "$ac_t""yes" 1>&6
13439 if test x"$ol_with_tcl_module" = "xstatic" ; then
13440 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13442 MOD_TCL_LIB="-l${lib}"
13445 echo "$ac_t""no" 1>&6
13452 if test $have_tcl != yes ; then
13453 echo "configure: warning: could not find -ltcl" 1>&2
13454 if test $ol_enable_tcl = yes ; then
13455 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13463 for ac_hdr in termcap.h ncurses.h
13465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13467 echo "configure:13468: checking for $ac_hdr" >&5
13468 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13469 echo $ac_n "(cached) $ac_c" 1>&6
13471 cat > conftest.$ac_ext <<EOF
13472 #line 13473 "configure"
13473 #include "confdefs.h"
13476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13477 { (eval echo configure:13478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13479 if test -z "$ac_err"; then
13481 eval "ac_cv_header_$ac_safe=yes"
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13487 eval "ac_cv_header_$ac_safe=no"
13491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13492 echo "$ac_t""yes" 1>&6
13493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13494 cat >> confdefs.h <<EOF
13495 #define $ac_tr_hdr 1
13499 echo "$ac_t""no" 1>&6
13504 if test $ol_link_termcap = no ; then
13505 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13506 echo "configure:13507: checking for tputs in -ltermcap" >&5
13507 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13508 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13509 echo $ac_n "(cached) $ac_c" 1>&6
13511 ac_save_LIBS="$LIBS"
13512 LIBS="-ltermcap $LIBS"
13513 cat > conftest.$ac_ext <<EOF
13514 #line 13515 "configure"
13515 #include "confdefs.h"
13516 /* Override any gcc2 internal prototype to avoid an error. */
13517 /* We use char because int might match the return type of a gcc2
13518 builtin and then its argument prototype would still apply. */
13525 if { (eval echo configure:13526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13527 eval "ac_cv_lib_$ac_lib_var=yes"
13529 echo "configure: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
13532 eval "ac_cv_lib_$ac_lib_var=no"
13535 LIBS="$ac_save_LIBS"
13538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13539 echo "$ac_t""yes" 1>&6
13542 echo "$ac_t""no" 1>&6
13546 if test $have_termcap = yes ; then
13547 cat >> confdefs.h <<\EOF
13548 #define HAVE_TERMCAP 1
13551 ol_link_termcap=yes
13552 TERMCAP_LIBS=-ltermcap
13556 if test $ol_link_termcap = no ; then
13557 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13558 echo "configure:13559: checking for initscr in -lncurses" >&5
13559 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13560 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13561 echo $ac_n "(cached) $ac_c" 1>&6
13563 ac_save_LIBS="$LIBS"
13564 LIBS="-lncurses $LIBS"
13565 cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure"
13567 #include "confdefs.h"
13568 /* Override any gcc2 internal prototype to avoid an error. */
13569 /* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13577 if { (eval echo configure:13578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13579 eval "ac_cv_lib_$ac_lib_var=yes"
13581 echo "configure: failed program was:" >&5
13582 cat conftest.$ac_ext >&5
13584 eval "ac_cv_lib_$ac_lib_var=no"
13587 LIBS="$ac_save_LIBS"
13590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13591 echo "$ac_t""yes" 1>&6
13594 echo "$ac_t""no" 1>&6
13598 if test $have_ncurses = yes ; then
13599 cat >> confdefs.h <<\EOF
13600 #define HAVE_NCURSES 1
13603 ol_link_termcap=yes
13604 TERMCAP_LIBS=-lncurses
13608 if test $ol_link_termcap = no ; then
13609 cat >> confdefs.h <<\EOF
13610 #define NO_TERMCAP 1
13618 if test $ol_with_cyrus_sasl != no ; then
13619 for ac_hdr in sasl.h
13621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13623 echo "configure:13624: checking for $ac_hdr" >&5
13624 if eval "test \"\${ac_cv_header_$ac_safe+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"
13632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13633 { (eval echo configure:13634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13635 if test -z "$ac_err"; then
13637 eval "ac_cv_header_$ac_safe=yes"
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13643 eval "ac_cv_header_$ac_safe=no"
13647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13648 echo "$ac_t""yes" 1>&6
13649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13650 cat >> confdefs.h <<EOF
13651 #define $ac_tr_hdr 1
13655 echo "$ac_t""no" 1>&6
13660 if test $ac_cv_header_sasl_h = yes ; then
13661 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13662 echo "configure:13663: checking for sasl_client_init in -lsasl" >&5
13663 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13664 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13665 echo $ac_n "(cached) $ac_c" 1>&6
13667 ac_save_LIBS="$LIBS"
13668 LIBS="-lsasl $LIBS"
13669 cat > conftest.$ac_ext <<EOF
13670 #line 13671 "configure"
13671 #include "confdefs.h"
13672 /* Override any gcc2 internal prototype to avoid an error. */
13673 /* We use char because int might match the return type of a gcc2
13674 builtin and then its argument prototype would still apply. */
13675 char sasl_client_init();
13681 if { (eval echo configure:13682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13683 eval "ac_cv_lib_$ac_lib_var=yes"
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13688 eval "ac_cv_lib_$ac_lib_var=no"
13691 LIBS="$ac_save_LIBS"
13694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13695 echo "$ac_t""yes" 1>&6
13696 have_cyrus_sasl=yes
13698 echo "$ac_t""no" 1>&6
13703 if test $have_cyrus_sasl != no ; then
13705 cat >> confdefs.h <<\EOF
13706 #define HAVE_CYRUS_SASL 1
13713 if test $ol_link_sasl = no ; then
13714 if test $ol_with_cyrus_sasl != auto ; then
13715 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13717 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13718 echo "configure: warning: SASL authentication not supported!" 1>&2
13719 if test $ol_link_tls = no ; then
13720 echo "configure: warning: Strong authentication not supported!" 1>&2
13724 elif test $ol_enable_spasswd != no ; then
13725 ol_link_spasswd=yes
13729 echo "configure: warning: SASL authentication not supported!" 1>&2
13730 if test $ol_link_tls = no ; then
13731 echo "configure: warning: Strong authentication not supported!" 1>&2
13735 if test $cross_compiling != yes ; then
13737 if test -r /dev/urandom ; then
13738 dev="/dev/urandom";
13739 elif test -r /idev/urandom ; then
13740 dev="/idev/urandom";
13741 elif test -r /dev/srandom ; then
13742 dev="/dev/srandom";
13743 elif test -r /dev/random ; then
13745 elif test -r /idev/random ; then
13746 dev="/idev/random";
13749 if test $dev != no ; then
13750 cat >> confdefs.h <<EOF
13751 #define URANDOM_DEVICE "$dev"
13758 if test $ol_with_fetch != no ; then
13760 LIBS="-lfetch -lcom_err $LIBS"
13761 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13762 echo "configure:13763: checking fetch(3) library" >&5
13763 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13764 echo $ac_n "(cached) $ac_c" 1>&6
13767 cat > conftest.$ac_ext <<EOF
13768 #line 13769 "configure"
13769 #include "confdefs.h"
13771 #include <sys/param.h>
13775 struct url *u = fetchParseURL("file:///");
13778 if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13780 ol_cv_lib_fetch=yes
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13790 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13792 if test $ol_cv_lib_fetch != no ; then
13793 ol_link_fetch="-lfetch -lcom_err"
13794 cat >> confdefs.h <<\EOF
13795 #define HAVE_FETCH 1
13801 if test $ol_cv_lib_fetch != no ; then
13802 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13803 ol_link_fetch=freebsd
13805 elif test $ol_with_fetch != auto ; then
13806 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13810 ol_link_readline=no
13811 if test $ol_with_readline != no ; then
13812 for ac_hdr in readline/readline.h readline/history.h
13814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13816 echo "configure:13817: checking for $ac_hdr" >&5
13817 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13818 echo $ac_n "(cached) $ac_c" 1>&6
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13826 { (eval echo configure:13827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13828 if test -z "$ac_err"; then
13830 eval "ac_cv_header_$ac_safe=yes"
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13836 eval "ac_cv_header_$ac_safe=no"
13840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13841 echo "$ac_t""yes" 1>&6
13842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13843 cat >> confdefs.h <<EOF
13844 #define $ac_tr_hdr 1
13848 echo "$ac_t""no" 1>&6
13853 if test $ac_cv_header_readline_readline_h = yes ; then
13855 LIBS="$TERMCAP_LIBS $LIBS"
13856 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13857 echo "configure:13858: checking for readline in -lreadline" >&5
13858 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13859 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13860 echo $ac_n "(cached) $ac_c" 1>&6
13862 ac_save_LIBS="$LIBS"
13863 LIBS="-lreadline $LIBS"
13864 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure"
13866 #include "confdefs.h"
13867 /* Override any gcc2 internal prototype to avoid an error. */
13868 /* We use char because int might match the return type of a gcc2
13869 builtin and then its argument prototype would still apply. */
13876 if { (eval echo configure:13877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13878 eval "ac_cv_lib_$ac_lib_var=yes"
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13883 eval "ac_cv_lib_$ac_lib_var=no"
13886 LIBS="$ac_save_LIBS"
13889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13890 echo "$ac_t""yes" 1>&6
13893 echo "$ac_t""no" 1>&6
13899 if test $have_readline = yes ; then
13900 ol_with_readline=found
13901 ol_link_readline=yes
13903 READLINE_LIBS="-lreadline"
13908 if test $ol_link_readline = yes ; then
13909 cat >> confdefs.h <<\EOF
13910 #define HAVE_READLINE 1
13916 if test $ol_enable_crypt != no ; then
13917 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13918 echo "configure:13919: checking for crypt" >&5
13919 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13922 cat > conftest.$ac_ext <<EOF
13923 #line 13924 "configure"
13924 #include "confdefs.h"
13925 /* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char crypt(); below. */
13927 #include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error. */
13929 /* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_crypt) || defined (__stub___crypt)
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949 eval "ac_cv_func_crypt=yes"
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13954 eval "ac_cv_func_crypt=no"
13959 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13960 echo "$ac_t""yes" 1>&6
13963 echo "$ac_t""no" 1>&6
13965 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13966 echo "configure:13967: checking for crypt in -lcrypt" >&5
13967 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13969 echo $ac_n "(cached) $ac_c" 1>&6
13971 ac_save_LIBS="$LIBS"
13972 LIBS="-lcrypt $LIBS"
13973 cat > conftest.$ac_ext <<EOF
13974 #line 13975 "configure"
13975 #include "confdefs.h"
13976 /* Override any gcc2 internal prototype to avoid an error. */
13977 /* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13985 if { (eval echo configure:13986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13987 eval "ac_cv_lib_$ac_lib_var=yes"
13989 echo "configure: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13992 eval "ac_cv_lib_$ac_lib_var=no"
13995 LIBS="$ac_save_LIBS"
13998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13999 echo "$ac_t""yes" 1>&6
14000 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14003 echo "$ac_t""no" 1>&6
14010 if test $have_crypt = yes ; then
14011 cat >> confdefs.h <<\EOF
14012 #define HAVE_CRYPT 1
14016 echo "configure: warning: could not find crypt" 1>&2
14017 if test $ol_enable_crypt = yes ; then
14018 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14021 echo "configure: warning: disabling crypt support" 1>&2
14026 if test $ol_enable_proctitle != no ; then
14027 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14028 echo "configure:14029: checking for setproctitle" >&5
14029 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14030 echo $ac_n "(cached) $ac_c" 1>&6
14032 cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 /* System header to define __stub macros and hopefully few prototypes,
14036 which can conflict with char setproctitle(); below. */
14037 #include <assert.h>
14038 /* Override any gcc2 internal prototype to avoid an error. */
14039 /* We use char because int might match the return type of a gcc2
14040 builtin and then its argument prototype would still apply. */
14041 char setproctitle();
14046 /* The GNU C library defines this for functions which it implements
14047 to always fail with ENOSYS. Some functions are actually named
14048 something starting with __ and the normal name is an alias. */
14049 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14057 if { (eval echo configure:14058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14059 eval "ac_cv_func_setproctitle=yes"
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14064 eval "ac_cv_func_setproctitle=no"
14069 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14070 echo "$ac_t""yes" 1>&6
14071 have_setproctitle=yes
14073 echo "$ac_t""no" 1>&6
14075 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14076 echo "configure:14077: checking for setproctitle in -lutil" >&5
14077 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14078 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14081 ac_save_LIBS="$LIBS"
14082 LIBS="-lutil $LIBS"
14083 cat > conftest.$ac_ext <<EOF
14084 #line 14085 "configure"
14085 #include "confdefs.h"
14086 /* Override any gcc2 internal prototype to avoid an error. */
14087 /* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14089 char setproctitle();
14095 if { (eval echo configure:14096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14097 eval "ac_cv_lib_$ac_lib_var=yes"
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14102 eval "ac_cv_lib_$ac_lib_var=no"
14105 LIBS="$ac_save_LIBS"
14108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14109 echo "$ac_t""yes" 1>&6
14110 have_setproctitle=yes
14111 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14113 echo "$ac_t""no" 1>&6
14114 have_setproctitle=no
14115 LIBOBJS="$LIBOBJS setproctitle.o"
14116 LIBSRCS="$LIBSRCS setproctitle.c"
14122 if test $have_setproctitle = yes ; then
14123 cat >> confdefs.h <<\EOF
14124 #define HAVE_SETPROCTITLE 1
14130 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14131 echo "configure:14132: checking for ANSI C header files" >&5
14132 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
14135 cat > conftest.$ac_ext <<EOF
14136 #line 14137 "configure"
14137 #include "confdefs.h"
14138 #include <stdlib.h>
14139 #include <stdarg.h>
14140 #include <string.h>
14143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14144 { (eval echo configure:14145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14146 if test -z "$ac_err"; then
14148 ac_cv_header_stdc=yes
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14154 ac_cv_header_stdc=no
14158 if test $ac_cv_header_stdc = yes; then
14159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14160 cat > conftest.$ac_ext <<EOF
14161 #line 14162 "configure"
14162 #include "confdefs.h"
14163 #include <string.h>
14165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14166 egrep "memchr" >/dev/null 2>&1; then
14170 ac_cv_header_stdc=no
14176 if test $ac_cv_header_stdc = yes; then
14177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 #include <stdlib.h>
14183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14184 egrep "free" >/dev/null 2>&1; then
14188 ac_cv_header_stdc=no
14194 if test $ac_cv_header_stdc = yes; then
14195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14196 if test "$cross_compiling" = yes; then
14199 cat > conftest.$ac_ext <<EOF
14200 #line 14201 "configure"
14201 #include "confdefs.h"
14203 #if ((' ' & 0x0FF) == 0x020)
14204 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14205 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14207 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14208 || ('j' <= (c) && (c) <= 'r') \
14209 || ('s' <= (c) && (c) <= 'z'))
14210 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14213 int main () { int i; for (i = 0; i < 256; i++)
14214 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14218 if { (eval echo configure:14219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14225 ac_cv_header_stdc=no
14233 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14234 if test $ac_cv_header_stdc = yes; then
14235 cat >> confdefs.h <<\EOF
14236 #define STDC_HEADERS 1
14241 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14242 echo "configure:14243: checking for mode_t" >&5
14243 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14244 echo $ac_n "(cached) $ac_c" 1>&6
14246 cat > conftest.$ac_ext <<EOF
14247 #line 14248 "configure"
14248 #include "confdefs.h"
14249 #include <sys/types.h>
14251 #include <stdlib.h>
14252 #include <stddef.h>
14256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14257 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14259 eval "ac_cv_type_mode_t=yes"
14262 eval "ac_cv_type_mode_t=no"
14267 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14268 echo "$ac_t""yes" 1>&6
14270 echo "$ac_t""no" 1>&6
14271 cat >> confdefs.h <<EOF
14277 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14278 echo "configure:14279: checking for off_t" >&5
14279 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14280 echo $ac_n "(cached) $ac_c" 1>&6
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 #include <sys/types.h>
14287 #include <stdlib.h>
14288 #include <stddef.h>
14292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14293 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14295 eval "ac_cv_type_off_t=yes"
14298 eval "ac_cv_type_off_t=no"
14303 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14304 echo "$ac_t""yes" 1>&6
14306 echo "$ac_t""no" 1>&6
14307 cat >> confdefs.h <<EOF
14313 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14314 echo "configure:14315: checking for pid_t" >&5
14315 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14316 echo $ac_n "(cached) $ac_c" 1>&6
14318 cat > conftest.$ac_ext <<EOF
14319 #line 14320 "configure"
14320 #include "confdefs.h"
14321 #include <sys/types.h>
14323 #include <stdlib.h>
14324 #include <stddef.h>
14328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14329 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14331 eval "ac_cv_type_pid_t=yes"
14334 eval "ac_cv_type_pid_t=no"
14339 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14340 echo "$ac_t""yes" 1>&6
14342 echo "$ac_t""no" 1>&6
14343 cat >> confdefs.h <<EOF
14349 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14350 echo "configure:14351: checking for ptrdiff_t" >&5
14351 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14352 echo $ac_n "(cached) $ac_c" 1>&6
14354 cat > conftest.$ac_ext <<EOF
14355 #line 14356 "configure"
14356 #include "confdefs.h"
14357 #include <stddef.h>
14362 if { (eval echo configure:14363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14364 am_cv_type_ptrdiff_t=yes
14366 echo "configure: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14369 am_cv_type_ptrdiff_t=no
14374 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14375 if test $am_cv_type_ptrdiff_t = yes; then
14376 cat >> confdefs.h <<\EOF
14377 #define HAVE_PTRDIFF_T 1
14382 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14383 echo "configure:14384: checking return type of signal handlers" >&5
14384 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14385 echo $ac_n "(cached) $ac_c" 1>&6
14387 cat > conftest.$ac_ext <<EOF
14388 #line 14389 "configure"
14389 #include "confdefs.h"
14390 #include <sys/types.h>
14391 #include <signal.h>
14396 extern "C" void (*signal (int, void (*)(int)))(int);
14398 void (*signal ()) ();
14405 if { (eval echo configure:14406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14407 ac_cv_type_signal=void
14409 echo "configure: failed program was:" >&5
14410 cat conftest.$ac_ext >&5
14412 ac_cv_type_signal=int
14417 echo "$ac_t""$ac_cv_type_signal" 1>&6
14418 cat >> confdefs.h <<EOF
14419 #define RETSIGTYPE $ac_cv_type_signal
14423 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14424 echo "configure:14425: checking for size_t" >&5
14425 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14426 echo $ac_n "(cached) $ac_c" 1>&6
14428 cat > conftest.$ac_ext <<EOF
14429 #line 14430 "configure"
14430 #include "confdefs.h"
14431 #include <sys/types.h>
14433 #include <stdlib.h>
14434 #include <stddef.h>
14438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14439 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14441 eval "ac_cv_type_size_t=yes"
14444 eval "ac_cv_type_size_t=no"
14449 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14450 echo "$ac_t""yes" 1>&6
14452 echo "$ac_t""no" 1>&6
14453 cat >> confdefs.h <<EOF
14454 #define size_t unsigned
14460 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14461 echo "configure:14462: checking for ssize_t" >&5
14462 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14463 echo $ac_n "(cached) $ac_c" 1>&6
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14468 #include <sys/types.h>
14470 #include <stdlib.h>
14471 #include <stddef.h>
14475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14476 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14478 eval "ac_cv_type_ssize_t=yes"
14481 eval "ac_cv_type_ssize_t=no"
14486 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14487 echo "$ac_t""yes" 1>&6
14489 echo "$ac_t""no" 1>&6
14490 cat >> confdefs.h <<EOF
14491 #define ssize_t signed int
14496 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14497 echo "configure:14498: checking for caddr_t" >&5
14498 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14499 echo $ac_n "(cached) $ac_c" 1>&6
14501 cat > conftest.$ac_ext <<EOF
14502 #line 14503 "configure"
14503 #include "confdefs.h"
14504 #include <sys/types.h>
14506 #include <stdlib.h>
14507 #include <stddef.h>
14511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14512 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14514 eval "ac_cv_type_caddr_t=yes"
14517 eval "ac_cv_type_caddr_t=no"
14522 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14523 echo "$ac_t""yes" 1>&6
14525 echo "$ac_t""no" 1>&6
14526 cat >> confdefs.h <<EOF
14527 #define caddr_t char *
14533 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14534 echo "configure:14535: checking for socklen_t" >&5
14535 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14536 echo $ac_n "(cached) $ac_c" 1>&6
14538 cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14542 #ifdef HAVE_SYS_TYPES_H
14543 #include <sys/types.h>
14545 #ifdef HAVE_SYS_SOCKET_H
14546 #include <sys/socket.h>
14553 if { (eval echo configure:14554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14555 ol_cv_type_socklen_t=yes
14557 echo "configure: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14560 ol_cv_type_socklen_t=no
14565 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14566 if test $ol_cv_type_socklen_t = no; then
14567 cat >> confdefs.h <<\EOF
14568 #define socklen_t int
14573 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14574 echo "configure:14575: checking for member st_blksize in aggregate type struct stat" >&5
14575 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14576 echo $ac_n "(cached) $ac_c" 1>&6
14578 cat > conftest.$ac_ext <<EOF
14579 #line 14580 "configure"
14580 #include "confdefs.h"
14581 #include <sys/types.h>
14582 #include <sys/stat.h>
14584 struct stat foo; foo.st_blksize;
14587 if { (eval echo configure:14588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14589 ac_cv_c_struct_member_st_blksize=yes
14591 echo "configure: failed program was:" >&5
14592 cat conftest.$ac_ext >&5
14594 ac_cv_c_struct_member_st_blksize=no
14599 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14600 st_blksize="$ac_cv_c_struct_member_st_blksize"
14601 if test $ac_cv_c_struct_member_st_blksize = yes; then
14602 cat >> confdefs.h <<\EOF
14603 #define HAVE_ST_BLKSIZE 1
14608 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14609 echo "configure:14610: checking whether time.h and sys/time.h may both be included" >&5
14610 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14611 echo $ac_n "(cached) $ac_c" 1>&6
14613 cat > conftest.$ac_ext <<EOF
14614 #line 14615 "configure"
14615 #include "confdefs.h"
14616 #include <sys/types.h>
14617 #include <sys/time.h>
14623 if { (eval echo configure:14624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14625 ac_cv_header_time=yes
14627 echo "configure: failed program was:" >&5
14628 cat conftest.$ac_ext >&5
14630 ac_cv_header_time=no
14635 echo "$ac_t""$ac_cv_header_time" 1>&6
14636 if test $ac_cv_header_time = yes; then
14637 cat >> confdefs.h <<\EOF
14638 #define TIME_WITH_SYS_TIME 1
14643 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14644 echo "configure:14645: checking whether struct tm is in sys/time.h or time.h" >&5
14645 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14646 echo $ac_n "(cached) $ac_c" 1>&6
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 #include <sys/types.h>
14654 struct tm *tp; tp->tm_sec;
14657 if { (eval echo configure:14658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14659 ac_cv_struct_tm=time.h
14661 echo "configure: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14664 ac_cv_struct_tm=sys/time.h
14669 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14670 if test $ac_cv_struct_tm = sys/time.h; then
14671 cat >> confdefs.h <<\EOF
14672 #define TM_IN_SYS_TIME 1
14677 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14678 echo "configure:14679: checking for uid_t in sys/types.h" >&5
14679 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14680 echo $ac_n "(cached) $ac_c" 1>&6
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 #include <sys/types.h>
14687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14688 egrep "uid_t" >/dev/null 2>&1; then
14690 ac_cv_type_uid_t=yes
14693 ac_cv_type_uid_t=no
14699 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14700 if test $ac_cv_type_uid_t = no; then
14701 cat >> confdefs.h <<\EOF
14705 cat >> confdefs.h <<\EOF
14711 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14712 echo "configure:14713: checking for sig_atomic_t" >&5
14713 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14714 echo $ac_n "(cached) $ac_c" 1>&6
14716 cat > conftest.$ac_ext <<EOF
14717 #line 14718 "configure"
14718 #include "confdefs.h"
14719 #include <signal.h>
14721 sig_atomic_t atomic;
14724 if { (eval echo configure:14725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14726 ol_cv_type_sig_atomic_t=yes
14728 echo "configure: failed program was:" >&5
14729 cat conftest.$ac_ext >&5
14731 ol_cv_type_sig_atomic_t=no
14736 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14737 if test $ol_cv_type_sig_atomic_t = no; then
14738 cat >> confdefs.h <<\EOF
14739 #define sig_atomic_t int
14746 # test for pw_gecos in struct passwd
14747 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14748 echo "configure:14749: checking struct passwd for pw_gecos" >&5
14749 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14750 echo $ac_n "(cached) $ac_c" 1>&6
14753 cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14760 pwd.pw_gecos = pwd.pw_name;
14764 if { (eval echo configure:14765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14766 ol_cv_struct_passwd_pw_gecos=yes
14768 echo "configure: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14771 ol_cv_struct_passwd_pw_gecos=no
14776 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14777 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14778 cat >> confdefs.h <<\EOF
14779 #define HAVE_PW_GECOS 1
14784 # test for pw_passwd in struct passwd
14785 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14786 echo "configure:14787: checking struct passwd for pw_passwd" >&5
14787 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14791 cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14798 pwd.pw_passwd = pwd.pw_name;
14802 if { (eval echo configure:14803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14804 ol_cv_struct_passwd_pw_passwd=yes
14806 echo "configure: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14809 ol_cv_struct_passwd_pw_passwd=no
14814 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14815 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14816 cat >> confdefs.h <<\EOF
14817 #define HAVE_PW_PASSWD 1
14823 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14824 echo "configure:14825: checking if toupper() requires islower()" >&5
14825 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14826 echo $ac_n "(cached) $ac_c" 1>&6
14829 if test "$cross_compiling" = yes; then
14830 ol_cv_c_upper_lower=safe
14832 cat > conftest.$ac_ext <<EOF
14833 #line 14834 "configure"
14834 #include "confdefs.h"
14839 if ('C' == toupper('C'))
14845 if { (eval echo configure:14846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14847 ol_cv_c_upper_lower=no
14849 echo "configure: failed program was:" >&5
14850 cat conftest.$ac_ext >&5
14852 ol_cv_c_upper_lower=yes
14859 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14860 if test $ol_cv_c_upper_lower != no ; then
14861 cat >> confdefs.h <<\EOF
14862 #define C_UPPER_LOWER 1
14867 echo $ac_n "checking for working const""... $ac_c" 1>&6
14868 echo "configure:14869: checking for working const" >&5
14869 if eval "test \"\${ac_cv_c_const+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"
14878 /* Ultrix mips cc rejects this. */
14879 typedef int charset[2]; const charset x;
14880 /* SunOS 4.1.1 cc rejects this. */
14881 char const *const *ccp;
14883 /* NEC SVR4.0.2 mips cc rejects this. */
14884 struct point {int x, y;};
14885 static struct point const zero = {0,0};
14886 /* AIX XL C 1.02.0.0 rejects this.
14887 It does not let you subtract one const X* pointer from another in an arm
14888 of an if-expression whose if-part is not a constant expression */
14889 const char *g = "string";
14890 ccp = &g + (g ? g-g : 0);
14891 /* HPUX 7.0 cc rejects these. */
14894 ccp = (char const *const *) p;
14895 { /* SCO 3.2v4 cc rejects this. */
14897 char const *s = 0 ? (char *) 0 : (char const *) 0;
14901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14902 int x[] = {25, 17};
14903 const int *foo = &x[0];
14906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14907 typedef const int *iptr;
14911 { /* AIX XL C 1.02.0.0 rejects this saying
14912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14913 struct s { int j; const int *ap[3]; };
14914 struct s *b; b->j = 5;
14916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14917 const int foo = 10;
14922 if { (eval echo configure:14923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14926 echo "configure: failed program was:" >&5
14927 cat conftest.$ac_ext >&5
14934 echo "$ac_t""$ac_cv_c_const" 1>&6
14935 if test $ac_cv_c_const = no; then
14936 cat >> confdefs.h <<\EOF
14942 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14943 echo "configure:14944: checking if compiler understands volatile" >&5
14944 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14945 echo $ac_n "(cached) $ac_c" 1>&6
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14952 volatile int a; int * volatile b = x ? &y : &z;
14953 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14957 if { (eval echo configure:14958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14959 ol_cv_c_volatile=yes
14961 echo "configure: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14964 ol_cv_c_volatile=no
14969 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14970 if test $ol_cv_c_volatile = yes; then
14973 cat >> confdefs.h <<\EOF
14980 if test $cross_compiling = yes ; then
14981 cat >> confdefs.h <<\EOF
14982 #define CROSS_COMPILING 1
14986 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14987 echo "configure:14988: checking whether byte ordering is bigendian" >&5
14988 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14989 echo $ac_n "(cached) $ac_c" 1>&6
14991 ac_cv_c_bigendian=unknown
14992 # See if sys/param.h defines the BYTE_ORDER macro.
14993 cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 #include <sys/types.h>
14997 #include <sys/param.h>
15000 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15001 bogus endian macros
15005 if { (eval echo configure:15006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15007 # It does; now see whether it defined to BIG_ENDIAN or not.
15008 cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 #include <sys/types.h>
15012 #include <sys/param.h>
15015 #if BYTE_ORDER != BIG_ENDIAN
15020 if { (eval echo configure:15021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15022 ac_cv_c_bigendian=yes
15024 echo "configure: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15027 ac_cv_c_bigendian=no
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15035 if test $ac_cv_c_bigendian = unknown; then
15036 if test "$cross_compiling" = yes; then
15037 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15039 cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15043 /* Are we little or big endian? From Harbison&Steele. */
15047 char c[sizeof (long)];
15050 exit (u.c[sizeof (long) - 1] == 1);
15053 if { (eval echo configure:15054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15055 ac_cv_c_bigendian=no
15057 echo "configure: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15060 ac_cv_c_bigendian=yes
15068 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15069 if test $ac_cv_c_bigendian = yes; then
15070 cat >> confdefs.h <<\EOF
15071 #define WORDS_BIGENDIAN 1
15078 echo $ac_n "checking size of short""... $ac_c" 1>&6
15079 echo "configure:15080: checking size of short" >&5
15080 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15081 echo $ac_n "(cached) $ac_c" 1>&6
15083 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15084 cat > conftest.$ac_ext <<EOF
15085 #line 15086 "configure"
15086 #include "confdefs.h"
15087 #include "confdefs.h"
15088 #include <sys/types.h>
15092 switch (0) case 0: case (sizeof (short) == $ac_size):;
15095 if { (eval echo configure:15096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15097 ac_cv_sizeof_short=$ac_size
15099 echo "configure: failed program was:" >&5
15100 cat conftest.$ac_ext >&5
15103 if test x$ac_cv_sizeof_short != x ; then break; fi
15108 if test x$ac_cv_sizeof_short = x ; then
15109 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15111 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15112 cat >> confdefs.h <<EOF
15113 #define SIZEOF_SHORT $ac_cv_sizeof_short
15117 echo $ac_n "checking size of int""... $ac_c" 1>&6
15118 echo "configure:15119: checking size of int" >&5
15119 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15120 echo $ac_n "(cached) $ac_c" 1>&6
15122 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15123 cat > conftest.$ac_ext <<EOF
15124 #line 15125 "configure"
15125 #include "confdefs.h"
15126 #include "confdefs.h"
15127 #include <sys/types.h>
15131 switch (0) case 0: case (sizeof (int) == $ac_size):;
15134 if { (eval echo configure:15135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15136 ac_cv_sizeof_int=$ac_size
15138 echo "configure: failed program was:" >&5
15139 cat conftest.$ac_ext >&5
15142 if test x$ac_cv_sizeof_int != x ; then break; fi
15147 if test x$ac_cv_sizeof_int = x ; then
15148 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15150 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15151 cat >> confdefs.h <<EOF
15152 #define SIZEOF_INT $ac_cv_sizeof_int
15156 echo $ac_n "checking size of long""... $ac_c" 1>&6
15157 echo "configure:15158: checking size of long" >&5
15158 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15159 echo $ac_n "(cached) $ac_c" 1>&6
15161 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15162 cat > conftest.$ac_ext <<EOF
15163 #line 15164 "configure"
15164 #include "confdefs.h"
15165 #include "confdefs.h"
15166 #include <sys/types.h>
15170 switch (0) case 0: case (sizeof (long) == $ac_size):;
15173 if { (eval echo configure:15174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15175 ac_cv_sizeof_long=$ac_size
15177 echo "configure: failed program was:" >&5
15178 cat conftest.$ac_ext >&5
15181 if test x$ac_cv_sizeof_long != x ; then break; fi
15186 if test x$ac_cv_sizeof_long = x ; then
15187 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15189 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15190 cat >> confdefs.h <<EOF
15191 #define SIZEOF_LONG $ac_cv_sizeof_long
15196 if test "$ac_cv_sizeof_int" -lt 4 ; then
15197 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15199 cat >> confdefs.h <<\EOF
15200 #define LBER_INT_T long
15204 cat >> confdefs.h <<\EOF
15205 #define LBER_INT_T int
15210 cat >> confdefs.h <<\EOF
15211 #define LBER_LEN_T long
15214 cat >> confdefs.h <<\EOF
15215 #define LBER_SOCKET_T int
15218 cat >> confdefs.h <<\EOF
15219 #define LBER_TAG_T long
15223 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15224 echo "configure:15225: checking for 8-bit clean memcmp" >&5
15225 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15226 echo $ac_n "(cached) $ac_c" 1>&6
15228 if test "$cross_compiling" = yes; then
15229 ac_cv_func_memcmp_clean=no
15231 cat > conftest.$ac_ext <<EOF
15232 #line 15233 "configure"
15233 #include "confdefs.h"
15237 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15238 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15242 if { (eval echo configure:15243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15244 ac_cv_func_memcmp_clean=yes
15246 echo "configure: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15249 ac_cv_func_memcmp_clean=no
15256 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15257 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15259 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15260 echo "configure:15261: checking for strftime" >&5
15261 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15264 cat > conftest.$ac_ext <<EOF
15265 #line 15266 "configure"
15266 #include "confdefs.h"
15267 /* System header to define __stub macros and hopefully few prototypes,
15268 which can conflict with char strftime(); below. */
15269 #include <assert.h>
15270 /* Override any gcc2 internal prototype to avoid an error. */
15271 /* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15278 /* The GNU C library defines this for functions which it implements
15279 to always fail with ENOSYS. Some functions are actually named
15280 something starting with __ and the normal name is an alias. */
15281 #if defined (__stub_strftime) || defined (__stub___strftime)
15289 if { (eval echo configure:15290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15291 eval "ac_cv_func_strftime=yes"
15293 echo "configure: failed program was:" >&5
15294 cat conftest.$ac_ext >&5
15296 eval "ac_cv_func_strftime=no"
15301 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15302 echo "$ac_t""yes" 1>&6
15303 cat >> confdefs.h <<\EOF
15304 #define HAVE_STRFTIME 1
15308 echo "$ac_t""no" 1>&6
15309 # strftime is in -lintl on SCO UNIX.
15310 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15311 echo "configure:15312: checking for strftime in -lintl" >&5
15312 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15313 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15316 ac_save_LIBS="$LIBS"
15317 LIBS="-lintl $LIBS"
15318 cat > conftest.$ac_ext <<EOF
15319 #line 15320 "configure"
15320 #include "confdefs.h"
15321 /* Override any gcc2 internal prototype to avoid an error. */
15322 /* We use char because int might match the return type of a gcc2
15323 builtin and then its argument prototype would still apply. */
15330 if { (eval echo configure:15331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15332 eval "ac_cv_lib_$ac_lib_var=yes"
15334 echo "configure: failed program was:" >&5
15335 cat conftest.$ac_ext >&5
15337 eval "ac_cv_lib_$ac_lib_var=no"
15340 LIBS="$ac_save_LIBS"
15343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15344 echo "$ac_t""yes" 1>&6
15345 cat >> confdefs.h <<\EOF
15346 #define HAVE_STRFTIME 1
15349 LIBS="-lintl $LIBS"
15351 echo "$ac_t""no" 1>&6
15357 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15358 echo "configure:15359: checking for inet_aton()" >&5
15359 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15360 echo $ac_n "(cached) $ac_c" 1>&6
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15366 #ifdef HAVE_SYS_TYPES_H
15367 # include <sys/types.h>
15369 #ifdef HAVE_SYS_SOCKET_H
15370 # include <sys/socket.h>
15371 # ifdef HAVE_SYS_SELECT_H
15372 # include <sys/select.h>
15374 # include <netinet/in.h>
15375 # ifdef HAVE_ARPA_INET_H
15376 # include <arpa/inet.h>
15382 int rc = inet_aton( "255.255.255.255", &in );
15385 if { (eval echo configure:15386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15387 ol_cv_func_inet_aton=yes
15389 echo "configure: failed program was:" >&5
15390 cat conftest.$ac_ext >&5
15392 ol_cv_func_inet_aton=no
15397 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15398 if test $ol_cv_func_inet_aton != no; then
15399 cat >> confdefs.h <<\EOF
15400 #define HAVE_INET_ATON 1
15406 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15407 echo "configure:15408: checking for _spawnlp" >&5
15408 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15409 echo $ac_n "(cached) $ac_c" 1>&6
15411 cat > conftest.$ac_ext <<EOF
15412 #line 15413 "configure"
15413 #include "confdefs.h"
15414 /* System header to define __stub macros and hopefully few prototypes,
15415 which can conflict with char _spawnlp(); below. */
15416 #include <assert.h>
15417 /* Override any gcc2 internal prototype to avoid an error. */
15418 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */
15425 /* The GNU C library defines this for functions which it implements
15426 to always fail with ENOSYS. Some functions are actually named
15427 something starting with __ and the normal name is an alias. */
15428 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15436 if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 eval "ac_cv_func__spawnlp=yes"
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15443 eval "ac_cv_func__spawnlp=no"
15448 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15449 echo "$ac_t""yes" 1>&6
15450 cat >> confdefs.h <<\EOF
15451 #define HAVE_SPAWNLP 1
15455 echo "$ac_t""no" 1>&6
15459 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15460 echo "configure:15461: checking for _snprintf" >&5
15461 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15462 echo $ac_n "(cached) $ac_c" 1>&6
15464 cat > conftest.$ac_ext <<EOF
15465 #line 15466 "configure"
15466 #include "confdefs.h"
15467 /* System header to define __stub macros and hopefully few prototypes,
15468 which can conflict with char _snprintf(); below. */
15469 #include <assert.h>
15470 /* Override any gcc2 internal prototype to avoid an error. */
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15489 if { (eval echo configure:15490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15491 eval "ac_cv_func__snprintf=yes"
15493 echo "configure: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15496 eval "ac_cv_func__snprintf=no"
15501 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15502 echo "$ac_t""yes" 1>&6
15503 ac_cv_func_snprintf=yes
15504 cat >> confdefs.h <<\EOF
15505 #define snprintf _snprintf
15510 echo "$ac_t""no" 1>&6
15514 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15515 echo "configure:15516: checking for _vsnprintf" >&5
15516 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15517 echo $ac_n "(cached) $ac_c" 1>&6
15519 cat > conftest.$ac_ext <<EOF
15520 #line 15521 "configure"
15521 #include "confdefs.h"
15522 /* System header to define __stub macros and hopefully few prototypes,
15523 which can conflict with char _vsnprintf(); below. */
15524 #include <assert.h>
15525 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15533 /* The GNU C library defines this for functions which it implements
15534 to always fail with ENOSYS. Some functions are actually named
15535 something starting with __ and the normal name is an alias. */
15536 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15544 if { (eval echo configure:15545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15546 eval "ac_cv_func__vsnprintf=yes"
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15551 eval "ac_cv_func__vsnprintf=no"
15556 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15557 echo "$ac_t""yes" 1>&6
15558 ac_cv_func_vsnprintf=yes
15559 cat >> confdefs.h <<\EOF
15560 #define vsnprintf _vsnprintf
15565 echo "$ac_t""no" 1>&6
15569 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15570 echo "configure:15571: checking for vprintf" >&5
15571 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15572 echo $ac_n "(cached) $ac_c" 1>&6
15574 cat > conftest.$ac_ext <<EOF
15575 #line 15576 "configure"
15576 #include "confdefs.h"
15577 /* System header to define __stub macros and hopefully few prototypes,
15578 which can conflict with char vprintf(); below. */
15579 #include <assert.h>
15580 /* Override any gcc2 internal prototype to avoid an error. */
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15588 /* The GNU C library defines this for functions which it implements
15589 to always fail with ENOSYS. Some functions are actually named
15590 something starting with __ and the normal name is an alias. */
15591 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15599 if { (eval echo configure:15600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15601 eval "ac_cv_func_vprintf=yes"
15603 echo "configure: failed program was:" >&5
15604 cat conftest.$ac_ext >&5
15606 eval "ac_cv_func_vprintf=no"
15611 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15612 echo "$ac_t""yes" 1>&6
15613 cat >> confdefs.h <<\EOF
15614 #define HAVE_VPRINTF 1
15618 echo "$ac_t""no" 1>&6
15621 if test "$ac_cv_func_vprintf" != yes; then
15622 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15623 echo "configure:15624: checking for _doprnt" >&5
15624 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15625 echo $ac_n "(cached) $ac_c" 1>&6
15627 cat > conftest.$ac_ext <<EOF
15628 #line 15629 "configure"
15629 #include "confdefs.h"
15630 /* System header to define __stub macros and hopefully few prototypes,
15631 which can conflict with char _doprnt(); below. */
15632 #include <assert.h>
15633 /* Override any gcc2 internal prototype to avoid an error. */
15634 /* We use char because int might match the return type of a gcc2
15635 builtin and then its argument prototype would still apply. */
15641 /* The GNU C library defines this for functions which it implements
15642 to always fail with ENOSYS. Some functions are actually named
15643 something starting with __ and the normal name is an alias. */
15644 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15652 if { (eval echo configure:15653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15654 eval "ac_cv_func__doprnt=yes"
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15659 eval "ac_cv_func__doprnt=no"
15664 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15665 echo "$ac_t""yes" 1>&6
15666 cat >> confdefs.h <<\EOF
15667 #define HAVE_DOPRNT 1
15671 echo "$ac_t""no" 1>&6
15677 if test $ac_cv_func_vprintf = yes ; then
15678 for ac_func in vsnprintf vsprintf
15680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15681 echo "configure:15682: checking for $ac_func" >&5
15682 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15683 echo $ac_n "(cached) $ac_c" 1>&6
15685 cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 /* System header to define __stub macros and hopefully few prototypes,
15689 which can conflict with char $ac_func(); below. */
15690 #include <assert.h>
15691 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15699 /* The GNU C library defines this for functions which it implements
15700 to always fail with ENOSYS. Some functions are actually named
15701 something starting with __ and the normal name is an alias. */
15702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15710 if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15712 eval "ac_cv_func_$ac_func=yes"
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15717 eval "ac_cv_func_$ac_func=no"
15722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15723 echo "$ac_t""yes" 1>&6
15724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15725 cat >> confdefs.h <<EOF
15726 #define $ac_tr_func 1
15730 echo "$ac_t""no" 1>&6
15788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15789 echo "configure:15790: checking for $ac_func" >&5
15790 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15791 echo $ac_n "(cached) $ac_c" 1>&6
15793 cat > conftest.$ac_ext <<EOF
15794 #line 15795 "configure"
15795 #include "confdefs.h"
15796 /* System header to define __stub macros and hopefully few prototypes,
15797 which can conflict with char $ac_func(); below. */
15798 #include <assert.h>
15799 /* Override any gcc2 internal prototype to avoid an error. */
15800 /* We use char because int might match the return type of a gcc2
15801 builtin and then its argument prototype would still apply. */
15807 /* The GNU C library defines this for functions which it implements
15808 to always fail with ENOSYS. Some functions are actually named
15809 something starting with __ and the normal name is an alias. */
15810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15818 if { (eval echo configure:15819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15820 eval "ac_cv_func_$ac_func=yes"
15822 echo "configure: failed program was:" >&5
15823 cat conftest.$ac_ext >&5
15825 eval "ac_cv_func_$ac_func=no"
15830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15831 echo "$ac_t""yes" 1>&6
15832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15833 cat >> confdefs.h <<EOF
15834 #define $ac_tr_func 1
15838 echo "$ac_t""no" 1>&6
15843 for ac_func in getopt tempnam
15845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15846 echo "configure:15847: checking for $ac_func" >&5
15847 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15848 echo $ac_n "(cached) $ac_c" 1>&6
15850 cat > conftest.$ac_ext <<EOF
15851 #line 15852 "configure"
15852 #include "confdefs.h"
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char $ac_func(); below. */
15855 #include <assert.h>
15856 /* Override any gcc2 internal prototype to avoid an error. */
15857 /* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15864 /* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15875 if { (eval echo configure:15876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15877 eval "ac_cv_func_$ac_func=yes"
15879 echo "configure: failed program was:" >&5
15880 cat conftest.$ac_ext >&5
15882 eval "ac_cv_func_$ac_func=no"
15887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15888 echo "$ac_t""yes" 1>&6
15889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15890 cat >> confdefs.h <<EOF
15891 #define $ac_tr_func 1
15895 echo "$ac_t""no" 1>&6
15896 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15902 if test "$ac_cv_func_getopt" != yes; then
15903 LIBSRCS="$LIBSRCS getopt.c"
15906 if test "$ac_cv_func_tempnam" != yes; then
15907 LIBSRCS="$LIBSRCS tempnam.c"
15910 # Check Configuration
15911 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15912 echo "configure:15913: checking declaration of sys_errlist" >&5
15913 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15914 echo $ac_n "(cached) $ac_c" 1>&6
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15922 #include <sys/types.h>
15925 #include <stdlib.h>
15928 char *c = (char *) *sys_errlist
15931 if { (eval echo configure:15932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15933 ol_cv_dcl_sys_errlist=yes
15934 ol_cv_have_sys_errlist=yes
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15939 ol_cv_dcl_sys_errlist=no
15944 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15946 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15947 if test $ol_cv_dcl_sys_errlist = no ; then
15948 cat >> confdefs.h <<\EOF
15949 #define DECL_SYS_ERRLIST 1
15953 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15954 echo "configure:15955: checking existence of sys_errlist" >&5
15955 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15956 echo $ac_n "(cached) $ac_c" 1>&6
15959 cat > conftest.$ac_ext <<EOF
15960 #line 15961 "configure"
15961 #include "confdefs.h"
15964 char *c = (char *) *sys_errlist
15967 if { (eval echo configure:15968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15969 ol_cv_have_sys_errlist=yes
15971 echo "configure: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15974 ol_cv_have_sys_errlist=no
15979 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15981 if test $ol_cv_have_sys_errlist = yes ; then
15982 cat >> confdefs.h <<\EOF
15983 #define HAVE_SYS_ERRLIST 1
15990 if test "$ol_enable_debug" != no ; then
15991 cat >> confdefs.h <<\EOF
15992 #define LDAP_DEBUG 1
15996 if test "$ol_enable_syslog" = yes ; then
15997 cat >> confdefs.h <<\EOF
15998 #define LDAP_SYSLOG 1
16002 if test "$ol_enable_cache" = no ; then
16003 cat >> confdefs.h <<\EOF
16004 #define LDAP_NOCACHE 1
16008 if test "$ol_link_kbind" != no ; then
16009 cat >> confdefs.h <<\EOF
16010 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16014 if test "$ol_enable_proctitle" != no ; then
16015 cat >> confdefs.h <<\EOF
16016 #define LDAP_PROCTITLE 1
16020 if test "$ol_enable_referrals" != no ; then
16021 cat >> confdefs.h <<\EOF
16022 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16026 if test "$ol_enable_local" != no; then
16027 cat >> confdefs.h <<\EOF
16028 #define LDAP_PF_LOCAL 1
16032 if test "$ol_link_ipv6" != no; then
16033 cat >> confdefs.h <<\EOF
16034 #define LDAP_PF_INET6 1
16038 if test "$ol_enable_cleartext" != no ; then
16039 cat >> confdefs.h <<\EOF
16040 #define SLAPD_CLEARTEXT 1
16044 if test "$ol_enable_crypt" != no ; then
16045 cat >> confdefs.h <<\EOF
16046 #define SLAPD_CRYPT 1
16050 if test "$ol_link_kpasswd" != no ; then
16051 cat >> confdefs.h <<\EOF
16052 #define SLAPD_KPASSWD 1
16056 if test "$ol_link_spasswd" != no ; then
16057 cat >> confdefs.h <<\EOF
16058 #define SLAPD_SPASSWD 1
16062 if test "$ol_enable_multimaster" != no ; then
16063 cat >> confdefs.h <<\EOF
16064 #define SLAPD_MULTIMASTER 1
16068 if test "$ol_enable_phonetic" != no ; then
16069 cat >> confdefs.h <<\EOF
16070 #define SLAPD_PHONETIC 1
16074 if test "$ol_enable_rlookups" != no ; then
16075 cat >> confdefs.h <<\EOF
16076 #define SLAPD_RLOOKUPS 1
16080 if test "$ol_enable_aci" != no ; then
16081 cat >> confdefs.h <<\EOF
16082 #define SLAPD_ACI_ENABLED 1
16087 if test "$ol_link_modules" != no ; then
16088 cat >> confdefs.h <<\EOF
16089 #define SLAPD_MODULES 1
16093 SLAPD_MODULES_LDFLAGS="-dlopen self"
16096 if test "$ol_enable_bdb" != no ; then
16097 cat >> confdefs.h <<\EOF
16098 #define SLAPD_BDB 1
16103 if test "$ol_with_bdb_module" != static ; then
16104 cat >> confdefs.h <<\EOF
16105 #define SLAPD_BDB_DYNAMIC 1
16109 BUILD_BDB_DYNAMIC=shared
16110 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16114 if test "$ol_link_dnssrv" != no ; then
16115 cat >> confdefs.h <<\EOF
16116 #define SLAPD_DNSSRV 1
16121 if test "$ol_with_dnssrv_module" != static ; then
16122 cat >> confdefs.h <<\EOF
16123 #define SLAPD_DNSSRV_DYNAMIC 1
16127 BUILD_DNSSRV_DYNAMIC=shared
16128 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16132 if test "$ol_enable_ldap" != no ; then
16133 cat >> confdefs.h <<\EOF
16134 #define SLAPD_LDAP 1
16139 if test "$ol_with_ldap_module" != static ; then
16140 cat >> confdefs.h <<\EOF
16141 #define SLAPD_LDAP_DYNAMIC 1
16145 BUILD_LDAP_DYNAMIC=shared
16146 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16150 if test "$ol_link_ldbm" != no ; then
16151 cat >> confdefs.h <<\EOF
16152 #define SLAPD_LDBM 1
16157 if test "$ol_with_ldbm_module" != static ; then
16158 cat >> confdefs.h <<\EOF
16159 #define SLAPD_LDBM_DYNAMIC 1
16163 BUILD_LDBM_DYNAMIC=shared
16164 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16168 if test "$ol_enable_passwd" != no ; then
16169 cat >> confdefs.h <<\EOF
16170 #define SLAPD_PASSWD 1
16175 if test "$ol_with_passwd_module" != static ; then
16176 cat >> confdefs.h <<\EOF
16177 #define SLAPD_PASSWD_DYNAMIC 1
16181 BUILD_PASSWD_DYNAMIC=shared
16182 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16186 if test "$ol_link_perl" != no ; then
16187 cat >> confdefs.h <<\EOF
16188 #define SLAPD_PERL 1
16193 if test "$ol_with_perl_module" != static ; then
16194 cat >> confdefs.h <<\EOF
16195 #define SLAPD_PERL_DYNAMIC 1
16199 BUILD_PERL_DYNAMIC=shared
16200 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16204 if test "$ol_enable_shell" != no ; then
16205 cat >> confdefs.h <<\EOF
16206 #define SLAPD_SHELL 1
16211 if test "$ol_with_shell_module" != static ; then
16212 cat >> confdefs.h <<\EOF
16213 #define SLAPD_SHELL_DYNAMIC 1
16217 BUILD_SHELL_DYNAMIC=shared
16218 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16222 if test "$ol_enable_tcl" != no ; then
16223 cat >> confdefs.h <<\EOF
16224 #define SLAPD_TCL 1
16229 if test "$ol_with_tcl_module" != static; then
16230 cat >> confdefs.h <<\EOF
16231 #define SLAPD_TCL_DYNAMIC 1
16235 BUILD_TCL_DYNAMIC=shared
16236 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16240 if test "$ol_link_sql" != no ; then
16241 cat >> confdefs.h <<\EOF
16242 #define SLAPD_SQL 1
16247 if test "$ol_with_sql_module" != static; then
16248 cat >> confdefs.h <<\EOF
16249 #define SLAPD_SQL_DYNAMIC 1
16253 BUILD_SQL_DYNAMIC=shared
16254 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16258 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16259 $BUILD_SLAPD = yes ; then
16264 if test "$LINK_BINS_DYNAMIC" = yes; then
16266 LT_LIB_LINKAGE=shared
16269 LT_LIB_LINKAGE=static
16272 if test "$ac_cv_mingw32" = yes ; then
16343 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16346 # Let make expand exec_prefix.
16347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16349 # Any assignment to VPATH causes Sun make to only execute
16350 # the first set of double-colon rules, so remove it if not needed.
16351 # If there is a colon in the path, we need to keep it.
16352 if test "x$srcdir" = x.; then
16353 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16356 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16358 DEFS=-DHAVE_CONFIG_H
16360 # Without the "./", some shells look in PATH for config.status.
16361 : ${CONFIG_STATUS=./config.status}
16363 echo creating $CONFIG_STATUS
16364 rm -f $CONFIG_STATUS
16365 cat > $CONFIG_STATUS <<EOF
16367 # Generated automatically by configure.
16368 # Run this file to recreate the current configuration.
16369 # This directory was configured as follows,
16370 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16372 # $0 $ac_configure_args
16374 # Compiler output produced by configure, useful for debugging
16375 # configure, is in ./config.log if it exists.
16377 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16380 case "\$ac_option" in
16381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16382 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16383 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16384 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16385 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16387 -help | --help | --hel | --he | --h)
16388 echo "\$ac_cs_usage"; exit 0 ;;
16389 *) echo "\$ac_cs_usage"; exit 1 ;;
16393 ac_given_srcdir=$srcdir
16394 ac_given_INSTALL="$INSTALL"
16396 trap 'rm -fr `echo "\
16397 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16398 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16399 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16400 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16401 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16402 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16403 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16404 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16405 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16406 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16407 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16408 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16409 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16410 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16411 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16412 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16413 include/Makefile:build/top.mk:include/Makefile.in \
16414 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16415 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16416 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16417 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16418 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16419 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16420 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16421 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16422 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16423 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16424 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16425 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16426 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16427 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16428 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16429 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16430 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16431 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16432 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16433 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16434 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16435 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16436 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16437 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16438 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16439 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16440 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16441 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16442 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16444 cat >> $CONFIG_STATUS <<EOF
16446 # Protect against being on the right side of a sed subst in config.status.
16447 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16448 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16452 s%@CFLAGS@%$CFLAGS%g
16453 s%@CPPFLAGS@%$CPPFLAGS%g
16454 s%@CXXFLAGS@%$CXXFLAGS%g
16455 s%@FFLAGS@%$FFLAGS%g
16457 s%@LDFLAGS@%$LDFLAGS%g
16459 s%@exec_prefix@%$exec_prefix%g
16460 s%@prefix@%$prefix%g
16461 s%@program_transform_name@%$program_transform_name%g
16462 s%@bindir@%$bindir%g
16463 s%@sbindir@%$sbindir%g
16464 s%@libexecdir@%$libexecdir%g
16465 s%@datadir@%$datadir%g
16466 s%@sysconfdir@%$sysconfdir%g
16467 s%@sharedstatedir@%$sharedstatedir%g
16468 s%@localstatedir@%$localstatedir%g
16469 s%@libdir@%$libdir%g
16470 s%@includedir@%$includedir%g
16471 s%@oldincludedir@%$oldincludedir%g
16472 s%@infodir@%$infodir%g
16473 s%@mandir@%$mandir%g
16475 s%@host_alias@%$host_alias%g
16476 s%@host_cpu@%$host_cpu%g
16477 s%@host_vendor@%$host_vendor%g
16478 s%@host_os@%$host_os%g
16479 s%@target@%$target%g
16480 s%@target_alias@%$target_alias%g
16481 s%@target_cpu@%$target_cpu%g
16482 s%@target_vendor@%$target_vendor%g
16483 s%@target_os@%$target_os%g
16485 s%@build_alias@%$build_alias%g
16486 s%@build_cpu@%$build_cpu%g
16487 s%@build_vendor@%$build_vendor%g
16488 s%@build_os@%$build_os%g
16489 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16490 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16491 s%@INSTALL_DATA@%$INSTALL_DATA%g
16492 s%@PACKAGE@%$PACKAGE%g
16493 s%@VERSION@%$VERSION%g
16494 s%@ACLOCAL@%$ACLOCAL%g
16495 s%@AUTOCONF@%$AUTOCONF%g
16496 s%@AUTOMAKE@%$AUTOMAKE%g
16497 s%@AUTOHEADER@%$AUTOHEADER%g
16498 s%@MAKEINFO@%$MAKEINFO%g
16499 s%@install_sh@%$install_sh%g
16502 s%@AMTARFLAGS@%$AMTARFLAGS%g
16503 s%@SET_MAKE@%$SET_MAKE%g
16504 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16505 s%@top_builddir@%$top_builddir%g
16506 s%@ldap_subdir@%$ldap_subdir%g
16508 s%@RANLIB@%$RANLIB%g
16510 s%@DLLTOOL@%$DLLTOOL%g
16512 s%@OBJDUMP@%$OBJDUMP%g
16513 s%@LIBTOOL@%$LIBTOOL%g
16515 s%@SENDMAIL@%$SENDMAIL%g
16516 s%@EDITOR@%$EDITOR%g
16517 s%@FINGER@%$FINGER%g
16518 s%@PERLBIN@%$PERLBIN%g
16520 s%@EXEEXT@%$EXEEXT%g
16521 s%@OBJEXT@%$OBJEXT%g
16522 s%@OL_MKDEP@%$OL_MKDEP%g
16523 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16524 s%@LIBOBJS@%$LIBOBJS%g
16525 s%@LIBSRCS@%$LIBSRCS%g
16527 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16528 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16529 s%@DYN_EXT@%$DYN_EXT%g
16530 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16531 s%@BUILD_BDB@%$BUILD_BDB%g
16532 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16533 s%@BUILD_LDAP@%$BUILD_LDAP%g
16534 s%@BUILD_LDBM@%$BUILD_LDBM%g
16535 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16536 s%@BUILD_PERL@%$BUILD_PERL%g
16537 s%@BUILD_SHELL@%$BUILD_SHELL%g
16538 s%@BUILD_SQL@%$BUILD_SQL%g
16539 s%@BUILD_TCL@%$BUILD_TCL%g
16540 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
16541 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16542 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16543 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16544 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16545 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16546 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16547 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16548 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16549 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16550 s%@LDAP_LIBS@%$LDAP_LIBS%g
16551 s%@LDIF_LIBS@%$LDIF_LIBS%g
16552 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16553 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16554 s%@LDBM_LIBS@%$LDBM_LIBS%g
16555 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16556 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16557 s%@WRAP_LIBS@%$WRAP_LIBS%g
16558 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16559 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16560 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16561 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16562 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16563 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16564 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16565 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16566 s%@KRB4_LIBS@%$KRB4_LIBS%g
16567 s%@KRB5_LIBS@%$KRB5_LIBS%g
16568 s%@READLINE_LIBS@%$READLINE_LIBS%g
16569 s%@SASL_LIBS@%$SASL_LIBS%g
16570 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16571 s%@TLS_LIBS@%$TLS_LIBS%g
16572 s%@MODULES_LIBS@%$MODULES_LIBS%g
16573 s%@AUTH_LIBS@%$AUTH_LIBS%g
16574 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16575 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16576 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16581 cat >> $CONFIG_STATUS <<\EOF
16583 # Split the substitutions into bite-sized pieces for seds with
16584 # small command number limits, like on Digital OSF/1 and HP-UX.
16585 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16586 ac_file=1 # Number of current file.
16587 ac_beg=1 # First line for current file.
16588 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16591 while $ac_more_lines; do
16592 if test $ac_beg -gt 1; then
16593 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16595 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16597 if test ! -s conftest.s$ac_file; then
16598 ac_more_lines=false
16599 rm -f conftest.s$ac_file
16601 if test -z "$ac_sed_cmds"; then
16602 ac_sed_cmds="sed -f conftest.s$ac_file"
16604 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16606 ac_file=`expr $ac_file + 1`
16608 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16611 if test -z "$ac_sed_cmds"; then
16616 cat >> $CONFIG_STATUS <<EOF
16618 CONFIG_FILES=\${CONFIG_FILES-"\
16619 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16620 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16621 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16622 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16623 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16624 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16625 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16626 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16627 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16628 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16629 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16630 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16631 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16632 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16633 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16634 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16635 include/Makefile:build/top.mk:include/Makefile.in \
16636 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16637 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16638 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16639 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16640 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16641 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16642 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16643 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16644 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16645 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16646 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16647 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16648 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16649 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16650 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16651 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16652 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16653 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16654 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16655 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16656 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16657 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16658 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16659 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16660 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16661 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16662 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16663 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16666 cat >> $CONFIG_STATUS <<\EOF
16667 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16668 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16670 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16671 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16672 *) ac_file_in="${ac_file}.in" ;;
16675 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16677 # Remove last slash and all that follows it. Not all systems have dirname.
16678 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16679 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16680 # The file is in a subdirectory.
16681 test ! -d "$ac_dir" && mkdir "$ac_dir"
16682 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16683 # A "../" for each directory in $ac_dir_suffix.
16684 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16686 ac_dir_suffix= ac_dots=
16689 case "$ac_given_srcdir" in
16691 if test -z "$ac_dots"; then top_srcdir=.
16692 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16693 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16694 *) # Relative path.
16695 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16696 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16699 case "$ac_given_INSTALL" in
16700 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16701 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16704 echo creating "$ac_file"
16706 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16708 *[Mm]akefile*) ac_comsub="1i\\
16709 # $configure_input" ;;
16713 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16715 s%@configure_input@%$configure_input%g
16716 s%@srcdir@%$srcdir%g
16717 s%@top_srcdir@%$top_srcdir%g
16718 s%@INSTALL@%$INSTALL%g
16719 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16723 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16724 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16726 # ac_d sets the value in "#define NAME VALUE" lines.
16727 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16728 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16731 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16732 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16733 ac_uB='\([ ]\)%\1#\2define\3'
16736 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16737 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16738 ac_eB='$%\1#\2define\3'
16742 if test "${CONFIG_HEADERS+set}" != set; then
16744 cat >> $CONFIG_STATUS <<EOF
16745 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16747 cat >> $CONFIG_STATUS <<\EOF
16749 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16752 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16753 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16754 *) ac_file_in="${ac_file}.in" ;;
16757 echo creating $ac_file
16759 rm -f conftest.frag conftest.in conftest.out
16760 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16761 cat $ac_file_inputs > conftest.in
16765 # Transform confdefs.h into a sed script conftest.vals that substitutes
16766 # the proper values into config.h.in to produce config.h. And first:
16767 # Protect against being on the right side of a sed subst in config.status.
16768 # Protect against being in an unquoted here document in config.status.
16769 rm -f conftest.vals
16770 cat > conftest.hdr <<\EOF
16773 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16777 sed -n -f conftest.hdr confdefs.h > conftest.vals
16780 # This sed command replaces #undef with comments. This is necessary, for
16781 # example, in the case of _POSIX_SOURCE, which is predefined and required
16782 # on some systems where configure will not decide to define it.
16783 cat >> conftest.vals <<\EOF
16784 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16787 # Break up conftest.vals because some shells have a limit on
16788 # the size of here documents, and old seds have small limits too.
16790 rm -f conftest.tail
16793 ac_lines=`grep -c . conftest.vals`
16794 # grep -c gives empty output for an empty file on some AIX systems.
16795 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16796 # Write a limited-size here document to conftest.frag.
16797 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16798 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16800 sed -f conftest.frag conftest.in > conftest.out
16802 mv conftest.out conftest.in
16803 ' >> $CONFIG_STATUS
16804 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16805 rm -f conftest.vals
16806 mv conftest.tail conftest.vals
16808 rm -f conftest.vals
16810 cat >> $CONFIG_STATUS <<\EOF
16811 rm -f conftest.frag conftest.h
16812 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16813 cat conftest.in >> conftest.h
16815 if cmp -s $ac_file conftest.h 2>/dev/null; then
16816 echo "$ac_file is unchanged"
16819 # Remove last slash and all that follows it. Not all systems have dirname.
16820 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16821 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16822 # The file is in a subdirectory.
16823 test ! -d "$ac_dir" && mkdir "$ac_dir"
16826 mv conftest.h $ac_file
16831 cat >> $CONFIG_STATUS <<EOF
16834 cat >> $CONFIG_STATUS <<\EOF
16837 echo Please \"make depend\" to build dependencies
16841 chmod +x $CONFIG_STATUS
16842 rm -fr confdefs* $ac_clean_files
16843 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1