3 # from OpenLDAP: pkg/ldap/configure.in,v 1.303 2000/05/25 19:09:44 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 "Copying restrictions apply, see COPYRIGHT file."
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-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-kbind enable V2 Kerberos IV bind (auto)"
44 --enable-cldap enable connectionless ldap (no)"
46 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
48 --enable-x-compile enable cross compiling (no)"
50 --enable-dmalloc enable debug malloc support (no)"
52 --with-cyrus-sasl with Cyrus SASL support (auto)"
54 --with-fetch with fetch URL support (auto)"
56 --with-kerberos with support (auto)"
58 --with-readline with readline support (auto)"
60 --with-threads use threads (auto)"
62 --with-tls with TLS/SSL support (auto)"
64 --with-yielding-select with implicitly yielding select (auto)"
66 LDAPD (X.500-to-LDAP Gateway) Options:"
68 --enable-ldapd enable building ldapd (no)"
70 SLAPD (Standalone LDAP Daemon) Options:"
72 --enable-slapd enable building slapd (yes)"
74 --enable-cleartext enable cleartext passwords (yes)"
76 --enable-crypt enable crypt(3) passwords (auto)"
78 --enable-kpasswd enable kerberos password verification (no)"
80 --enable-spasswd enable (Cyrus) SASL password verification (no)"
82 --enable-modules enable dynamic module support (no)"
84 --enable-multimaster enable multimaster replication (no)"
86 --enable-phonetic enable phonetic/soundex (no)"
88 --enable-quipu build quipu migration tools (no)"
90 --enable-rlookups enable reverse lookups (auto)"
92 --enable-aci enable per-object ACIs (no)"
94 --enable-wrappers enable tcp wrapper support (no)"
96 --enable-dynamic enable linking built binaries with dynamic libs (no)"
98 --enable-bdb2 enable bdb2 backend (no)"
100 --with-bdb2-module module type (static)"
102 --enable-dnssrv enable bdb2 backend (no)"
104 --with-dnssrv-module module type (static)"
106 --enable-ldap enable ldap backend (no)"
108 --with-ldap-module module type (static)"
110 --enable-ldbm enable ldbm backend (yes)"
112 --with-ldbm-api use LDBM API (auto)"
114 --with-ldbm-module module type (static)"
116 --with-ldbm-type use LDBM type (auto)"
118 --enable-passwd enable passwd backend (no)"
120 --with-passwd-module module type (static)"
122 --enable-perl enable perl backend (no)"
124 --with-perl-module module type (static)"
126 --enable-shell enable shell backend (no)"
128 --with-shell-module module type (static)"
130 --enable-sql enable sql backend (no)"
132 --with-sql-module module type (static)"
134 --enable-tcl enable tcl backend (no)"
136 --with-tcl-module module type (static)"
138 SLURPD (Replication Daemon) Options:"
140 --enable-slurpd enable building slurpd (auto)"
142 Library Generation & Linking Options"
144 --enable-static[=PKGS] build static libraries [default=yes]"
146 --enable-shared[=PKGS] build shared libraries [default=yes]"
148 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
150 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
152 --disable-libtool-lock avoid locking (might break parallel builds)"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file=./config.cache
167 program_transform_name=s,x,x,
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
188 # Initialize some other variables.
191 SHELL=${CONFIG_SHELL-/bin/sh}
192 # Maximum number of lines to put in a shell here document.
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
207 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
211 # Accept the important Cygnus configure options, so we can diagnose typos.
215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
218 bindir="$ac_optarg" ;;
220 -build | --build | --buil | --bui | --bu)
222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
223 build="$ac_optarg" ;;
225 -cache-file | --cache-file | --cache-fil | --cache-fi \
226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
227 ac_prev=cache_file ;;
228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
230 cache_file="$ac_optarg" ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir="$ac_optarg" ;;
238 -disable-* | --disable-*)
239 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
244 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
251 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
253 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix="$ac_optarg" ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he)
274 # Omit some internal or obsolete options to make the list less imposing.
275 # This message is too long to be a string in the A/UX 3.1 sh.
277 Usage: configure [options] [host]
278 Options: [defaults in brackets after descriptions]
280 --cache-file=FILE cache test results in FILE
281 --help print this message
282 --no-create do not create output files
283 --quiet, --silent do not print \`checking...' messages
284 --version print the version of autoconf that created configure
285 Directory and file names:
286 --prefix=PREFIX install architecture-independent files in PREFIX
288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
290 --bindir=DIR user executables in DIR [EPREFIX/bin]
291 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
292 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
293 --datadir=DIR read-only architecture-independent data in DIR
295 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
296 --sharedstatedir=DIR modifiable architecture-independent data in DIR
298 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
299 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
300 --includedir=DIR C header files in DIR [PREFIX/include]
301 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
302 --infodir=DIR info documentation in DIR [PREFIX/info]
303 --mandir=DIR man documentation in DIR [PREFIX/man]
304 --srcdir=DIR find the sources in DIR [configure dir or ..]
305 --program-prefix=PREFIX prepend PREFIX to installed program names
306 --program-suffix=SUFFIX append SUFFIX to installed program names
307 --program-transform-name=PROGRAM
308 run sed PROGRAM on installed program names
312 --build=BUILD configure for building on BUILD [BUILD=HOST]
313 --host=HOST configure for HOST [guessed]
314 --target=TARGET configure for TARGET [TARGET=HOST]
315 Features and packages:
316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
320 --x-includes=DIR X include files are in DIR
321 --x-libraries=DIR X library files are in DIR
323 if test -n "$ac_help"; then
324 echo "--enable and --with options recognized:$ac_help"
328 -host | --host | --hos | --ho)
330 -host=* | --host=* | --hos=* | --ho=*)
333 -includedir | --includedir | --includedi | --included | --include \
334 | --includ | --inclu | --incl | --inc)
335 ac_prev=includedir ;;
336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
337 | --includ=* | --inclu=* | --incl=* | --inc=*)
338 includedir="$ac_optarg" ;;
340 -infodir | --infodir | --infodi | --infod | --info | --inf)
342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
343 infodir="$ac_optarg" ;;
345 -libdir | --libdir | --libdi | --libd)
347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
348 libdir="$ac_optarg" ;;
350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
351 | --libexe | --libex | --libe)
352 ac_prev=libexecdir ;;
353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
354 | --libexe=* | --libex=* | --libe=*)
355 libexecdir="$ac_optarg" ;;
357 -localstatedir | --localstatedir | --localstatedi | --localstated \
358 | --localstate | --localstat | --localsta | --localst \
359 | --locals | --local | --loca | --loc | --lo)
360 ac_prev=localstatedir ;;
361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
362 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
363 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
364 localstatedir="$ac_optarg" ;;
366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
369 mandir="$ac_optarg" ;;
372 # Obsolete; use --without-fp.
375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
385 | --oldin | --oldi | --old | --ol | --o)
386 ac_prev=oldincludedir ;;
387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
390 oldincludedir="$ac_optarg" ;;
392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
395 prefix="$ac_optarg" ;;
397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
398 | --program-pre | --program-pr | --program-p)
399 ac_prev=program_prefix ;;
400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
402 program_prefix="$ac_optarg" ;;
404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
405 | --program-suf | --program-su | --program-s)
406 ac_prev=program_suffix ;;
407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
409 program_suffix="$ac_optarg" ;;
411 -program-transform-name | --program-transform-name \
412 | --program-transform-nam | --program-transform-na \
413 | --program-transform-n | --program-transform- \
414 | --program-transform | --program-transfor \
415 | --program-transfo | --program-transf \
416 | --program-trans | --program-tran \
417 | --progr-tra | --program-tr | --program-t)
418 ac_prev=program_transform_name ;;
419 -program-transform-name=* | --program-transform-name=* \
420 | --program-transform-nam=* | --program-transform-na=* \
421 | --program-transform-n=* | --program-transform-=* \
422 | --program-transform=* | --program-transfor=* \
423 | --program-transfo=* | --program-transf=* \
424 | --program-trans=* | --program-tran=* \
425 | --progr-tra=* | --program-tr=* | --program-t=*)
426 program_transform_name="$ac_optarg" ;;
428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
429 | -silent | --silent | --silen | --sile | --sil)
432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
436 sbindir="$ac_optarg" ;;
438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
440 | --sharedst | --shareds | --shared | --share | --shar \
442 ac_prev=sharedstatedir ;;
443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
447 sharedstatedir="$ac_optarg" ;;
449 -site | --site | --sit)
451 -site=* | --site=* | --sit=*)
454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
457 srcdir="$ac_optarg" ;;
459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
460 | --syscon | --sysco | --sysc | --sys | --sy)
461 ac_prev=sysconfdir ;;
462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
464 sysconfdir="$ac_optarg" ;;
466 -target | --target | --targe | --targ | --tar | --ta | --t)
468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
469 target="$ac_optarg" ;;
471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 -version | --version | --versio | --versi | --vers)
475 echo "configure generated by autoconf version 2.13.1"
479 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 ac_package=`echo $ac_package| sed 's/-/_/g'`
489 eval "with_${ac_package}='$ac_optarg'" ;;
491 -without-* | --without-*)
492 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
495 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
497 ac_package=`echo $ac_package| sed 's/-/_/g'`
498 eval "with_${ac_package}=no" ;;
501 # Obsolete; use --with-x.
504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
505 | --x-incl | --x-inc | --x-in | --x-i)
506 ac_prev=x_includes ;;
507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
509 x_includes="$ac_optarg" ;;
511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
513 ac_prev=x_libraries ;;
514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
516 x_libraries="$ac_optarg" ;;
518 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
522 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
523 echo "configure: warning: $ac_option: invalid host type" 1>&2
525 if test "x$nonopt" != xNONE; then
526 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
534 if test -n "$ac_prev"; then
535 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
540 # File descriptor usage:
543 # 2 errors and warnings
544 # 3 some systems may open it to /dev/tty
545 # 4 used on the Kubota Titan
546 # 6 checking for... messages and results
547 # 5 compiler messages saved in config.log
548 if test "$silent" = yes; then
556 This file contains any messages produced by compilers while
557 running configure, to aid debugging if configure makes a mistake.
560 # Strip out --no-create and --no-recursion so they do not pile up.
561 # Also quote any args containing shell metacharacters.
566 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
567 | --no-cr | --no-c) ;;
568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
571 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
572 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
577 # Only set these to C if already set. These must not be set unconditionally
578 # because not all systems understand e.g. LANG=C (notably SCO).
579 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
580 # Non-C LC_CTYPE values break the ctype check.
581 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
582 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
583 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
584 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
587 rm -rf conftest* confdefs.h
588 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 # A filename unique to this package, relative to the directory that
592 # configure is in, which we can look for to find out if srcdir is correct.
593 ac_unique_file=build/version
595 # Find the source files, if location was not specified.
596 if test -z "$srcdir"; then
597 ac_srcdir_defaulted=yes
598 # Try the directory containing this script, then its parent.
600 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
601 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
603 if test ! -r $srcdir/$ac_unique_file; then
607 ac_srcdir_defaulted=no
609 if test ! -r $srcdir/$ac_unique_file; then
610 if test "$ac_srcdir_defaulted" = yes; then
611 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
613 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
636 ac_cpp='$CPP $CPPFLAGS'
637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
639 cross_compiling=$ac_cv_prog_cc_cross
643 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
644 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
645 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
652 ac_n= ac_c='\c' ac_t=
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 OL_VERSION=`cat $ac_aux_dir/version`
679 if test -z "$OL_VERSION"; then
680 { echo "configure: error: could not determine version" 1>&2; exit 1; }
683 echo "Configuring OpenLDAP $OL_VERSION ..."
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
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1155 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1156 echo "configure:1157: checking configure arguments" >&5
1161 ldap_subdir="/openldap"
1163 # Check whether --with-subdir or --without-subdir was given.
1164 if test "${with_subdir+set}" = set; then
1165 withval="$with_subdir"
1172 ldap_subdir="$withval"
1175 ldap_subdir="/$withval"
1182 # OpenLDAP --enable-debug
1183 # Check whether --enable-debug or --disable-debug was given.
1184 if test "${enable_debug+set}" = set; then
1185 enableval="$enable_debug"
1188 for ol_val in auto yes no ; do
1189 if test "$enableval" = "$ol_val" ; then
1193 if test "$ol_arg" = "invalid" ; then
1194 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1196 ol_enable_debug="$ol_arg"
1199 ol_enable_debug="yes"
1201 # end --enable-debug
1202 # OpenLDAP --enable-syslog
1203 # Check whether --enable-syslog or --disable-syslog was given.
1204 if test "${enable_syslog+set}" = set; then
1205 enableval="$enable_syslog"
1208 for ol_val in auto yes no ; do
1209 if test "$enableval" = "$ol_val" ; then
1213 if test "$ol_arg" = "invalid" ; then
1214 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1216 ol_enable_syslog="$ol_arg"
1219 ol_enable_syslog="auto"
1221 # end --enable-syslog
1222 # OpenLDAP --enable-proctitle
1223 # Check whether --enable-proctitle or --disable-proctitle was given.
1224 if test "${enable_proctitle+set}" = set; then
1225 enableval="$enable_proctitle"
1228 for ol_val in auto yes no ; do
1229 if test "$enableval" = "$ol_val" ; then
1233 if test "$ol_arg" = "invalid" ; then
1234 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1236 ol_enable_proctitle="$ol_arg"
1239 ol_enable_proctitle="yes"
1241 # end --enable-proctitle
1242 # OpenLDAP --enable-cache
1243 # Check whether --enable-cache or --disable-cache was given.
1244 if test "${enable_cache+set}" = set; then
1245 enableval="$enable_cache"
1248 for ol_val in auto yes no ; do
1249 if test "$enableval" = "$ol_val" ; then
1253 if test "$ol_arg" = "invalid" ; then
1254 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1256 ol_enable_cache="$ol_arg"
1259 ol_enable_cache="yes"
1261 # end --enable-cache
1262 # OpenLDAP --enable-dns
1263 # Check whether --enable-dns or --disable-dns was given.
1264 if test "${enable_dns+set}" = set; then
1265 enableval="$enable_dns"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1276 ol_enable_dns="$ol_arg"
1282 # OpenLDAP --enable-referrals
1283 # Check whether --enable-referrals or --disable-referrals was given.
1284 if test "${enable_referrals+set}" = set; then
1285 enableval="$enable_referrals"
1288 for ol_val in auto yes no ; do
1289 if test "$enableval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1296 ol_enable_referrals="$ol_arg"
1299 ol_enable_referrals="yes"
1301 # end --enable-referrals
1302 # OpenLDAP --enable-kbind
1303 # Check whether --enable-kbind or --disable-kbind was given.
1304 if test "${enable_kbind+set}" = set; then
1305 enableval="$enable_kbind"
1308 for ol_val in auto yes no ; do
1309 if test "$enableval" = "$ol_val" ; then
1313 if test "$ol_arg" = "invalid" ; then
1314 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1316 ol_enable_kbind="$ol_arg"
1319 ol_enable_kbind="auto"
1321 # end --enable-kbind
1322 # OpenLDAP --enable-cldap
1323 # Check whether --enable-cldap or --disable-cldap was given.
1324 if test "${enable_cldap+set}" = set; then
1325 enableval="$enable_cldap"
1328 for ol_val in auto yes no ; do
1329 if test "$enableval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1336 ol_enable_cldap="$ol_arg"
1339 ol_enable_cldap="no"
1341 # end --enable-cldap
1342 # OpenLDAP --enable-ldapi
1343 # Check whether --enable-ldapi or --disable-ldapi was given.
1344 if test "${enable_ldapi+set}" = set; then
1345 enableval="$enable_ldapi"
1348 for ol_val in auto yes no ; do
1349 if test "$enableval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1356 ol_enable_ldapi="$ol_arg"
1359 ol_enable_ldapi="no"
1361 # end --enable-ldapi
1362 # OpenLDAP --enable-x_compile
1363 # Check whether --enable-x_compile or --disable-x_compile was given.
1364 if test "${enable_x_compile+set}" = set; then
1365 enableval="$enable_x_compile"
1368 for ol_val in yes no ; do
1369 if test "$enableval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1376 ol_enable_x_compile="$ol_arg"
1379 ol_enable_x_compile="no"
1381 # end --enable-x_compile
1383 # OpenLDAP --enable-dmalloc
1384 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1385 if test "${enable_dmalloc+set}" = set; then
1386 enableval="$enable_dmalloc"
1389 for ol_val in auto yes no ; do
1390 if test "$enableval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1397 ol_enable_dmalloc="$ol_arg"
1400 ol_enable_dmalloc="no"
1402 # end --enable-dmalloc
1404 # OpenLDAP --with-cyrus_sasl
1405 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1406 if test "${with_cyrus_sasl+set}" = set; then
1407 withval="$with_cyrus_sasl"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1418 ol_with_cyrus_sasl="$ol_arg"
1421 ol_with_cyrus_sasl="auto"
1423 # end --with-cyrus_sasl
1425 # OpenLDAP --with-fetch
1426 # Check whether --with-fetch or --without-fetch was given.
1427 if test "${with_fetch+set}" = set; then
1428 withval="$with_fetch"
1431 for ol_val in auto yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1439 ol_with_fetch="$ol_arg"
1442 ol_with_fetch="auto"
1446 # OpenLDAP --with-kerberos
1447 # Check whether --with-kerberos or --without-kerberos was given.
1448 if test "${with_kerberos+set}" = set; then
1449 withval="$with_kerberos"
1452 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1460 ol_with_kerberos="$ol_arg"
1463 ol_with_kerberos="auto"
1465 # end --with-kerberos
1467 # OpenLDAP --with-readline
1468 # Check whether --with-readline or --without-readline was given.
1469 if test "${with_readline+set}" = set; then
1470 withval="$with_readline"
1473 for ol_val in auto yes no ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1481 ol_with_readline="$ol_arg"
1484 ol_with_readline="auto"
1486 # end --with-readline
1488 # OpenLDAP --with-threads
1489 # Check whether --with-threads or --without-threads was given.
1490 if test "${with_threads+set}" = set; then
1491 withval="$with_threads"
1494 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1502 ol_with_threads="$ol_arg"
1505 ol_with_threads="auto"
1507 # end --with-threads
1509 # OpenLDAP --with-tls
1510 # Check whether --with-tls or --without-tls was given.
1511 if test "${with_tls+set}" = set; then
1515 for ol_val in auto ssleay openssl yes no ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1523 ol_with_tls="$ol_arg"
1530 # OpenLDAP --with-yielding_select
1531 # Check whether --with-yielding_select or --without-yielding_select was given.
1532 if test "${with_yielding_select+set}" = set; then
1533 withval="$with_yielding_select"
1536 for ol_val in auto yes no manual ; do
1537 if test "$withval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1544 ol_with_yielding_select="$ol_arg"
1547 ol_with_yielding_select="auto"
1549 # end --with-yielding_select
1552 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1553 if test "${with_xxldapdoptions+set}" = set; then
1554 withval="$with_xxldapdoptions"
1558 # OpenLDAP --enable-ldapd
1559 # Check whether --enable-ldapd or --disable-ldapd was given.
1560 if test "${enable_ldapd+set}" = set; then
1561 enableval="$enable_ldapd"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1572 ol_enable_ldapd="$ol_arg"
1575 ol_enable_ldapd="no"
1577 # end --enable-ldapd
1579 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1580 if test "${with_xxslapdoptions+set}" = set; then
1581 withval="$with_xxslapdoptions"
1585 # OpenLDAP --enable-slapd
1586 # Check whether --enable-slapd or --disable-slapd was given.
1587 if test "${enable_slapd+set}" = set; then
1588 enableval="$enable_slapd"
1591 for ol_val in auto yes no ; do
1592 if test "$enableval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1599 ol_enable_slapd="$ol_arg"
1602 ol_enable_slapd="yes"
1604 # end --enable-slapd
1605 # OpenLDAP --enable-cleartext
1606 # Check whether --enable-cleartext or --disable-cleartext was given.
1607 if test "${enable_cleartext+set}" = set; then
1608 enableval="$enable_cleartext"
1611 for ol_val in auto yes no ; do
1612 if test "$enableval" = "$ol_val" ; then
1616 if test "$ol_arg" = "invalid" ; then
1617 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1619 ol_enable_cleartext="$ol_arg"
1622 ol_enable_cleartext="yes"
1624 # end --enable-cleartext
1625 # OpenLDAP --enable-crypt
1626 # Check whether --enable-crypt or --disable-crypt was given.
1627 if test "${enable_crypt+set}" = set; then
1628 enableval="$enable_crypt"
1631 for ol_val in auto yes no ; do
1632 if test "$enableval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1639 ol_enable_crypt="$ol_arg"
1642 ol_enable_crypt="auto"
1644 # end --enable-crypt
1645 # OpenLDAP --enable-kpasswd
1646 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1647 if test "${enable_kpasswd+set}" = set; then
1648 enableval="$enable_kpasswd"
1651 for ol_val in auto yes no ; do
1652 if test "$enableval" = "$ol_val" ; then
1656 if test "$ol_arg" = "invalid" ; then
1657 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1659 ol_enable_kpasswd="$ol_arg"
1662 ol_enable_kpasswd="no"
1664 # end --enable-kpasswd
1665 # OpenLDAP --enable-spasswd
1666 # Check whether --enable-spasswd or --disable-spasswd was given.
1667 if test "${enable_spasswd+set}" = set; then
1668 enableval="$enable_spasswd"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1679 ol_enable_spasswd="$ol_arg"
1682 ol_enable_spasswd="no"
1684 # end --enable-spasswd
1685 # OpenLDAP --enable-modules
1686 # Check whether --enable-modules or --disable-modules was given.
1687 if test "${enable_modules+set}" = set; then
1688 enableval="$enable_modules"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1699 ol_enable_modules="$ol_arg"
1702 ol_enable_modules="no"
1704 # end --enable-modules
1705 # OpenLDAP --enable-multimaster
1706 # Check whether --enable-multimaster or --disable-multimaster was given.
1707 if test "${enable_multimaster+set}" = set; then
1708 enableval="$enable_multimaster"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1719 ol_enable_multimaster="$ol_arg"
1722 ol_enable_multimaster="no"
1724 # end --enable-multimaster
1725 # OpenLDAP --enable-phonetic
1726 # Check whether --enable-phonetic or --disable-phonetic was given.
1727 if test "${enable_phonetic+set}" = set; then
1728 enableval="$enable_phonetic"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1739 ol_enable_phonetic="$ol_arg"
1742 ol_enable_phonetic="no"
1744 # end --enable-phonetic
1745 # OpenLDAP --enable-quipu
1746 # Check whether --enable-quipu or --disable-quipu was given.
1747 if test "${enable_quipu+set}" = set; then
1748 enableval="$enable_quipu"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1759 ol_enable_quipu="$ol_arg"
1762 ol_enable_quipu="no"
1764 # end --enable-quipu
1765 # OpenLDAP --enable-rlookups
1766 # Check whether --enable-rlookups or --disable-rlookups was given.
1767 if test "${enable_rlookups+set}" = set; then
1768 enableval="$enable_rlookups"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1779 ol_enable_rlookups="$ol_arg"
1782 ol_enable_rlookups="auto"
1784 # end --enable-rlookups
1785 # OpenLDAP --enable-aci
1786 # Check whether --enable-aci or --disable-aci was given.
1787 if test "${enable_aci+set}" = set; then
1788 enableval="$enable_aci"
1791 for ol_val in auto yes no ; do
1792 if test "$enableval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1799 ol_enable_aci="$ol_arg"
1805 # OpenLDAP --enable-wrappers
1806 # Check whether --enable-wrappers or --disable-wrappers was given.
1807 if test "${enable_wrappers+set}" = set; then
1808 enableval="$enable_wrappers"
1811 for ol_val in auto yes no ; do
1812 if test "$enableval" = "$ol_val" ; then
1816 if test "$ol_arg" = "invalid" ; then
1817 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1819 ol_enable_wrappers="$ol_arg"
1822 ol_enable_wrappers="no"
1824 # end --enable-wrappers
1825 # OpenLDAP --enable-dynamic
1826 # Check whether --enable-dynamic or --disable-dynamic was given.
1827 if test "${enable_dynamic+set}" = set; then
1828 enableval="$enable_dynamic"
1831 for ol_val in auto yes no ; do
1832 if test "$enableval" = "$ol_val" ; then
1836 if test "$ol_arg" = "invalid" ; then
1837 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1839 ol_enable_dynamic="$ol_arg"
1842 ol_enable_dynamic="no"
1844 # end --enable-dynamic
1846 # OpenLDAP --enable-bdb2
1847 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1848 if test "${enable_bdb2+set}" = set; then
1849 enableval="$enable_bdb2"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1860 ol_enable_bdb2="$ol_arg"
1866 # OpenLDAP --with-bdb2_module
1867 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1868 if test "${with_bdb2_module+set}" = set; then
1869 withval="$with_bdb2_module"
1872 for ol_val in static dynamic ; do
1873 if test "$withval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1880 ol_with_bdb2_module="$ol_arg"
1883 ol_with_bdb2_module="static"
1885 # end --with-bdb2_module
1887 # OpenLDAP --enable-dnssrv
1888 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1889 if test "${enable_dnssrv+set}" = set; then
1890 enableval="$enable_dnssrv"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1901 ol_enable_dnssrv="$ol_arg"
1904 ol_enable_dnssrv="no"
1906 # end --enable-dnssrv
1907 # OpenLDAP --with-dnssrv_module
1908 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1909 if test "${with_dnssrv_module+set}" = set; then
1910 withval="$with_dnssrv_module"
1913 for ol_val in static dynamic ; do
1914 if test "$withval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1921 ol_with_dnssrv_module="$ol_arg"
1924 ol_with_dnssrv_module="static"
1926 # end --with-dnssrv_module
1928 # OpenLDAP --enable-ldap
1929 # Check whether --enable-ldap or --disable-ldap was given.
1930 if test "${enable_ldap+set}" = set; then
1931 enableval="$enable_ldap"
1934 for ol_val in auto yes no ; do
1935 if test "$enableval" = "$ol_val" ; then
1939 if test "$ol_arg" = "invalid" ; then
1940 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1942 ol_enable_ldap="$ol_arg"
1948 # OpenLDAP --with-ldap_module
1949 # Check whether --with-ldap_module or --without-ldap_module was given.
1950 if test "${with_ldap_module+set}" = set; then
1951 withval="$with_ldap_module"
1954 for ol_val in static dynamic ; do
1955 if test "$withval" = "$ol_val" ; then
1959 if test "$ol_arg" = "invalid" ; then
1960 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1962 ol_with_ldap_module="$ol_arg"
1965 ol_with_ldap_module="static"
1967 # end --with-ldap_module
1969 # OpenLDAP --enable-ldbm
1970 # Check whether --enable-ldbm or --disable-ldbm was given.
1971 if test "${enable_ldbm+set}" = set; then
1972 enableval="$enable_ldbm"
1975 for ol_val in auto yes no ; do
1976 if test "$enableval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1983 ol_enable_ldbm="$ol_arg"
1986 ol_enable_ldbm="yes"
1989 # OpenLDAP --with-ldbm_api
1990 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1991 if test "${with_ldbm_api+set}" = set; then
1992 withval="$with_ldbm_api"
1995 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1996 if test "$withval" = "$ol_val" ; then
2000 if test "$ol_arg" = "invalid" ; then
2001 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2003 ol_with_ldbm_api="$ol_arg"
2006 ol_with_ldbm_api="auto"
2008 # end --with-ldbm_api
2010 # OpenLDAP --with-ldbm_module
2011 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2012 if test "${with_ldbm_module+set}" = set; then
2013 withval="$with_ldbm_module"
2016 for ol_val in static dynamic ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2024 ol_with_ldbm_module="$ol_arg"
2027 ol_with_ldbm_module="static"
2029 # end --with-ldbm_module
2031 # OpenLDAP --with-ldbm_type
2032 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2033 if test "${with_ldbm_type+set}" = set; then
2034 withval="$with_ldbm_type"
2037 for ol_val in auto btree hash ; do
2038 if test "$withval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2045 ol_with_ldbm_type="$ol_arg"
2048 ol_with_ldbm_type="auto"
2050 # end --with-ldbm_type
2052 # OpenLDAP --enable-passwd
2053 # Check whether --enable-passwd or --disable-passwd was given.
2054 if test "${enable_passwd+set}" = set; then
2055 enableval="$enable_passwd"
2058 for ol_val in auto yes no ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2066 ol_enable_passwd="$ol_arg"
2069 ol_enable_passwd="no"
2071 # end --enable-passwd
2072 # OpenLDAP --with-passwd_module
2073 # Check whether --with-passwd_module or --without-passwd_module was given.
2074 if test "${with_passwd_module+set}" = set; then
2075 withval="$with_passwd_module"
2078 for ol_val in static dynamic ; do
2079 if test "$withval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2086 ol_with_passwd_module="$ol_arg"
2089 ol_with_passwd_module="static"
2091 # end --with-passwd_module
2093 # OpenLDAP --enable-perl
2094 # Check whether --enable-perl or --disable-perl was given.
2095 if test "${enable_perl+set}" = set; then
2096 enableval="$enable_perl"
2099 for ol_val in auto yes no ; do
2100 if test "$enableval" = "$ol_val" ; then
2104 if test "$ol_arg" = "invalid" ; then
2105 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2107 ol_enable_perl="$ol_arg"
2113 # OpenLDAP --with-perl_module
2114 # Check whether --with-perl_module or --without-perl_module was given.
2115 if test "${with_perl_module+set}" = set; then
2116 withval="$with_perl_module"
2119 for ol_val in static dynamic ; do
2120 if test "$withval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2127 ol_with_perl_module="$ol_arg"
2130 ol_with_perl_module="static"
2132 # end --with-perl_module
2134 # OpenLDAP --enable-shell
2135 # Check whether --enable-shell or --disable-shell was given.
2136 if test "${enable_shell+set}" = set; then
2137 enableval="$enable_shell"
2140 for ol_val in auto yes no ; do
2141 if test "$enableval" = "$ol_val" ; then
2145 if test "$ol_arg" = "invalid" ; then
2146 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2148 ol_enable_shell="$ol_arg"
2151 ol_enable_shell="no"
2153 # end --enable-shell
2154 # OpenLDAP --with-shell_module
2155 # Check whether --with-shell_module or --without-shell_module was given.
2156 if test "${with_shell_module+set}" = set; then
2157 withval="$with_shell_module"
2160 for ol_val in static dynamic ; do
2161 if test "$withval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2168 ol_with_shell_module="$ol_arg"
2171 ol_with_shell_module="static"
2173 # end --with-shell_module
2175 # OpenLDAP --enable-sql
2176 # Check whether --enable-sql or --disable-sql was given.
2177 if test "${enable_sql+set}" = set; then
2178 enableval="$enable_sql"
2181 for ol_val in auto yes no ; do
2182 if test "$enableval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2189 ol_enable_sql="$ol_arg"
2195 # OpenLDAP --with-sql_module
2196 # Check whether --with-sql_module or --without-sql_module was given.
2197 if test "${with_sql_module+set}" = set; then
2198 withval="$with_sql_module"
2201 for ol_val in static dynamic ; do
2202 if test "$withval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2209 ol_with_sql_module="$ol_arg"
2212 ol_with_sql_module="static"
2214 # end --with-sql_module
2216 # OpenLDAP --enable-tcl
2217 # Check whether --enable-tcl or --disable-tcl was given.
2218 if test "${enable_tcl+set}" = set; then
2219 enableval="$enable_tcl"
2222 for ol_val in auto yes no ; do
2223 if test "$enableval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2230 ol_enable_tcl="$ol_arg"
2236 # OpenLDAP --with-tcl_module
2237 # Check whether --with-tcl_module or --without-tcl_module was given.
2238 if test "${with_tcl_module+set}" = set; then
2239 withval="$with_tcl_module"
2242 for ol_val in static dynamic ; do
2243 if test "$withval" = "$ol_val" ; then
2247 if test "$ol_arg" = "invalid" ; then
2248 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2250 ol_with_tcl_module="$ol_arg"
2253 ol_with_tcl_module="static"
2255 # end --with-tcl_module
2258 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2259 if test "${with_xxslurpdoptions+set}" = set; then
2260 withval="$with_xxslurpdoptions"
2264 # OpenLDAP --enable-slurpd
2265 # Check whether --enable-slurpd or --disable-slurpd was given.
2266 if test "${enable_slurpd+set}" = set; then
2267 enableval="$enable_slurpd"
2270 for ol_val in auto yes no ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2278 ol_enable_slurpd="$ol_arg"
2281 ol_enable_slurpd="auto"
2283 # end --enable-slurpd
2285 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2286 if test "${with_xxliboptions+set}" = set; then
2287 withval="$with_xxliboptions"
2291 # Check whether --enable-static or --disable-static was given.
2292 if test "${enable_static+set}" = set; then
2293 enableval="$enable_static"
2294 p=${PACKAGE-default}
2295 case "$enableval" in
2296 yes) enable_static=yes ;;
2297 no) enable_static=no ;;
2300 # Look at the argument we got. We use all the common list separators.
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2302 for pkg in $enableval; do
2303 if test "X$pkg" = "X$p"; then
2314 # Check whether --enable-shared or --disable-shared was given.
2315 if test "${enable_shared+set}" = set; then
2316 enableval="$enable_shared"
2317 p=${PACKAGE-default}
2318 case "$enableval" in
2319 yes) enable_shared=yes ;;
2320 no) enable_shared=no ;;
2323 # Look at the argument we got. We use all the common list separators.
2324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2325 for pkg in $enableval; do
2326 if test "X$pkg" = "X$p"; then
2340 if test $ol_enable_dns = yes ; then
2341 if test $ol_enable_referrals = no ; then
2342 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2344 if test $ol_enable_referrals = auto ; then
2345 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2346 ol_enable_referrals=yes
2350 if test $ol_enable_slapd = no ; then
2351 if test $ol_enable_bdb2 = yes ; then
2352 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2354 if test $ol_enable_dnssrv = yes ; then
2355 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2357 if test $ol_enable_ldap = yes ; then
2358 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2360 if test $ol_enable_ldbm = yes ; then
2361 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2363 if test $ol_enable_passwd = yes ; then
2364 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2366 if test $ol_enable_perl = yes ; then
2367 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2369 if test $ol_enable_shell = yes ; then
2370 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2372 if test $ol_enable_tcl = yes ; then
2373 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2375 if test $ol_enable_sql = yes ; then
2376 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2378 if test $ol_enable_modules = yes ; then
2379 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2381 if test $ol_enable_multimaster = yes ; then
2382 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2384 if test $ol_enable_wrappers = yes ; then
2385 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2387 if test $ol_enable_phonetic = yes ; then
2388 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2390 if test $ol_enable_quipu = yes ; then
2391 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2393 if test $ol_enable_rlookups = yes ; then
2394 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2396 if test $ol_enable_aci = yes ; then
2397 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2399 if test $ol_with_ldbm_api != auto ; then
2400 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2402 if test $ol_with_ldbm_type != auto ; then
2403 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2405 if test $ol_with_bdb2_module != static ; then
2406 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2408 if test $ol_with_dnssrv_module != static ; then
2409 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2411 if test $ol_with_ldap_module != static ; then
2412 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2414 if test $ol_with_ldbm_module != static ; then
2415 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2417 if test $ol_with_passwd_module != static ; then
2418 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2420 if test $ol_with_perl_module != static ; then
2421 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2423 if test $ol_with_shell_module != static ; then
2424 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2426 if test $ol_with_tcl_module != static ; then
2427 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2429 if test $ol_with_sql_module != static ; then
2430 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2432 if test $ol_enable_slurpd = yes ; then
2433 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2436 # force settings to no
2447 ol_enable_modules=no
2448 ol_enable_multimaster=no
2449 ol_enable_phonetic=no
2451 ol_enable_rlookups=no
2453 ol_enable_wrappers=no
2454 ol_enable_dynamic=no
2457 ol_with_ldbm_type=no
2459 ol_with_bdb2_module=static
2460 ol_with_dnssrv_module=static
2461 ol_with_ldap_module=static
2462 ol_with_ldbm_module=static
2463 ol_with_passwd_module=static
2464 ol_with_perl_module=static
2465 ol_with_shell_module=static
2466 ol_with_tcl_module=static
2467 ol_with_sql_module=static
2471 elif test $ol_enable_ldbm = no ; then
2473 if test $ol_with_ldbm_api != auto ; then
2474 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2477 if test $ol_with_ldbm_type != auto ; then
2478 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2481 if test $ol_with_ldbm_module != static ; then
2482 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2485 if test $ol_enable_bdb2 = yes ; then
2486 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2489 if test $ol_enable_modules != yes -a \
2490 $ol_enable_dnssrv = no -a \
2491 $ol_enable_ldap = no -a \
2492 $ol_enable_passwd = no -a \
2493 $ol_enable_perl = no -a \
2494 $ol_enable_shell = no -a \
2495 $ol_enable_sql = no -a \
2496 $ol_enable_tcl = no ; then
2497 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2501 ol_with_ldbm_type=no
2502 ol_with_ldbm_module=static
2504 elif test $ol_enable_bdb2 = yes ; then
2506 if test $ol_with_ldbm_api != auto -a \
2507 $ol_with_ldbm_api != berkeley ; then
2508 { echo "configure: error: BDB2 requires LDBM API berkeley or auto" 1>&2; exit 1; }
2511 ol_with_ldbm_api=db2
2515 if test $ol_enable_bdb2 != no ; then
2516 if test $ol_with_ldbm_api != auto -a \
2517 $ol_with_ldbm_api != berkeley ; then
2518 echo "configure: warning: BDB2 requires LDBM api berkeley or auto" 1>&2
2523 if test $ol_with_ldbm_api = gdbm -a \
2524 $ol_with_ldbm_type = btree ; then
2525 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2527 if test $ol_with_ldbm_api = mdbm -a \
2528 $ol_with_ldbm_type = btree ; then
2529 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2531 if test $ol_with_ldbm_api = ndbm -a \
2532 $ol_with_ldbm_type = btree ; then
2533 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2537 if test $ol_enable_slurpd = yes ; then
2538 if test $ol_with_threads = no ; then
2539 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2543 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2544 if test $ol_with_kerberos = no ; then
2545 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2547 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2548 if test $ol_with_kerberos != auto ; then
2549 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2555 if test $ol_enable_spasswd = yes ; then
2556 if test $ol_with_cyrus_sasl = no ; then
2557 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2562 echo "$ac_t""done" 1>&6
2591 BUILD_BDB2_DYNAMIC=static
2592 BUILD_DNSSRV_DYNAMIC=static
2593 BUILD_LDAP_DYNAMIC=static
2594 BUILD_LDBM_DYNAMIC=static
2595 BUILD_PASSWD_DYNAMIC=static
2596 BUILD_PERL_DYNAMIC=static
2597 BUILD_SHELL_DYNAMIC=static
2598 BUILD_TCL_DYNAMIC=static
2599 BUILD_SQL_DYNAMIC=static
2601 SLAPD_MODULES_LDFLAGS=
2602 SLAPD_MODULES_CPPFLAGS=
2625 cat >> confdefs.h <<\EOF
2626 #define HAVE_MKVERSION 1
2634 *-*-aix*) if test -z "$CC" ; then
2635 case "$ol_with_threads" in
2636 auto | yes | posix) ol_aix_threads=yes ;;
2642 if test $ol_aix_threads = yes ; then
2643 if test -z "${CC}" ; then
2644 for ac_prog in cc_r xlc_r cc
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_word" >&5
2650 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2658 for ac_dir in $ac_dummy; do
2659 test -z "$ac_dir" && ac_dir=.
2660 if test -f $ac_dir/$ac_word; then
2661 ac_cv_prog_CC="$ac_prog"
2669 if test -n "$CC"; then
2670 echo "$ac_t""$CC" 1>&6
2672 echo "$ac_t""no" 1>&6
2675 test -n "$CC" && break
2679 if test "$CC" = cc ; then
2680 if test $ol_with_threads != auto ; then
2681 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2683 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2689 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2690 ol_with_threads=posix
2691 ol_cv_pthread_create=yes
2695 if test -z "${CC}"; then
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_word" >&5
2702 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2710 for ac_dir in $ac_dummy; do
2711 test -z "$ac_dir" && ac_dir=.
2712 if test -f $ac_dir/$ac_word; then
2713 ac_cv_prog_CC="$ac_prog"
2721 if test -n "$CC"; then
2722 echo "$ac_t""$CC" 1>&6
2724 echo "$ac_t""no" 1>&6
2727 test -n "$CC" && break
2735 # Check whether --enable-fast-install or --disable-fast-install was given.
2736 if test "${enable_fast_install+set}" = set; then
2737 enableval="$enable_fast_install"
2738 p=${PACKAGE-default}
2739 case "$enableval" in
2740 yes) enable_fast_install=yes ;;
2741 no) enable_fast_install=no ;;
2743 enable_fast_install=no
2744 # Look at the argument we got. We use all the common list separators.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2746 for pkg in $enableval; do
2747 if test "X$pkg" = "X$p"; then
2748 enable_fast_install=yes
2755 enable_fast_install=yes
2758 # Extract the first word of "ranlib", so it can be a program name with args.
2759 set dummy ranlib; ac_word=$2
2760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_word" >&5
2762 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 if test -n "$RANLIB"; then
2766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2770 for ac_dir in $ac_dummy; do
2771 test -z "$ac_dir" && ac_dir=.
2772 if test -f $ac_dir/$ac_word; then
2773 ac_cv_prog_RANLIB="ranlib"
2778 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2781 RANLIB="$ac_cv_prog_RANLIB"
2782 if test -n "$RANLIB"; then
2783 echo "$ac_t""$RANLIB" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2817 if test -z "$CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_word" >&5
2822 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 for ac_dir in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir=.
2833 if test -f $ac_dir/$ac_word; then
2834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2847 if test $# -gt 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2852 set dummy "$ac_dir/$ac_word" "$@"
2860 if test -n "$CC"; then
2861 echo "$ac_t""$CC" 1>&6
2863 echo "$ac_t""no" 1>&6
2866 if test -z "$CC"; then
2867 case "`uname -s`" in
2868 *win32* | *WIN32* | *CYGWIN*)
2869 # Extract the first word of "cl", so it can be a program name with args.
2870 set dummy cl; ac_word=$2
2871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_word" >&5
2873 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2881 for ac_dir in $ac_dummy; do
2882 test -z "$ac_dir" && ac_dir=.
2883 if test -f $ac_dir/$ac_word; then
2892 if test -n "$CC"; then
2893 echo "$ac_t""$CC" 1>&6
2895 echo "$ac_t""no" 1>&6
2900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2904 echo "configure:2905: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2911 cross_compiling=$ac_cv_prog_cc_cross
2913 cat > conftest.$ac_ext << EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 ac_cv_prog_cc_works=yes
2922 # If we can't run a trivial program, we are probably using a cross compiler.
2923 if (./conftest; exit) 2>/dev/null; then
2924 ac_cv_prog_cc_cross=no
2926 ac_cv_prog_cc_cross=yes
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2931 ac_cv_prog_cc_works=no
2935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2939 cross_compiling=$ac_cv_prog_cc_cross
2941 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2942 if test $ac_cv_prog_cc_works = no; then
2943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2946 echo "configure:2947: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2947 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2948 cross_compiling=$ac_cv_prog_cc_cross
2950 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2951 echo "configure:2952: checking whether we are using GNU C" >&5
2952 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.c <<EOF
2960 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2967 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2969 if test $ac_cv_prog_gcc = yes; then
2975 ac_test_CFLAGS="${CFLAGS+set}"
2976 ac_save_CFLAGS="$CFLAGS"
2978 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2979 echo "configure:2980: checking whether ${CC-cc} accepts -g" >&5
2980 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 echo 'void f(){}' > conftest.c
2984 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2993 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2994 if test "$ac_test_CFLAGS" = set; then
2995 CFLAGS="$ac_save_CFLAGS"
2996 elif test $ac_cv_prog_cc_g = yes; then
2997 if test "$GCC" = yes; then
3003 if test "$GCC" = yes; then
3010 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3011 if test "${with_gnu_ld+set}" = set; then
3012 withval="$with_gnu_ld"
3013 test "$withval" = no || with_gnu_ld=yes
3019 if test "$ac_cv_prog_gcc" = yes; then
3020 # Check if gcc -print-prog-name=ld gives a path.
3021 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3022 echo "configure:3023: checking for ld used by GCC" >&5
3023 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3025 # Accept absolute paths.
3026 [\\/]* | [A-Za-z]:[\\/]*)
3027 re_direlt='/[^/][^/]*/\.\./'
3028 # Canonicalize the path of ld
3029 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3031 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3033 test -z "$LD" && LD="$ac_prog"
3036 # If it fails, then pretend we aren't using GCC.
3040 # If it is relative, then search for the first ld in PATH.
3044 elif test "$with_gnu_ld" = yes; then
3045 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3046 echo "configure:3047: checking for GNU ld" >&5
3048 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3049 echo "configure:3050: checking for non-GNU ld" >&5
3051 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -z "$LD"; then
3055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3056 for ac_dir in $PATH; do
3057 test -z "$ac_dir" && ac_dir=.
3058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3059 ac_cv_path_LD="$ac_dir/$ac_prog"
3060 # Check to see if the program is GNU ld. I'd rather use --version,
3061 # but apparently some GNU ld's only accept -v.
3062 # Break only if it was the GNU/non-GNU ld that we prefer.
3063 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3064 test "$with_gnu_ld" != no && break
3066 test "$with_gnu_ld" != yes && break
3072 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3077 if test -n "$LD"; then
3078 echo "$ac_t""$LD" 1>&6
3080 echo "$ac_t""no" 1>&6
3082 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3083 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3084 echo "configure:3085: checking if the linker ($LD) is GNU ld" >&5
3085 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3089 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3090 ac_cv_prog_gnu_ld=yes
3092 ac_cv_prog_gnu_ld=no
3096 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3099 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3100 echo "configure:3101: checking for BSD-compatible nm" >&5
3101 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test -n "$NM"; then
3105 # Let the user override the test.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3109 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3112 # Check to see if the nm accepts a BSD-compat flag.
3113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3114 # nm: unknown option "B" ignored
3115 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3116 ac_cv_path_NM="$ac_dir/nm -B"
3118 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3119 ac_cv_path_NM="$ac_dir/nm -p"
3122 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3123 continue # so that we can try to find one that supports BSD flags
3128 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3133 echo "$ac_t""$NM" 1>&6
3135 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3136 echo "configure:3137: checking whether ln -s works" >&5
3137 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3141 if ln -s X conftestdata 2>/dev/null
3144 ac_cv_prog_LN_S="ln -s"
3149 LN_S="$ac_cv_prog_LN_S"
3150 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3151 echo "$ac_t""yes" 1>&6
3153 echo "$ac_t""no" 1>&6
3156 if test $host != $build; then
3157 ac_tool_prefix=${host_alias}-
3164 NONE) lt_target="$host" ;;
3165 *) lt_target="$target" ;;
3168 # Check for any special flags to pass to ltconfig.
3169 libtool_flags="--cache-file=$cache_file"
3170 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3171 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3172 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3173 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3174 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3175 libtool_flags="$libtool_flags --enable-dlopen"
3176 libtool_flags="$libtool_flags --enable-win32-dll"
3177 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3178 if test "${enable_libtool_lock+set}" = set; then
3179 enableval="$enable_libtool_lock"
3183 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3184 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3186 # Some flags need to be propagated to the compiler or linker for good
3188 case "$lt_target" in
3190 # Find out which ABI we are using.
3191 echo '#line 3192 "configure"' > conftest.$ac_ext
3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193 case "`/usr/bin/file conftest.o`" in
3209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3210 SAVE_CFLAGS="$CFLAGS"
3211 CFLAGS="$CFLAGS -belf"
3212 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3213 echo "configure:3214: checking whether the C compiler needs -belf" >&5
3214 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 lt_cv_cc_needs_belf=yes
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 lt_cv_cc_needs_belf=no
3237 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3238 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3239 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3240 CFLAGS="$SAVE_CFLAGS"
3244 *-*-cygwin* | *-*-mingw*)
3245 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3248 echo "configure:3249: checking for $ac_word" >&5
3249 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 if test -n "$DLLTOOL"; then
3253 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3257 for ac_dir in $ac_dummy; do
3258 test -z "$ac_dir" && ac_dir=.
3259 if test -f $ac_dir/$ac_word; then
3260 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3267 DLLTOOL="$ac_cv_prog_DLLTOOL"
3268 if test -n "$DLLTOOL"; then
3269 echo "$ac_t""$DLLTOOL" 1>&6
3271 echo "$ac_t""no" 1>&6
3275 if test -z "$ac_cv_prog_DLLTOOL"; then
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "dlltool", so it can be a program name with args.
3278 set dummy dlltool; ac_word=$2
3279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_word" >&5
3281 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 if test -n "$DLLTOOL"; then
3285 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3289 for ac_dir in $ac_dummy; do
3290 test -z "$ac_dir" && ac_dir=.
3291 if test -f $ac_dir/$ac_word; then
3292 ac_cv_prog_DLLTOOL="dlltool"
3297 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3300 DLLTOOL="$ac_cv_prog_DLLTOOL"
3301 if test -n "$DLLTOOL"; then
3302 echo "$ac_t""$DLLTOOL" 1>&6
3304 echo "$ac_t""no" 1>&6
3312 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}as; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3316 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 if test -n "$AS"; then
3320 ac_cv_prog_AS="$AS" # Let the user override the test.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3324 for ac_dir in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f $ac_dir/$ac_word; then
3327 ac_cv_prog_AS="${ac_tool_prefix}as"
3335 if test -n "$AS"; then
3336 echo "$ac_t""$AS" 1>&6
3338 echo "$ac_t""no" 1>&6
3342 if test -z "$ac_cv_prog_AS"; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "as", so it can be a program name with args.
3345 set dummy as; ac_word=$2
3346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_word" >&5
3348 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 if test -n "$AS"; then
3352 ac_cv_prog_AS="$AS" # Let the user override the test.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3356 for ac_dir in $ac_dummy; do
3357 test -z "$ac_dir" && ac_dir=.
3358 if test -f $ac_dir/$ac_word; then
3364 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3368 if test -n "$AS"; then
3369 echo "$ac_t""$AS" 1>&6
3371 echo "$ac_t""no" 1>&6
3379 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3382 echo "configure:3383: checking for $ac_word" >&5
3383 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 if test -n "$OBJDUMP"; then
3387 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3391 for ac_dir in $ac_dummy; do
3392 test -z "$ac_dir" && ac_dir=.
3393 if test -f $ac_dir/$ac_word; then
3394 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3401 OBJDUMP="$ac_cv_prog_OBJDUMP"
3402 if test -n "$OBJDUMP"; then
3403 echo "$ac_t""$OBJDUMP" 1>&6
3405 echo "$ac_t""no" 1>&6
3409 if test -z "$ac_cv_prog_OBJDUMP"; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "objdump", so it can be a program name with args.
3412 set dummy objdump; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3415 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 if test -n "$OBJDUMP"; then
3419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3423 for ac_dir in $ac_dummy; do
3424 test -z "$ac_dir" && ac_dir=.
3425 if test -f $ac_dir/$ac_word; then
3426 ac_cv_prog_OBJDUMP="objdump"
3431 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3434 OBJDUMP="$ac_cv_prog_OBJDUMP"
3435 if test -n "$OBJDUMP"; then
3436 echo "$ac_t""$OBJDUMP" 1>&6
3438 echo "$ac_t""no" 1>&6
3451 # Save cache, so that ltconfig can load it
3454 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3455 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3456 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3457 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3458 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3459 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3460 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3461 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3463 # Reload cache, that may have been modified by ltconfig
3466 # This can be used to rebuild libtool when needed
3467 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3469 # Always use our own libtool.
3470 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3472 # Redirect the config.log output again, so that the ltconfig log is not
3473 # clobbered by the next message.
3474 exec 5>>./config.log
3477 for ac_prog in mawk gawk nawk awk
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3482 echo "configure:3483: checking for $ac_word" >&5
3483 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 if test -n "$AWK"; then
3487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3491 for ac_dir in $ac_dummy; do
3492 test -z "$ac_dir" && ac_dir=.
3493 if test -f $ac_dir/$ac_word; then
3494 ac_cv_prog_AWK="$ac_prog"
3501 AWK="$ac_cv_prog_AWK"
3502 if test -n "$AWK"; then
3503 echo "$ac_t""$AWK" 1>&6
3505 echo "$ac_t""no" 1>&6
3508 test -n "$AWK" && break
3511 # test for ln hardlink support
3512 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3513 echo "configure:3514: checking whether ln works" >&5
3514 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 rm -f conftest.src conftest.dst
3518 echo "conftest" > conftest.src
3519 if ln conftest.src conftest.dst 2>/dev/null
3521 ol_cv_prog_LN_H="ln"
3523 ol_cv_prog_LN_H="cp"
3525 rm -f conftest.src conftest.dst
3528 LN_H="$ol_cv_prog_LN_H"
3529 if test "$ol_cv_prog_LN_H" = "ln"; then
3530 echo "$ac_t""yes" 1>&6
3532 echo "$ac_t""no" 1>&6
3535 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3536 echo "configure:3537: checking whether ln -s works" >&5
3537 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3541 if ln -s X conftestdata 2>/dev/null
3544 ac_cv_prog_LN_S="ln -s"
3549 LN_S="$ac_cv_prog_LN_S"
3550 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3551 echo "$ac_t""yes" 1>&6
3553 echo "$ac_t""no" 1>&6
3557 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3561 # Extract the first word of "sendmail", so it can be a program name with args.
3562 set dummy sendmail; ac_word=$2
3563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_word" >&5
3565 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3570 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3573 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3577 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3578 for ac_dir in $ac_dummy; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f $ac_dir/$ac_word; then
3581 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3586 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3590 SENDMAIL="$ac_cv_path_SENDMAIL"
3591 if test -n "$SENDMAIL"; then
3592 echo "$ac_t""$SENDMAIL" 1>&6
3594 echo "$ac_t""no" 1>&6
3597 # Extract the first word of "vi", so it can be a program name with args.
3598 set dummy vi; ac_word=$2
3599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3600 echo "configure:3601: checking for $ac_word" >&5
3601 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3609 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3613 ac_dummy="$PATH:/usr/ucb"
3614 for ac_dir in $ac_dummy; do
3615 test -z "$ac_dir" && ac_dir=.
3616 if test -f $ac_dir/$ac_word; then
3617 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3622 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3626 EDITOR="$ac_cv_path_EDITOR"
3627 if test -n "$EDITOR"; then
3628 echo "$ac_t""$EDITOR" 1>&6
3630 echo "$ac_t""no" 1>&6
3633 # Extract the first word of "finger", so it can be a program name with args.
3634 set dummy finger; ac_word=$2
3635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3636 echo "configure:3637: checking for $ac_word" >&5
3637 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3642 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3645 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3649 ac_dummy="$PATH:/usr/ucb"
3650 for ac_dir in $ac_dummy; do
3651 test -z "$ac_dir" && ac_dir=.
3652 if test -f $ac_dir/$ac_word; then
3653 ac_cv_path_FINGER="$ac_dir/$ac_word"
3658 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3662 FINGER="$ac_cv_path_FINGER"
3663 if test -n "$FINGER"; then
3664 echo "$ac_t""$FINGER" 1>&6
3666 echo "$ac_t""no" 1>&6
3671 if test $ol_enable_perl != no ; then
3672 # Extract the first word of "perl", so it can be a program name with args.
3673 set dummy perl; ac_word=$2
3674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_word" >&5
3676 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3681 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3684 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3689 for ac_dir in $ac_dummy; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if test -f $ac_dir/$ac_word; then
3692 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3697 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3701 PERLBIN="$ac_cv_path_PERLBIN"
3702 if test -n "$PERLBIN"; then
3703 echo "$ac_t""$PERLBIN" 1>&6
3705 echo "$ac_t""no" 1>&6
3709 if test "no$PERLBIN" = "no" ; then
3710 if test $ol_enable_perl = yes ; then
3711 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3715 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3716 if test x"$ol_with_perl_module" = "xstatic" ; then
3717 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3719 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3725 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3726 echo "configure:3727: checking how to run the C preprocessor" >&5
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3731 if test -z "$CPP"; then
3732 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 # This must be in double quotes, not single quotes, because CPP may get
3736 # substituted into the Makefile and "${CC-cc}" will confuse make.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp.
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3747 { (eval echo configure:3748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3749 if test -z "$ac_err"; then
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 CPP="${CC-cc} -E -traditional-cpp"
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3764 { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3766 if test -z "$ac_err"; then
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 CPP="${CC-cc} -nologo -E"
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3781 { (eval echo configure:3782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3783 if test -z "$ac_err"; then
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3797 ac_cv_prog_CPP="$CPP"
3799 CPP="$ac_cv_prog_CPP"
3801 ac_cv_prog_CPP="$CPP"
3803 echo "$ac_t""$CPP" 1>&6
3806 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3807 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3809 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3810 echo "configure: warning: programs compiled here do run here..." 1>&2
3811 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3813 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3814 echo "configure: warning: programs compiled here do not run here..." 1>&2
3815 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3818 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3819 echo "configure:3820: checking for AIX" >&5
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 egrep "yes" >/dev/null 2>&1; then
3831 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3832 #define _ALL_SOURCE 1
3837 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3843 echo "configure:3844: checking for POSIXized ISC" >&5
3844 if test -d /etc/conf/kconfig.d &&
3845 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3847 echo "$ac_t""yes" 1>&6
3848 ISC=yes # If later tests want to check for ISC.
3849 cat >> confdefs.h <<\EOF
3850 #define _POSIX_SOURCE 1
3853 if test "$GCC" = yes; then
3859 echo "$ac_t""no" 1>&6
3863 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3864 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3865 echo "configure:3866: checking for minix/config.h" >&5
3866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 #include <minix/config.h>
3874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3879 eval "ac_cv_header_$ac_safe=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_header_$ac_safe=no"
3889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3893 echo "$ac_t""no" 1>&6
3897 if test "$MINIX" = yes; then
3898 cat >> confdefs.h <<\EOF
3899 #define _POSIX_SOURCE 1
3902 cat >> confdefs.h <<\EOF
3903 #define _POSIX_1_SOURCE 2
3906 cat >> confdefs.h <<\EOF
3913 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3914 echo "configure:3915: checking for Cygwin environment" >&5
3915 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3925 #define __CYGWIN__ __CYGWIN32__
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3942 echo "$ac_t""$ac_cv_cygwin" 1>&6
3944 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3945 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3946 echo "configure:3947: checking for mingw32 environment" >&5
3947 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3958 if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3970 echo "$ac_t""$ac_cv_mingw32" 1>&6
3972 test "$ac_cv_mingw32" = yes && MINGW32=yes
3973 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3974 echo "configure:3975: checking for EMX OS/2 environment" >&5
3975 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3998 echo "$ac_t""$ac_cv_emxos2" 1>&6
4000 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4004 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4005 echo "configure:4006: checking for executable suffix" >&5
4006 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4013 echo 'int main () { return 0; }' > conftest.$ac_ext
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4016 for file in conftest.*; do
4018 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4019 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4023 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4026 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4031 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4032 echo "$ac_t""${ac_cv_exeext}" 1>&6
4035 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4036 echo "configure:4037: checking for object suffix" >&5
4037 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4041 echo 'int i = 1;' > conftest.$ac_ext
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4043 for ac_file in conftest.*; do
4046 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4050 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4055 echo "$ac_t""$ac_cv_objext" 1>&6
4056 OBJEXT=$ac_cv_objext
4057 ac_objext=$ac_cv_objext
4060 cat >> confdefs.h <<EOF
4061 #define EXEEXT "${EXEEXT}"
4065 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4066 echo "configure:4067: checking for be_app in -lbe" >&5
4067 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 ac_save_LIBS="$LIBS"
4072 LIBS="-lbe -lroot -lnet $LIBS"
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* Override any gcc2 internal prototype to avoid an error. */
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087 eval "ac_cv_lib_$ac_lib_var=yes"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 eval "ac_cv_lib_$ac_lib_var=no"
4095 LIBS="$ac_save_LIBS"
4098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4099 echo "$ac_t""yes" 1>&6
4100 LIBS="$LIBS -lbe -lroot -lnet"
4102 echo "$ac_t""no" 1>&6
4110 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4111 echo "configure:4112: checking for ${CC-cc} option to accept ANSI C" >&5
4112 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 am_cv_prog_cc_stdc=no
4117 # Don't try gcc -ansi; that turns off useful extensions and
4118 # breaks some systems' header files.
4119 # AIX -qlanglvl=ansi
4120 # Ultrix and OSF/1 -std1
4121 # HP-UX 10.20 and later -Ae
4122 # HP-UX older versions -Aa -D_HPUX_SOURCE
4123 # SVR4 -Xc -D__EXTENSIONS__
4124 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126 CC="$ac_save_CC $ac_arg"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4132 #include <sys/types.h>
4133 #include <sys/stat.h>
4134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135 struct buf { int x; };
4136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137 static char *e (p, i)
4143 static char *f (char * (*g) (char **, int), char **p, ...)
4148 s = g (p, va_arg (v,int));
4152 int test (int i, double x);
4153 struct s1 {int (*f) (int a);};
4154 struct s2 {int (*f) (double a);};
4155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4165 if { (eval echo configure:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 am_cv_prog_cc_stdc="$ac_arg"; break
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4178 if test -z "$am_cv_prog_cc_stdc"; then
4179 echo "$ac_t""none needed" 1>&6
4181 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4183 case "x$am_cv_prog_cc_stdc" in
4185 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4188 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4189 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4192 # test for make depend flag
4195 if test -z "${MKDEP}"; then
4197 if test -z "${MKDEP_FLAGS}"; then
4198 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4199 echo "configure:4200: checking for ${OL_MKDEP} depend flag" >&5
4200 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4205 for flag in "-M" "-xM"; do
4206 cat > conftest.c <<EOF
4209 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4210 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4212 if test ! -f conftest."${ac_object}" ; then
4214 OL_MKDEP_FLAGS="$flag"
4223 echo "$ac_t""$ol_cv_mkdep" 1>&6
4226 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4231 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4236 if test "${ol_cv_mkdep}" = no ; then
4237 # this will soon become an error
4238 echo "configure: warning: do not know how to generate dependencies" 1>&2
4241 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4242 echo "configure:4243: checking for afopen in -ls" >&5
4243 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 ac_save_LIBS="$LIBS"
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* Override any gcc2 internal prototype to avoid an error. */
4253 /* We use char because int might match the return type of a gcc2
4254 builtin and then its argument prototype would still apply. */
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 eval "ac_cv_lib_$ac_lib_var=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_lib_$ac_lib_var=no"
4271 LIBS="$ac_save_LIBS"
4274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4278 cat >> confdefs.h <<\EOF
4279 #define HAVE_AIX_SECURITY 1
4284 echo "$ac_t""no" 1>&6
4289 if test $ol_enable_modules != no ; then
4290 for ac_hdr in ltdl.h
4292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_hdr" >&5
4295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_hdr 1
4326 echo "$ac_t""no" 1>&6
4331 if test $ac_cv_header_ltdl_h = no ; then
4332 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4335 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4336 echo "configure:4337: checking for lt_dlinit in -lltdl" >&5
4337 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4338 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 ac_save_LIBS="$LIBS"
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4357 eval "ac_cv_lib_$ac_lib_var=yes"
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4362 eval "ac_cv_lib_$ac_lib_var=no"
4365 LIBS="$ac_save_LIBS"
4368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_LIBLTDL 1
4378 echo "$ac_t""no" 1>&6
4382 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4383 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4387 ol_with_bdb2_module=static
4388 ol_with_dnssrv_module=static
4389 ol_with_ldap_module=static
4390 ol_with_ldbm_module=static
4391 ol_with_passwd_module=static
4392 ol_with_perl_module=static
4393 ol_with_shell_module=static
4394 ol_with_tcl_module=static
4395 ol_with_sql_module=static
4399 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4400 echo "configure:4401: checking for EBCDIC" >&5
4401 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4410 #include <__ASCII__/generate_error.h>
4414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4417 if test -z "$ac_err"; then
4419 ol_cv_cpp_ebcdic=yes
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4430 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4431 if test $ol_cv_cpp_ebcdic = yes ; then
4432 cat >> confdefs.h <<\EOF
4433 #define HAVE_EBCDIC 1
4438 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4439 echo "configure:4440: checking for ANSI C header files" >&5
4440 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4452 { (eval echo configure:4453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4454 if test -z "$ac_err"; then
4456 ol_cv_header_stdc=yes
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 ol_cv_header_stdc=no
4466 if test $ol_cv_header_stdc = yes; then
4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 egrep "memchr" >/dev/null 2>&1; then
4478 ol_cv_header_stdc=no
4484 if test $ol_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 egrep "free" >/dev/null 2>&1; then
4496 ol_cv_header_stdc=no
4502 if test $ol_cv_header_stdc = yes; then
4503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4504 if test "$cross_compiling" = yes; then
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4516 || ('j' <= (c) && (c) <= 'r') \
4517 || ('s' <= (c) && (c) <= 'z'))
4518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int main () { int i; for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 ol_cv_header_stdc=no
4541 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4542 if test $ol_cv_header_stdc = yes; then
4543 cat >> confdefs.h <<\EOF
4544 #define STDC_HEADERS 1
4548 ac_cv_header_stdc=disable
4551 if test $ol_cv_header_stdc != yes; then
4552 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4559 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_hdr that defines DIR" >&5
4561 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <sys/types.h>
4573 if { (eval echo configure:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 eval "ac_cv_header_dirent_$ac_safe=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 eval "ac_cv_header_dirent_$ac_safe=no"
4584 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4587 cat >> confdefs.h <<EOF
4588 #define $ac_tr_hdr 1
4590 ac_header_dirent=$ac_hdr; break
4592 echo "$ac_t""no" 1>&6
4595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4596 if test $ac_header_dirent = dirent.h; then
4597 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4598 echo "configure:4599: checking for opendir in -ldir" >&5
4599 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4600 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 ac_save_LIBS="$LIBS"
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 eval "ac_cv_lib_$ac_lib_var=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 eval "ac_cv_lib_$ac_lib_var=no"
4627 LIBS="$ac_save_LIBS"
4630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4631 echo "$ac_t""yes" 1>&6
4634 echo "$ac_t""no" 1>&6
4638 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4639 echo "configure:4640: checking for opendir in -lx" >&5
4640 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 ac_save_LIBS="$LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4675 echo "$ac_t""no" 1>&6
4680 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4681 echo "configure:4682: checking for sys/wait.h that is POSIX.1 compatible" >&5
4682 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 #include <sys/types.h>
4689 #include <sys/wait.h>
4691 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4694 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4699 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4702 if { (eval echo configure:4703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4704 ac_cv_header_sys_wait_h=yes
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 ac_cv_header_sys_wait_h=no
4714 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4715 if test $ac_cv_header_sys_wait_h = yes; then
4716 cat >> confdefs.h <<\EOF
4717 #define HAVE_SYS_WAIT_H 1
4722 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4723 echo "configure:4724: checking POSIX termios" >&5
4724 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <sys/types.h>
4732 #include <termios.h>
4734 /* SunOS 4.0.3 has termios.h but not the library calls. */
4738 if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4740 am_cv_sys_posix_termios=yes
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 am_cv_sys_posix_termios=no
4750 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4753 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4754 echo "configure:4755: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4755 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4760 gwinsz_in_termios_h=no
4761 if test $am_cv_sys_posix_termios = yes; then
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <sys/types.h>
4766 # include <termios.h>
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 egrep "yes" >/dev/null 2>&1; then
4775 gwinsz_in_termios_h=yes
4781 if test $gwinsz_in_termios_h = no; then
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 #include <sys/types.h>
4786 # include <sys/ioctl.h>
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 egrep "yes" >/dev/null 2>&1; then
4795 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4803 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4804 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4805 cat >> confdefs.h <<\EOF
4806 #define GWINSZ_IN_SYS_IOCTL 1
4811 if test $am_cv_sys_posix_termios = yes ; then
4812 cat >> confdefs.h <<\EOF
4813 #define HAVE_POSIX_TERMIOS 1
4864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4866 echo "configure:4867: checking for $ac_hdr" >&5
4867 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4876 { (eval echo configure:4877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4878 if test -z "$ac_err"; then
4880 eval "ac_cv_header_$ac_safe=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4886 eval "ac_cv_header_$ac_safe=no"
4890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4893 cat >> confdefs.h <<EOF
4894 #define $ac_tr_hdr 1
4898 echo "$ac_t""no" 1>&6
4905 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4906 echo "configure:4907: checking for sigset in -lV3" >&5
4907 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4908 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 eval "ac_cv_lib_$ac_lib_var=yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 eval "ac_cv_lib_$ac_lib_var=no"
4935 LIBS="$ac_save_LIBS"
4938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_lib 1
4949 echo "$ac_t""no" 1>&6
4953 if test $ac_cv_header_winsock_h = yes; then
4954 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4955 echo "configure:4956: checking for winsock" >&5
4956 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 #include <winsock.h>
4966 select(0,NULL,NULL,NULL,NULL);
4968 gethostname(NULL,0);
4972 if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4984 echo "$ac_t""$ol_cv_winsock" 1>&6
4986 if test $ol_cv_winsock = yes ; then
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_WINSOCK 1
4991 ac_cv_func_socket=yes
4992 ac_cv_func_select=yes
4993 ac_cv_func_closesocket=yes
4994 ac_cv_func_gethostname=yes
4999 echo $ac_n "checking for socket""... $ac_c" 1>&6
5000 echo "configure:5001: checking for socket" >&5
5001 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 /* System header to define __stub macros and hopefully few prototypes,
5008 which can conflict with char socket(); below. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5018 /* The GNU C library defines this for functions which it implements
5019 to always fail with ENOSYS. Some functions are actually named
5020 something starting with __ and the normal name is an alias. */
5021 #if defined (__stub_socket) || defined (__stub___socket)
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 eval "ac_cv_func_socket=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 eval "ac_cv_func_socket=no"
5041 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5045 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5048 echo "configure:5049: checking for main in -lsocket" >&5
5049 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 ac_save_LIBS="$LIBS"
5054 LIBS="-lsocket $LIBS"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_lib_$ac_lib_var=no"
5073 LIBS="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_lib 1
5084 LIBS="-lsocket $LIBS"
5087 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5091 echo "configure:5092: checking for main in -lnet" >&5
5092 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_lib_$ac_lib_var=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_lib_$ac_lib_var=no"
5116 LIBS="$ac_save_LIBS"
5119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_lib 1
5130 echo "$ac_t""no" 1>&6
5133 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5134 echo "configure:5135: checking for main in -lnsl_s" >&5
5135 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 ac_save_LIBS="$LIBS"
5140 LIBS="-lnsl_s $LIBS"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5149 if { (eval echo configure:5150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5151 eval "ac_cv_lib_$ac_lib_var=yes"
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 eval "ac_cv_lib_$ac_lib_var=no"
5159 LIBS="$ac_save_LIBS"
5162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5163 echo "$ac_t""yes" 1>&6
5164 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5166 cat >> confdefs.h <<EOF
5167 #define $ac_tr_lib 1
5170 LIBS="-lnsl_s $LIBS"
5173 echo "$ac_t""no" 1>&6
5176 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5177 echo "configure:5178: checking for main in -lnsl" >&5
5178 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 ac_save_LIBS="$LIBS"
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 eval "ac_cv_lib_$ac_lib_var=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_lib_$ac_lib_var=no"
5202 LIBS="$ac_save_LIBS"
5205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5209 cat >> confdefs.h <<EOF
5210 #define $ac_tr_lib 1
5216 echo "$ac_t""no" 1>&6
5219 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5220 echo "configure:5221: checking for socket in -linet" >&5
5221 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 ac_save_LIBS="$LIBS"
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 eval "ac_cv_lib_$ac_lib_var=yes"
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 eval "ac_cv_lib_$ac_lib_var=no"
5249 LIBS="$ac_save_LIBS"
5252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5256 cat >> confdefs.h <<EOF
5257 #define $ac_tr_lib 1
5263 echo "$ac_t""no" 1>&6
5266 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5267 echo "configure:5268: checking for main in -lgen" >&5
5268 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5272 ac_save_LIBS="$LIBS"
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5284 eval "ac_cv_lib_$ac_lib_var=yes"
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 eval "ac_cv_lib_$ac_lib_var=no"
5292 LIBS="$ac_save_LIBS"
5295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5299 cat >> confdefs.h <<EOF
5300 #define $ac_tr_lib 1
5306 echo "$ac_t""no" 1>&6
5313 echo $ac_n "checking for select""... $ac_c" 1>&6
5314 echo "configure:5315: checking for select" >&5
5315 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char select(); below. */
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_select) || defined (__stub___select)
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5345 eval "ac_cv_func_select=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 eval "ac_cv_func_select=no"
5355 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5359 echo "$ac_t""no" 1>&6
5360 { echo "configure: error: select() required." 1>&2; exit 1; }
5364 if test "${ac_cv_header_winsock_h}" != yes; then
5365 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5366 echo "configure:5367: checking types of arguments for select()" >&5
5367 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5377 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5378 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 #ifdef HAVE_SYS_TYPES_H
5383 #include <sys/types.h>
5385 #ifdef HAVE_SYS_TIME_H
5386 #include <sys/time.h>
5388 #ifdef HAVE_SYS_SELECT_H
5389 #include <sys/select.h>
5391 #ifdef HAVE_SYS_SOCKET_H
5392 #include <sys/socket.h>
5394 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);
5399 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5401 ac_not_found=no ; break 3
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5418 if test "$ac_not_found" = yes; then
5419 ac_cv_func_select_arg1=int
5420 ac_cv_func_select_arg234='int *'
5421 ac_cv_func_select_arg5='struct timeval *'
5423 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5424 cat >> confdefs.h <<EOF
5425 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5428 cat >> confdefs.h <<EOF
5429 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5432 cat >> confdefs.h <<EOF
5433 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5440 for ac_hdr in regex.h
5442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5444 echo "configure:5445: checking for $ac_hdr" >&5
5445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5456 if test -z "$ac_err"; then
5458 eval "ac_cv_header_$ac_safe=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_header_$ac_safe=no"
5468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_hdr 1
5476 echo "$ac_t""no" 1>&6
5480 if test "$ac_cv_header_regex_h" != yes ; then
5481 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5483 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5484 echo "configure:5485: checking for regfree" >&5
5485 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* System header to define __stub macros and hopefully few prototypes,
5492 which can conflict with char regfree(); below. */
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_regfree) || defined (__stub___regfree)
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 eval "ac_cv_func_regfree=yes"
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 eval "ac_cv_func_regfree=no"
5525 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5529 echo "$ac_t""no" 1>&6
5530 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5535 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5536 echo "configure:5537: checking for compatible POSIX regex" >&5
5537 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5541 if test "$cross_compiling" = yes; then
5542 ol_cv_c_posix_regex=cross
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5548 #include <sys/types.h>
5550 static char *pattern, *string;
5558 if(regcomp(&re, pattern, 0)) {
5562 string = "ALL MATCH";
5564 rc = regexec(&re, string, 0, (void*)0, 0);
5571 if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5573 ol_cv_c_posix_regex=yes
5575 echo "configure: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5578 ol_cv_c_posix_regex=no
5585 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5587 if test "$ol_cv_c_posix_regex" = no ; then
5588 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5591 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5592 echo "configure:5593: checking for res_search" >&5
5593 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* System header to define __stub macros and hopefully few prototypes,
5600 which can conflict with char res_search(); below. */
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_res_search) || defined (__stub___res_search)
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623 eval "ac_cv_func_res_search=yes"
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 eval "ac_cv_func_res_search=no"
5633 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5637 echo "$ac_t""no" 1>&6
5640 if test $ac_cv_func_res_search = no ; then
5641 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5642 echo "configure:5643: checking for res_search in -lbind" >&5
5643 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 ac_save_LIBS="$LIBS"
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 eval "ac_cv_lib_$ac_lib_var=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_lib_$ac_lib_var=no"
5671 LIBS="$ac_save_LIBS"
5674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_lib 1
5685 echo "$ac_t""no" 1>&6
5688 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5691 if test $ac_cv_func_res_search = no ; then
5692 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5693 echo "configure:5694: checking for __res_search in -lbind" >&5
5694 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 ac_save_LIBS="$LIBS"
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* Override any gcc2 internal prototype to avoid an error. */
5704 /* We use char because int might match the return type of a gcc2
5705 builtin and then its argument prototype would still apply. */
5706 char __res_search();
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5714 eval "ac_cv_lib_$ac_lib_var=yes"
5716 echo "configure: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5719 eval "ac_cv_lib_$ac_lib_var=no"
5722 LIBS="$ac_save_LIBS"
5725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5726 echo "$ac_t""yes" 1>&6
5727 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5729 cat >> confdefs.h <<EOF
5730 #define $ac_tr_lib 1
5736 echo "$ac_t""no" 1>&6
5739 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5742 if test $ac_cv_func_res_search = no ; then
5743 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5744 echo "configure:5745: checking for res_search in -lresolv" >&5
5745 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 ac_save_LIBS="$LIBS"
5750 LIBS="-lresolv $LIBS"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5765 eval "ac_cv_lib_$ac_lib_var=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 eval "ac_cv_lib_$ac_lib_var=no"
5773 LIBS="$ac_save_LIBS"
5776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5777 echo "$ac_t""yes" 1>&6
5778 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5780 cat >> confdefs.h <<EOF
5781 #define $ac_tr_lib 1
5784 LIBS="-lresolv $LIBS"
5787 echo "$ac_t""no" 1>&6
5790 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5793 if test "$ac_cv_func_res_search" = yes ; then
5794 cat >> confdefs.h <<\EOF
5795 #define HAVE_RES_SEARCH 1
5798 elif test $ol_enable_dns = yes ; then
5799 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5800 elif test $ol_enable_dns != no ; then
5801 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5806 if test $ol_enable_ldapd != no ; then
5807 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5809 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5810 echo "configure:5811: checking for main in -lxtpp" >&5
5811 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 ac_save_LIBS="$LIBS"
5816 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_lib_$ac_lib_var=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_lib_$ac_lib_var=no"
5835 LIBS="$ac_save_LIBS"
5838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5842 cat >> confdefs.h <<\EOF
5846 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5849 echo "$ac_t""no" 1>&6
5853 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5854 echo "configure:5855: checking for main in -ldsap" >&5
5855 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 ac_save_LIBS="$LIBS"
5860 LIBS="-ldsap -lisode $LIBS"
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5871 eval "ac_cv_lib_$ac_lib_var=yes"
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 eval "ac_cv_lib_$ac_lib_var=no"
5879 LIBS="$ac_save_LIBS"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5883 echo "$ac_t""yes" 1>&6
5886 cat >> confdefs.h <<\EOF
5890 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5893 echo "$ac_t""no" 1>&6
5897 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5898 echo "configure:5899: checking for main in -lisode" >&5
5899 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 ac_save_LIBS="$LIBS"
5904 LIBS="-lisode $LIBS"
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 eval "ac_cv_lib_$ac_lib_var=yes"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 eval "ac_cv_lib_$ac_lib_var=no"
5923 LIBS="$ac_save_LIBS"
5926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5930 cat >> confdefs.h <<\EOF
5931 #define HAVE_ISODE 1
5934 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5937 echo "$ac_t""no" 1>&6
5943 if test $ol_link_isode != no; then
5944 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5945 echo "configure:5946: checking for main in -lpp" >&5
5946 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5947 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 ac_save_LIBS="$LIBS"
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 eval "ac_cv_lib_$ac_lib_var=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_lib_$ac_lib_var=no"
5970 LIBS="$ac_save_LIBS"
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5976 cat >> confdefs.h <<\EOF
5980 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5983 echo "$ac_t""no" 1>&6
5988 # Extract the first word of "pepsy", so it can be a program name with args.
5989 set dummy pepsy; ac_word=$2
5990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5991 echo "configure:5992: checking for $ac_word" >&5
5992 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5997 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
6000 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
6003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6005 for ac_dir in $ac_dummy; do
6006 test -z "$ac_dir" && ac_dir=.
6007 if test -f $ac_dir/$ac_word; then
6008 ac_cv_path_PEPSY="$ac_dir/$ac_word"
6016 PEPSY="$ac_cv_path_PEPSY"
6017 if test -n "$PEPSY"; then
6018 echo "$ac_t""$PEPSY" 1>&6
6020 echo "$ac_t""no" 1>&6
6025 if test $ol_enable_quipu != no ; then
6026 for ac_hdr in quipu/commonarg.h
6028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_hdr" >&5
6031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6040 { (eval echo configure:6041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6042 if test -z "$ac_err"; then
6044 eval "ac_cv_header_$ac_safe=yes"
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6050 eval "ac_cv_header_$ac_safe=no"
6054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6057 cat >> confdefs.h <<EOF
6058 #define $ac_tr_hdr 1
6062 echo "$ac_t""no" 1>&6
6067 if test $ac_cv_header_quipu_commonarg_h = yes ; then
6069 elif test $ol_enable_quipu = auto ; then
6070 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
6072 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
6081 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
6082 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
6084 for ac_hdr in krb5.h
6086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6088 echo "configure:6089: checking for $ac_hdr" >&5
6089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6098 { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6100 if test -z "$ac_err"; then
6102 eval "ac_cv_header_$ac_safe=yes"
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6108 eval "ac_cv_header_$ac_safe=no"
6112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6115 cat >> confdefs.h <<EOF
6116 #define $ac_tr_hdr 1
6120 echo "$ac_t""no" 1>&6
6125 if test $ac_cv_header_krb5_h = yes ; then
6126 for ac_hdr in heim_err.h
6128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_hdr" >&5
6131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6140 { (eval echo configure:6141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6142 if test -z "$ac_err"; then
6144 eval "ac_cv_header_$ac_safe=yes"
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 eval "ac_cv_header_$ac_safe=no"
6154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6157 cat >> confdefs.h <<EOF
6158 #define $ac_tr_hdr 1
6162 echo "$ac_t""no" 1>&6
6166 if test $ac_cv_header_heim_err_h = yes ; then
6172 if test $krb5_impl = mit; then
6173 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6174 echo "configure:6175: checking for main in -lkrb5" >&5
6175 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 ac_save_LIBS="$LIBS"
6180 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 eval "ac_cv_lib_$ac_lib_var=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_lib_$ac_lib_var=no"
6199 LIBS="$ac_save_LIBS"
6202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6205 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6207 echo "$ac_t""no" 1>&6
6212 elif test $krb5_impl = heimdal; then
6213 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6214 echo "configure:6215: checking for main in -lkrb5" >&5
6215 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 ac_save_LIBS="$LIBS"
6220 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 eval "ac_cv_lib_$ac_lib_var=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_lib_$ac_lib_var=no"
6239 LIBS="$ac_save_LIBS"
6242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6243 echo "$ac_t""yes" 1>&6
6245 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6247 echo "$ac_t""no" 1>&6
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_HEIMDAL_KERBEROS 1
6258 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6261 if test $have_krb5 = yes ; then
6264 cat >> confdefs.h <<\EOF
6269 if test $ol_enable_kpasswd != no ; then
6270 ol_link_kpasswd=yes;
6273 if test $ol_with_kerberos = k5only ; then
6274 ol_with_kerberos=found
6277 elif test $ol_with_kerberos != auto ; then
6278 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6284 if test $ol_link_krb5 = yes -a \
6285 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6287 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_hdr" >&5
6292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6301 { (eval echo configure:6302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6303 if test -z "$ac_err"; then
6305 eval "ac_cv_header_$ac_safe=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 eval "ac_cv_header_$ac_safe=no"
6315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_hdr 1
6323 echo "$ac_t""no" 1>&6
6328 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6329 if test $krb5_impl = mit; then
6330 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6331 echo "configure:6332: checking for main in -lkrb4" >&5
6332 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6336 ac_save_LIBS="$LIBS"
6337 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6338 cat > conftest.$ac_ext <<EOF
6339 #line 6340 "configure"
6340 #include "confdefs.h"
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 eval "ac_cv_lib_$ac_lib_var=yes"
6350 echo "configure: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval "ac_cv_lib_$ac_lib_var=no"
6356 LIBS="$ac_save_LIBS"
6359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6360 echo "$ac_t""yes" 1>&6
6362 KRB4_LIBS="-lkrb4 -ldes425"
6364 echo "$ac_t""no" 1>&6
6369 elif test $krb5_impl = heimdal; then
6370 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6371 echo "configure:6372: checking for main in -lkrb4" >&5
6372 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6374 echo $ac_n "(cached) $ac_c" 1>&6
6376 ac_save_LIBS="$LIBS"
6377 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_lib_$ac_lib_var=no"
6396 LIBS="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6404 echo "$ac_t""no" 1>&6
6411 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6414 if test $have_k425 = yes ; then
6415 ol_with_kerberos=found
6418 cat >> confdefs.h <<\EOF
6419 #define HAVE_KRB425 1
6422 cat >> confdefs.h <<\EOF
6427 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6428 echo "configure:6429: checking for des_debug in Kerberos libraries" >&5
6429 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6434 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6439 #include <kerberosIV/krb.h>
6440 #include <kerberosIV/des.h>
6441 extern int des_debug;
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 ol_cv_var_des_debug=yes
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 ol_cv_var_des_debug=no
6463 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6465 if test $ol_cv_var_des_debug = yes ; then
6466 cat >> confdefs.h <<\EOF
6467 #define HAVE_DES_DEBUG 1
6477 if test $ol_link_krb5 = yes ; then
6478 ol_with_kerberos=found
6481 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6482 -o $ol_with_kerberos = kth ; then
6484 for ac_hdr in krb.h des.h krb-archaeology.h
6486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6488 echo "configure:6489: checking for $ac_hdr" >&5
6489 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6490 echo $ac_n "(cached) $ac_c" 1>&6
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6498 { (eval echo configure:6499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6500 if test -z "$ac_err"; then
6502 eval "ac_cv_header_$ac_safe=yes"
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6508 eval "ac_cv_header_$ac_safe=no"
6512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6515 cat >> confdefs.h <<EOF
6516 #define $ac_tr_hdr 1
6520 echo "$ac_t""no" 1>&6
6525 if test $ac_cv_header_krb_h = yes ; then
6526 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6527 echo "configure:6528: checking for main in -lkrb" >&5
6528 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6
6532 ac_save_LIBS="$LIBS"
6533 LIBS="-lkrb -ldes $LIBS"
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 eval "ac_cv_lib_$ac_lib_var=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_lib_$ac_lib_var=no"
6552 LIBS="$ac_save_LIBS"
6555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6559 echo "$ac_t""no" 1>&6
6564 if test $have_k4 = yes ; then
6565 ol_with_kerberos=found
6568 cat >> confdefs.h <<\EOF
6573 KRB4_LIBS="-lkrb -ldes"
6575 if test $ac_cv_header_krb_archaeology_h = yes ; then
6576 cat >> confdefs.h <<\EOF
6577 #define HAVE_KTH_KERBEROS 1
6585 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6586 ol_link_kpasswd=yes;
6589 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_KERBEROS 1
6595 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6596 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6600 if test $ol_with_tls != no ; then
6602 for ac_hdr in openssl/ssl.h ssl.h
6604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6606 echo "configure:6607: checking for $ac_hdr" >&5
6607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6616 { (eval echo configure:6617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6618 if test -z "$ac_err"; then
6620 eval "ac_cv_header_$ac_safe=yes"
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 eval "ac_cv_header_$ac_safe=no"
6630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6631 echo "$ac_t""yes" 1>&6
6632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6633 cat >> confdefs.h <<EOF
6634 #define $ac_tr_hdr 1
6638 echo "$ac_t""no" 1>&6
6643 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6644 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6645 echo "configure:6646: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6646 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6
6650 ac_save_LIBS="$LIBS"
6651 LIBS="-lssl -lcrypto $LIBS"
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 /* Override any gcc2 internal prototype to avoid an error. */
6656 /* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658 char SSLeay_add_ssl_algorithms();
6661 SSLeay_add_ssl_algorithms()
6664 if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6666 eval "ac_cv_lib_$ac_lib_var=yes"
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6671 eval "ac_cv_lib_$ac_lib_var=no"
6674 LIBS="$ac_save_LIBS"
6677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6682 echo "$ac_t""no" 1>&6
6687 if test $have_ssleay = no ; then
6688 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6689 echo "configure:6690: checking for SSL_library_init in -lssl" >&5
6690 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 ac_save_LIBS="$LIBS"
6695 LIBS="-lssl -lcrypto $LIBS"
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6702 char SSL_library_init();
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_lib_$ac_lib_var=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_lib_$ac_lib_var=no"
6718 LIBS="$ac_save_LIBS"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6726 echo "$ac_t""no" 1>&6
6732 if test $have_ssleay = no ; then
6733 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6734 echo "configure:6735: checking for ssl3_accept in -lssl" >&5
6735 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6736 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6739 ac_save_LIBS="$LIBS"
6740 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6755 eval "ac_cv_lib_$ac_lib_var=yes"
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6760 eval "ac_cv_lib_$ac_lib_var=no"
6763 LIBS="$ac_save_LIBS"
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6771 echo "$ac_t""no" 1>&6
6777 if test $have_ssleay = yes ; then
6781 cat >> confdefs.h <<\EOF
6782 #define HAVE_SSLEAY 1
6786 if test $need_rsaref = yes; then
6787 cat >> confdefs.h <<\EOF
6788 #define HAVE_RSAREF 1
6792 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6794 TLS_LIBS="-lssl -lcrypto"
6800 if test $ol_link_tls = yes ; then
6801 cat >> confdefs.h <<\EOF
6809 gethostbyname_r gethostbyaddr_r \
6812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6813 echo "configure:6814: checking for $ac_func" >&5
6814 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* System header to define __stub macros and hopefully few prototypes,
6821 which can conflict with char $ac_func(); below. */
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6831 /* The GNU C library defines this for functions which it implements
6832 to always fail with ENOSYS. Some functions are actually named
6833 something starting with __ and the normal name is an alias. */
6834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 eval "ac_cv_func_$ac_func=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 eval "ac_cv_func_$ac_func=no"
6854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6857 cat >> confdefs.h <<EOF
6858 #define $ac_tr_func 1
6862 echo "$ac_t""no" 1>&6
6867 if test "$ac_cv_func_ctime_r" = no ; then
6868 ol_cv_func_ctime_r_nargs=0
6870 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6871 echo "configure:6872: checking number of arguments of ctime_r" >&5
6872 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6873 echo $ac_n "(cached) $ac_c" 1>&6
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6880 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6883 if { (eval echo configure:6884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6885 ol_cv_func_ctime_r_nargs3=yes
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 ol_cv_func_ctime_r_nargs3=no
6894 cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6899 time_t ti; char *buffer; ctime_r(&ti,buffer);
6902 if { (eval echo configure:6903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6904 ol_cv_func_ctime_r_nargs2=yes
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 ol_cv_func_ctime_r_nargs2=no
6913 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6914 $ol_cv_func_ctime_r_nargs2 = no ; then
6916 ol_cv_func_ctime_r_nargs=3
6918 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6919 $ol_cv_func_ctime_r_nargs2 = yes ; then
6921 ol_cv_func_ctime_r_nargs=2
6924 ol_cv_func_ctime_r_nargs=0
6929 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6931 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6932 cat >> confdefs.h <<EOF
6933 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6940 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6941 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6942 echo "configure:6943: checking number of arguments of gethostbyname_r" >&5
6943 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6949 #include <sys/types.h>
6950 #include <sys/socket.h>
6951 #include <netinet/in.h>
6953 #define BUFSIZE (sizeof(struct hostent)+10)
6955 struct hostent hent; char buffer[BUFSIZE];
6956 int bufsize=BUFSIZE;int h_errno;
6957 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6958 buffer, bufsize, &h_errno);
6961 if { (eval echo configure:6962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6963 ol_cv_func_gethostbyname_r_nargs5=yes
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6968 ol_cv_func_gethostbyname_r_nargs5=no
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6975 #include <sys/types.h>
6976 #include <sys/socket.h>
6977 #include <netinet/in.h>
6979 #define BUFSIZE (sizeof(struct hostent)+10)
6981 struct hostent hent;struct hostent *rhent;
6982 char buffer[BUFSIZE];
6983 int bufsize=BUFSIZE;int h_errno;
6984 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6988 if { (eval echo configure:6989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6990 ol_cv_func_gethostbyname_r_nargs6=yes
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 ol_cv_func_gethostbyname_r_nargs6=no
6999 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7000 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7002 ol_cv_func_gethostbyname_r_nargs=5
7004 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7005 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7007 ol_cv_func_gethostbyname_r_nargs=6
7010 ol_cv_func_gethostbyname_r_nargs=0
7015 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7016 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7017 cat >> confdefs.h <<EOF
7018 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7024 ol_cv_func_gethostbyname_r_nargs=0
7027 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7028 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7029 echo "configure:7030: checking number of arguments of gethostbyaddr_r" >&5
7030 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure"
7035 #include "confdefs.h"
7036 #include <sys/types.h>
7037 #include <sys/socket.h>
7038 #include <netinet/in.h>
7040 #define BUFSIZE (sizeof(struct hostent)+10)
7042 struct hostent hent; char buffer[BUFSIZE];
7044 size_t alen=sizeof(struct in_addr);
7045 int bufsize=BUFSIZE;int h_errno;
7046 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7047 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7050 if { (eval echo configure:7051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7052 ol_cv_func_gethostbyaddr_r_nargs7=yes
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 ol_cv_func_gethostbyaddr_r_nargs7=no
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 #include <sys/types.h>
7065 #include <sys/socket.h>
7066 #include <netinet/in.h>
7068 #define BUFSIZE (sizeof(struct hostent)+10)
7070 struct hostent hent;
7071 struct hostent *rhent; char buffer[BUFSIZE];
7073 size_t alen=sizeof(struct in_addr);
7074 int bufsize=BUFSIZE;int h_errno;
7075 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7076 alen, AF_INET, &hent, buffer, bufsize,
7080 if { (eval echo configure:7081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7082 ol_cv_func_gethostbyaddr_r_nargs8=yes
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 ol_cv_func_gethostbyaddr_r_nargs8=no
7091 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7092 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7094 ol_cv_func_gethostbyaddr_r_nargs=7
7096 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7097 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7099 ol_cv_func_gethostbyaddr_r_nargs=8
7102 ol_cv_func_gethostbyaddr_r_nargs=0
7107 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7108 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7109 cat >> confdefs.h <<EOF
7110 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7116 ol_cv_func_gethostbyaddr_r_nargs=0
7119 if test "$ac_cv_func_ctime_r" = yes \
7120 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7121 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7122 -a "$ac_cv_func_gethostbyname_r" = yes \
7123 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7124 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7125 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7126 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7127 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7130 cat >> confdefs.h <<\EOF
7131 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7138 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7139 -o $ol_with_threads = nt ; then
7142 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7143 echo "configure:7144: checking for NT Threads" >&5
7144 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7148 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7149 echo "configure:7150: checking for _beginthread" >&5
7150 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 /* System header to define __stub macros and hopefully few prototypes,
7157 which can conflict with char _beginthread(); below. */
7159 /* Override any gcc2 internal prototype to avoid an error. */
7160 /* We use char because int might match the return type of a gcc2
7161 builtin and then its argument prototype would still apply. */
7162 char _beginthread();
7167 /* The GNU C library defines this for functions which it implements
7168 to always fail with ENOSYS. Some functions are actually named
7169 something starting with __ and the normal name is an alias. */
7170 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7178 if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 eval "ac_cv_func__beginthread=yes"
7182 echo "configure: failed program was:" >&5
7183 cat conftest.$ac_ext >&5
7185 eval "ac_cv_func__beginthread=no"
7190 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7191 echo "$ac_t""yes" 1>&6
7192 ol_cv_nt_threads=yes
7194 echo "$ac_t""no" 1>&6
7201 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7203 if test $ol_cv_nt_threads = yes ; then
7204 cat >> confdefs.h <<\EOF
7205 #define HAVE_NT_THREADS 1
7211 if test "$ol_cv_nt_threads" = yes ; then
7213 ol_with_threads=found
7214 ol_with_yielding_select=yes
7216 cat >> confdefs.h <<\EOF
7217 #define HAVE_NT_SERVICE_MANAGER 1
7220 cat >> confdefs.h <<\EOF
7221 #define HAVE_NT_EVENT_LOG 1
7226 if test $ol_with_threads = nt ; then
7227 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7231 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7232 -o $ol_with_threads = posix ; then
7234 for ac_hdr in pthread.h
7236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7238 echo "configure:7239: checking for $ac_hdr" >&5
7239 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7248 { (eval echo configure:7249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7250 if test -z "$ac_err"; then
7252 eval "ac_cv_header_$ac_safe=yes"
7255 echo "configure: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7258 eval "ac_cv_header_$ac_safe=no"
7262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7263 echo "$ac_t""yes" 1>&6
7264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7265 cat >> confdefs.h <<EOF
7266 #define $ac_tr_hdr 1
7270 echo "$ac_t""no" 1>&6
7275 if test $ac_cv_header_pthread_h = yes ; then
7276 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7277 echo "configure:7278: checking POSIX thread version" >&5
7278 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7286 # include <pthread.h>
7287 /* this check could be improved */
7288 # ifdef PTHREAD_ONCE_INIT
7289 pthread_version_final;
7293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294 egrep "pthread_version_final" >/dev/null 2>&1; then
7296 ol_pthread_final=yes
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7308 # include <pthread.h>
7309 /* this check could be improved */
7310 # ifdef pthread_once_init
7311 pthread_version_draft4;
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7318 ol_pthread_draft4=yes
7321 ol_pthread_draft4=no
7326 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7327 ol_cv_pthread_version=final
7328 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7329 ol_cv_pthread_version=draft4
7331 ol_cv_pthread_version=unknown
7336 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7339 if test $ol_cv_pthread_version = final ; then
7340 cat >> confdefs.h <<\EOF
7341 #define HAVE_PTHREADS_FINAL 1
7344 elif test $ol_cv_pthread_version = draft4 ; then
7345 cat >> confdefs.h <<\EOF
7346 #define HAVE_PTHREADS_D4 1
7350 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7353 # consider threads found
7354 ol_with_threads=found
7357 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7358 echo "configure:7359: checking for LinuxThreads pthread.h" >&5
7359 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7360 echo $ac_n "(cached) $ac_c" 1>&6
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 #include <pthread.h>
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7370 ol_cv_header_linux_threads=yes
7373 ol_cv_header_linux_threads=no
7380 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7381 if test $ol_cv_header_linux_threads = yes; then
7382 cat >> confdefs.h <<\EOF
7383 #define HAVE_LINUX_THREADS 1
7389 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7390 echo "configure:7391: checking for GNU Pth pthread.h" >&5
7391 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <pthread.h>
7398 #ifdef _POSIX_THREAD_IS_GNU_PTH
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 egrep "__gnu_pth__" >/dev/null 2>&1; then
7406 ol_cv_header_gnu_pth_pthread_h=yes
7409 ol_cv_header_gnu_pth_pthread_h=no
7416 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7419 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7420 for ac_hdr in sched.h
7422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7424 echo "configure:7425: checking for $ac_hdr" >&5
7425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6
7428 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7434 { (eval echo configure:7435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7436 if test -z "$ac_err"; then
7438 eval "ac_cv_header_$ac_safe=yes"
7441 echo "configure: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7444 eval "ac_cv_header_$ac_safe=no"
7448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_hdr 1
7456 echo "$ac_t""no" 1>&6
7463 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7464 echo "configure:7465: checking for pthread_create in default libraries" >&5
7465 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7469 if test "$cross_compiling" = yes; then
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* pthread test headers */
7474 #include <pthread.h>
7476 #define NULL (void*)0
7479 static void *task(p)
7482 return (void *) (p == NULL);
7487 /* pthread test function */
7490 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7491 /* This system (e.g. AIX) defaults detached; must override */
7492 pthread_attr_t attr;
7494 status = pthread_attr_init(&attr);
7495 if( status ) exit( status );
7497 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7498 if( status ) exit( status );
7502 #if HAVE_PTHREADS_D4
7503 #define ATTR pthread_attr_default
7508 /* make sure pthread_create() isn't just a stub */
7509 status = pthread_create(&t, ATTR, task, NULL);
7510 if( status ) exit( status );
7512 /* make sure pthread_detach() isn't just a stub */
7513 #if HAVE_PTHREADS_D4
7514 status = pthread_detach( &t );
7516 status = pthread_detach( t );
7519 #ifdef HAVE_LINUX_THREADS
7520 pthread_kill_other_threads_np();
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 ol_cv_pthread_create=yes
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 ol_cv_pthread_create=no
7538 cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 /* pthread test headers */
7542 #include <pthread.h>
7544 #define NULL (void*)0
7547 static void *task(p)
7550 return (void *) (p == NULL);
7554 int main(argc, argv)
7559 /* pthread test function */
7562 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7563 /* This system (e.g. AIX) defaults detached; must override */
7564 pthread_attr_t attr;
7566 status = pthread_attr_init(&attr);
7567 if( status ) exit( status );
7569 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7570 if( status ) exit( status );
7574 #if HAVE_PTHREADS_D4
7575 #define ATTR pthread_attr_default
7580 /* make sure pthread_create() isn't just a stub */
7581 status = pthread_create(&t, ATTR, task, NULL);
7582 if( status ) exit( status );
7584 /* make sure pthread_detach() isn't just a stub */
7585 #if HAVE_PTHREADS_D4
7586 status = pthread_detach( &t );
7588 status = pthread_detach( t );
7591 #ifdef HAVE_LINUX_THREADS
7592 pthread_kill_other_threads_np();
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7602 ol_cv_pthread_create=yes
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7607 ol_cv_pthread_create=no
7614 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7616 if test $ol_cv_pthread_create != no ; then
7617 ol_link_threads=posix
7621 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7622 if test "$ol_link_threads" = no ; then
7624 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7625 echo "configure:7626: checking for pthread link with -kthread" >&5
7626 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7632 LIBS="-kthread $LIBS"
7634 if test "$cross_compiling" = yes; then
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* pthread test headers */
7639 #include <pthread.h>
7641 #define NULL (void*)0
7644 static void *task(p)
7647 return (void *) (p == NULL);
7652 /* pthread test function */
7655 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7656 /* This system (e.g. AIX) defaults detached; must override */
7657 pthread_attr_t attr;
7659 status = pthread_attr_init(&attr);
7660 if( status ) exit( status );
7662 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7663 if( status ) exit( status );
7667 #if HAVE_PTHREADS_D4
7668 #define ATTR pthread_attr_default
7673 /* make sure pthread_create() isn't just a stub */
7674 status = pthread_create(&t, ATTR, task, NULL);
7675 if( status ) exit( status );
7677 /* make sure pthread_detach() isn't just a stub */
7678 #if HAVE_PTHREADS_D4
7679 status = pthread_detach( &t );
7681 status = pthread_detach( t );
7684 #ifdef HAVE_LINUX_THREADS
7685 pthread_kill_other_threads_np();
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694 ol_cv_pthread_kthread=yes
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7699 ol_cv_pthread_kthread=no
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 /* pthread test headers */
7707 #include <pthread.h>
7709 #define NULL (void*)0
7712 static void *task(p)
7715 return (void *) (p == NULL);
7719 int main(argc, argv)
7724 /* pthread test function */
7727 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7728 /* This system (e.g. AIX) defaults detached; must override */
7729 pthread_attr_t attr;
7731 status = pthread_attr_init(&attr);
7732 if( status ) exit( status );
7734 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7735 if( status ) exit( status );
7739 #if HAVE_PTHREADS_D4
7740 #define ATTR pthread_attr_default
7745 /* make sure pthread_create() isn't just a stub */
7746 status = pthread_create(&t, ATTR, task, NULL);
7747 if( status ) exit( status );
7749 /* make sure pthread_detach() isn't just a stub */
7750 #if HAVE_PTHREADS_D4
7751 status = pthread_detach( &t );
7753 status = pthread_detach( t );
7756 #ifdef HAVE_LINUX_THREADS
7757 pthread_kill_other_threads_np();
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7767 ol_cv_pthread_kthread=yes
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 ol_cv_pthread_kthread=no
7783 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7785 if test $ol_cv_pthread_kthread = yes ; then
7786 ol_link_pthreads="-kthread"
7787 ol_link_threads=posix
7791 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7792 if test "$ol_link_threads" = no ; then
7794 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7795 echo "configure:7796: checking for pthread link with -pthread" >&5
7796 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7802 LIBS="-pthread $LIBS"
7804 if test "$cross_compiling" = yes; then
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* pthread test headers */
7809 #include <pthread.h>
7811 #define NULL (void*)0
7814 static void *task(p)
7817 return (void *) (p == NULL);
7822 /* pthread test function */
7825 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7826 /* This system (e.g. AIX) defaults detached; must override */
7827 pthread_attr_t attr;
7829 status = pthread_attr_init(&attr);
7830 if( status ) exit( status );
7832 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7833 if( status ) exit( status );
7837 #if HAVE_PTHREADS_D4
7838 #define ATTR pthread_attr_default
7843 /* make sure pthread_create() isn't just a stub */
7844 status = pthread_create(&t, ATTR, task, NULL);
7845 if( status ) exit( status );
7847 /* make sure pthread_detach() isn't just a stub */
7848 #if HAVE_PTHREADS_D4
7849 status = pthread_detach( &t );
7851 status = pthread_detach( t );
7854 #ifdef HAVE_LINUX_THREADS
7855 pthread_kill_other_threads_np();
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 ol_cv_pthread_pthread=yes
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 ol_cv_pthread_pthread=no
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* pthread test headers */
7877 #include <pthread.h>
7879 #define NULL (void*)0
7882 static void *task(p)
7885 return (void *) (p == NULL);
7889 int main(argc, argv)
7894 /* pthread test function */
7897 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7898 /* This system (e.g. AIX) defaults detached; must override */
7899 pthread_attr_t attr;
7901 status = pthread_attr_init(&attr);
7902 if( status ) exit( status );
7904 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7905 if( status ) exit( status );
7909 #if HAVE_PTHREADS_D4
7910 #define ATTR pthread_attr_default
7915 /* make sure pthread_create() isn't just a stub */
7916 status = pthread_create(&t, ATTR, task, NULL);
7917 if( status ) exit( status );
7919 /* make sure pthread_detach() isn't just a stub */
7920 #if HAVE_PTHREADS_D4
7921 status = pthread_detach( &t );
7923 status = pthread_detach( t );
7926 #ifdef HAVE_LINUX_THREADS
7927 pthread_kill_other_threads_np();
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7937 ol_cv_pthread_pthread=yes
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 ol_cv_pthread_pthread=no
7953 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7955 if test $ol_cv_pthread_pthread = yes ; then
7956 ol_link_pthreads="-pthread"
7957 ol_link_threads=posix
7961 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7962 if test "$ol_link_threads" = no ; then
7964 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7965 echo "configure:7966: checking for pthread link with -pthreads" >&5
7966 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7972 LIBS="-pthreads $LIBS"
7974 if test "$cross_compiling" = yes; then
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 /* pthread test headers */
7979 #include <pthread.h>
7981 #define NULL (void*)0
7984 static void *task(p)
7987 return (void *) (p == NULL);
7992 /* pthread test function */
7995 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7996 /* This system (e.g. AIX) defaults detached; must override */
7997 pthread_attr_t attr;
7999 status = pthread_attr_init(&attr);
8000 if( status ) exit( status );
8002 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8003 if( status ) exit( status );
8007 #if HAVE_PTHREADS_D4
8008 #define ATTR pthread_attr_default
8013 /* make sure pthread_create() isn't just a stub */
8014 status = pthread_create(&t, ATTR, task, NULL);
8015 if( status ) exit( status );
8017 /* make sure pthread_detach() isn't just a stub */
8018 #if HAVE_PTHREADS_D4
8019 status = pthread_detach( &t );
8021 status = pthread_detach( t );
8024 #ifdef HAVE_LINUX_THREADS
8025 pthread_kill_other_threads_np();
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 ol_cv_pthread_pthreads=yes
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 ol_cv_pthread_pthreads=no
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* pthread test headers */
8047 #include <pthread.h>
8049 #define NULL (void*)0
8052 static void *task(p)
8055 return (void *) (p == NULL);
8059 int main(argc, argv)
8064 /* pthread test function */
8067 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8068 /* This system (e.g. AIX) defaults detached; must override */
8069 pthread_attr_t attr;
8071 status = pthread_attr_init(&attr);
8072 if( status ) exit( status );
8074 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8075 if( status ) exit( status );
8079 #if HAVE_PTHREADS_D4
8080 #define ATTR pthread_attr_default
8085 /* make sure pthread_create() isn't just a stub */
8086 status = pthread_create(&t, ATTR, task, NULL);
8087 if( status ) exit( status );
8089 /* make sure pthread_detach() isn't just a stub */
8090 #if HAVE_PTHREADS_D4
8091 status = pthread_detach( &t );
8093 status = pthread_detach( t );
8096 #ifdef HAVE_LINUX_THREADS
8097 pthread_kill_other_threads_np();
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8107 ol_cv_pthread_pthreads=yes
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 ol_cv_pthread_pthreads=no
8123 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8125 if test $ol_cv_pthread_pthreads = yes ; then
8126 ol_link_pthreads="-pthreads"
8127 ol_link_threads=posix
8131 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8132 if test "$ol_link_threads" = no ; then
8134 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8135 echo "configure:8136: checking for pthread link with -mthreads" >&5
8136 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8142 LIBS="-mthreads $LIBS"
8144 if test "$cross_compiling" = yes; then
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* pthread test headers */
8149 #include <pthread.h>
8151 #define NULL (void*)0
8154 static void *task(p)
8157 return (void *) (p == NULL);
8162 /* pthread test function */
8165 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8166 /* This system (e.g. AIX) defaults detached; must override */
8167 pthread_attr_t attr;
8169 status = pthread_attr_init(&attr);
8170 if( status ) exit( status );
8172 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8173 if( status ) exit( status );
8177 #if HAVE_PTHREADS_D4
8178 #define ATTR pthread_attr_default
8183 /* make sure pthread_create() isn't just a stub */
8184 status = pthread_create(&t, ATTR, task, NULL);
8185 if( status ) exit( status );
8187 /* make sure pthread_detach() isn't just a stub */
8188 #if HAVE_PTHREADS_D4
8189 status = pthread_detach( &t );
8191 status = pthread_detach( t );
8194 #ifdef HAVE_LINUX_THREADS
8195 pthread_kill_other_threads_np();
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 ol_cv_pthread_mthreads=yes
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 ol_cv_pthread_mthreads=no
8213 cat > conftest.$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216 /* pthread test headers */
8217 #include <pthread.h>
8219 #define NULL (void*)0
8222 static void *task(p)
8225 return (void *) (p == NULL);
8229 int main(argc, argv)
8234 /* pthread test function */
8237 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8238 /* This system (e.g. AIX) defaults detached; must override */
8239 pthread_attr_t attr;
8241 status = pthread_attr_init(&attr);
8242 if( status ) exit( status );
8244 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8245 if( status ) exit( status );
8249 #if HAVE_PTHREADS_D4
8250 #define ATTR pthread_attr_default
8255 /* make sure pthread_create() isn't just a stub */
8256 status = pthread_create(&t, ATTR, task, NULL);
8257 if( status ) exit( status );
8259 /* make sure pthread_detach() isn't just a stub */
8260 #if HAVE_PTHREADS_D4
8261 status = pthread_detach( &t );
8263 status = pthread_detach( t );
8266 #ifdef HAVE_LINUX_THREADS
8267 pthread_kill_other_threads_np();
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8277 ol_cv_pthread_mthreads=yes
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 ol_cv_pthread_mthreads=no
8293 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8295 if test $ol_cv_pthread_mthreads = yes ; then
8296 ol_link_pthreads="-mthreads"
8297 ol_link_threads=posix
8301 # Pthread try link: -thread (ol_cv_pthread_thread)
8302 if test "$ol_link_threads" = no ; then
8304 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8305 echo "configure:8306: checking for pthread link with -thread" >&5
8306 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8312 LIBS="-thread $LIBS"
8314 if test "$cross_compiling" = yes; then
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 /* pthread test headers */
8319 #include <pthread.h>
8321 #define NULL (void*)0
8324 static void *task(p)
8327 return (void *) (p == NULL);
8332 /* pthread test function */
8335 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8336 /* This system (e.g. AIX) defaults detached; must override */
8337 pthread_attr_t attr;
8339 status = pthread_attr_init(&attr);
8340 if( status ) exit( status );
8342 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8343 if( status ) exit( status );
8347 #if HAVE_PTHREADS_D4
8348 #define ATTR pthread_attr_default
8353 /* make sure pthread_create() isn't just a stub */
8354 status = pthread_create(&t, ATTR, task, NULL);
8355 if( status ) exit( status );
8357 /* make sure pthread_detach() isn't just a stub */
8358 #if HAVE_PTHREADS_D4
8359 status = pthread_detach( &t );
8361 status = pthread_detach( t );
8364 #ifdef HAVE_LINUX_THREADS
8365 pthread_kill_other_threads_np();
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8374 ol_cv_pthread_thread=yes
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8379 ol_cv_pthread_thread=no
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8386 /* pthread test headers */
8387 #include <pthread.h>
8389 #define NULL (void*)0
8392 static void *task(p)
8395 return (void *) (p == NULL);
8399 int main(argc, argv)
8404 /* pthread test function */
8407 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8408 /* This system (e.g. AIX) defaults detached; must override */
8409 pthread_attr_t attr;
8411 status = pthread_attr_init(&attr);
8412 if( status ) exit( status );
8414 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8415 if( status ) exit( status );
8419 #if HAVE_PTHREADS_D4
8420 #define ATTR pthread_attr_default
8425 /* make sure pthread_create() isn't just a stub */
8426 status = pthread_create(&t, ATTR, task, NULL);
8427 if( status ) exit( status );
8429 /* make sure pthread_detach() isn't just a stub */
8430 #if HAVE_PTHREADS_D4
8431 status = pthread_detach( &t );
8433 status = pthread_detach( t );
8436 #ifdef HAVE_LINUX_THREADS
8437 pthread_kill_other_threads_np();
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8447 ol_cv_pthread_thread=yes
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 ol_cv_pthread_thread=no
8463 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8465 if test $ol_cv_pthread_thread = yes ; then
8466 ol_link_pthreads="-thread"
8467 ol_link_threads=posix
8472 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8473 if test "$ol_link_threads" = no ; then
8474 # try -lpthread -lmach -lexc -lc_r
8475 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8476 echo "configure:8477: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8477 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8483 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8485 if test "$cross_compiling" = yes; then
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 /* pthread test headers */
8490 #include <pthread.h>
8492 #define NULL (void*)0
8495 static void *task(p)
8498 return (void *) (p == NULL);
8503 /* pthread test function */
8506 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8507 /* This system (e.g. AIX) defaults detached; must override */
8508 pthread_attr_t attr;
8510 status = pthread_attr_init(&attr);
8511 if( status ) exit( status );
8513 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8514 if( status ) exit( status );
8518 #if HAVE_PTHREADS_D4
8519 #define ATTR pthread_attr_default
8524 /* make sure pthread_create() isn't just a stub */
8525 status = pthread_create(&t, ATTR, task, NULL);
8526 if( status ) exit( status );
8528 /* make sure pthread_detach() isn't just a stub */
8529 #if HAVE_PTHREADS_D4
8530 status = pthread_detach( &t );
8532 status = pthread_detach( t );
8535 #ifdef HAVE_LINUX_THREADS
8536 pthread_kill_other_threads_np();
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8545 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* pthread test headers */
8558 #include <pthread.h>
8560 #define NULL (void*)0
8563 static void *task(p)
8566 return (void *) (p == NULL);
8570 int main(argc, argv)
8575 /* pthread test function */
8578 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8579 /* This system (e.g. AIX) defaults detached; must override */
8580 pthread_attr_t attr;
8582 status = pthread_attr_init(&attr);
8583 if( status ) exit( status );
8585 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8586 if( status ) exit( status );
8590 #if HAVE_PTHREADS_D4
8591 #define ATTR pthread_attr_default
8596 /* make sure pthread_create() isn't just a stub */
8597 status = pthread_create(&t, ATTR, task, NULL);
8598 if( status ) exit( status );
8600 /* make sure pthread_detach() isn't just a stub */
8601 #if HAVE_PTHREADS_D4
8602 status = pthread_detach( &t );
8604 status = pthread_detach( t );
8607 #ifdef HAVE_LINUX_THREADS
8608 pthread_kill_other_threads_np();
8616 if { (eval echo configure:8617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8618 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8634 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8636 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8637 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8638 ol_link_threads=posix
8642 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8643 if test "$ol_link_threads" = no ; then
8644 # try -lpthread -lmach -lexc
8645 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8646 echo "configure:8647: checking for pthread link with -lpthread -lmach -lexc" >&5
8647 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8653 LIBS="-lpthread -lmach -lexc $LIBS"
8655 if test "$cross_compiling" = yes; then
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 /* pthread test headers */
8660 #include <pthread.h>
8662 #define NULL (void*)0
8665 static void *task(p)
8668 return (void *) (p == NULL);
8673 /* pthread test function */
8676 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8677 /* This system (e.g. AIX) defaults detached; must override */
8678 pthread_attr_t attr;
8680 status = pthread_attr_init(&attr);
8681 if( status ) exit( status );
8683 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8684 if( status ) exit( status );
8688 #if HAVE_PTHREADS_D4
8689 #define ATTR pthread_attr_default
8694 /* make sure pthread_create() isn't just a stub */
8695 status = pthread_create(&t, ATTR, task, NULL);
8696 if( status ) exit( status );
8698 /* make sure pthread_detach() isn't just a stub */
8699 #if HAVE_PTHREADS_D4
8700 status = pthread_detach( &t );
8702 status = pthread_detach( t );
8705 #ifdef HAVE_LINUX_THREADS
8706 pthread_kill_other_threads_np();
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715 ol_cv_pthread_lpthread_lmach_lexc=yes
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 ol_cv_pthread_lpthread_lmach_lexc=no
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 /* pthread test headers */
8728 #include <pthread.h>
8730 #define NULL (void*)0
8733 static void *task(p)
8736 return (void *) (p == NULL);
8740 int main(argc, argv)
8745 /* pthread test function */
8748 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8749 /* This system (e.g. AIX) defaults detached; must override */
8750 pthread_attr_t attr;
8752 status = pthread_attr_init(&attr);
8753 if( status ) exit( status );
8755 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8756 if( status ) exit( status );
8760 #if HAVE_PTHREADS_D4
8761 #define ATTR pthread_attr_default
8766 /* make sure pthread_create() isn't just a stub */
8767 status = pthread_create(&t, ATTR, task, NULL);
8768 if( status ) exit( status );
8770 /* make sure pthread_detach() isn't just a stub */
8771 #if HAVE_PTHREADS_D4
8772 status = pthread_detach( &t );
8774 status = pthread_detach( t );
8777 #ifdef HAVE_LINUX_THREADS
8778 pthread_kill_other_threads_np();
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8788 ol_cv_pthread_lpthread_lmach_lexc=yes
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 ol_cv_pthread_lpthread_lmach_lexc=no
8804 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8806 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8807 ol_link_pthreads="-lpthread -lmach -lexc"
8808 ol_link_threads=posix
8813 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8814 if test "$ol_link_threads" = no ; then
8815 # try -lpthread -Wl,-woff,85
8816 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8817 echo "configure:8818: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8818 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8824 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8826 if test "$cross_compiling" = yes; then
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8830 /* pthread test headers */
8831 #include <pthread.h>
8833 #define NULL (void*)0
8836 static void *task(p)
8839 return (void *) (p == NULL);
8844 /* pthread test function */
8847 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8848 /* This system (e.g. AIX) defaults detached; must override */
8849 pthread_attr_t attr;
8851 status = pthread_attr_init(&attr);
8852 if( status ) exit( status );
8854 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8855 if( status ) exit( status );
8859 #if HAVE_PTHREADS_D4
8860 #define ATTR pthread_attr_default
8865 /* make sure pthread_create() isn't just a stub */
8866 status = pthread_create(&t, ATTR, task, NULL);
8867 if( status ) exit( status );
8869 /* make sure pthread_detach() isn't just a stub */
8870 #if HAVE_PTHREADS_D4
8871 status = pthread_detach( &t );
8873 status = pthread_detach( t );
8876 #ifdef HAVE_LINUX_THREADS
8877 pthread_kill_other_threads_np();
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8886 ol_cv_pthread_lib_lpthread_woff=yes
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8891 ol_cv_pthread_lib_lpthread_woff=no
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* pthread test headers */
8899 #include <pthread.h>
8901 #define NULL (void*)0
8904 static void *task(p)
8907 return (void *) (p == NULL);
8911 int main(argc, argv)
8916 /* pthread test function */
8919 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8920 /* This system (e.g. AIX) defaults detached; must override */
8921 pthread_attr_t attr;
8923 status = pthread_attr_init(&attr);
8924 if( status ) exit( status );
8926 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8927 if( status ) exit( status );
8931 #if HAVE_PTHREADS_D4
8932 #define ATTR pthread_attr_default
8937 /* make sure pthread_create() isn't just a stub */
8938 status = pthread_create(&t, ATTR, task, NULL);
8939 if( status ) exit( status );
8941 /* make sure pthread_detach() isn't just a stub */
8942 #if HAVE_PTHREADS_D4
8943 status = pthread_detach( &t );
8945 status = pthread_detach( t );
8948 #ifdef HAVE_LINUX_THREADS
8949 pthread_kill_other_threads_np();
8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8959 ol_cv_pthread_lib_lpthread_woff=yes
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8964 ol_cv_pthread_lib_lpthread_woff=no
8975 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8977 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8978 ol_link_pthreads="-lpthread -Wl,-woff,85"
8979 ol_link_threads=posix
8984 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8985 if test "$ol_link_threads" = no ; then
8987 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8988 echo "configure:8989: checking for pthread link with -lpthread" >&5
8989 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8995 LIBS="-lpthread $LIBS"
8997 if test "$cross_compiling" = yes; then
8998 cat > conftest.$ac_ext <<EOF
8999 #line 9000 "configure"
9000 #include "confdefs.h"
9001 /* pthread test headers */
9002 #include <pthread.h>
9004 #define NULL (void*)0
9007 static void *task(p)
9010 return (void *) (p == NULL);
9015 /* pthread test function */
9018 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9019 /* This system (e.g. AIX) defaults detached; must override */
9020 pthread_attr_t attr;
9022 status = pthread_attr_init(&attr);
9023 if( status ) exit( status );
9025 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9026 if( status ) exit( status );
9030 #if HAVE_PTHREADS_D4
9031 #define ATTR pthread_attr_default
9036 /* make sure pthread_create() isn't just a stub */
9037 status = pthread_create(&t, ATTR, task, NULL);
9038 if( status ) exit( status );
9040 /* make sure pthread_detach() isn't just a stub */
9041 #if HAVE_PTHREADS_D4
9042 status = pthread_detach( &t );
9044 status = pthread_detach( t );
9047 #ifdef HAVE_LINUX_THREADS
9048 pthread_kill_other_threads_np();
9055 if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9057 ol_cv_pthread_lpthread=yes
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9062 ol_cv_pthread_lpthread=no
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* pthread test headers */
9070 #include <pthread.h>
9072 #define NULL (void*)0
9075 static void *task(p)
9078 return (void *) (p == NULL);
9082 int main(argc, argv)
9087 /* pthread test function */
9090 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9091 /* This system (e.g. AIX) defaults detached; must override */
9092 pthread_attr_t attr;
9094 status = pthread_attr_init(&attr);
9095 if( status ) exit( status );
9097 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9098 if( status ) exit( status );
9102 #if HAVE_PTHREADS_D4
9103 #define ATTR pthread_attr_default
9108 /* make sure pthread_create() isn't just a stub */
9109 status = pthread_create(&t, ATTR, task, NULL);
9110 if( status ) exit( status );
9112 /* make sure pthread_detach() isn't just a stub */
9113 #if HAVE_PTHREADS_D4
9114 status = pthread_detach( &t );
9116 status = pthread_detach( t );
9119 #ifdef HAVE_LINUX_THREADS
9120 pthread_kill_other_threads_np();
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9130 ol_cv_pthread_lpthread=yes
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 ol_cv_pthread_lpthread=no
9146 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9148 if test $ol_cv_pthread_lpthread = yes ; then
9149 ol_link_pthreads="-lpthread"
9150 ol_link_threads=posix
9154 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9155 if test "$ol_link_threads" = no ; then
9157 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9158 echo "configure:9159: checking for pthread link with -lc_r" >&5
9159 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9167 if test "$cross_compiling" = yes; then
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 /* pthread test headers */
9172 #include <pthread.h>
9174 #define NULL (void*)0
9177 static void *task(p)
9180 return (void *) (p == NULL);
9185 /* pthread test function */
9188 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9189 /* This system (e.g. AIX) defaults detached; must override */
9190 pthread_attr_t attr;
9192 status = pthread_attr_init(&attr);
9193 if( status ) exit( status );
9195 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9196 if( status ) exit( status );
9200 #if HAVE_PTHREADS_D4
9201 #define ATTR pthread_attr_default
9206 /* make sure pthread_create() isn't just a stub */
9207 status = pthread_create(&t, ATTR, task, NULL);
9208 if( status ) exit( status );
9210 /* make sure pthread_detach() isn't just a stub */
9211 #if HAVE_PTHREADS_D4
9212 status = pthread_detach( &t );
9214 status = pthread_detach( t );
9217 #ifdef HAVE_LINUX_THREADS
9218 pthread_kill_other_threads_np();
9225 if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9227 ol_cv_pthread_lc_r=yes
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9232 ol_cv_pthread_lc_r=no
9236 cat > conftest.$ac_ext <<EOF
9237 #line 9238 "configure"
9238 #include "confdefs.h"
9239 /* pthread test headers */
9240 #include <pthread.h>
9242 #define NULL (void*)0
9245 static void *task(p)
9248 return (void *) (p == NULL);
9252 int main(argc, argv)
9257 /* pthread test function */
9260 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9261 /* This system (e.g. AIX) defaults detached; must override */
9262 pthread_attr_t attr;
9264 status = pthread_attr_init(&attr);
9265 if( status ) exit( status );
9267 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9268 if( status ) exit( status );
9272 #if HAVE_PTHREADS_D4
9273 #define ATTR pthread_attr_default
9278 /* make sure pthread_create() isn't just a stub */
9279 status = pthread_create(&t, ATTR, task, NULL);
9280 if( status ) exit( status );
9282 /* make sure pthread_detach() isn't just a stub */
9283 #if HAVE_PTHREADS_D4
9284 status = pthread_detach( &t );
9286 status = pthread_detach( t );
9289 #ifdef HAVE_LINUX_THREADS
9290 pthread_kill_other_threads_np();
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9300 ol_cv_pthread_lc_r=yes
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 ol_cv_pthread_lc_r=no
9316 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9318 if test $ol_cv_pthread_lc_r = yes ; then
9319 ol_link_pthreads="-lc_r"
9320 ol_link_threads=posix
9325 # Pthread try link: -threads (ol_cv_pthread_threads)
9326 if test "$ol_link_threads" = no ; then
9328 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9329 echo "configure:9330: checking for pthread link with -threads" >&5
9330 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9336 LIBS="-threads $LIBS"
9338 if test "$cross_compiling" = yes; then
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 /* pthread test headers */
9343 #include <pthread.h>
9345 #define NULL (void*)0
9348 static void *task(p)
9351 return (void *) (p == NULL);
9356 /* pthread test function */
9359 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9360 /* This system (e.g. AIX) defaults detached; must override */
9361 pthread_attr_t attr;
9363 status = pthread_attr_init(&attr);
9364 if( status ) exit( status );
9366 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9367 if( status ) exit( status );
9371 #if HAVE_PTHREADS_D4
9372 #define ATTR pthread_attr_default
9377 /* make sure pthread_create() isn't just a stub */
9378 status = pthread_create(&t, ATTR, task, NULL);
9379 if( status ) exit( status );
9381 /* make sure pthread_detach() isn't just a stub */
9382 #if HAVE_PTHREADS_D4
9383 status = pthread_detach( &t );
9385 status = pthread_detach( t );
9388 #ifdef HAVE_LINUX_THREADS
9389 pthread_kill_other_threads_np();
9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9398 ol_cv_pthread_threads=yes
9400 echo "configure: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9403 ol_cv_pthread_threads=no
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9410 /* pthread test headers */
9411 #include <pthread.h>
9413 #define NULL (void*)0
9416 static void *task(p)
9419 return (void *) (p == NULL);
9423 int main(argc, argv)
9428 /* pthread test function */
9431 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9432 /* This system (e.g. AIX) defaults detached; must override */
9433 pthread_attr_t attr;
9435 status = pthread_attr_init(&attr);
9436 if( status ) exit( status );
9438 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9439 if( status ) exit( status );
9443 #if HAVE_PTHREADS_D4
9444 #define ATTR pthread_attr_default
9449 /* make sure pthread_create() isn't just a stub */
9450 status = pthread_create(&t, ATTR, task, NULL);
9451 if( status ) exit( status );
9453 /* make sure pthread_detach() isn't just a stub */
9454 #if HAVE_PTHREADS_D4
9455 status = pthread_detach( &t );
9457 status = pthread_detach( t );
9460 #ifdef HAVE_LINUX_THREADS
9461 pthread_kill_other_threads_np();
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9471 ol_cv_pthread_threads=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9476 ol_cv_pthread_threads=no
9487 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9489 if test $ol_cv_pthread_threads = yes ; then
9490 ol_link_pthreads="-threads"
9491 ol_link_threads=posix
9496 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9497 if test "$ol_link_threads" = no ; then
9498 # try -lpthreads -lmach -lexc -lc_r
9499 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9500 echo "configure:9501: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9501 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9507 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9509 if test "$cross_compiling" = yes; then
9510 cat > conftest.$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 /* pthread test headers */
9514 #include <pthread.h>
9516 #define NULL (void*)0
9519 static void *task(p)
9522 return (void *) (p == NULL);
9527 /* pthread test function */
9530 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9531 /* This system (e.g. AIX) defaults detached; must override */
9532 pthread_attr_t attr;
9534 status = pthread_attr_init(&attr);
9535 if( status ) exit( status );
9537 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9538 if( status ) exit( status );
9542 #if HAVE_PTHREADS_D4
9543 #define ATTR pthread_attr_default
9548 /* make sure pthread_create() isn't just a stub */
9549 status = pthread_create(&t, ATTR, task, NULL);
9550 if( status ) exit( status );
9552 /* make sure pthread_detach() isn't just a stub */
9553 #if HAVE_PTHREADS_D4
9554 status = pthread_detach( &t );
9556 status = pthread_detach( t );
9559 #ifdef HAVE_LINUX_THREADS
9560 pthread_kill_other_threads_np();
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9569 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9574 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9578 cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 /* pthread test headers */
9582 #include <pthread.h>
9584 #define NULL (void*)0
9587 static void *task(p)
9590 return (void *) (p == NULL);
9594 int main(argc, argv)
9599 /* pthread test function */
9602 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9603 /* This system (e.g. AIX) defaults detached; must override */
9604 pthread_attr_t attr;
9606 status = pthread_attr_init(&attr);
9607 if( status ) exit( status );
9609 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9610 if( status ) exit( status );
9614 #if HAVE_PTHREADS_D4
9615 #define ATTR pthread_attr_default
9620 /* make sure pthread_create() isn't just a stub */
9621 status = pthread_create(&t, ATTR, task, NULL);
9622 if( status ) exit( status );
9624 /* make sure pthread_detach() isn't just a stub */
9625 #if HAVE_PTHREADS_D4
9626 status = pthread_detach( &t );
9628 status = pthread_detach( t );
9631 #ifdef HAVE_LINUX_THREADS
9632 pthread_kill_other_threads_np();
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9642 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9658 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9660 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9661 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9662 ol_link_threads=posix
9666 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9667 if test "$ol_link_threads" = no ; then
9668 # try -lpthreads -lmach -lexc
9669 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9670 echo "configure:9671: checking for pthread link with -lpthreads -lmach -lexc" >&5
9671 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9677 LIBS="-lpthreads -lmach -lexc $LIBS"
9679 if test "$cross_compiling" = yes; then
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 /* pthread test headers */
9684 #include <pthread.h>
9686 #define NULL (void*)0
9689 static void *task(p)
9692 return (void *) (p == NULL);
9697 /* pthread test function */
9700 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9701 /* This system (e.g. AIX) defaults detached; must override */
9702 pthread_attr_t attr;
9704 status = pthread_attr_init(&attr);
9705 if( status ) exit( status );
9707 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9708 if( status ) exit( status );
9712 #if HAVE_PTHREADS_D4
9713 #define ATTR pthread_attr_default
9718 /* make sure pthread_create() isn't just a stub */
9719 status = pthread_create(&t, ATTR, task, NULL);
9720 if( status ) exit( status );
9722 /* make sure pthread_detach() isn't just a stub */
9723 #if HAVE_PTHREADS_D4
9724 status = pthread_detach( &t );
9726 status = pthread_detach( t );
9729 #ifdef HAVE_LINUX_THREADS
9730 pthread_kill_other_threads_np();
9737 if { (eval echo configure:9738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9739 ol_cv_pthread_lpthreads_lmach_lexc=yes
9741 echo "configure: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9744 ol_cv_pthread_lpthreads_lmach_lexc=no
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9751 /* pthread test headers */
9752 #include <pthread.h>
9754 #define NULL (void*)0
9757 static void *task(p)
9760 return (void *) (p == NULL);
9764 int main(argc, argv)
9769 /* pthread test function */
9772 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9773 /* This system (e.g. AIX) defaults detached; must override */
9774 pthread_attr_t attr;
9776 status = pthread_attr_init(&attr);
9777 if( status ) exit( status );
9779 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9780 if( status ) exit( status );
9784 #if HAVE_PTHREADS_D4
9785 #define ATTR pthread_attr_default
9790 /* make sure pthread_create() isn't just a stub */
9791 status = pthread_create(&t, ATTR, task, NULL);
9792 if( status ) exit( status );
9794 /* make sure pthread_detach() isn't just a stub */
9795 #if HAVE_PTHREADS_D4
9796 status = pthread_detach( &t );
9798 status = pthread_detach( t );
9801 #ifdef HAVE_LINUX_THREADS
9802 pthread_kill_other_threads_np();
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9812 ol_cv_pthread_lpthreads_lmach_lexc=yes
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9817 ol_cv_pthread_lpthreads_lmach_lexc=no
9828 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9830 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9831 ol_link_pthreads="-lpthreads -lmach -lexc"
9832 ol_link_threads=posix
9836 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9837 if test "$ol_link_threads" = no ; then
9838 # try -lpthreads -lexc
9839 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9840 echo "configure:9841: checking for pthread link with -lpthreads -lexc" >&5
9841 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9842 echo $ac_n "(cached) $ac_c" 1>&6
9847 LIBS="-lpthreads -lexc $LIBS"
9849 if test "$cross_compiling" = yes; then
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 /* pthread test headers */
9854 #include <pthread.h>
9856 #define NULL (void*)0
9859 static void *task(p)
9862 return (void *) (p == NULL);
9867 /* pthread test function */
9870 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9871 /* This system (e.g. AIX) defaults detached; must override */
9872 pthread_attr_t attr;
9874 status = pthread_attr_init(&attr);
9875 if( status ) exit( status );
9877 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9878 if( status ) exit( status );
9882 #if HAVE_PTHREADS_D4
9883 #define ATTR pthread_attr_default
9888 /* make sure pthread_create() isn't just a stub */
9889 status = pthread_create(&t, ATTR, task, NULL);
9890 if( status ) exit( status );
9892 /* make sure pthread_detach() isn't just a stub */
9893 #if HAVE_PTHREADS_D4
9894 status = pthread_detach( &t );
9896 status = pthread_detach( t );
9899 #ifdef HAVE_LINUX_THREADS
9900 pthread_kill_other_threads_np();
9907 if { (eval echo configure:9908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9909 ol_cv_pthread_lpthreads_lexc=yes
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9914 ol_cv_pthread_lpthreads_lexc=no
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* pthread test headers */
9922 #include <pthread.h>
9924 #define NULL (void*)0
9927 static void *task(p)
9930 return (void *) (p == NULL);
9934 int main(argc, argv)
9939 /* pthread test function */
9942 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9943 /* This system (e.g. AIX) defaults detached; must override */
9944 pthread_attr_t attr;
9946 status = pthread_attr_init(&attr);
9947 if( status ) exit( status );
9949 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9950 if( status ) exit( status );
9954 #if HAVE_PTHREADS_D4
9955 #define ATTR pthread_attr_default
9960 /* make sure pthread_create() isn't just a stub */
9961 status = pthread_create(&t, ATTR, task, NULL);
9962 if( status ) exit( status );
9964 /* make sure pthread_detach() isn't just a stub */
9965 #if HAVE_PTHREADS_D4
9966 status = pthread_detach( &t );
9968 status = pthread_detach( t );
9971 #ifdef HAVE_LINUX_THREADS
9972 pthread_kill_other_threads_np();
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9982 ol_cv_pthread_lpthreads_lexc=yes
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 ol_cv_pthread_lpthreads_lexc=no
9998 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10000 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10001 ol_link_pthreads="-lpthreads -lexc"
10002 ol_link_threads=posix
10007 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10008 if test "$ol_link_threads" = no ; then
10010 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10011 echo "configure:10012: checking for pthread link with -lpthreads" >&5
10012 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10018 LIBS="-lpthreads $LIBS"
10020 if test "$cross_compiling" = yes; then
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 /* pthread test headers */
10025 #include <pthread.h>
10027 #define NULL (void*)0
10030 static void *task(p)
10033 return (void *) (p == NULL);
10038 /* pthread test function */
10041 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10042 /* This system (e.g. AIX) defaults detached; must override */
10043 pthread_attr_t attr;
10045 status = pthread_attr_init(&attr);
10046 if( status ) exit( status );
10048 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10049 if( status ) exit( status );
10053 #if HAVE_PTHREADS_D4
10054 #define ATTR pthread_attr_default
10059 /* make sure pthread_create() isn't just a stub */
10060 status = pthread_create(&t, ATTR, task, NULL);
10061 if( status ) exit( status );
10063 /* make sure pthread_detach() isn't just a stub */
10064 #if HAVE_PTHREADS_D4
10065 status = pthread_detach( &t );
10067 status = pthread_detach( t );
10070 #ifdef HAVE_LINUX_THREADS
10071 pthread_kill_other_threads_np();
10078 if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10080 ol_cv_pthread_lib_lpthreads=yes
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 ol_cv_pthread_lib_lpthreads=no
10089 cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 /* pthread test headers */
10093 #include <pthread.h>
10095 #define NULL (void*)0
10098 static void *task(p)
10101 return (void *) (p == NULL);
10105 int main(argc, argv)
10110 /* pthread test function */
10113 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10114 /* This system (e.g. AIX) defaults detached; must override */
10115 pthread_attr_t attr;
10117 status = pthread_attr_init(&attr);
10118 if( status ) exit( status );
10120 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10121 if( status ) exit( status );
10125 #if HAVE_PTHREADS_D4
10126 #define ATTR pthread_attr_default
10131 /* make sure pthread_create() isn't just a stub */
10132 status = pthread_create(&t, ATTR, task, NULL);
10133 if( status ) exit( status );
10135 /* make sure pthread_detach() isn't just a stub */
10136 #if HAVE_PTHREADS_D4
10137 status = pthread_detach( &t );
10139 status = pthread_detach( t );
10142 #ifdef HAVE_LINUX_THREADS
10143 pthread_kill_other_threads_np();
10151 if { (eval echo configure:10152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10153 ol_cv_pthread_lib_lpthreads=yes
10155 echo "configure: failed program was:" >&5
10156 cat conftest.$ac_ext >&5
10158 ol_cv_pthread_lib_lpthreads=no
10169 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10171 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10172 ol_link_pthreads="-lpthreads"
10173 ol_link_threads=posix
10178 if test $ol_link_threads != no ; then
10179 cat >> confdefs.h <<\EOF
10180 #define HAVE_PTHREADS 1
10184 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10186 save_CPPFLAGS="$CPPFLAGS"
10188 LIBS="$LTHREAD_LIBS $LIBS"
10190 for ac_func in sched_yield pthread_yield
10192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10193 echo "configure:10194: checking for $ac_func" >&5
10194 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 /* System header to define __stub macros and hopefully few prototypes,
10201 which can conflict with char $ac_func(); below. */
10202 #include <assert.h>
10203 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10211 /* The GNU C library defines this for functions which it implements
10212 to always fail with ENOSYS. Some functions are actually named
10213 something starting with __ and the normal name is an alias. */
10214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10222 if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10224 eval "ac_cv_func_$ac_func=yes"
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10229 eval "ac_cv_func_$ac_func=no"
10234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10235 echo "$ac_t""yes" 1>&6
10236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10237 cat >> confdefs.h <<EOF
10238 #define $ac_tr_func 1
10242 echo "$ac_t""no" 1>&6
10247 if test $ac_cv_func_sched_yield = no -a \
10248 $ac_cv_func_pthread_yield = no ; then
10249 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10250 echo "configure:10251: checking for sched_yield in -lrt" >&5
10251 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10255 ac_save_LIBS="$LIBS"
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10263 char sched_yield();
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10271 eval "ac_cv_lib_$ac_lib_var=yes"
10273 echo "configure: failed program was:" >&5
10274 cat conftest.$ac_ext >&5
10276 eval "ac_cv_lib_$ac_lib_var=no"
10279 LIBS="$ac_save_LIBS"
10282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_SCHED_YIELD 1
10289 ac_cv_func_sched_yield=yes
10291 echo "$ac_t""no" 1>&6
10292 ac_cv_func_sched_yield=no
10296 if test $ac_cv_func_sched_yield = no -a \
10297 $ac_cv_func_pthread_yield = no ; then
10298 for ac_func in thr_yield
10300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10301 echo "configure:10302: checking for $ac_func" >&5
10302 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 /* System header to define __stub macros and hopefully few prototypes,
10309 which can conflict with char $ac_func(); below. */
10310 #include <assert.h>
10311 /* Override any gcc2 internal prototype to avoid an error. */
10312 /* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10319 /* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10332 eval "ac_cv_func_$ac_func=yes"
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 eval "ac_cv_func_$ac_func=no"
10342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10343 echo "$ac_t""yes" 1>&6
10344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10345 cat >> confdefs.h <<EOF
10346 #define $ac_tr_func 1
10350 echo "$ac_t""no" 1>&6
10355 if test $ac_cv_func_sched_yield = no -a \
10356 $ac_cv_func_pthread_yield = no -a \
10357 "$ac_cv_func_thr_yield" = no ; then
10358 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10361 for ac_func in pthread_kill
10363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10364 echo "configure:10365: checking for $ac_func" >&5
10365 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func(); below. */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error. */
10375 /* We use char because int might match the return type of a gcc2
10376 builtin and then its argument prototype would still apply. */
10382 /* The GNU C library defines this for functions which it implements
10383 to always fail with ENOSYS. Some functions are actually named
10384 something starting with __ and the normal name is an alias. */
10385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10395 eval "ac_cv_func_$ac_func=yes"
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 eval "ac_cv_func_$ac_func=no"
10405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10406 echo "$ac_t""yes" 1>&6
10407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10408 cat >> confdefs.h <<EOF
10409 #define $ac_tr_func 1
10413 echo "$ac_t""no" 1>&6
10418 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10419 echo "configure:10420: checking for pthread_detach with <pthread.h>" >&5
10420 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10424 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10428 #include <pthread.h>
10430 #define NULL (void*)0
10434 pthread_detach(NULL);
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10439 ol_cv_func_pthread_detach=yes
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10444 ol_cv_func_pthread_detach=no
10450 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10452 if test $ol_cv_func_pthread_detach = no ; then
10453 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10456 cat >> confdefs.h <<\EOF
10457 #define HAVE_PTHREAD_DETACH 1
10462 pthread_setconcurrency \
10463 pthread_getconcurrency \
10464 thr_setconcurrency \
10465 thr_getconcurrency \
10468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10469 echo "configure:10470: checking for $ac_func" >&5
10470 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10476 /* System header to define __stub macros and hopefully few prototypes,
10477 which can conflict with char $ac_func(); below. */
10478 #include <assert.h>
10479 /* Override any gcc2 internal prototype to avoid an error. */
10480 /* We use char because int might match the return type of a gcc2
10481 builtin and then its argument prototype would still apply. */
10487 /* The GNU C library defines this for functions which it implements
10488 to always fail with ENOSYS. Some functions are actually named
10489 something starting with __ and the normal name is an alias. */
10490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10498 if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500 eval "ac_cv_func_$ac_func=yes"
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 eval "ac_cv_func_$ac_func=no"
10510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10511 echo "$ac_t""yes" 1>&6
10512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10513 cat >> confdefs.h <<EOF
10514 #define $ac_tr_func 1
10518 echo "$ac_t""no" 1>&6
10524 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10525 echo "configure:10526: checking for pthread_kill_other_threads_np" >&5
10526 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 /* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char pthread_kill_other_threads_np(); below. */
10534 #include <assert.h>
10535 /* Override any gcc2 internal prototype to avoid an error. */
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10538 char pthread_kill_other_threads_np();
10543 /* The GNU C library defines this for functions which it implements
10544 to always fail with ENOSYS. Some functions are actually named
10545 something starting with __ and the normal name is an alias. */
10546 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10549 f = pthread_kill_other_threads_np;
10554 if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10556 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10566 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10567 echo "$ac_t""yes" 1>&6
10570 echo "$ac_t""no" 1>&6
10573 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10574 echo "configure:10575: checking for LinuxThreads implementation" >&5
10575 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10576 echo $ac_n "(cached) $ac_c" 1>&6
10578 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10581 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10586 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10587 echo "configure:10588: checking for LinuxThreads consistency" >&5
10588 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10592 if test $ol_cv_header_linux_threads = yes -a \
10593 $ol_cv_sys_linux_threads = yes; then
10594 ol_cv_linux_threads=yes
10595 elif test $ol_cv_header_linux_threads = no -a \
10596 $ol_cv_sys_linux_threads = no; then
10597 ol_cv_linux_threads=no
10599 ol_cv_linux_threads=error
10604 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10607 if test $ol_cv_linux_threads = error; then
10608 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10611 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10612 echo "configure:10613: checking if pthread_create() works" >&5
10613 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10617 if test "$cross_compiling" = yes; then
10618 ol_cv_pthread_create_works=yes
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* pthread test headers */
10624 #include <pthread.h>
10626 #define NULL (void*)0
10629 static void *task(p)
10632 return (void *) (p == NULL);
10636 int main(argc, argv)
10641 /* pthread test function */
10644 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10645 /* This system (e.g. AIX) defaults detached; must override */
10646 pthread_attr_t attr;
10648 status = pthread_attr_init(&attr);
10649 if( status ) exit( status );
10651 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10652 if( status ) exit( status );
10656 #if HAVE_PTHREADS_D4
10657 #define ATTR pthread_attr_default
10662 /* make sure pthread_create() isn't just a stub */
10663 status = pthread_create(&t, ATTR, task, NULL);
10664 if( status ) exit( status );
10666 /* make sure pthread_detach() isn't just a stub */
10667 #if HAVE_PTHREADS_D4
10668 status = pthread_detach( &t );
10670 status = pthread_detach( t );
10673 #ifdef HAVE_LINUX_THREADS
10674 pthread_kill_other_threads_np();
10682 if { (eval echo configure:10683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10684 ol_cv_pthread_create_works=yes
10686 echo "configure: failed program was:" >&5
10687 cat conftest.$ac_ext >&5
10689 ol_cv_pthread_create_works=no
10696 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10698 if test $ol_cv_pthread_create_works = no ; then
10699 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10702 if test $ol_with_yielding_select = auto ; then
10703 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10704 echo "configure:10705: checking if select yields when using pthreads" >&5
10705 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10709 if test "$cross_compiling" = yes; then
10710 ol_cv_pthread_select_yields=cross
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10716 #include <sys/types.h>
10717 #include <sys/time.h>
10718 #include <unistd.h>
10719 #include <pthread.h>
10721 #define NULL (void*) 0
10724 static int fildes[2];
10726 static void *task(p)
10738 FD_SET(fildes[0], &rfds);
10740 /* we're not interested in any fds */
10741 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10748 exit(0); /* if we exit here, the select blocked the whole process */
10751 int main(argc, argv)
10757 /* create a pipe to select */
10758 if(pipe(&fildes[0])) {
10763 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10764 (void) pthread_setconcurrency(2);
10766 #ifdef HAVE_THR_SETCONCURRENCY
10767 /* Set Solaris LWP concurrency to 2 */
10768 thr_setconcurrency(2);
10772 #if HAVE_PTHREADS_D4
10773 pthread_create(&t, pthread_attr_default, task, NULL);
10775 pthread_create(&t, NULL, task, NULL);
10778 #if HAVE_SCHED_YIELD
10779 sched_yield(); /* make sure task runs first */
10781 #ifdef HAVE_PTHREAD_YIELD
10782 pthread_yield(); /* make sure task runs first */
10789 if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10791 ol_cv_pthread_select_yields=no
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10796 ol_cv_pthread_select_yields=yes
10803 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10805 if test $ol_cv_pthread_select_yields = cross ; then
10806 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10809 if test $ol_cv_pthread_select_yields = yes ; then
10810 ol_with_yielding_select=yes
10814 CPPFLAGS="$save_CPPFLAGS"
10817 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10821 if test $ol_with_threads = posix ; then
10822 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10826 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10827 -o $ol_with_threads = mach ; then
10829 for ac_hdr in mach/cthreads.h
10831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10833 echo "configure:10834: checking for $ac_hdr" >&5
10834 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10837 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure"
10839 #include "confdefs.h"
10842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10843 { (eval echo configure:10844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10845 if test -z "$ac_err"; then
10847 eval "ac_cv_header_$ac_safe=yes"
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10853 eval "ac_cv_header_$ac_safe=no"
10857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10860 cat >> confdefs.h <<EOF
10861 #define $ac_tr_hdr 1
10865 echo "$ac_t""no" 1>&6
10869 if test $ac_cv_header_mach_cthreads_h = yes ; then
10870 ol_with_threads=found
10872 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10873 echo "configure:10874: checking for cthread_fork" >&5
10874 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 /* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char cthread_fork(); below. */
10882 #include <assert.h>
10883 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char cthread_fork();
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10904 eval "ac_cv_func_cthread_fork=yes"
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10909 eval "ac_cv_func_cthread_fork=no"
10914 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10916 ol_link_threads=yes
10918 echo "$ac_t""no" 1>&6
10922 if test $ol_link_threads = no ; then
10923 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10924 echo "configure:10925: checking for cthread_fork with -all_load" >&5
10925 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10930 LIBS="-all_load $LIBS"
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 #include <mach/cthreads.h>
10937 cthread_fork((void *)0, (void *)0);
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10943 ol_cv_cthread_all_load=yes
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10948 ol_cv_cthread_all_load=no
10955 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10957 if test $ol_cv_cthread_all_load = yes ; then
10958 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10959 ol_link_threads=mach
10963 if test $ol_link_threads != no ; then
10964 : check for cthread specific functionality here
10965 cat >> confdefs.h <<\EOF
10966 #define HAVE_MACH_CTHREADS 1
10970 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10974 if test $ol_with_threads = mach ; then
10975 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10979 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10980 -o $ol_with_threads = pth ; then
10982 for ac_hdr in pth.h
10984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10986 echo "configure:10987: checking for $ac_hdr" >&5
10987 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10996 { (eval echo configure:10997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10998 if test -z "$ac_err"; then
11000 eval "ac_cv_header_$ac_safe=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_header_$ac_safe=no"
11010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11013 cat >> confdefs.h <<EOF
11014 #define $ac_tr_hdr 1
11018 echo "$ac_t""no" 1>&6
11023 if test $ac_cv_header_pth_h = yes ; then
11024 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11025 echo "configure:11026: checking for pth_version in -lpth" >&5
11026 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11027 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11030 ac_save_LIBS="$LIBS"
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 /* We use char because int might match the return type of a gcc2
11037 builtin and then its argument prototype would still apply. */
11038 char pth_version();
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11046 eval "ac_cv_lib_$ac_lib_var=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_lib_$ac_lib_var=no"
11054 LIBS="$ac_save_LIBS"
11057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11058 echo "$ac_t""yes" 1>&6
11061 echo "$ac_t""no" 1>&6
11066 if test $have_pth = yes ; then
11067 cat >> confdefs.h <<\EOF
11068 #define HAVE_GNU_PTH 1
11071 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11072 ol_link_threads=pth
11074 if test $ol_with_yielding_select = auto ; then
11075 ol_with_yielding_select=yes
11081 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11082 -o $ol_with_threads = lwp ; then
11084 for ac_hdr in thread.h synch.h
11086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11088 echo "configure:11089: checking for $ac_hdr" >&5
11089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11098 { (eval echo configure:11099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11100 if test -z "$ac_err"; then
11102 eval "ac_cv_header_$ac_safe=yes"
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11108 eval "ac_cv_header_$ac_safe=no"
11112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11113 echo "$ac_t""yes" 1>&6
11114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11115 cat >> confdefs.h <<EOF
11116 #define $ac_tr_hdr 1
11120 echo "$ac_t""no" 1>&6
11124 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11125 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11126 echo "configure:11127: checking for thr_create in -lthread" >&5
11127 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11131 ac_save_LIBS="$LIBS"
11132 LIBS="-lthread $LIBS"
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11147 eval "ac_cv_lib_$ac_lib_var=yes"
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11152 eval "ac_cv_lib_$ac_lib_var=no"
11155 LIBS="$ac_save_LIBS"
11158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11159 echo "$ac_t""yes" 1>&6
11162 echo "$ac_t""no" 1>&6
11167 if test $have_thr = yes ; then
11168 cat >> confdefs.h <<\EOF
11172 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11173 ol_link_threads=thr
11175 if test $ol_with_yielding_select = auto ; then
11176 ol_with_yielding_select=yes
11180 thr_setconcurrency \
11181 thr_getconcurrency \
11184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11185 echo "configure:11186: checking for $ac_func" >&5
11186 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 /* System header to define __stub macros and hopefully few prototypes,
11193 which can conflict with char $ac_func(); below. */
11194 #include <assert.h>
11195 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11203 /* The GNU C library defines this for functions which it implements
11204 to always fail with ENOSYS. Some functions are actually named
11205 something starting with __ and the normal name is an alias. */
11206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11216 eval "ac_cv_func_$ac_func=yes"
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11221 eval "ac_cv_func_$ac_func=no"
11226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11227 echo "$ac_t""yes" 1>&6
11228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11229 cat >> confdefs.h <<EOF
11230 #define $ac_tr_func 1
11234 echo "$ac_t""no" 1>&6
11241 for ac_hdr in lwp/lwp.h
11243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11245 echo "configure:11246: checking for $ac_hdr" >&5
11246 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11255 { (eval echo configure:11256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11257 if test -z "$ac_err"; then
11259 eval "ac_cv_header_$ac_safe=yes"
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 eval "ac_cv_header_$ac_safe=no"
11269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
11271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11272 cat >> confdefs.h <<EOF
11273 #define $ac_tr_hdr 1
11277 echo "$ac_t""no" 1>&6
11281 if test $ac_cv_header_lwp_lwp_h = yes ; then
11282 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11283 echo "configure:11284: checking for lwp_create in -llwp" >&5
11284 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11285 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11286 echo $ac_n "(cached) $ac_c" 1>&6
11288 ac_save_LIBS="$LIBS"
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11293 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */
11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11304 eval "ac_cv_lib_$ac_lib_var=yes"
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 eval "ac_cv_lib_$ac_lib_var=no"
11312 LIBS="$ac_save_LIBS"
11315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11319 echo "$ac_t""no" 1>&6
11324 if test $have_lwp = yes ; then
11325 cat >> confdefs.h <<\EOF
11329 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11330 ol_link_threads=lwp
11332 if test $ol_with_yielding_select = auto ; then
11333 ol_with_yielding_select=no
11339 if test $ol_with_yielding_select = yes ; then
11340 cat >> confdefs.h <<\EOF
11341 #define HAVE_YIELDING_SELECT 1
11346 if test $ol_with_threads = manual ; then
11347 ol_link_threads=yes
11349 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11351 for ac_hdr in pthread.h sched.h
11353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11355 echo "configure:11356: checking for $ac_hdr" >&5
11356 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11359 cat > conftest.$ac_ext <<EOF
11360 #line 11361 "configure"
11361 #include "confdefs.h"
11364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11365 { (eval echo configure:11366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11367 if test -z "$ac_err"; then
11369 eval "ac_cv_header_$ac_safe=yes"
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11375 eval "ac_cv_header_$ac_safe=no"
11379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11382 cat >> confdefs.h <<EOF
11383 #define $ac_tr_hdr 1
11387 echo "$ac_t""no" 1>&6
11391 for ac_func in sched_yield pthread_yield
11393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11394 echo "configure:11395: checking for $ac_func" >&5
11395 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 /* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char $ac_func(); below. */
11403 #include <assert.h>
11404 /* Override any gcc2 internal prototype to avoid an error. */
11405 /* We use char because int might match the return type of a gcc2
11406 builtin and then its argument prototype would still apply. */
11412 /* The GNU C library defines this for functions which it implements
11413 to always fail with ENOSYS. Some functions are actually named
11414 something starting with __ and the normal name is an alias. */
11415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11425 eval "ac_cv_func_$ac_func=yes"
11427 echo "configure: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11430 eval "ac_cv_func_$ac_func=no"
11435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11436 echo "$ac_t""yes" 1>&6
11437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11438 cat >> confdefs.h <<EOF
11439 #define $ac_tr_func 1
11443 echo "$ac_t""no" 1>&6
11448 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11449 echo "configure:11450: checking for LinuxThreads pthread.h" >&5
11450 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include <pthread.h>
11458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11459 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11461 ol_cv_header_linux_threads=yes
11464 ol_cv_header_linux_threads=no
11471 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11472 if test $ol_cv_header_linux_threads = yes; then
11473 cat >> confdefs.h <<\EOF
11474 #define HAVE_LINUX_THREADS 1
11480 for ac_hdr in mach/cthreads.h
11482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11484 echo "configure:11485: checking for $ac_hdr" >&5
11485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11486 echo $ac_n "(cached) $ac_c" 1>&6
11488 cat > conftest.$ac_ext <<EOF
11489 #line 11490 "configure"
11490 #include "confdefs.h"
11493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11494 { (eval echo configure:11495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11496 if test -z "$ac_err"; then
11498 eval "ac_cv_header_$ac_safe=yes"
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11504 eval "ac_cv_header_$ac_safe=no"
11508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11509 echo "$ac_t""yes" 1>&6
11510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11511 cat >> confdefs.h <<EOF
11512 #define $ac_tr_hdr 1
11516 echo "$ac_t""no" 1>&6
11520 for ac_hdr in lwp/lwp.h
11522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11524 echo "configure:11525: checking for $ac_hdr" >&5
11525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11526 echo $ac_n "(cached) $ac_c" 1>&6
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11534 { (eval echo configure:11535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11536 if test -z "$ac_err"; then
11538 eval "ac_cv_header_$ac_safe=yes"
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11544 eval "ac_cv_header_$ac_safe=no"
11548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11549 echo "$ac_t""yes" 1>&6
11550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11551 cat >> confdefs.h <<EOF
11552 #define $ac_tr_hdr 1
11556 echo "$ac_t""no" 1>&6
11560 for ac_hdr in thread.h synch.h
11562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11564 echo "configure:11565: checking for $ac_hdr" >&5
11565 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11568 cat > conftest.$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11574 { (eval echo configure:11575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11576 if test -z "$ac_err"; then
11578 eval "ac_cv_header_$ac_safe=yes"
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11584 eval "ac_cv_header_$ac_safe=no"
11588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11589 echo "$ac_t""yes" 1>&6
11590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11591 cat >> confdefs.h <<EOF
11592 #define $ac_tr_hdr 1
11596 echo "$ac_t""no" 1>&6
11602 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11603 cat >> confdefs.h <<\EOF
11604 #define REENTRANT 1
11607 cat >> confdefs.h <<\EOF
11608 #define _REENTRANT 1
11611 cat >> confdefs.h <<\EOF
11612 #define THREAD_SAFE 1
11615 cat >> confdefs.h <<\EOF
11616 #define _THREAD_SAFE 1
11619 cat >> confdefs.h <<\EOF
11620 #define THREADSAFE 1
11623 cat >> confdefs.h <<\EOF
11624 #define _THREADSAFE 1
11627 cat >> confdefs.h <<\EOF
11628 #define _SGI_MP_SOURCE 1
11632 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11633 echo "configure:11634: checking for thread specific errno" >&5
11634 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11646 if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11648 ol_cv_errno_thread_specific=yes
11650 echo "configure: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11653 ol_cv_errno_thread_specific=no
11659 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11661 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11662 echo "configure:11663: checking for thread specific h_errno" >&5
11663 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11664 echo $ac_n "(cached) $ac_c" 1>&6
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11677 ol_cv_h_errno_thread_specific=yes
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11682 ol_cv_h_errno_thread_specific=no
11688 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11690 if test $ol_cv_errno_thread_specific != yes \
11691 -o $ol_cv_h_errno_thread_specific != yes ; then
11692 LIBS="$LTHREAD_LIBS $LIBS"
11698 if test $ol_link_threads = no ; then
11699 if test $ol_with_threads = yes ; then
11700 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11703 if test $ol_with_threads = auto ; then
11704 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11708 cat >> confdefs.h <<\EOF
11709 #define NO_THREADS 1
11715 if test $ol_link_threads != no ; then
11716 cat >> confdefs.h <<\EOF
11717 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11724 if test $ol_with_ldbm_api = auto \
11725 -o $ol_with_ldbm_api = berkeley \
11726 -o $ol_with_ldbm_api = bcompat ; then
11728 if test $ol_with_ldbm_api = bcompat; then \
11729 ol_cv_berkeley_db=no
11730 for ac_hdr in db_185.h db.h
11732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11734 echo "configure:11735: checking for $ac_hdr" >&5
11735 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11736 echo $ac_n "(cached) $ac_c" 1>&6
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11744 { (eval echo configure:11745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11746 if test -z "$ac_err"; then
11748 eval "ac_cv_header_$ac_safe=yes"
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11754 eval "ac_cv_header_$ac_safe=no"
11758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11759 echo "$ac_t""yes" 1>&6
11760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11761 cat >> confdefs.h <<EOF
11762 #define $ac_tr_hdr 1
11766 echo "$ac_t""no" 1>&6
11770 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11771 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11772 echo "configure:11773: checking if Berkeley DB header compatibility" >&5
11773 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11782 # include <db_185.h>
11787 /* this check could be improved */
11788 #ifndef DB_VERSION_MAJOR
11789 # define DB_VERSION_MAJOR 1
11792 #if DB_VERSION_MAJOR == 1
11797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11798 egrep "__db_version_1" >/dev/null 2>&1; then
11800 ol_cv_header_db1=yes
11803 ol_cv_header_db1=no
11809 echo "$ac_t""$ol_cv_header_db1" 1>&6
11811 if test ol_cv_header_db1=yes ; then
11813 if test $ol_cv_lib_db = no ; then
11814 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11815 echo "configure:11816: checking for Berkeley DB link (default)" >&5
11816 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11817 echo $ac_n "(cached) $ac_c" 1>&6
11822 LIBS="$ol_DB_LIB $LIBS"
11824 cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure"
11826 #include "confdefs.h"
11828 #ifdef HAVE_DB_185_H
11829 # include <db_185.h>
11834 #ifndef DB_VERSION_MAJOR
11835 # define DB_VERSION_MAJOR 1
11839 #define NULL ((void*)0)
11844 #if DB_VERSION_MAJOR > 2
11845 db_env_create( NULL, 0 );
11846 #elif DB_VERSION_MAJOR > 1
11847 db_appexit( NULL );
11849 (void) dbopen( NULL, 0, 0, 0, NULL);
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11869 echo "$ac_t""$ol_cv_db_none" 1>&6
11871 if test $ol_cv_db_none = yes ; then
11876 if test $ol_cv_lib_db = no ; then
11877 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11878 echo "configure:11879: checking for Berkeley DB link (-ldb)" >&5
11879 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11880 echo $ac_n "(cached) $ac_c" 1>&6
11885 LIBS="$ol_DB_LIB $LIBS"
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11891 #ifdef HAVE_DB_185_H
11892 # include <db_185.h>
11897 #ifndef DB_VERSION_MAJOR
11898 # define DB_VERSION_MAJOR 1
11902 #define NULL ((void*)0)
11907 #if DB_VERSION_MAJOR > 2
11908 db_env_create( NULL, 0 );
11909 #elif DB_VERSION_MAJOR > 1
11910 db_appexit( NULL );
11912 (void) dbopen( NULL, 0, 0, 0, NULL);
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11921 echo "configure: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11932 echo "$ac_t""$ol_cv_db_db" 1>&6
11934 if test $ol_cv_db_db = yes ; then
11939 if test $ol_cv_lib_db = no ; then
11940 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11941 echo "configure:11942: checking for Berkeley DB link (-ldb3)" >&5
11942 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11948 LIBS="$ol_DB_LIB $LIBS"
11950 cat > conftest.$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11954 #ifdef HAVE_DB_185_H
11955 # include <db_185.h>
11960 #ifndef DB_VERSION_MAJOR
11961 # define DB_VERSION_MAJOR 1
11965 #define NULL ((void*)0)
11970 #if DB_VERSION_MAJOR > 2
11971 db_env_create( NULL, 0 );
11972 #elif DB_VERSION_MAJOR > 1
11973 db_appexit( NULL );
11975 (void) dbopen( NULL, 0, 0, 0, NULL);
11980 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11995 echo "$ac_t""$ol_cv_db_db3" 1>&6
11997 if test $ol_cv_db_db3 = yes ; then
12002 if test $ol_cv_lib_db = no ; then
12003 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12004 echo "configure:12005: checking for Berkeley DB link (-ldb2)" >&5
12005 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12006 echo $ac_n "(cached) $ac_c" 1>&6
12011 LIBS="$ol_DB_LIB $LIBS"
12013 cat > conftest.$ac_ext <<EOF
12014 #line 12015 "configure"
12015 #include "confdefs.h"
12017 #ifdef HAVE_DB_185_H
12018 # include <db_185.h>
12023 #ifndef DB_VERSION_MAJOR
12024 # define DB_VERSION_MAJOR 1
12028 #define NULL ((void*)0)
12033 #if DB_VERSION_MAJOR > 2
12034 db_env_create( NULL, 0 );
12035 #elif DB_VERSION_MAJOR > 1
12036 db_appexit( NULL );
12038 (void) dbopen( NULL, 0, 0, 0, NULL);
12043 if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12058 echo "$ac_t""$ol_cv_db_db2" 1>&6
12060 if test $ol_cv_db_db2 = yes ; then
12065 if test $ol_cv_lib_db = no ; then
12066 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12067 echo "configure:12068: checking for Berkeley DB link (-ldb1)" >&5
12068 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12069 echo $ac_n "(cached) $ac_c" 1>&6
12074 LIBS="$ol_DB_LIB $LIBS"
12076 cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12080 #ifdef HAVE_DB_185_H
12081 # include <db_185.h>
12086 #ifndef DB_VERSION_MAJOR
12087 # define DB_VERSION_MAJOR 1
12091 #define NULL ((void*)0)
12096 #if DB_VERSION_MAJOR > 2
12097 db_env_create( NULL, 0 );
12098 #elif DB_VERSION_MAJOR > 1
12099 db_appexit( NULL );
12101 (void) dbopen( NULL, 0, 0, 0, NULL);
12106 if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12121 echo "$ac_t""$ol_cv_db_db1" 1>&6
12123 if test $ol_cv_db_db1 = yes ; then
12129 if test "$ol_cv_lib_db" != no ; then
12130 ol_cv_berkeley_db=yes
12136 ol_cv_berkeley_db=no
12139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12141 echo "configure:12142: checking for $ac_hdr" >&5
12142 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12151 { (eval echo configure:12152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12153 if test -z "$ac_err"; then
12155 eval "ac_cv_header_$ac_safe=yes"
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12161 eval "ac_cv_header_$ac_safe=no"
12165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12166 echo "$ac_t""yes" 1>&6
12167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12168 cat >> confdefs.h <<EOF
12169 #define $ac_tr_hdr 1
12173 echo "$ac_t""no" 1>&6
12177 if test $ac_cv_header_db_h = yes; then
12179 if test $ol_cv_lib_db = no ; then
12180 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12181 echo "configure:12182: checking for Berkeley DB link (default)" >&5
12182 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12183 echo $ac_n "(cached) $ac_c" 1>&6
12188 LIBS="$ol_DB_LIB $LIBS"
12190 cat > conftest.$ac_ext <<EOF
12191 #line 12192 "configure"
12192 #include "confdefs.h"
12194 #ifdef HAVE_DB_185_H
12195 # include <db_185.h>
12200 #ifndef DB_VERSION_MAJOR
12201 # define DB_VERSION_MAJOR 1
12205 #define NULL ((void*)0)
12210 #if DB_VERSION_MAJOR > 2
12211 db_env_create( NULL, 0 );
12212 #elif DB_VERSION_MAJOR > 1
12213 db_appexit( NULL );
12215 (void) dbopen( NULL, 0, 0, 0, NULL);
12220 if { (eval echo configure:12221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224 echo "configure: failed program was:" >&5
12225 cat conftest.$ac_ext >&5
12235 echo "$ac_t""$ol_cv_db_none" 1>&6
12237 if test $ol_cv_db_none = yes ; then
12242 if test $ol_cv_lib_db = no ; then
12243 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12244 echo "configure:12245: checking for Berkeley DB link (-ldb)" >&5
12245 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12246 echo $ac_n "(cached) $ac_c" 1>&6
12251 LIBS="$ol_DB_LIB $LIBS"
12253 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure"
12255 #include "confdefs.h"
12257 #ifdef HAVE_DB_185_H
12258 # include <db_185.h>
12263 #ifndef DB_VERSION_MAJOR
12264 # define DB_VERSION_MAJOR 1
12268 #define NULL ((void*)0)
12273 #if DB_VERSION_MAJOR > 2
12274 db_env_create( NULL, 0 );
12275 #elif DB_VERSION_MAJOR > 1
12276 db_appexit( NULL );
12278 (void) dbopen( NULL, 0, 0, 0, NULL);
12283 if { (eval echo configure:12284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12287 echo "configure: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12298 echo "$ac_t""$ol_cv_db_db" 1>&6
12300 if test $ol_cv_db_db = yes ; then
12305 if test $ol_cv_lib_db = no ; then
12306 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12307 echo "configure:12308: checking for Berkeley DB link (-ldb3)" >&5
12308 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12314 LIBS="$ol_DB_LIB $LIBS"
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12320 #ifdef HAVE_DB_185_H
12321 # include <db_185.h>
12326 #ifndef DB_VERSION_MAJOR
12327 # define DB_VERSION_MAJOR 1
12331 #define NULL ((void*)0)
12336 #if DB_VERSION_MAJOR > 2
12337 db_env_create( NULL, 0 );
12338 #elif DB_VERSION_MAJOR > 1
12339 db_appexit( NULL );
12341 (void) dbopen( NULL, 0, 0, 0, NULL);
12346 if { (eval echo configure:12347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12350 echo "configure: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12361 echo "$ac_t""$ol_cv_db_db3" 1>&6
12363 if test $ol_cv_db_db3 = yes ; then
12368 if test $ol_cv_lib_db = no ; then
12369 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12370 echo "configure:12371: checking for Berkeley DB link (-ldb2)" >&5
12371 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12377 LIBS="$ol_DB_LIB $LIBS"
12379 cat > conftest.$ac_ext <<EOF
12380 #line 12381 "configure"
12381 #include "confdefs.h"
12383 #ifdef HAVE_DB_185_H
12384 # include <db_185.h>
12389 #ifndef DB_VERSION_MAJOR
12390 # define DB_VERSION_MAJOR 1
12394 #define NULL ((void*)0)
12399 #if DB_VERSION_MAJOR > 2
12400 db_env_create( NULL, 0 );
12401 #elif DB_VERSION_MAJOR > 1
12402 db_appexit( NULL );
12404 (void) dbopen( NULL, 0, 0, 0, NULL);
12409 if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12413 echo "configure: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12424 echo "$ac_t""$ol_cv_db_db2" 1>&6
12426 if test $ol_cv_db_db2 = yes ; then
12431 if test $ol_cv_lib_db = no ; then
12432 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12433 echo "configure:12434: checking for Berkeley DB link (-ldb1)" >&5
12434 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12435 echo $ac_n "(cached) $ac_c" 1>&6
12440 LIBS="$ol_DB_LIB $LIBS"
12442 cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12446 #ifdef HAVE_DB_185_H
12447 # include <db_185.h>
12452 #ifndef DB_VERSION_MAJOR
12453 # define DB_VERSION_MAJOR 1
12457 #define NULL ((void*)0)
12462 #if DB_VERSION_MAJOR > 2
12463 db_env_create( NULL, 0 );
12464 #elif DB_VERSION_MAJOR > 1
12465 db_appexit( NULL );
12467 (void) dbopen( NULL, 0, 0, 0, NULL);
12472 if { (eval echo configure:12473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12476 echo "configure: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12487 echo "$ac_t""$ol_cv_db_db1" 1>&6
12489 if test $ol_cv_db_db1 = yes ; then
12495 if test "$ol_cv_lib_db" != no ; then
12496 ol_cv_berkeley_db=yes
12497 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12498 echo "configure:12499: checking for Berkeley DB thread support" >&5
12499 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12500 echo $ac_n "(cached) $ac_c" 1>&6
12504 if test $ol_cv_lib_db != yes ; then
12505 LIBS="$ol_cv_lib_db"
12508 if test "$cross_compiling" = yes; then
12509 ol_cv_berkeley_db_thread=cross
12511 cat > conftest.$ac_ext <<EOF
12512 #line 12513 "configure"
12513 #include "confdefs.h"
12515 #ifdef HAVE_DB_185_H
12521 #define NULL ((void *)0)
12526 u_int32_t flags = DB_CREATE | DB_THREAD;
12529 #if DB_VERSION_MAJOR > 2
12530 DB_ENV *env = NULL;
12532 rc = db_env_create( &env, 0 );
12535 rc = env->open( env, NULL, NULL, flags, 0 );
12540 memset( &env, '\0', sizeof(env) );
12542 rc = db_appinit( NULL, NULL, &env, flags );
12545 db_appexit( &env );
12552 if { (eval echo configure:12553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12554 ol_cv_berkeley_db_thread=yes
12556 echo "configure: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12559 ol_cv_berkeley_db_thread=no
12567 if test $ol_cv_berkeley_db_thread != no ; then
12568 cat >> confdefs.h <<\EOF
12569 #define HAVE_BERKELEY_DB_THREAD 1
12576 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12582 if test $ol_cv_berkeley_db != no ; then
12583 cat >> confdefs.h <<\EOF
12584 #define HAVE_BERKELEY_DB 1
12588 ol_link_ldbm=berkeley
12589 ol_with_ldbm_api=db
12591 if test $ol_with_ldbm_type = hash ; then
12592 cat >> confdefs.h <<\EOF
12593 #define LDBM_USE_DBHASH 1
12597 cat >> confdefs.h <<\EOF
12598 #define LDBM_USE_DBBTREE 1
12603 if test $ol_cv_lib_db != yes ; then
12604 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12609 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12610 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12611 ol_with_ldbm_api=none
12614 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12615 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12616 echo "configure:12617: checking for MDBM library" >&5
12617 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12618 echo $ac_n "(cached) $ac_c" 1>&6
12621 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12622 echo "configure:12623: checking for mdbm_set_chain" >&5
12623 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12629 /* System header to define __stub macros and hopefully few prototypes,
12630 which can conflict with char mdbm_set_chain(); below. */
12631 #include <assert.h>
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 /* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12635 char mdbm_set_chain();
12640 /* The GNU C library defines this for functions which it implements
12641 to always fail with ENOSYS. Some functions are actually named
12642 something starting with __ and the normal name is an alias. */
12643 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12646 f = mdbm_set_chain;
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12653 eval "ac_cv_func_mdbm_set_chain=yes"
12655 echo "configure: failed program was:" >&5
12656 cat conftest.$ac_ext >&5
12658 eval "ac_cv_func_mdbm_set_chain=no"
12663 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12664 echo "$ac_t""yes" 1>&6
12667 echo "$ac_t""no" 1>&6
12669 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12670 echo "configure:12671: checking for mdbm_set_chain in -lmdbm" >&5
12671 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12672 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12673 echo $ac_n "(cached) $ac_c" 1>&6
12675 ac_save_LIBS="$LIBS"
12676 LIBS="-lmdbm $LIBS"
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 /* Override any gcc2 internal prototype to avoid an error. */
12681 /* We use char because int might match the return type of a gcc2
12682 builtin and then its argument prototype would still apply. */
12683 char mdbm_set_chain();
12689 if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12691 eval "ac_cv_lib_$ac_lib_var=yes"
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12696 eval "ac_cv_lib_$ac_lib_var=no"
12699 LIBS="$ac_save_LIBS"
12702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12703 echo "$ac_t""yes" 1>&6
12704 ol_cv_lib_mdbm=-lmdbm
12706 echo "$ac_t""no" 1>&6
12717 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12720 for ac_hdr in mdbm.h
12722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12724 echo "configure:12725: checking for $ac_hdr" >&5
12725 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12726 echo $ac_n "(cached) $ac_c" 1>&6
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12730 "configure"
12730 #include "confdefs.h"
12733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12734 { (eval echo configure:12735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12736 if test -z "$ac_err"; then
12738 eval "ac_cv_header_$ac_safe=yes"
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12744 eval "ac_cv_header_$ac_safe=no"
12748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12749 echo "$ac_t""yes" 1>&6
12750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12751 cat >> confdefs.h <<EOF
12752 #define $ac_tr_hdr 1
12756 echo "$ac_t""no" 1>&6
12760 echo $ac_n "checking for db""... $ac_c" 1>&6
12761 echo "configure:12762: checking for db" >&5
12762 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12766 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12774 echo "$ac_t""$ol_cv_mdbm" 1>&6
12775 if test $ol_cv_mdbm = yes ; then
12776 cat >> confdefs.h <<\EOF
12777 #define HAVE_MDBM 1
12783 if test $ol_cv_mdbm = yes ; then
12785 ol_with_ldbm_api=mdbm
12786 if test $ol_cv_lib_mdbm != yes ; then
12787 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12792 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12793 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12794 echo "configure:12795: checking for GDBM library" >&5
12795 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12799 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12800 echo "configure:12801: checking for gdbm_open" >&5
12801 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12802 echo $ac_n "(cached) $ac_c" 1>&6
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12807 /* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char gdbm_open(); below. */
12809 #include <assert.h>
12810 /* Override any gcc2 internal prototype to avoid an error. */
12811 /* We use char because int might match the return type of a gcc2
12812 builtin and then its argument prototype would still apply. */
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12829 if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12831 eval "ac_cv_func_gdbm_open=yes"
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 eval "ac_cv_func_gdbm_open=no"
12841 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6
12845 echo "$ac_t""no" 1>&6
12847 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12848 echo "configure:12849: checking for gdbm_open in -lgdbm" >&5
12849 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12850 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12851 echo $ac_n "(cached) $ac_c" 1>&6
12853 ac_save_LIBS="$LIBS"
12854 LIBS="-lgdbm $LIBS"
12855 cat > conftest.$ac_ext <<EOF
12856 #line 12857 "configure"
12857 #include "confdefs.h"
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12867 if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12869 eval "ac_cv_lib_$ac_lib_var=yes"
12871 echo "configure: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12874 eval "ac_cv_lib_$ac_lib_var=no"
12877 LIBS="$ac_save_LIBS"
12880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12881 echo "$ac_t""yes" 1>&6
12882 ol_cv_lib_gdbm=-lgdbm
12884 echo "$ac_t""no" 1>&6
12895 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12898 for ac_hdr in gdbm.h
12900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12902 echo "configure:12903: checking for $ac_hdr" >&5
12903 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12906 cat > conftest.$ac_ext <<EOF
12907 #line 12908 "configure"
12908 #include "confdefs.h"
12911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12912 { (eval echo configure:12913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12914 if test -z "$ac_err"; then
12916 eval "ac_cv_header_$ac_safe=yes"
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12922 eval "ac_cv_header_$ac_safe=no"
12926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12927 echo "$ac_t""yes" 1>&6
12928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12929 cat >> confdefs.h <<EOF
12930 #define $ac_tr_hdr 1
12934 echo "$ac_t""no" 1>&6
12938 echo $ac_n "checking for db""... $ac_c" 1>&6
12939 echo "configure:12940: checking for db" >&5
12940 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12944 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12952 echo "$ac_t""$ol_cv_gdbm" 1>&6
12953 if test $ol_cv_gdbm = yes ; then
12954 cat >> confdefs.h <<\EOF
12955 #define HAVE_GDBM 1
12961 if test $ol_cv_gdbm = yes ; then
12963 ol_with_ldbm_api=gdbm
12965 if test $ol_cv_lib_gdbm != yes ; then
12966 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12971 if test $ol_with_ldbm_api = ndbm ; then
12972 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12973 echo "configure:12974: checking for NDBM library" >&5
12974 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12975 echo $ac_n "(cached) $ac_c" 1>&6
12978 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12979 echo "configure:12980: checking for dbm_open" >&5
12980 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12981 echo $ac_n "(cached) $ac_c" 1>&6
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 /* System header to define __stub macros and hopefully few prototypes,
12987 which can conflict with char dbm_open(); below. */
12988 #include <assert.h>
12989 /* Override any gcc2 internal prototype to avoid an error. */
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12997 /* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
13000 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13008 if { (eval echo configure:13009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010 eval "ac_cv_func_dbm_open=yes"
13012 echo "configure: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13015 eval "ac_cv_func_dbm_open=no"
13020 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13021 echo "$ac_t""yes" 1>&6
13024 echo "$ac_t""no" 1>&6
13026 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13027 echo "configure:13028: checking for dbm_open in -lndbm" >&5
13028 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13030 echo $ac_n "(cached) $ac_c" 1>&6
13032 ac_save_LIBS="$LIBS"
13033 LIBS="-lndbm $LIBS"
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13037 /* Override any gcc2 internal prototype to avoid an error. */
13038 /* We use char because int might match the return type of a gcc2
13039 builtin and then its argument prototype would still apply. */
13046 if { (eval echo configure:13047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13048 eval "ac_cv_lib_$ac_lib_var=yes"
13050 echo "configure: failed program was:" >&5
13051 cat conftest.$ac_ext >&5
13053 eval "ac_cv_lib_$ac_lib_var=no"
13056 LIBS="$ac_save_LIBS"
13059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13060 echo "$ac_t""yes" 1>&6
13061 ol_cv_lib_ndbm=-lndbm
13063 echo "$ac_t""no" 1>&6
13065 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13066 echo "configure:13067: checking for dbm_open in -ldbm" >&5
13067 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13069 echo $ac_n "(cached) $ac_c" 1>&6
13071 ac_save_LIBS="$LIBS"
13073 cat > conftest.$ac_ext <<EOF
13074 #line 13075 "configure"
13075 #include "confdefs.h"
13076 /* Override any gcc2 internal prototype to avoid an error. */
13077 /* We use char because int might match the return type of a gcc2
13078 builtin and then its argument prototype would still apply. */
13085 if { (eval echo configure:13086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13087 eval "ac_cv_lib_$ac_lib_var=yes"
13089 echo "configure: failed program was:" >&5
13090 cat conftest.$ac_ext >&5
13092 eval "ac_cv_lib_$ac_lib_var=no"
13095 LIBS="$ac_save_LIBS"
13098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13099 echo "$ac_t""yes" 1>&6
13100 ol_cv_lib_ndbm=-ldbm
13102 echo "$ac_t""no" 1>&6
13115 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13118 for ac_hdr in ndbm.h
13120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13122 echo "configure:13123: checking for $ac_hdr" >&5
13123 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13124 echo $ac_n "(cached) $ac_c" 1>&6
13126 cat > conftest.$ac_ext <<EOF
13127 #line 13128 "configure"
13128 #include "confdefs.h"
13131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13132 { (eval echo configure:13133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13134 if test -z "$ac_err"; then
13136 eval "ac_cv_header_$ac_safe=yes"
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 eval "ac_cv_header_$ac_safe=no"
13146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13147 echo "$ac_t""yes" 1>&6
13148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13149 cat >> confdefs.h <<EOF
13150 #define $ac_tr_hdr 1
13154 echo "$ac_t""no" 1>&6
13158 echo $ac_n "checking for db""... $ac_c" 1>&6
13159 echo "configure:13160: checking for db" >&5
13160 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13164 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13172 echo "$ac_t""$ol_cv_ndbm" 1>&6
13173 if test $ol_cv_ndbm = yes ; then
13174 cat >> confdefs.h <<\EOF
13175 #define HAVE_NDBM 1
13181 if test $ol_cv_ndbm = yes ; then
13183 ol_with_ldbm_api=ndbm
13185 if test $ol_cv_lib_ndbm != yes ; then
13186 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13191 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13192 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13193 if test $ol_enable_ldbm = yes ; then
13194 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13197 echo "configure: warning: disabling LDBM" 1>&2
13202 if test $ol_enable_bdb2 != no ; then
13203 if test $ol_enable_bdb2 = yes -a $ol_link_ldbm != berkeley ; then
13204 { echo "configure: error: BDB2 requires LDBM BerkeleyDB 2" 1>&2; exit 1; }
13205 elif test $ol_link_ldbm = berkeley ; then
13206 ol_link_bdb2=$ol_link_ldbm
13210 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13211 LINK_BINS_DYNAMIC="yes"
13213 LINK_BINS_DYNAMIC="no"
13216 if test $ol_enable_wrappers != no ; then
13217 for ac_hdr in tcpd.h
13219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13221 echo "configure:13222: checking for $ac_hdr" >&5
13222 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13225 cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13231 { (eval echo configure:13232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13233 if test -z "$ac_err"; then
13235 eval "ac_cv_header_$ac_safe=yes"
13238 echo "configure: failed program was:" >&5
13239 cat conftest.$ac_ext >&5
13241 eval "ac_cv_header_$ac_safe=no"
13245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13246 echo "$ac_t""yes" 1>&6
13247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13248 cat >> confdefs.h <<EOF
13249 #define $ac_tr_hdr 1
13253 echo "$ac_t""no" 1>&6
13258 if test $ac_cv_header_tcpd_h != yes ; then
13261 cat > conftest.$ac_ext <<EOF
13262 #line 13263 "configure"
13263 #include "confdefs.h"
13265 int allow_severity = 0;
13266 int deny_severity = 0;
13272 if { (eval echo configure:13273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13276 echo "configure: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13284 if test $have_wrappers = yes ; then
13285 cat >> confdefs.h <<\EOF
13286 #define HAVE_TCPD 1
13291 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13292 echo "configure:13293: checking for main in -lnsl" >&5
13293 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13294 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13295 echo $ac_n "(cached) $ac_c" 1>&6
13297 ac_save_LIBS="$LIBS"
13299 cat > conftest.$ac_ext <<EOF
13300 #line 13301 "configure"
13301 #include "confdefs.h"
13307 if { (eval echo configure:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13309 eval "ac_cv_lib_$ac_lib_var=yes"
13311 echo "configure: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13314 eval "ac_cv_lib_$ac_lib_var=no"
13317 LIBS="$ac_save_LIBS"
13320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13321 echo "$ac_t""yes" 1>&6
13322 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13324 cat >> confdefs.h <<EOF
13325 #define $ac_tr_lib 1
13331 echo "$ac_t""no" 1>&6
13335 echo "configure: warning: could not find -lwrap" 1>&2
13336 if test $ol_enable_wrappers = yes ; then
13337 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13340 echo "configure: warning: disabling wrappers support" 1>&2
13341 ol_enable_wrappers=no
13346 if test $ol_enable_syslog != no ; then
13347 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13348 echo "configure:13349: checking for openlog" >&5
13349 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13350 echo $ac_n "(cached) $ac_c" 1>&6
13352 cat > conftest.$ac_ext <<EOF
13353 #line 13354 "configure"
13354 #include "confdefs.h"
13355 /* System header to define __stub macros and hopefully few prototypes,
13356 which can conflict with char openlog(); below. */
13357 #include <assert.h>
13358 /* Override any gcc2 internal prototype to avoid an error. */
13359 /* We use char because int might match the return type of a gcc2
13360 builtin and then its argument prototype would still apply. */
13366 /* The GNU C library defines this for functions which it implements
13367 to always fail with ENOSYS. Some functions are actually named
13368 something starting with __ and the normal name is an alias. */
13369 #if defined (__stub_openlog) || defined (__stub___openlog)
13377 if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13379 eval "ac_cv_func_openlog=yes"
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13384 eval "ac_cv_func_openlog=no"
13389 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13390 echo "$ac_t""yes" 1>&6
13393 echo "$ac_t""no" 1>&6
13396 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13397 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13399 ol_enable_syslog=$ac_cv_func_openlog
13402 if test $ol_enable_dmalloc != no ; then
13403 for ac_hdr in dmalloc.h
13405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13407 echo "configure:13408: checking for $ac_hdr" >&5
13408 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13409 echo $ac_n "(cached) $ac_c" 1>&6
13411 cat > conftest.$ac_ext <<EOF
13412 #line 13413 "configure"
13413 #include "confdefs.h"
13416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13417 { (eval echo configure:13418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13419 if test -z "$ac_err"; then
13421 eval "ac_cv_header_$ac_safe=yes"
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13427 eval "ac_cv_header_$ac_safe=no"
13431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13432 echo "$ac_t""yes" 1>&6
13433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13434 cat >> confdefs.h <<EOF
13435 #define $ac_tr_hdr 1
13439 echo "$ac_t""no" 1>&6
13443 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
13444 echo "configure:13445: checking for dmalloc_shutdown in -ldmalloc" >&5
13445 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
13446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13447 echo $ac_n "(cached) $ac_c" 1>&6
13449 ac_save_LIBS="$LIBS"
13450 LIBS="-ldmalloc $LIBS"
13451 cat > conftest.$ac_ext <<EOF
13452 #line 13453 "configure"
13453 #include "confdefs.h"
13454 /* Override any gcc2 internal prototype to avoid an error. */
13455 /* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13457 char dmalloc_shutdown();
13463 if { (eval echo configure:13464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13465 eval "ac_cv_lib_$ac_lib_var=yes"
13467 echo "configure: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13470 eval "ac_cv_lib_$ac_lib_var=no"
13473 LIBS="$ac_save_LIBS"
13476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13477 echo "$ac_t""yes" 1>&6
13478 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13480 cat >> confdefs.h <<EOF
13481 #define $ac_tr_lib 1
13484 LIBS="-ldmalloc $LIBS"
13487 echo "$ac_t""no" 1>&6
13492 if test $ol_enable_tcl != no ; then
13493 for ac_hdr in tcl.h
13495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13497 echo "configure:13498: checking for $ac_hdr" >&5
13498 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13499 echo $ac_n "(cached) $ac_c" 1>&6
13501 cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13507 { (eval echo configure:13508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13509 if test -z "$ac_err"; then
13511 eval "ac_cv_header_$ac_safe=yes"
13514 echo "configure: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13517 eval "ac_cv_header_$ac_safe=no"
13521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13522 echo "$ac_t""yes" 1>&6
13523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13524 cat >> confdefs.h <<EOF
13525 #define $ac_tr_hdr 1
13529 echo "$ac_t""no" 1>&6
13534 if test $ac_cv_header_tcl_h != yes ; then
13537 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13538 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13539 echo "configure:13540: checking for main in -l$lib" >&5
13540 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13541 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13542 echo $ac_n "(cached) $ac_c" 1>&6
13544 ac_save_LIBS="$LIBS"
13545 LIBS="-l$lib $LIBS"
13546 cat > conftest.$ac_ext <<EOF
13547 #line 13548 "configure"
13548 #include "confdefs.h"
13554 if { (eval echo configure:13555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13556 eval "ac_cv_lib_$ac_lib_var=yes"
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13561 eval "ac_cv_lib_$ac_lib_var=no"
13564 LIBS="$ac_save_LIBS"
13567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13568 echo "$ac_t""yes" 1>&6
13570 if test x"$ol_with_tcl_module" = "xstatic" ; then
13571 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13573 MOD_TCL_LIB="-l${lib}"
13576 echo "$ac_t""no" 1>&6
13583 if test $have_tcl != yes ; then
13584 echo "configure: warning: could not find -ltcl" 1>&2
13585 if test $ol_enable_tcl = yes ; then
13586 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13594 for ac_hdr in termcap.h ncurses.h
13596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13598 echo "configure:13599: checking for $ac_hdr" >&5
13599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13608 { (eval echo configure:13609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13610 if test -z "$ac_err"; then
13612 eval "ac_cv_header_$ac_safe=yes"
13615 echo "configure: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13618 eval "ac_cv_header_$ac_safe=no"
13622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13623 echo "$ac_t""yes" 1>&6
13624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13625 cat >> confdefs.h <<EOF
13626 #define $ac_tr_hdr 1
13630 echo "$ac_t""no" 1>&6
13635 if test $ol_link_termcap = no ; then
13636 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13637 echo "configure:13638: checking for tputs in -ltermcap" >&5
13638 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13639 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13640 echo $ac_n "(cached) $ac_c" 1>&6
13642 ac_save_LIBS="$LIBS"
13643 LIBS="-ltermcap $LIBS"
13644 cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13647 /* Override any gcc2 internal prototype to avoid an error. */
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13656 if { (eval echo configure:13657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13658 eval "ac_cv_lib_$ac_lib_var=yes"
13660 echo "configure: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13663 eval "ac_cv_lib_$ac_lib_var=no"
13666 LIBS="$ac_save_LIBS"
13669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13670 echo "$ac_t""yes" 1>&6
13673 echo "$ac_t""no" 1>&6
13677 if test $have_termcap = yes ; then
13678 cat >> confdefs.h <<\EOF
13679 #define HAVE_TERMCAP 1
13682 ol_link_termcap=yes
13683 TERMCAP_LIBS=-ltermcap
13687 if test $ol_link_termcap = no ; then
13688 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13689 echo "configure:13690: checking for initscr in -lncurses" >&5
13690 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13692 echo $ac_n "(cached) $ac_c" 1>&6
13694 ac_save_LIBS="$LIBS"
13695 LIBS="-lncurses $LIBS"
13696 cat > conftest.$ac_ext <<EOF
13697 #line 13698 "configure"
13698 #include "confdefs.h"
13699 /* Override any gcc2 internal prototype to avoid an error. */
13700 /* We use char because int might match the return type of a gcc2
13701 builtin and then its argument prototype would still apply. */
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13710 eval "ac_cv_lib_$ac_lib_var=yes"
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13715 eval "ac_cv_lib_$ac_lib_var=no"
13718 LIBS="$ac_save_LIBS"
13721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13722 echo "$ac_t""yes" 1>&6
13725 echo "$ac_t""no" 1>&6
13729 if test $have_ncurses = yes ; then
13730 cat >> confdefs.h <<\EOF
13731 #define HAVE_NCURSES 1
13734 ol_link_termcap=yes
13735 TERMCAP_LIBS=-lncurses
13739 if test $ol_link_termcap = no ; then
13740 cat >> confdefs.h <<\EOF
13741 #define NO_TERMCAP 1
13749 if test $ol_with_cyrus_sasl != no ; then
13750 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13751 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13752 echo "configure:13753: checking for sasl.h" >&5
13753 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13754 echo $ac_n "(cached) $ac_c" 1>&6
13756 cat > conftest.$ac_ext <<EOF
13757 #line 13758 "configure"
13758 #include "confdefs.h"
13761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13762 { (eval echo configure:13763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13764 if test -z "$ac_err"; then
13766 eval "ac_cv_header_$ac_safe=yes"
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13772 eval "ac_cv_header_$ac_safe=no"
13776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13777 echo "$ac_t""yes" 1>&6
13780 echo "$ac_t""no" 1>&6
13784 if test $ac_cv_header_sasl_h = yes ; then
13785 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13786 echo "configure:13787: checking for sasl_client_init in -lsasl" >&5
13787 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13789 echo $ac_n "(cached) $ac_c" 1>&6
13791 ac_save_LIBS="$LIBS"
13792 LIBS="-lsasl $LIBS"
13793 cat > conftest.$ac_ext <<EOF
13794 #line 13795 "configure"
13795 #include "confdefs.h"
13796 /* Override any gcc2 internal prototype to avoid an error. */
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799 char sasl_client_init();
13805 if { (eval echo configure:13806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13807 eval "ac_cv_lib_$ac_lib_var=yes"
13809 echo "configure: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13812 eval "ac_cv_lib_$ac_lib_var=no"
13815 LIBS="$ac_save_LIBS"
13818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13819 echo "$ac_t""yes" 1>&6
13820 have_cyrus_sasl=yes
13822 echo "$ac_t""no" 1>&6
13827 if test $have_cyrus_sasl != no ; then
13829 cat >> confdefs.h <<\EOF
13830 #define HAVE_CYRUS_SASL 1
13837 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13838 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13842 if test $cross_compiling != yes ; then
13844 if test -r /dev/urandom ; then
13845 dev="/dev/urandom";
13846 elif test -r /idev/urandom ; then
13847 dev="/idev/urandom";
13848 elif test -r /dev/srandom ; then
13849 dev="/dev/srandom";
13850 elif test -r /dev/random ; then
13852 elif test -r /idev/random ; then
13853 dev="/idev/random";
13856 if test $dev != no ; then
13857 cat >> confdefs.h <<EOF
13858 #define URANDOM_DEVICE "$dev"
13865 if test $ol_with_fetch != no ; then
13867 LIBS="-lfetch -lcom_err $LIBS"
13868 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13869 echo "configure:13870: checking fetch(3) library" >&5
13870 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13871 echo $ac_n "(cached) $ac_c" 1>&6
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13878 #include <sys/param.h>
13882 struct url *u = fetchParseURL("file:///");
13885 if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13887 ol_cv_lib_fetch=yes
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13897 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13899 if test $ol_cv_lib_fetch != no ; then
13900 ol_link_fetch="-lfetch -lcom_err"
13901 cat >> confdefs.h <<\EOF
13902 #define HAVE_FETCH 1
13908 if test $ol_cv_lib_fetch != no ; then
13909 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13910 ol_link_fetch=freebsd
13912 elif test $ol_with_fetch != auto ; then
13913 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13917 ol_link_readline=no
13918 if test $ol_with_readline != no ; then
13919 for ac_hdr in readline/readline.h readline/history.h
13921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13923 echo "configure:13924: checking for $ac_hdr" >&5
13924 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13933 { (eval echo configure:13934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13935 if test -z "$ac_err"; then
13937 eval "ac_cv_header_$ac_safe=yes"
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13943 eval "ac_cv_header_$ac_safe=no"
13947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13948 echo "$ac_t""yes" 1>&6
13949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13950 cat >> confdefs.h <<EOF
13951 #define $ac_tr_hdr 1
13955 echo "$ac_t""no" 1>&6
13960 if test $ac_cv_header_readline_readline_h = yes ; then
13962 LIBS="$TERMCAP_LIBS $LIBS"
13963 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13964 echo "configure:13965: checking for readline in -lreadline" >&5
13965 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13967 echo $ac_n "(cached) $ac_c" 1>&6
13969 ac_save_LIBS="$LIBS"
13970 LIBS="-lreadline $LIBS"
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 /* Override any gcc2 internal prototype to avoid an error. */
13975 /* We use char because int might match the return type of a gcc2
13976 builtin and then its argument prototype would still apply. */
13983 if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13985 eval "ac_cv_lib_$ac_lib_var=yes"
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13990 eval "ac_cv_lib_$ac_lib_var=no"
13993 LIBS="$ac_save_LIBS"
13996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
14000 echo "$ac_t""no" 1>&6
14006 if test $have_readline = yes ; then
14007 ol_with_readline=found
14008 ol_link_readline=yes
14010 READLINE_LIBS="-lreadline"
14015 if test $ol_link_readline = yes ; then
14016 cat >> confdefs.h <<\EOF
14017 #define HAVE_READLINE 1
14023 if test $ol_enable_crypt != no ; then
14024 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14025 echo "configure:14026: checking for crypt" >&5
14026 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14027 echo $ac_n "(cached) $ac_c" 1>&6
14029 cat > conftest.$ac_ext <<EOF
14030 #line 14031 "configure"
14031 #include "confdefs.h"
14032 /* System header to define __stub macros and hopefully few prototypes,
14033 which can conflict with char crypt(); below. */
14034 #include <assert.h>
14035 /* Override any gcc2 internal prototype to avoid an error. */
14036 /* We use char because int might match the return type of a gcc2
14037 builtin and then its argument prototype would still apply. */
14043 /* The GNU C library defines this for functions which it implements
14044 to always fail with ENOSYS. Some functions are actually named
14045 something starting with __ and the normal name is an alias. */
14046 #if defined (__stub_crypt) || defined (__stub___crypt)
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14056 eval "ac_cv_func_crypt=yes"
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14061 eval "ac_cv_func_crypt=no"
14066 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14067 echo "$ac_t""yes" 1>&6
14070 echo "$ac_t""no" 1>&6
14072 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14073 echo "configure:14074: checking for crypt in -lcrypt" >&5
14074 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14078 ac_save_LIBS="$LIBS"
14079 LIBS="-lcrypt $LIBS"
14080 cat > conftest.$ac_ext <<EOF
14081 #line 14082 "configure"
14082 #include "confdefs.h"
14083 /* Override any gcc2 internal prototype to avoid an error. */
14084 /* We use char because int might match the return type of a gcc2
14085 builtin and then its argument prototype would still apply. */
14092 if { (eval echo configure:14093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14094 eval "ac_cv_lib_$ac_lib_var=yes"
14096 echo "configure: failed program was:" >&5
14097 cat conftest.$ac_ext >&5
14099 eval "ac_cv_lib_$ac_lib_var=no"
14102 LIBS="$ac_save_LIBS"
14105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14106 echo "$ac_t""yes" 1>&6
14107 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14110 echo "$ac_t""no" 1>&6
14117 if test $have_crypt = yes ; then
14118 cat >> confdefs.h <<\EOF
14119 #define HAVE_CRYPT 1
14123 echo "configure: warning: could not find crypt" 1>&2
14124 if test $ol_enable_crypt = yes ; then
14125 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14128 echo "configure: warning: disabling crypt support" 1>&2
14133 if test $ol_enable_proctitle != no ; then
14134 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14135 echo "configure:14136: checking for setproctitle" >&5
14136 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14137 echo $ac_n "(cached) $ac_c" 1>&6
14139 cat > conftest.$ac_ext <<EOF
14140 #line 14141 "configure"
14141 #include "confdefs.h"
14142 /* System header to define __stub macros and hopefully few prototypes,
14143 which can conflict with char setproctitle(); below. */
14144 #include <assert.h>
14145 /* Override any gcc2 internal prototype to avoid an error. */
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14148 char setproctitle();
14153 /* The GNU C library defines this for functions which it implements
14154 to always fail with ENOSYS. Some functions are actually named
14155 something starting with __ and the normal name is an alias. */
14156 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14164 if { (eval echo configure:14165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14166 eval "ac_cv_func_setproctitle=yes"
14168 echo "configure: failed program was:" >&5
14169 cat conftest.$ac_ext >&5
14171 eval "ac_cv_func_setproctitle=no"
14176 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14177 echo "$ac_t""yes" 1>&6
14178 have_setproctitle=yes
14180 echo "$ac_t""no" 1>&6
14182 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14183 echo "configure:14184: checking for setproctitle in -lutil" >&5
14184 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14185 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14188 ac_save_LIBS="$LIBS"
14189 LIBS="-lutil $LIBS"
14190 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure"
14192 #include "confdefs.h"
14193 /* Override any gcc2 internal prototype to avoid an error. */
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196 char setproctitle();
14202 if { (eval echo configure:14203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14204 eval "ac_cv_lib_$ac_lib_var=yes"
14206 echo "configure: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14209 eval "ac_cv_lib_$ac_lib_var=no"
14212 LIBS="$ac_save_LIBS"
14215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14216 echo "$ac_t""yes" 1>&6
14217 have_setproctitle=yes
14218 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14220 echo "$ac_t""no" 1>&6
14221 have_setproctitle=no
14222 LIBOBJS="$LIBOBJS setproctitle.o"
14223 LIBSRCS="$LIBSRCS setproctitle.c"
14229 if test $have_setproctitle = yes ; then
14230 cat >> confdefs.h <<\EOF
14231 #define HAVE_SETPROCTITLE 1
14237 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14238 echo "configure:14239: checking for ANSI C header files" >&5
14239 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14240 echo $ac_n "(cached) $ac_c" 1>&6
14242 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure"
14244 #include "confdefs.h"
14245 #include <stdlib.h>
14246 #include <stdarg.h>
14247 #include <string.h>
14250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14251 { (eval echo configure:14252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14253 if test -z "$ac_err"; then
14255 ac_cv_header_stdc=yes
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 ac_cv_header_stdc=no
14265 if test $ac_cv_header_stdc = yes; then
14266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14267 cat > conftest.$ac_ext <<EOF
14268 #line 14269 "configure"
14269 #include "confdefs.h"
14270 #include <string.h>
14272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14273 egrep "memchr" >/dev/null 2>&1; then
14277 ac_cv_header_stdc=no
14283 if test $ac_cv_header_stdc = yes; then
14284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14285 cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 #include <stdlib.h>
14290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14291 egrep "free" >/dev/null 2>&1; then
14295 ac_cv_header_stdc=no
14301 if test $ac_cv_header_stdc = yes; then
14302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14303 if test "$cross_compiling" = yes; then
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14308 "configure"
14308 #include "confdefs.h"
14310 #if ((' ' & 0x0FF) == 0x020)
14311 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14312 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14314 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14315 || ('j' <= (c) && (c) <= 'r') \
14316 || ('s' <= (c) && (c) <= 'z'))
14317 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14320 int main () { int i; for (i = 0; i < 256; i++)
14321 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14325 if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14329 echo "configure: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14332 ac_cv_header_stdc=no
14340 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14341 if test $ac_cv_header_stdc = yes; then
14342 cat >> confdefs.h <<\EOF
14343 #define STDC_HEADERS 1
14348 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14349 echo "configure:14350: checking for mode_t" >&5
14350 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14351 echo $ac_n "(cached) $ac_c" 1>&6
14353 cat > conftest.$ac_ext <<EOF
14354 #line 14355 "configure"
14355 #include "confdefs.h"
14356 #include <sys/types.h>
14358 #include <stdlib.h>
14359 #include <stddef.h>
14363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14364 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14366 eval "ac_cv_type_mode_t=yes"
14369 eval "ac_cv_type_mode_t=no"
14374 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14375 echo "$ac_t""yes" 1>&6
14377 echo "$ac_t""no" 1>&6
14378 cat >> confdefs.h <<EOF
14384 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14385 echo "configure:14386: checking for off_t" >&5
14386 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14389 cat > conftest.$ac_ext <<EOF
14390 #line 14391 "configure"
14391 #include "confdefs.h"
14392 #include <sys/types.h>
14394 #include <stdlib.h>
14395 #include <stddef.h>
14399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14400 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14402 eval "ac_cv_type_off_t=yes"
14405 eval "ac_cv_type_off_t=no"
14410 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14411 echo "$ac_t""yes" 1>&6
14413 echo "$ac_t""no" 1>&6
14414 cat >> confdefs.h <<EOF
14420 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14421 echo "configure:14422: checking for pid_t" >&5
14422 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14423 echo $ac_n "(cached) $ac_c" 1>&6
14425 cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14428 #include <sys/types.h>
14430 #include <stdlib.h>
14431 #include <stddef.h>
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14438 eval "ac_cv_type_pid_t=yes"
14441 eval "ac_cv_type_pid_t=no"
14446 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14447 echo "$ac_t""yes" 1>&6
14449 echo "$ac_t""no" 1>&6
14450 cat >> confdefs.h <<EOF
14456 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14457 echo "configure:14458: checking for ptrdiff_t" >&5
14458 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14459 echo $ac_n "(cached) $ac_c" 1>&6
14461 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14464 #include <stddef.h>
14469 if { (eval echo configure:14470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14471 am_cv_type_ptrdiff_t=yes
14473 echo "configure: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14476 am_cv_type_ptrdiff_t=no
14481 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14482 if test $am_cv_type_ptrdiff_t = yes; then
14483 cat >> confdefs.h <<\EOF
14484 #define HAVE_PTRDIFF_T 1
14489 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14490 echo "configure:14491: checking return type of signal handlers" >&5
14491 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14492 echo $ac_n "(cached) $ac_c" 1>&6
14494 cat > conftest.$ac_ext <<EOF
14495 #line 14496 "configure"
14496 #include "confdefs.h"
14497 #include <sys/types.h>
14498 #include <signal.h>
14503 extern "C" void (*signal (int, void (*)(int)))(int);
14505 void (*signal ()) ();
14512 if { (eval echo configure:14513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14514 ac_cv_type_signal=void
14516 echo "configure: failed program was:" >&5
14517 cat conftest.$ac_ext >&5
14519 ac_cv_type_signal=int
14524 echo "$ac_t""$ac_cv_type_signal" 1>&6
14525 cat >> confdefs.h <<EOF
14526 #define RETSIGTYPE $ac_cv_type_signal
14530 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14531 echo "configure:14532: checking for size_t" >&5
14532 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14533 echo $ac_n "(cached) $ac_c" 1>&6
14535 cat > conftest.$ac_ext <<EOF
14536 #line 14537 "configure"
14537 #include "confdefs.h"
14538 #include <sys/types.h>
14540 #include <stdlib.h>
14541 #include <stddef.h>
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14548 eval "ac_cv_type_size_t=yes"
14551 eval "ac_cv_type_size_t=no"
14556 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14557 echo "$ac_t""yes" 1>&6
14559 echo "$ac_t""no" 1>&6
14560 cat >> confdefs.h <<EOF
14561 #define size_t unsigned
14567 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14568 echo "configure:14569: checking for ssize_t" >&5
14569 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14572 cat > conftest.$ac_ext <<EOF
14573 #line 14574 "configure"
14574 #include "confdefs.h"
14575 #include <sys/types.h>
14577 #include <stdlib.h>
14578 #include <stddef.h>
14582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14583 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14585 eval "ac_cv_type_ssize_t=yes"
14588 eval "ac_cv_type_ssize_t=no"
14593 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14594 echo "$ac_t""yes" 1>&6
14596 echo "$ac_t""no" 1>&6
14597 cat >> confdefs.h <<EOF
14598 #define ssize_t signed int
14603 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14604 echo "configure:14605: checking for caddr_t" >&5
14605 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14606 echo $ac_n "(cached) $ac_c" 1>&6
14608 cat > conftest.$ac_ext <<EOF
14609 #line 14610 "configure"
14610 #include "confdefs.h"
14611 #include <sys/types.h>
14613 #include <stdlib.h>
14614 #include <stddef.h>
14618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14619 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14621 eval "ac_cv_type_caddr_t=yes"
14624 eval "ac_cv_type_caddr_t=no"
14629 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14630 echo "$ac_t""yes" 1>&6
14632 echo "$ac_t""no" 1>&6
14633 cat >> confdefs.h <<EOF
14634 #define caddr_t char *
14640 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14641 echo "configure:14642: checking for socklen_t" >&5
14642 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14643 echo $ac_n "(cached) $ac_c" 1>&6
14645 cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14649 #ifdef HAVE_SYS_TYPES_H
14650 #include <sys/types.h>
14652 #ifdef HAVE_SYS_SOCKET_H
14653 #include <sys/socket.h>
14660 if { (eval echo configure:14661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14662 ol_cv_type_socklen_t=yes
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14667 ol_cv_type_socklen_t=no
14672 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14673 if test $ol_cv_type_socklen_t = no; then
14674 cat >> confdefs.h <<\EOF
14675 #define socklen_t int
14680 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14681 echo "configure:14682: checking for member st_blksize in aggregate type struct stat" >&5
14682 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14683 echo $ac_n "(cached) $ac_c" 1>&6
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 #include <sys/types.h>
14689 #include <sys/stat.h>
14691 struct stat foo; foo.st_blksize;
14694 if { (eval echo configure:14695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14696 ac_cv_c_struct_member_st_blksize=yes
14698 echo "configure: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14701 ac_cv_c_struct_member_st_blksize=no
14706 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14707 st_blksize="$ac_cv_c_struct_member_st_blksize"
14708 if test $ac_cv_c_struct_member_st_blksize = yes; then
14709 cat >> confdefs.h <<\EOF
14710 #define HAVE_ST_BLKSIZE 1
14715 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14716 echo "configure:14717: checking whether time.h and sys/time.h may both be included" >&5
14717 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14718 echo $ac_n "(cached) $ac_c" 1>&6
14720 cat > conftest.$ac_ext <<EOF
14721 #line 14722 "configure"
14722 #include "confdefs.h"
14723 #include <sys/types.h>
14724 #include <sys/time.h>
14730 if { (eval echo configure:14731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14732 ac_cv_header_time=yes
14734 echo "configure: failed program was:" >&5
14735 cat conftest.$ac_ext >&5
14737 ac_cv_header_time=no
14742 echo "$ac_t""$ac_cv_header_time" 1>&6
14743 if test $ac_cv_header_time = yes; then
14744 cat >> confdefs.h <<\EOF
14745 #define TIME_WITH_SYS_TIME 1
14750 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14751 echo "configure:14752: checking whether struct tm is in sys/time.h or time.h" >&5
14752 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14753 echo $ac_n "(cached) $ac_c" 1>&6
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 #include <sys/types.h>
14761 struct tm *tp; tp->tm_sec;
14764 if { (eval echo configure:14765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14766 ac_cv_struct_tm=time.h
14768 echo "configure: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14771 ac_cv_struct_tm=sys/time.h
14776 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14777 if test $ac_cv_struct_tm = sys/time.h; then
14778 cat >> confdefs.h <<\EOF
14779 #define TM_IN_SYS_TIME 1
14784 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14785 echo "configure:14786: checking for uid_t in sys/types.h" >&5
14786 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14787 echo $ac_n "(cached) $ac_c" 1>&6
14789 cat > conftest.$ac_ext <<EOF
14790 #line 14791 "configure"
14791 #include "confdefs.h"
14792 #include <sys/types.h>
14794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14795 egrep "uid_t" >/dev/null 2>&1; then
14797 ac_cv_type_uid_t=yes
14800 ac_cv_type_uid_t=no
14806 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14807 if test $ac_cv_type_uid_t = no; then
14808 cat >> confdefs.h <<\EOF
14812 cat >> confdefs.h <<\EOF
14818 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14819 echo "configure:14820: checking for sig_atomic_t" >&5
14820 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14821 echo $ac_n "(cached) $ac_c" 1>&6
14823 cat > conftest.$ac_ext <<EOF
14824 #line 14825 "configure"
14825 #include "confdefs.h"
14826 #include <signal.h>
14828 sig_atomic_t atomic;
14831 if { (eval echo configure:14832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14833 ol_cv_type_sig_atomic_t=yes
14835 echo "configure: failed program was:" >&5
14836 cat conftest.$ac_ext >&5
14838 ol_cv_type_sig_atomic_t=no
14843 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14844 if test $ol_cv_type_sig_atomic_t = no; then
14845 cat >> confdefs.h <<\EOF
14846 #define sig_atomic_t int
14853 # test for pw_gecos in struct passwd
14854 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14855 echo "configure:14856: checking struct passwd for pw_gecos" >&5
14856 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14857 echo $ac_n "(cached) $ac_c" 1>&6
14860 cat > conftest.$ac_ext <<EOF
14861 #line 14862 "configure"
14862 #include "confdefs.h"
14867 pwd.pw_gecos = pwd.pw_name;
14871 if { (eval echo configure:14872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14873 ol_cv_struct_passwd_pw_gecos=yes
14875 echo "configure: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14878 ol_cv_struct_passwd_pw_gecos=no
14883 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14884 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14885 cat >> confdefs.h <<\EOF
14886 #define HAVE_PW_GECOS 1
14891 # test for pw_passwd in struct passwd
14892 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14893 echo "configure:14894: checking struct passwd for pw_passwd" >&5
14894 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14895 echo $ac_n "(cached) $ac_c" 1>&6
14898 cat > conftest.$ac_ext <<EOF
14899 #line 14900 "configure"
14900 #include "confdefs.h"
14905 pwd.pw_passwd = pwd.pw_name;
14909 if { (eval echo configure:14910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14911 ol_cv_struct_passwd_pw_passwd=yes
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14916 ol_cv_struct_passwd_pw_passwd=no
14921 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14922 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14923 cat >> confdefs.h <<\EOF
14924 #define HAVE_PW_PASSWD 1
14930 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14931 echo "configure:14932: checking if toupper() requires islower()" >&5
14932 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14936 if test "$cross_compiling" = yes; then
14937 ol_cv_c_upper_lower=safe
14939 cat > conftest.$ac_ext <<EOF
14940 #line 14941 "configure"
14941 #include "confdefs.h"
14946 if ('C' == toupper('C'))
14952 if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14954 ol_cv_c_upper_lower=no
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14959 ol_cv_c_upper_lower=yes
14966 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14967 if test $ol_cv_c_upper_lower != no ; then
14968 cat >> confdefs.h <<\EOF
14969 #define C_UPPER_LOWER 1
14974 echo $ac_n "checking for working const""... $ac_c" 1>&6
14975 echo "configure:14976: checking for working const" >&5
14976 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14977 echo $ac_n "(cached) $ac_c" 1>&6
14979 cat > conftest.$ac_ext <<EOF
14980 #line 14981 "configure"
14981 #include "confdefs.h"
14985 /* Ultrix mips cc rejects this. */
14986 typedef int charset[2]; const charset x;
14987 /* SunOS 4.1.1 cc rejects this. */
14988 char const *const *ccp;
14990 /* NEC SVR4.0.2 mips cc rejects this. */
14991 struct point {int x, y;};
14992 static struct point const zero = {0,0};
14993 /* AIX XL C 1.02.0.0 rejects this.
14994 It does not let you subtract one const X* pointer from another in an arm
14995 of an if-expression whose if-part is not a constant expression */
14996 const char *g = "string";
14997 ccp = &g + (g ? g-g : 0);
14998 /* HPUX 7.0 cc rejects these. */
15001 ccp = (char const *const *) p;
15002 { /* SCO 3.2v4 cc rejects this. */
15004 char const *s = 0 ? (char *) 0 : (char const *) 0;
15008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15009 int x[] = {25, 17};
15010 const int *foo = &x[0];
15013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15014 typedef const int *iptr;
15018 { /* AIX XL C 1.02.0.0 rejects this saying
15019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15020 struct s { int j; const int *ap[3]; };
15021 struct s *b; b->j = 5;
15023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15024 const int foo = 10;
15029 if { (eval echo configure:15030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15041 echo "$ac_t""$ac_cv_c_const" 1>&6
15042 if test $ac_cv_c_const = no; then
15043 cat >> confdefs.h <<\EOF
15049 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15050 echo "configure:15051: checking if compiler understands volatile" >&5
15051 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15052 echo $ac_n "(cached) $ac_c" 1>&6
15054 cat > conftest.$ac_ext <<EOF
15055 #line 15056 "configure"
15056 #include "confdefs.h"
15059 volatile int a; int * volatile b = x ? &y : &z;
15060 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15064 if { (eval echo configure:15065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15066 ol_cv_c_volatile=yes
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15071 ol_cv_c_volatile=no
15076 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15077 if test $ol_cv_c_volatile = yes; then
15080 cat >> confdefs.h <<\EOF
15087 if test $cross_compiling = yes ; then
15088 cat >> confdefs.h <<\EOF
15089 #define CROSS_COMPILING 1
15093 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15094 echo "configure:15095: checking whether byte ordering is bigendian" >&5
15095 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15096 echo $ac_n "(cached) $ac_c" 1>&6
15098 ac_cv_c_bigendian=unknown
15099 # See if sys/param.h defines the BYTE_ORDER macro.
15100 cat > conftest.$ac_ext <<EOF
15101 #line 15102 "configure"
15102 #include "confdefs.h"
15103 #include <sys/types.h>
15104 #include <sys/param.h>
15107 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15108 bogus endian macros
15112 if { (eval echo configure:15113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15114 # It does; now see whether it defined to BIG_ENDIAN or not.
15115 cat > conftest.$ac_ext <<EOF
15116 #line 15117 "configure"
15117 #include "confdefs.h"
15118 #include <sys/types.h>
15119 #include <sys/param.h>
15122 #if BYTE_ORDER != BIG_ENDIAN
15127 if { (eval echo configure:15128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15129 ac_cv_c_bigendian=yes
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15134 ac_cv_c_bigendian=no
15138 echo "configure: failed program was:" >&5
15139 cat conftest.$ac_ext >&5
15142 if test $ac_cv_c_bigendian = unknown; then
15143 if test "$cross_compiling" = yes; then
15144 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15146 cat > conftest.$ac_ext <<EOF
15147 #line 15148 "configure"
15148 #include "confdefs.h"
15150 /* Are we little or big endian? From Harbison&Steele. */
15154 char c[sizeof (long)];
15157 exit (u.c[sizeof (long) - 1] == 1);
15160 if { (eval echo configure:15161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15162 ac_cv_c_bigendian=no
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15167 ac_cv_c_bigendian=yes
15175 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15176 if test $ac_cv_c_bigendian = yes; then
15177 cat >> confdefs.h <<\EOF
15178 #define WORDS_BIGENDIAN 1
15185 echo $ac_n "checking size of short""... $ac_c" 1>&6
15186 echo "configure:15187: checking size of short" >&5
15187 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15188 echo $ac_n "(cached) $ac_c" 1>&6
15190 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15191 cat > conftest.$ac_ext <<EOF
15192 #line 15193 "configure"
15193 #include "confdefs.h"
15194 #include "confdefs.h"
15195 #include <sys/types.h>
15199 switch (0) case 0: case (sizeof (short) == $ac_size):;
15202 if { (eval echo configure:15203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15204 ac_cv_sizeof_short=$ac_size
15206 echo "configure: failed program was:" >&5
15207 cat conftest.$ac_ext >&5
15210 if test x$ac_cv_sizeof_short != x ; then break; fi
15215 if test x$ac_cv_sizeof_short = x ; then
15216 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15218 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15219 cat >> confdefs.h <<EOF
15220 #define SIZEOF_SHORT $ac_cv_sizeof_short
15224 echo $ac_n "checking size of int""... $ac_c" 1>&6
15225 echo "configure:15226: checking size of int" >&5
15226 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15227 echo $ac_n "(cached) $ac_c" 1>&6
15229 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15230 cat > conftest.$ac_ext <<EOF
15231 #line 15232 "configure"
15232 #include "confdefs.h"
15233 #include "confdefs.h"
15234 #include <sys/types.h>
15238 switch (0) case 0: case (sizeof (int) == $ac_size):;
15241 if { (eval echo configure:15242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15243 ac_cv_sizeof_int=$ac_size
15245 echo "configure: failed program was:" >&5
15246 cat conftest.$ac_ext >&5
15249 if test x$ac_cv_sizeof_int != x ; then break; fi
15254 if test x$ac_cv_sizeof_int = x ; then
15255 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15257 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15258 cat >> confdefs.h <<EOF
15259 #define SIZEOF_INT $ac_cv_sizeof_int
15263 echo $ac_n "checking size of long""... $ac_c" 1>&6
15264 echo "configure:15265: checking size of long" >&5
15265 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15268 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15269 cat > conftest.$ac_ext <<EOF
15270 #line 15271 "configure"
15271 #include "confdefs.h"
15272 #include "confdefs.h"
15273 #include <sys/types.h>
15277 switch (0) case 0: case (sizeof (long) == $ac_size):;
15280 if { (eval echo configure:15281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15282 ac_cv_sizeof_long=$ac_size
15284 echo "configure: failed program was:" >&5
15285 cat conftest.$ac_ext >&5
15288 if test x$ac_cv_sizeof_long != x ; then break; fi
15293 if test x$ac_cv_sizeof_long = x ; then
15294 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15296 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15297 cat >> confdefs.h <<EOF
15298 #define SIZEOF_LONG $ac_cv_sizeof_long
15303 if test "$ac_cv_sizeof_int" -lt 4 ; then
15304 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15306 cat >> confdefs.h <<\EOF
15307 #define LBER_INT_T long
15311 cat >> confdefs.h <<\EOF
15312 #define LBER_INT_T int
15317 cat >> confdefs.h <<\EOF
15318 #define LBER_LEN_T long
15321 cat >> confdefs.h <<\EOF
15322 #define LBER_SOCKET_T int
15325 cat >> confdefs.h <<\EOF
15326 #define LBER_TAG_T long
15330 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15331 echo "configure:15332: checking for 8-bit clean memcmp" >&5
15332 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15335 if test "$cross_compiling" = yes; then
15336 ac_cv_func_memcmp_clean=no
15338 cat > conftest.$ac_ext <<EOF
15339 #line 15340 "configure"
15340 #include "confdefs.h"
15344 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15345 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15349 if { (eval echo configure:15350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15351 ac_cv_func_memcmp_clean=yes
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15356 ac_cv_func_memcmp_clean=no
15363 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15364 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15366 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15367 echo "configure:15368: checking for strftime" >&5
15368 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15369 echo $ac_n "(cached) $ac_c" 1>&6
15371 cat > conftest.$ac_ext <<EOF
15372 #line 15373 "configure"
15373 #include "confdefs.h"
15374 /* System header to define __stub macros and hopefully few prototypes,
15375 which can conflict with char strftime(); below. */
15376 #include <assert.h>
15377 /* Override any gcc2 internal prototype to avoid an error. */
15378 /* We use char because int might match the return type of a gcc2
15379 builtin and then its argument prototype would still apply. */
15385 /* The GNU C library defines this for functions which it implements
15386 to always fail with ENOSYS. Some functions are actually named
15387 something starting with __ and the normal name is an alias. */
15388 #if defined (__stub_strftime) || defined (__stub___strftime)
15396 if { (eval echo configure:15397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15398 eval "ac_cv_func_strftime=yes"
15400 echo "configure: failed program was:" >&5
15401 cat conftest.$ac_ext >&5
15403 eval "ac_cv_func_strftime=no"
15408 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15409 echo "$ac_t""yes" 1>&6
15410 cat >> confdefs.h <<\EOF
15411 #define HAVE_STRFTIME 1
15415 echo "$ac_t""no" 1>&6
15416 # strftime is in -lintl on SCO UNIX.
15417 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15418 echo "configure:15419: checking for strftime in -lintl" >&5
15419 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15421 echo $ac_n "(cached) $ac_c" 1>&6
15423 ac_save_LIBS="$LIBS"
15424 LIBS="-lintl $LIBS"
15425 cat > conftest.$ac_ext <<EOF
15426 #line 15427 "configure"
15427 #include "confdefs.h"
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15437 if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15439 eval "ac_cv_lib_$ac_lib_var=yes"
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15444 eval "ac_cv_lib_$ac_lib_var=no"
15447 LIBS="$ac_save_LIBS"
15450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15451 echo "$ac_t""yes" 1>&6
15452 cat >> confdefs.h <<\EOF
15453 #define HAVE_STRFTIME 1
15456 LIBS="-lintl $LIBS"
15458 echo "$ac_t""no" 1>&6
15464 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15465 echo "configure:15466: checking for inet_aton()" >&5
15466 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15467 echo $ac_n "(cached) $ac_c" 1>&6
15469 cat > conftest.$ac_ext <<EOF
15470 #line 15471 "configure"
15471 #include "confdefs.h"
15473 #ifdef HAVE_SYS_TYPES_H
15474 # include <sys/types.h>
15476 #ifdef HAVE_SYS_SOCKET_H
15477 # include <sys/socket.h>
15478 # ifdef HAVE_SYS_SELECT_H
15479 # include <sys/select.h>
15481 # include <netinet/in.h>
15482 # ifdef HAVE_ARPA_INET_H
15483 # include <arpa/inet.h>
15489 int rc = inet_aton( "255.255.255.255", &in );
15492 if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15494 ol_cv_func_inet_aton=yes
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15499 ol_cv_func_inet_aton=no
15504 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15505 if test $ol_cv_func_inet_aton != no; then
15506 cat >> confdefs.h <<\EOF
15507 #define HAVE_INET_ATON 1
15513 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15514 echo "configure:15515: checking for _spawnlp" >&5
15515 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15516 echo $ac_n "(cached) $ac_c" 1>&6
15518 cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521 /* System header to define __stub macros and hopefully few prototypes,
15522 which can conflict with char _spawnlp(); below. */
15523 #include <assert.h>
15524 /* Override any gcc2 internal prototype to avoid an error. */
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15532 /* The GNU C library defines this for functions which it implements
15533 to always fail with ENOSYS. Some functions are actually named
15534 something starting with __ and the normal name is an alias. */
15535 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15543 if { (eval echo configure:15544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15545 eval "ac_cv_func__spawnlp=yes"
15547 echo "configure: failed program was:" >&5
15548 cat conftest.$ac_ext >&5
15550 eval "ac_cv_func__spawnlp=no"
15555 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15556 echo "$ac_t""yes" 1>&6
15557 cat >> confdefs.h <<\EOF
15558 #define HAVE_SPAWNLP 1
15562 echo "$ac_t""no" 1>&6
15566 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15567 echo "configure:15568: checking for _snprintf" >&5
15568 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15569 echo $ac_n "(cached) $ac_c" 1>&6
15571 cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15574 /* System header to define __stub macros and hopefully few prototypes,
15575 which can conflict with char _snprintf(); below. */
15576 #include <assert.h>
15577 /* Override any gcc2 internal prototype to avoid an error. */
15578 /* We use char because int might match the return type of a gcc2
15579 builtin and then its argument prototype would still apply. */
15585 /* The GNU C library defines this for functions which it implements
15586 to always fail with ENOSYS. Some functions are actually named
15587 something starting with __ and the normal name is an alias. */
15588 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15596 if { (eval echo configure:15597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15598 eval "ac_cv_func__snprintf=yes"
15600 echo "configure: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15603 eval "ac_cv_func__snprintf=no"
15608 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15609 echo "$ac_t""yes" 1>&6
15610 ac_cv_func_snprintf=yes
15611 cat >> confdefs.h <<\EOF
15612 #define snprintf _snprintf
15617 echo "$ac_t""no" 1>&6
15621 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15622 echo "configure:15623: checking for _vsnprintf" >&5
15623 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15624 echo $ac_n "(cached) $ac_c" 1>&6
15626 cat > conftest.$ac_ext <<EOF
15627 #line 15628 "configure"
15628 #include "confdefs.h"
15629 /* System header to define __stub macros and hopefully few prototypes,
15630 which can conflict with char _vsnprintf(); below. */
15631 #include <assert.h>
15632 /* Override any gcc2 internal prototype to avoid an error. */
15633 /* We use char because int might match the return type of a gcc2
15634 builtin and then its argument prototype would still apply. */
15640 /* The GNU C library defines this for functions which it implements
15641 to always fail with ENOSYS. Some functions are actually named
15642 something starting with __ and the normal name is an alias. */
15643 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15651 if { (eval echo configure:15652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15653 eval "ac_cv_func__vsnprintf=yes"
15655 echo "configure: failed program was:" >&5
15656 cat conftest.$ac_ext >&5
15658 eval "ac_cv_func__vsnprintf=no"
15663 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15664 echo "$ac_t""yes" 1>&6
15665 ac_cv_func_vsnprintf=yes
15666 cat >> confdefs.h <<\EOF
15667 #define vsnprintf _vsnprintf
15672 echo "$ac_t""no" 1>&6
15676 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15677 echo "configure:15678: checking for vprintf" >&5
15678 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15679 echo $ac_n "(cached) $ac_c" 1>&6
15681 cat > conftest.$ac_ext <<EOF
15682 #line 15683 "configure"
15683 #include "confdefs.h"
15684 /* System header to define __stub macros and hopefully few prototypes,
15685 which can conflict with char vprintf(); below. */
15686 #include <assert.h>
15687 /* Override any gcc2 internal prototype to avoid an error. */
15688 /* We use char because int might match the return type of a gcc2
15689 builtin and then its argument prototype would still apply. */
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15708 eval "ac_cv_func_vprintf=yes"
15710 echo "configure: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15713 eval "ac_cv_func_vprintf=no"
15718 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15719 echo "$ac_t""yes" 1>&6
15720 cat >> confdefs.h <<\EOF
15721 #define HAVE_VPRINTF 1
15725 echo "$ac_t""no" 1>&6
15728 if test "$ac_cv_func_vprintf" != yes; then
15729 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15730 echo "configure:15731: checking for _doprnt" >&5
15731 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15732 echo $ac_n "(cached) $ac_c" 1>&6
15734 cat > conftest.$ac_ext <<EOF
15735 #line 15736 "configure"
15736 #include "confdefs.h"
15737 /* System header to define __stub macros and hopefully few prototypes,
15738 which can conflict with char _doprnt(); below. */
15739 #include <assert.h>
15740 /* Override any gcc2 internal prototype to avoid an error. */
15741 /* We use char because int might match the return type of a gcc2
15742 builtin and then its argument prototype would still apply. */
15748 /* The GNU C library defines this for functions which it implements
15749 to always fail with ENOSYS. Some functions are actually named
15750 something starting with __ and the normal name is an alias. */
15751 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15759 if { (eval echo configure:15760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15761 eval "ac_cv_func__doprnt=yes"
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15766 eval "ac_cv_func__doprnt=no"
15771 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15772 echo "$ac_t""yes" 1>&6
15773 cat >> confdefs.h <<\EOF
15774 #define HAVE_DOPRNT 1
15778 echo "$ac_t""no" 1>&6
15784 if test $ac_cv_func_vprintf = yes ; then
15785 for ac_func in vsnprintf vsprintf
15787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15788 echo "configure:15789: checking for $ac_func" >&5
15789 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15790 echo $ac_n "(cached) $ac_c" 1>&6
15792 cat > conftest.$ac_ext <<EOF
15793 #line 15794 "configure"
15794 #include "confdefs.h"
15795 /* System header to define __stub macros and hopefully few prototypes,
15796 which can conflict with char $ac_func(); below. */
15797 #include <assert.h>
15798 /* Override any gcc2 internal prototype to avoid an error. */
15799 /* We use char because int might match the return type of a gcc2
15800 builtin and then its argument prototype would still apply. */
15806 /* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15817 if { (eval echo configure:15818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15819 eval "ac_cv_func_$ac_func=yes"
15821 echo "configure: failed program was:" >&5
15822 cat conftest.$ac_ext >&5
15824 eval "ac_cv_func_$ac_func=no"
15829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15830 echo "$ac_t""yes" 1>&6
15831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15832 cat >> confdefs.h <<EOF
15833 #define $ac_tr_func 1
15837 echo "$ac_t""no" 1>&6
15895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15896 echo "configure:15897: checking for $ac_func" >&5
15897 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15898 echo $ac_n "(cached) $ac_c" 1>&6
15900 cat > conftest.$ac_ext <<EOF
15901 #line 15902 "configure"
15902 #include "confdefs.h"
15903 /* System header to define __stub macros and hopefully few prototypes,
15904 which can conflict with char $ac_func(); below. */
15905 #include <assert.h>
15906 /* Override any gcc2 internal prototype to avoid an error. */
15907 /* We use char because int might match the return type of a gcc2
15908 builtin and then its argument prototype would still apply. */
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15925 if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15927 eval "ac_cv_func_$ac_func=yes"
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15932 eval "ac_cv_func_$ac_func=no"
15937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15938 echo "$ac_t""yes" 1>&6
15939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15940 cat >> confdefs.h <<EOF
15941 #define $ac_tr_func 1
15945 echo "$ac_t""no" 1>&6
15950 for ac_func in getopt tempnam
15952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15953 echo "configure:15954: checking for $ac_func" >&5
15954 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15957 cat > conftest.$ac_ext <<EOF
15958 #line 15959 "configure"
15959 #include "confdefs.h"
15960 /* System header to define __stub macros and hopefully few prototypes,
15961 which can conflict with char $ac_func(); below. */
15962 #include <assert.h>
15963 /* Override any gcc2 internal prototype to avoid an error. */
15964 /* We use char because int might match the return type of a gcc2
15965 builtin and then its argument prototype would still apply. */
15971 /* The GNU C library defines this for functions which it implements
15972 to always fail with ENOSYS. Some functions are actually named
15973 something starting with __ and the normal name is an alias. */
15974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15982 if { (eval echo configure:15983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15984 eval "ac_cv_func_$ac_func=yes"
15986 echo "configure: failed program was:" >&5
15987 cat conftest.$ac_ext >&5
15989 eval "ac_cv_func_$ac_func=no"
15994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15995 echo "$ac_t""yes" 1>&6
15996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15997 cat >> confdefs.h <<EOF
15998 #define $ac_tr_func 1
16002 echo "$ac_t""no" 1>&6
16003 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16009 if test "$ac_cv_func_getopt" != yes; then
16010 LIBSRCS="$LIBSRCS getopt.c"
16013 if test "$ac_cv_func_tempnam" != yes; then
16014 LIBSRCS="$LIBSRCS tempnam.c"
16017 # Check Configuration
16018 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16019 echo "configure:16020: checking declaration of sys_errlist" >&5
16020 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16021 echo $ac_n "(cached) $ac_c" 1>&6
16024 cat > conftest.$ac_ext <<EOF
16025 #line 16026 "configure"
16026 #include "confdefs.h"
16029 #include <sys/types.h>
16032 #include <stdlib.h>
16035 char *c = (char *) *sys_errlist
16038 if { (eval echo configure:16039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16040 ol_cv_dcl_sys_errlist=yes
16041 ol_cv_have_sys_errlist=yes
16043 echo "configure: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16046 ol_cv_dcl_sys_errlist=no
16051 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16053 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16054 if test $ol_cv_dcl_sys_errlist = no ; then
16055 cat >> confdefs.h <<\EOF
16056 #define DECL_SYS_ERRLIST 1
16060 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16061 echo "configure:16062: checking existence of sys_errlist" >&5
16062 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
16066 cat > conftest.$ac_ext <<EOF
16067 #line 16068 "configure"
16068 #include "confdefs.h"
16071 char *c = (char *) *sys_errlist
16074 if { (eval echo configure:16075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16076 ol_cv_have_sys_errlist=yes
16078 echo "configure: failed program was:" >&5
16079 cat conftest.$ac_ext >&5
16081 ol_cv_have_sys_errlist=no
16086 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16088 if test $ol_cv_have_sys_errlist = yes ; then
16089 cat >> confdefs.h <<\EOF
16090 #define HAVE_SYS_ERRLIST 1
16097 if test "$ol_enable_debug" != no ; then
16098 cat >> confdefs.h <<\EOF
16099 #define LDAP_DEBUG 1
16103 if test "$ol_enable_syslog" = yes ; then
16104 cat >> confdefs.h <<\EOF
16105 #define LDAP_SYSLOG 1
16109 if test "$ol_enable_libui" = yes ; then
16110 cat >> confdefs.h <<\EOF
16111 #define LDAP_LIBUI 1
16115 if test "$ol_enable_cache" = no ; then
16116 cat >> confdefs.h <<\EOF
16117 #define LDAP_NOCACHE 1
16121 if test "$ol_link_kbind" != no ; then
16122 cat >> confdefs.h <<\EOF
16123 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16127 if test "$ol_enable_dns" != no ; then
16128 cat >> confdefs.h <<\EOF
16129 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
16133 if test "$ol_enable_proctitle" != no ; then
16134 cat >> confdefs.h <<\EOF
16135 #define LDAP_PROCTITLE 1
16139 if test "$ol_enable_referrals" != no ; then
16140 cat >> confdefs.h <<\EOF
16141 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16145 if test "$ol_enable_cldap" != no ; then
16146 cat >> confdefs.h <<\EOF
16147 #define LDAP_CONNECTIONLESS 1
16151 if test "$ol_enable_ldapi" != no; then
16152 cat >> confdefs.h <<\EOF
16153 #define USE_PF_LOCAL 1
16158 if test "$ol_enable_cleartext" != no ; then
16159 cat >> confdefs.h <<\EOF
16160 #define SLAPD_CLEARTEXT 1
16164 if test "$ol_enable_crypt" != no ; then
16165 cat >> confdefs.h <<\EOF
16166 #define SLAPD_CRYPT 1
16170 if test "$ol_link_kpasswd" != no ; then
16171 cat >> confdefs.h <<\EOF
16172 #define SLAPD_KPASSWD 1
16176 if test "$ol_link_spasswd" != no ; then
16177 cat >> confdefs.h <<\EOF
16178 #define SLAPD_SPASSWD 1
16182 if test "$ol_enable_multimaster" != no ; then
16183 cat >> confdefs.h <<\EOF
16184 #define SLAPD_MULTIMASTER 1
16188 if test "$ol_enable_phonetic" != no ; then
16189 cat >> confdefs.h <<\EOF
16190 #define SLAPD_PHONETIC 1
16194 if test "$ol_enable_rlookups" != no ; then
16195 cat >> confdefs.h <<\EOF
16196 #define SLAPD_RLOOKUPS 1
16200 if test "$ol_enable_aci" != no ; then
16201 cat >> confdefs.h <<\EOF
16202 #define SLAPD_ACI_ENABLED 1
16207 if test "$ol_link_modules" != no ; then
16208 cat >> confdefs.h <<\EOF
16209 #define SLAPD_MODULES 1
16213 SLAPD_MODULES_LDFLAGS="-dlopen self"
16216 if test "$ol_link_bdb2" != no ; then
16217 cat >> confdefs.h <<\EOF
16218 #define SLAPD_BDB2 1
16223 if test "$ol_with_bdb2_module" != static ; then
16224 cat >> confdefs.h <<\EOF
16225 #define SLAPD_BDB2_DYNAMIC 1
16229 BUILD_BDB2_DYNAMIC=shared
16230 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
16234 if test "$ol_enable_dnssrv" != no ; then
16235 cat >> confdefs.h <<\EOF
16236 #define SLAPD_DNSSRV 1
16241 if test "$ol_with_dnssrv_module" != static ; then
16242 cat >> confdefs.h <<\EOF
16243 #define SLAPD_DNSSRV_DYNAMIC 1
16247 BUILD_DNSSRV_DYNAMIC=shared
16248 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16252 if test "$ol_enable_ldap" != no ; then
16253 cat >> confdefs.h <<\EOF
16254 #define SLAPD_LDAP 1
16259 if test "$ol_with_ldap_module" != static ; then
16260 cat >> confdefs.h <<\EOF
16261 #define SLAPD_LDAP_DYNAMIC 1
16265 BUILD_LDAP_DYNAMIC=shared
16266 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16270 if test "$ol_link_ldbm" != no ; then
16271 cat >> confdefs.h <<\EOF
16272 #define SLAPD_LDBM 1
16277 if test "$ol_with_ldbm_module" != static ; then
16278 cat >> confdefs.h <<\EOF
16279 #define SLAPD_LDBM_DYNAMIC 1
16283 BUILD_LDBM_DYNAMIC=shared
16284 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16288 if test "$ol_enable_passwd" != no ; then
16289 cat >> confdefs.h <<\EOF
16290 #define SLAPD_PASSWD 1
16295 if test "$ol_with_passwd_module" != static ; then
16296 cat >> confdefs.h <<\EOF
16297 #define SLAPD_PASSWD_DYNAMIC 1
16301 BUILD_PASSWD_DYNAMIC=shared
16302 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16306 if test "$ol_link_perl" != no ; then
16307 cat >> confdefs.h <<\EOF
16308 #define SLAPD_PERL 1
16313 if test "$ol_with_perl_module" != static ; then
16314 cat >> confdefs.h <<\EOF
16315 #define SLAPD_PERL_DYNAMIC 1
16319 BUILD_PERL_DYNAMIC=shared
16320 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16324 if test "$ol_enable_shell" != no ; then
16325 cat >> confdefs.h <<\EOF
16326 #define SLAPD_SHELL 1
16331 if test "$ol_with_shell_module" != static ; then
16332 cat >> confdefs.h <<\EOF
16333 #define SLAPD_SHELL_DYNAMIC 1
16337 BUILD_SHELL_DYNAMIC=shared
16338 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16342 if test "$ol_enable_tcl" != no ; then
16343 cat >> confdefs.h <<\EOF
16344 #define SLAPD_TCL 1
16349 if test "$ol_with_tcl_module" != static; then
16350 cat >> confdefs.h <<\EOF
16351 #define SLAPD_TCL_DYNAMIC 1
16355 BUILD_TCL_DYNAMIC=shared
16356 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16360 if test "$ol_enable_sql" != no ; then
16361 cat >> confdefs.h <<\EOF
16362 #define SLAPD_SQL 1
16367 SLAPD_SQL_LIBS=-liodbc
16368 if test "$ol_with_sql_module" != static; then
16369 cat >> confdefs.h <<\EOF
16370 #define SLAPD_SQL_DYNAMIC 1
16374 BUILD_SQL_DYNAMIC=shared
16375 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16379 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16380 $BUILD_SLAPD = yes ; then
16384 if test "$ol_link_isode" != no ; then
16389 if test "$LINK_BINS_DYNAMIC" = yes; then
16391 LT_LIB_LINKAGE=shared
16394 LT_LIB_LINKAGE=static
16397 if test "$ac_cv_mingw32" = yes ; then
16471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16474 # Let make expand exec_prefix.
16475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16477 # Any assignment to VPATH causes Sun make to only execute
16478 # the first set of double-colon rules, so remove it if not needed.
16479 # If there is a colon in the path, we need to keep it.
16480 if test "x$srcdir" = x.; then
16481 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16484 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16486 DEFS=-DHAVE_CONFIG_H
16488 # Without the "./", some shells look in PATH for config.status.
16489 : ${CONFIG_STATUS=./config.status}
16491 echo creating $CONFIG_STATUS
16492 rm -f $CONFIG_STATUS
16493 cat > $CONFIG_STATUS <<EOF
16495 # Generated automatically by configure.
16496 # Run this file to recreate the current configuration.
16497 # This directory was configured as follows,
16498 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16500 # $0 $ac_configure_args
16502 # Compiler output produced by configure, useful for debugging
16503 # configure, is in ./config.log if it exists.
16505 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16508 case "\$ac_option" in
16509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16510 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16511 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16512 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16513 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16515 -help | --help | --hel | --he | --h)
16516 echo "\$ac_cs_usage"; exit 0 ;;
16517 *) echo "\$ac_cs_usage"; exit 1 ;;
16521 ac_given_srcdir=$srcdir
16522 ac_given_INSTALL="$INSTALL"
16524 trap 'rm -fr `echo "\
16525 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16526 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16527 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16528 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16529 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16530 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16531 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16532 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16533 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16534 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16535 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16536 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16537 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16538 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16539 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16540 include/Makefile:build/top.mk:include/Makefile.in \
16541 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16542 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16543 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16544 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16545 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16546 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16547 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16548 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16549 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16550 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16551 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16552 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16553 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16554 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16555 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16556 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16557 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16558 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16559 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16560 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16561 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16562 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16563 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16564 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16565 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16566 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16567 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16568 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16569 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16570 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16572 cat >> $CONFIG_STATUS <<EOF
16574 # Protect against being on the right side of a sed subst in config.status.
16575 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16576 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16580 s%@CFLAGS@%$CFLAGS%g
16581 s%@CPPFLAGS@%$CPPFLAGS%g
16582 s%@CXXFLAGS@%$CXXFLAGS%g
16583 s%@FFLAGS@%$FFLAGS%g
16585 s%@LDFLAGS@%$LDFLAGS%g
16587 s%@exec_prefix@%$exec_prefix%g
16588 s%@prefix@%$prefix%g
16589 s%@program_transform_name@%$program_transform_name%g
16590 s%@bindir@%$bindir%g
16591 s%@sbindir@%$sbindir%g
16592 s%@libexecdir@%$libexecdir%g
16593 s%@datadir@%$datadir%g
16594 s%@sysconfdir@%$sysconfdir%g
16595 s%@sharedstatedir@%$sharedstatedir%g
16596 s%@localstatedir@%$localstatedir%g
16597 s%@libdir@%$libdir%g
16598 s%@includedir@%$includedir%g
16599 s%@oldincludedir@%$oldincludedir%g
16600 s%@infodir@%$infodir%g
16601 s%@mandir@%$mandir%g
16603 s%@host_alias@%$host_alias%g
16604 s%@host_cpu@%$host_cpu%g
16605 s%@host_vendor@%$host_vendor%g
16606 s%@host_os@%$host_os%g
16607 s%@target@%$target%g
16608 s%@target_alias@%$target_alias%g
16609 s%@target_cpu@%$target_cpu%g
16610 s%@target_vendor@%$target_vendor%g
16611 s%@target_os@%$target_os%g
16613 s%@build_alias@%$build_alias%g
16614 s%@build_cpu@%$build_cpu%g
16615 s%@build_vendor@%$build_vendor%g
16616 s%@build_os@%$build_os%g
16617 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16618 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16619 s%@INSTALL_DATA@%$INSTALL_DATA%g
16620 s%@PACKAGE@%$PACKAGE%g
16621 s%@VERSION@%$VERSION%g
16622 s%@ACLOCAL@%$ACLOCAL%g
16623 s%@AUTOCONF@%$AUTOCONF%g
16624 s%@AUTOMAKE@%$AUTOMAKE%g
16625 s%@AUTOHEADER@%$AUTOHEADER%g
16626 s%@MAKEINFO@%$MAKEINFO%g
16627 s%@install_sh@%$install_sh%g
16630 s%@AMTARFLAGS@%$AMTARFLAGS%g
16631 s%@SET_MAKE@%$SET_MAKE%g
16632 s%@top_builddir@%$top_builddir%g
16633 s%@ldap_subdir@%$ldap_subdir%g
16635 s%@RANLIB@%$RANLIB%g
16637 s%@DLLTOOL@%$DLLTOOL%g
16639 s%@OBJDUMP@%$OBJDUMP%g
16640 s%@LIBTOOL@%$LIBTOOL%g
16642 s%@SENDMAIL@%$SENDMAIL%g
16643 s%@EDITOR@%$EDITOR%g
16644 s%@FINGER@%$FINGER%g
16645 s%@PERLBIN@%$PERLBIN%g
16647 s%@EXEEXT@%$EXEEXT%g
16648 s%@OBJEXT@%$OBJEXT%g
16649 s%@OL_MKDEP@%$OL_MKDEP%g
16650 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16652 s%@LIBOBJS@%$LIBOBJS%g
16653 s%@LIBSRCS@%$LIBSRCS%g
16655 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16656 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16657 s%@DYN_EXT@%$DYN_EXT%g
16658 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
16659 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16660 s%@BUILD_BDB2@%$BUILD_BDB2%g
16661 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16662 s%@BUILD_LDAP@%$BUILD_LDAP%g
16663 s%@BUILD_LDBM@%$BUILD_LDBM%g
16664 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16665 s%@BUILD_PERL@%$BUILD_PERL%g
16666 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16667 s%@BUILD_SHELL@%$BUILD_SHELL%g
16668 s%@BUILD_SQL@%$BUILD_SQL%g
16669 s%@BUILD_TCL@%$BUILD_TCL%g
16670 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16671 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16672 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16673 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16674 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16675 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16676 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16677 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16678 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16679 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16680 s%@LDAP_LIBS@%$LDAP_LIBS%g
16681 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
16682 s%@LDIF_LIBS@%$LDIF_LIBS%g
16683 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16684 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16685 s%@LDBM_LIBS@%$LDBM_LIBS%g
16686 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16687 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16688 s%@WRAP_LIBS@%$WRAP_LIBS%g
16689 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16690 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16691 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16692 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16693 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16694 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16695 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16696 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16697 s%@KRB4_LIBS@%$KRB4_LIBS%g
16698 s%@KRB5_LIBS@%$KRB5_LIBS%g
16699 s%@READLINE_LIBS@%$READLINE_LIBS%g
16700 s%@SASL_LIBS@%$SASL_LIBS%g
16701 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16702 s%@TLS_LIBS@%$TLS_LIBS%g
16703 s%@MODULES_LIBS@%$MODULES_LIBS%g
16704 s%@AUTH_LIBS@%$AUTH_LIBS%g
16705 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16706 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16707 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16712 cat >> $CONFIG_STATUS <<\EOF
16714 # Split the substitutions into bite-sized pieces for seds with
16715 # small command number limits, like on Digital OSF/1 and HP-UX.
16716 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16717 ac_file=1 # Number of current file.
16718 ac_beg=1 # First line for current file.
16719 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16722 while $ac_more_lines; do
16723 if test $ac_beg -gt 1; then
16724 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16726 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16728 if test ! -s conftest.s$ac_file; then
16729 ac_more_lines=false
16730 rm -f conftest.s$ac_file
16732 if test -z "$ac_sed_cmds"; then
16733 ac_sed_cmds="sed -f conftest.s$ac_file"
16735 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16737 ac_file=`expr $ac_file + 1`
16739 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16742 if test -z "$ac_sed_cmds"; then
16747 cat >> $CONFIG_STATUS <<EOF
16749 CONFIG_FILES=\${CONFIG_FILES-"\
16750 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16751 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16752 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16753 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16754 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16755 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16756 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16757 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16758 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16759 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16760 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16761 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16762 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16763 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16764 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16765 include/Makefile:build/top.mk:include/Makefile.in \
16766 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16767 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16768 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16769 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16770 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16771 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16772 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16773 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16774 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16775 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16776 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16777 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16778 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16779 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16780 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16781 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16782 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16783 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16784 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16785 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16786 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16787 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16788 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16789 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16790 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16791 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16792 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16793 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16794 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16797 cat >> $CONFIG_STATUS <<\EOF
16798 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16799 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16801 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16802 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16803 *) ac_file_in="${ac_file}.in" ;;
16806 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16808 # Remove last slash and all that follows it. Not all systems have dirname.
16809 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16810 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16811 # The file is in a subdirectory.
16812 test ! -d "$ac_dir" && mkdir "$ac_dir"
16813 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16814 # A "../" for each directory in $ac_dir_suffix.
16815 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16817 ac_dir_suffix= ac_dots=
16820 case "$ac_given_srcdir" in
16822 if test -z "$ac_dots"; then top_srcdir=.
16823 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16824 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16825 *) # Relative path.
16826 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16827 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16830 case "$ac_given_INSTALL" in
16831 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16832 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16835 echo creating "$ac_file"
16837 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16839 *[Mm]akefile*) ac_comsub="1i\\
16840 # $configure_input" ;;
16844 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16846 s%@configure_input@%$configure_input%g
16847 s%@srcdir@%$srcdir%g
16848 s%@top_srcdir@%$top_srcdir%g
16849 s%@INSTALL@%$INSTALL%g
16850 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16857 # ac_d sets the value in "#define NAME VALUE" lines.
16858 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16859 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16862 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16863 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16864 ac_uB='\([ ]\)%\1#\2define\3'
16867 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16868 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16869 ac_eB='$%\1#\2define\3'
16873 if test "${CONFIG_HEADERS+set}" != set; then
16875 cat >> $CONFIG_STATUS <<EOF
16876 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16878 cat >> $CONFIG_STATUS <<\EOF
16880 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16881 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16883 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16884 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16885 *) ac_file_in="${ac_file}.in" ;;
16888 echo creating $ac_file
16890 rm -f conftest.frag conftest.in conftest.out
16891 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16892 cat $ac_file_inputs > conftest.in
16896 # Transform confdefs.h into a sed script conftest.vals that substitutes
16897 # the proper values into config.h.in to produce config.h. And first:
16898 # Protect against being on the right side of a sed subst in config.status.
16899 # Protect against being in an unquoted here document in config.status.
16900 rm -f conftest.vals
16901 cat > conftest.hdr <<\EOF
16904 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16908 sed -n -f conftest.hdr confdefs.h > conftest.vals
16911 # This sed command replaces #undef with comments. This is necessary, for
16912 # example, in the case of _POSIX_SOURCE, which is predefined and required
16913 # on some systems where configure will not decide to define it.
16914 cat >> conftest.vals <<\EOF
16915 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16918 # Break up conftest.vals because some shells have a limit on
16919 # the size of here documents, and old seds have small limits too.
16921 rm -f conftest.tail
16924 ac_lines=`grep -c . conftest.vals`
16925 # grep -c gives empty output for an empty file on some AIX systems.
16926 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16927 # Write a limited-size here document to conftest.frag.
16928 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16929 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16931 sed -f conftest.frag conftest.in > conftest.out
16933 mv conftest.out conftest.in
16934 ' >> $CONFIG_STATUS
16935 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16936 rm -f conftest.vals
16937 mv conftest.tail conftest.vals
16939 rm -f conftest.vals
16941 cat >> $CONFIG_STATUS <<\EOF
16942 rm -f conftest.frag conftest.h
16943 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16944 cat conftest.in >> conftest.h
16946 if cmp -s $ac_file conftest.h 2>/dev/null; then
16947 echo "$ac_file is unchanged"
16950 # Remove last slash and all that follows it. Not all systems have dirname.
16951 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16952 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16953 # The file is in a subdirectory.
16954 test ! -d "$ac_dir" && mkdir "$ac_dir"
16957 mv conftest.h $ac_file
16962 cat >> $CONFIG_STATUS <<EOF
16965 cat >> $CONFIG_STATUS <<\EOF
16968 echo Please \"make depend\" to build dependencies
16972 chmod +x $CONFIG_STATUS
16973 rm -fr confdefs* $ac_clean_files
16974 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1