3 # from OpenLDAP: pkg/ldap/configure.in,v 1.284 2000/01/08 17:42:15 kdz Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.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-modules enable dynamic module support (no)"
82 --enable-multimaster enable multimaster replication (no)"
84 --enable-phonetic enable phonetic/soundex (no)"
86 --enable-quipu build quipu migration tools (no)"
88 --enable-rlookups enable reverse lookups (auto)"
90 --enable-aci enable per-object ACIs (no)"
92 --enable-discreteaci enable discrete rights in ACIs (no)"
94 --enable-wrappers enable tcp wrapper support (no)"
96 --enable-dynamic enable linking built binaries with dynamic libs (no)"
98 --enable-bdb2 enable bdb2 backend (no)"
100 --with-bdb2-module module type (static)"
102 --enable-ldap enable ldap backend (no)"
104 --with-ldap-module module type (static)"
106 --enable-ldbm enable ldbm backend (yes)"
108 --with-ldbm-api use LDBM API (auto)"
110 --with-ldbm-module module type (static)"
112 --with-ldbm-type use LDBM type (auto)"
114 --enable-passwd enable passwd backend (no)"
116 --with-passwd-module module type (static)"
118 --enable-perl enable perl backend (no)"
120 --with-perl-module module type (static)"
122 --enable-shell enable shell backend (no)"
124 --with-shell-module module type (static)"
126 --enable-tcl enable tcl backend (no)"
128 --with-tcl-module module type (static)"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd (auto)"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13.1"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 for ac_dir in build $srcdir/build; do
649 if test -f $ac_dir/install-sh; then
651 ac_install_sh="$ac_aux_dir/install-sh -c"
653 elif test -f $ac_dir/install.sh; then
655 ac_install_sh="$ac_aux_dir/install.sh -c"
657 elif test -f $ac_dir/shtool; then
659 ac_install_sh="$ac_aux_dir/shtool install -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
666 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
667 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
668 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
670 OL_VERSION=`cat $ac_aux_dir/version`
671 if test -z "$OL_VERSION"; then
672 { echo "configure: error: could not determine version" 1>&2; exit 1; }
675 echo "Configuring OpenLDAP $OL_VERSION ..."
678 echo $ac_n "checking host system type""... $ac_c" 1>&6
679 echo "configure:680: checking host system type" >&5
680 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
682 # Make sure we can run config.sub.
683 if $ac_config_sub sun4 >/dev/null 2>&1; then :
684 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
687 ac_cv_host_alias=$host
688 case "$ac_cv_host_alias" in
692 if ac_cv_host_alias=`$ac_config_guess`; then :
693 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
695 *) ac_cv_host_alias=$nonopt ;;
699 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
700 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
704 echo $ac_n "(cached) $ac_c" 1>&6
707 echo "$ac_t""$ac_cv_host" 1>&6
710 host_alias=$ac_cv_host_alias
711 host_cpu=$ac_cv_host_cpu
712 host_vendor=$ac_cv_host_vendor
713 host_os=$ac_cv_host_os
719 echo $ac_n "checking target system type""... $ac_c" 1>&6
720 echo "configure:721: checking target system type" >&5
721 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
723 # Make sure we can run config.sub.
724 if $ac_config_sub sun4 >/dev/null 2>&1; then :
725 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
728 ac_cv_target_alias=$target
729 case "$ac_cv_target_alias" in
733 ac_cv_target_alias=$host_alias ;;
735 *) ac_cv_target_alias=$nonopt ;;
739 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
740 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo $ac_n "(cached) $ac_c" 1>&6
747 echo "$ac_t""$ac_cv_target" 1>&6
750 target_alias=$ac_cv_target_alias
751 target_cpu=$ac_cv_target_cpu
752 target_vendor=$ac_cv_target_vendor
753 target_os=$ac_cv_target_os
759 echo $ac_n "checking build system type""... $ac_c" 1>&6
760 echo "configure:761: checking build system type" >&5
761 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
763 # Make sure we can run config.sub.
764 if $ac_config_sub sun4 >/dev/null 2>&1; then :
765 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
768 ac_cv_build_alias=$build
769 case "$ac_cv_build_alias" in
773 ac_cv_build_alias=$host_alias ;;
775 *) ac_cv_build_alias=$nonopt ;;
779 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
780 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
781 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
782 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
784 echo $ac_n "(cached) $ac_c" 1>&6
787 echo "$ac_t""$ac_cv_build" 1>&6
790 build_alias=$ac_cv_build_alias
791 build_cpu=$ac_cv_build_cpu
792 build_vendor=$ac_cv_build_vendor
793 build_os=$ac_cv_build_os
799 # Do some error checking and defaulting for the host and target type.
801 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
804 # 1. You are not allowed to specify --host, --target, and nonopt at the
806 # 2. Host defaults to nonopt.
807 # 3. If nonopt is not specified, then host defaults to the current host,
808 # as determined by config.guess.
809 # 4. Target and build default to nonopt.
810 # 5. If nonopt is not specified, then target and build default to host.
812 # The aliases save the names the user supplied, while $host etc.
813 # will get canonicalized.
814 case $host---$target---$nonopt in
815 NONE---*---* | *---NONE---* | *---*---NONE) ;;
816 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
819 test "$host_alias" != "$target_alias" &&
820 test "$program_prefix$program_suffix$program_transform_name" = \
822 program_prefix=${target_alias}-
825 # Find a good install program. We prefer a C program (faster),
826 # so one script is as good as another. But avoid the broken or
827 # incompatible versions:
828 # SysV /etc/install, /usr/sbin/install
829 # SunOS /usr/etc/install
832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
835 # ./install, which can be erroneously created by make from ./install.sh.
836 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
837 echo "configure:838: checking for a BSD compatible install" >&5
838 if test -z "$INSTALL"; then
839 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
843 for ac_dir in $PATH; do
844 # Account for people who put trailing slashes in PATH elements.
846 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
848 # OSF1 and SCO ODT 3.0 have their own names for install.
849 # Don't use installbsd from OSF since it installs stuff as root
851 for ac_prog in ginstall scoinst install; do
852 if test -f $ac_dir/$ac_prog; then
853 if test $ac_prog = install &&
854 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
855 # AIX install. It has an incompatible calling convention.
857 elif test $ac_prog = install &&
858 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
859 # program-specific install script used by HP pwplus--don't use.
862 ac_cv_path_install="$ac_dir/$ac_prog -c"
873 if test "${ac_cv_path_install+set}" = set; then
874 INSTALL="$ac_cv_path_install"
876 # As a last resort, use the slow shell script. We don't cache a
877 # path for INSTALL within a source directory, because that will
878 # break other packages using the cache if that directory is
879 # removed, or if the path is relative.
880 INSTALL="$ac_install_sh"
883 echo "$ac_t""$INSTALL" 1>&6
885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
886 # It thinks the first close brace ends the variable substitution.
887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
893 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
894 echo "configure:895: checking whether build environment is sane" >&5
897 echo timestamp > conftestfile
898 # Do `set' in a subshell so we don't clobber the current shell's
899 # arguments. Must try -L first in case configure is actually a
900 # symlink; some systems play weird games with the mod time of symlinks
901 # (eg FreeBSD returns the mod time of the symlink's containing
904 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
905 if test "$*" = "X"; then
907 set X `ls -t $srcdir/configure conftestfile`
909 if test "$*" != "X $srcdir/configure conftestfile" \
910 && test "$*" != "X conftestfile $srcdir/configure"; then
912 # If neither matched, then we have a broken ls. This can happen
913 # if, for instance, CONFIG_SHELL is bash and it inherits a
914 # broken ls alias from the environment. This has actually
915 # happened. Such a system could not be considered "sane".
916 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
917 alias in your environment" 1>&2; exit 1; }
920 test "$2" = conftestfile
926 { echo "configure: error: newly created file is older than distributed files!
927 Check your system clock" 1>&2; exit 1; }
930 echo "$ac_t""yes" 1>&6
931 if test "$program_transform_name" = s,x,x,; then
932 program_transform_name=
934 # Double any \ or $. echo might interpret backslashes.
935 cat <<\EOF_SED > conftestsed
936 s,\\,\\\\,g; s,\$,$$,g
938 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
941 test "$program_prefix" != NONE &&
942 program_transform_name="s,^,${program_prefix},;$program_transform_name"
943 # Use a double $ so make ignores it.
944 test "$program_suffix" != NONE &&
945 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
947 # sed with no file args requires a program.
948 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
950 for ac_prog in mawk gawk nawk awk
952 # Extract the first word of "$ac_prog", so it can be a program name with args.
953 set dummy $ac_prog; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$AWK"; then
960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_AWK="$ac_prog"
974 AWK="$ac_cv_prog_AWK"
975 if test -n "$AWK"; then
976 echo "$ac_t""$AWK" 1>&6
978 echo "$ac_t""no" 1>&6
981 test -n "$AWK" && break
984 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
985 echo "configure:986: checking whether ${MAKE-make} sets \${MAKE}" >&5
986 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
987 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 cat > conftestmake <<\EOF
992 @echo 'ac_maketemp="${MAKE}"'
994 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
995 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
996 if test -n "$ac_maketemp"; then
997 eval ac_cv_prog_make_${ac_make}_set=yes
999 eval ac_cv_prog_make_${ac_make}_set=no
1003 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1004 echo "$ac_t""yes" 1>&6
1007 echo "$ac_t""no" 1>&6
1008 SET_MAKE="MAKE=${MAKE-make}"
1017 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1018 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1023 missing_dir=`cd $ac_aux_dir && pwd`
1024 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1025 echo "configure:1026: checking for working aclocal" >&5
1026 # Run test in a subshell; some versions of sh will print an error if
1027 # an executable is not found, even if stderr is redirected.
1028 # Redirect stdin to placate older versions of autoconf. Sigh.
1029 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1031 echo "$ac_t""found" 1>&6
1033 ACLOCAL="$missing_dir/missing aclocal"
1034 echo "$ac_t""missing" 1>&6
1037 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1038 echo "configure:1039: checking for working autoconf" >&5
1039 # Run test in a subshell; some versions of sh will print an error if
1040 # an executable is not found, even if stderr is redirected.
1041 # Redirect stdin to placate older versions of autoconf. Sigh.
1042 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1044 echo "$ac_t""found" 1>&6
1046 AUTOCONF="$missing_dir/missing autoconf"
1047 echo "$ac_t""missing" 1>&6
1050 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1051 echo "configure:1052: checking for working automake" >&5
1052 # Run test in a subshell; some versions of sh will print an error if
1053 # an executable is not found, even if stderr is redirected.
1054 # Redirect stdin to placate older versions of autoconf. Sigh.
1055 if (automake --version) < /dev/null > /dev/null 2>&1; then
1057 echo "$ac_t""found" 1>&6
1059 AUTOMAKE="$missing_dir/missing automake"
1060 echo "$ac_t""missing" 1>&6
1063 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1064 echo "configure:1065: checking for working autoheader" >&5
1065 # Run test in a subshell; some versions of sh will print an error if
1066 # an executable is not found, even if stderr is redirected.
1067 # Redirect stdin to placate older versions of autoconf. Sigh.
1068 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1069 AUTOHEADER=autoheader
1070 echo "$ac_t""found" 1>&6
1072 AUTOHEADER="$missing_dir/missing autoheader"
1073 echo "$ac_t""missing" 1>&6
1076 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1077 echo "configure:1078: checking for working makeinfo" >&5
1078 # Run test in a subshell; some versions of sh will print an error if
1079 # an executable is not found, even if stderr is redirected.
1080 # Redirect stdin to placate older versions of autoconf. Sigh.
1081 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1083 echo "$ac_t""found" 1>&6
1085 MAKEINFO="$missing_dir/missing makeinfo"
1086 echo "$ac_t""missing" 1>&6
1089 install_sh="$missing_dir/install-sh"
1090 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1092 for ac_prog in gnutar gtar tar
1094 # Extract the first word of "$ac_prog", so it can be a program name with args.
1095 set dummy $ac_prog; ac_word=$2
1096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1097 echo "configure:1098: checking for $ac_word" >&5
1098 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 if test -n "$AMTAR"; then
1102 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 ac_cv_prog_AMTAR="$ac_prog"
1116 AMTAR="$ac_cv_prog_AMTAR"
1117 if test -n "$AMTAR"; then
1118 echo "$ac_t""$AMTAR" 1>&6
1120 echo "$ac_t""no" 1>&6
1123 test -n "$AMTAR" && break
1128 if test -n "$AMTAR"; then
1129 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1136 cat >> confdefs.h <<EOF
1137 #define OPENLDAP_PACKAGE "$PACKAGE"
1140 cat >> confdefs.h <<EOF
1141 #define OPENLDAP_VERSION "$VERSION"
1147 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1148 echo "configure:1149: checking configure arguments" >&5
1153 ldap_subdir="/openldap"
1155 # Check whether --with-subdir or --without-subdir was given.
1156 if test "${with_subdir+set}" = set; then
1157 withval="$with_subdir"
1164 ldap_subdir="$withval"
1167 ldap_subdir="/$withval"
1174 # OpenLDAP --enable-debug
1175 # Check whether --enable-debug or --disable-debug was given.
1176 if test "${enable_debug+set}" = set; then
1177 enableval="$enable_debug"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1188 ol_enable_debug="$ol_arg"
1191 ol_enable_debug="yes"
1193 # end --enable-debug
1194 # OpenLDAP --enable-syslog
1195 # Check whether --enable-syslog or --disable-syslog was given.
1196 if test "${enable_syslog+set}" = set; then
1197 enableval="$enable_syslog"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1208 ol_enable_syslog="$ol_arg"
1211 ol_enable_syslog="auto"
1213 # end --enable-syslog
1214 # OpenLDAP --enable-proctitle
1215 # Check whether --enable-proctitle or --disable-proctitle was given.
1216 if test "${enable_proctitle+set}" = set; then
1217 enableval="$enable_proctitle"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1228 ol_enable_proctitle="$ol_arg"
1231 ol_enable_proctitle="yes"
1233 # end --enable-proctitle
1234 # OpenLDAP --enable-cache
1235 # Check whether --enable-cache or --disable-cache was given.
1236 if test "${enable_cache+set}" = set; then
1237 enableval="$enable_cache"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1248 ol_enable_cache="$ol_arg"
1251 ol_enable_cache="yes"
1253 # end --enable-cache
1254 # OpenLDAP --enable-dns
1255 # Check whether --enable-dns or --disable-dns was given.
1256 if test "${enable_dns+set}" = set; then
1257 enableval="$enable_dns"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1268 ol_enable_dns="$ol_arg"
1274 # OpenLDAP --enable-referrals
1275 # Check whether --enable-referrals or --disable-referrals was given.
1276 if test "${enable_referrals+set}" = set; then
1277 enableval="$enable_referrals"
1280 for ol_val in auto yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1288 ol_enable_referrals="$ol_arg"
1291 ol_enable_referrals="yes"
1293 # end --enable-referrals
1294 # OpenLDAP --enable-kbind
1295 # Check whether --enable-kbind or --disable-kbind was given.
1296 if test "${enable_kbind+set}" = set; then
1297 enableval="$enable_kbind"
1300 for ol_val in auto yes no ; do
1301 if test "$enableval" = "$ol_val" ; then
1305 if test "$ol_arg" = "invalid" ; then
1306 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1308 ol_enable_kbind="$ol_arg"
1311 ol_enable_kbind="auto"
1313 # end --enable-kbind
1314 # OpenLDAP --enable-cldap
1315 # Check whether --enable-cldap or --disable-cldap was given.
1316 if test "${enable_cldap+set}" = set; then
1317 enableval="$enable_cldap"
1320 for ol_val in auto yes no ; do
1321 if test "$enableval" = "$ol_val" ; then
1325 if test "$ol_arg" = "invalid" ; then
1326 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1328 ol_enable_cldap="$ol_arg"
1331 ol_enable_cldap="no"
1333 # end --enable-cldap
1334 # OpenLDAP --enable-ldapi
1335 # Check whether --enable-ldapi or --disable-ldapi was given.
1336 if test "${enable_ldapi+set}" = set; then
1337 enableval="$enable_ldapi"
1340 for ol_val in auto yes no ; do
1341 if test "$enableval" = "$ol_val" ; then
1345 if test "$ol_arg" = "invalid" ; then
1346 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1348 ol_enable_ldapi="$ol_arg"
1351 ol_enable_ldapi="no"
1353 # end --enable-ldapi
1354 # OpenLDAP --enable-x_compile
1355 # Check whether --enable-x_compile or --disable-x_compile was given.
1356 if test "${enable_x_compile+set}" = set; then
1357 enableval="$enable_x_compile"
1360 for ol_val in yes no ; do
1361 if test "$enableval" = "$ol_val" ; then
1365 if test "$ol_arg" = "invalid" ; then
1366 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1368 ol_enable_x_compile="$ol_arg"
1371 ol_enable_x_compile="no"
1373 # end --enable-x_compile
1375 # OpenLDAP --enable-dmalloc
1376 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1377 if test "${enable_dmalloc+set}" = set; then
1378 enableval="$enable_dmalloc"
1381 for ol_val in auto yes no ; do
1382 if test "$enableval" = "$ol_val" ; then
1386 if test "$ol_arg" = "invalid" ; then
1387 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1389 ol_enable_dmalloc="$ol_arg"
1392 ol_enable_dmalloc="no"
1394 # end --enable-dmalloc
1396 # OpenLDAP --with-cyrus_sasl
1397 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1398 if test "${with_cyrus_sasl+set}" = set; then
1399 withval="$with_cyrus_sasl"
1402 for ol_val in auto yes no ; do
1403 if test "$withval" = "$ol_val" ; then
1407 if test "$ol_arg" = "invalid" ; then
1408 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1410 ol_with_cyrus_sasl="$ol_arg"
1413 ol_with_cyrus_sasl="auto"
1415 # end --with-cyrus_sasl
1417 # OpenLDAP --with-fetch
1418 # Check whether --with-fetch or --without-fetch was given.
1419 if test "${with_fetch+set}" = set; then
1420 withval="$with_fetch"
1423 for ol_val in auto yes no ; do
1424 if test "$withval" = "$ol_val" ; then
1428 if test "$ol_arg" = "invalid" ; then
1429 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1431 ol_with_fetch="$ol_arg"
1434 ol_with_fetch="auto"
1438 # OpenLDAP --with-kerberos
1439 # Check whether --with-kerberos or --without-kerberos was given.
1440 if test "${with_kerberos+set}" = set; then
1441 withval="$with_kerberos"
1444 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1445 if test "$withval" = "$ol_val" ; then
1449 if test "$ol_arg" = "invalid" ; then
1450 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1452 ol_with_kerberos="$ol_arg"
1455 ol_with_kerberos="auto"
1457 # end --with-kerberos
1459 # OpenLDAP --with-readline
1460 # Check whether --with-readline or --without-readline was given.
1461 if test "${with_readline+set}" = set; then
1462 withval="$with_readline"
1465 for ol_val in auto yes no ; do
1466 if test "$withval" = "$ol_val" ; then
1470 if test "$ol_arg" = "invalid" ; then
1471 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1473 ol_with_readline="$ol_arg"
1476 ol_with_readline="auto"
1478 # end --with-readline
1480 # OpenLDAP --with-threads
1481 # Check whether --with-threads or --without-threads was given.
1482 if test "${with_threads+set}" = set; then
1483 withval="$with_threads"
1486 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1487 if test "$withval" = "$ol_val" ; then
1491 if test "$ol_arg" = "invalid" ; then
1492 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1494 ol_with_threads="$ol_arg"
1497 ol_with_threads="auto"
1499 # end --with-threads
1501 # OpenLDAP --with-tls
1502 # Check whether --with-tls or --without-tls was given.
1503 if test "${with_tls+set}" = set; then
1507 for ol_val in auto ssleay openssl yes no ; do
1508 if test "$withval" = "$ol_val" ; then
1512 if test "$ol_arg" = "invalid" ; then
1513 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1515 ol_with_tls="$ol_arg"
1522 # OpenLDAP --with-yielding_select
1523 # Check whether --with-yielding_select or --without-yielding_select was given.
1524 if test "${with_yielding_select+set}" = set; then
1525 withval="$with_yielding_select"
1528 for ol_val in auto yes no manual ; do
1529 if test "$withval" = "$ol_val" ; then
1533 if test "$ol_arg" = "invalid" ; then
1534 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1536 ol_with_yielding_select="$ol_arg"
1539 ol_with_yielding_select="auto"
1541 # end --with-yielding_select
1544 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1545 if test "${with_xxldapdoptions+set}" = set; then
1546 withval="$with_xxldapdoptions"
1550 # OpenLDAP --enable-ldapd
1551 # Check whether --enable-ldapd or --disable-ldapd was given.
1552 if test "${enable_ldapd+set}" = set; then
1553 enableval="$enable_ldapd"
1556 for ol_val in auto yes no ; do
1557 if test "$enableval" = "$ol_val" ; then
1561 if test "$ol_arg" = "invalid" ; then
1562 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1564 ol_enable_ldapd="$ol_arg"
1567 ol_enable_ldapd="no"
1569 # end --enable-ldapd
1571 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1572 if test "${with_xxslapdoptions+set}" = set; then
1573 withval="$with_xxslapdoptions"
1577 # OpenLDAP --enable-slapd
1578 # Check whether --enable-slapd or --disable-slapd was given.
1579 if test "${enable_slapd+set}" = set; then
1580 enableval="$enable_slapd"
1583 for ol_val in auto yes no ; do
1584 if test "$enableval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1591 ol_enable_slapd="$ol_arg"
1594 ol_enable_slapd="yes"
1596 # end --enable-slapd
1597 # OpenLDAP --enable-cleartext
1598 # Check whether --enable-cleartext or --disable-cleartext was given.
1599 if test "${enable_cleartext+set}" = set; then
1600 enableval="$enable_cleartext"
1603 for ol_val in auto yes no ; do
1604 if test "$enableval" = "$ol_val" ; then
1608 if test "$ol_arg" = "invalid" ; then
1609 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1611 ol_enable_cleartext="$ol_arg"
1614 ol_enable_cleartext="yes"
1616 # end --enable-cleartext
1617 # OpenLDAP --enable-crypt
1618 # Check whether --enable-crypt or --disable-crypt was given.
1619 if test "${enable_crypt+set}" = set; then
1620 enableval="$enable_crypt"
1623 for ol_val in auto yes no ; do
1624 if test "$enableval" = "$ol_val" ; then
1628 if test "$ol_arg" = "invalid" ; then
1629 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1631 ol_enable_crypt="$ol_arg"
1634 ol_enable_crypt="auto"
1636 # end --enable-crypt
1637 # OpenLDAP --enable-kpasswd
1638 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1639 if test "${enable_kpasswd+set}" = set; then
1640 enableval="$enable_kpasswd"
1643 for ol_val in auto yes no ; do
1644 if test "$enableval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1651 ol_enable_kpasswd="$ol_arg"
1654 ol_enable_kpasswd="no"
1656 # end --enable-kpasswd
1657 # OpenLDAP --enable-modules
1658 # Check whether --enable-modules or --disable-modules was given.
1659 if test "${enable_modules+set}" = set; then
1660 enableval="$enable_modules"
1663 for ol_val in auto yes no ; do
1664 if test "$enableval" = "$ol_val" ; then
1668 if test "$ol_arg" = "invalid" ; then
1669 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1671 ol_enable_modules="$ol_arg"
1674 ol_enable_modules="no"
1676 # end --enable-modules
1677 # OpenLDAP --enable-multimaster
1678 # Check whether --enable-multimaster or --disable-multimaster was given.
1679 if test "${enable_multimaster+set}" = set; then
1680 enableval="$enable_multimaster"
1683 for ol_val in auto yes no ; do
1684 if test "$enableval" = "$ol_val" ; then
1688 if test "$ol_arg" = "invalid" ; then
1689 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1691 ol_enable_multimaster="$ol_arg"
1694 ol_enable_multimaster="no"
1696 # end --enable-multimaster
1697 # OpenLDAP --enable-phonetic
1698 # Check whether --enable-phonetic or --disable-phonetic was given.
1699 if test "${enable_phonetic+set}" = set; then
1700 enableval="$enable_phonetic"
1703 for ol_val in auto yes no ; do
1704 if test "$enableval" = "$ol_val" ; then
1708 if test "$ol_arg" = "invalid" ; then
1709 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1711 ol_enable_phonetic="$ol_arg"
1714 ol_enable_phonetic="no"
1716 # end --enable-phonetic
1717 # OpenLDAP --enable-quipu
1718 # Check whether --enable-quipu or --disable-quipu was given.
1719 if test "${enable_quipu+set}" = set; then
1720 enableval="$enable_quipu"
1723 for ol_val in auto yes no ; do
1724 if test "$enableval" = "$ol_val" ; then
1728 if test "$ol_arg" = "invalid" ; then
1729 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1731 ol_enable_quipu="$ol_arg"
1734 ol_enable_quipu="no"
1736 # end --enable-quipu
1737 # OpenLDAP --enable-rlookups
1738 # Check whether --enable-rlookups or --disable-rlookups was given.
1739 if test "${enable_rlookups+set}" = set; then
1740 enableval="$enable_rlookups"
1743 for ol_val in auto yes no ; do
1744 if test "$enableval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1751 ol_enable_rlookups="$ol_arg"
1754 ol_enable_rlookups="auto"
1756 # end --enable-rlookups
1757 # OpenLDAP --enable-aci
1758 # Check whether --enable-aci or --disable-aci was given.
1759 if test "${enable_aci+set}" = set; then
1760 enableval="$enable_aci"
1763 for ol_val in auto yes no ; do
1764 if test "$enableval" = "$ol_val" ; then
1768 if test "$ol_arg" = "invalid" ; then
1769 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1771 ol_enable_aci="$ol_arg"
1777 # OpenLDAP --enable-discreteaci
1778 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1779 if test "${enable_discreteaci+set}" = set; then
1780 enableval="$enable_discreteaci"
1783 for ol_val in auto yes no ; do
1784 if test "$enableval" = "$ol_val" ; then
1788 if test "$ol_arg" = "invalid" ; then
1789 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1791 ol_enable_discreteaci="$ol_arg"
1794 ol_enable_discreteaci="no"
1796 # end --enable-discreteaci
1797 # OpenLDAP --enable-wrappers
1798 # Check whether --enable-wrappers or --disable-wrappers was given.
1799 if test "${enable_wrappers+set}" = set; then
1800 enableval="$enable_wrappers"
1803 for ol_val in auto yes no ; do
1804 if test "$enableval" = "$ol_val" ; then
1808 if test "$ol_arg" = "invalid" ; then
1809 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1811 ol_enable_wrappers="$ol_arg"
1814 ol_enable_wrappers="no"
1816 # end --enable-wrappers
1817 # OpenLDAP --enable-dynamic
1818 # Check whether --enable-dynamic or --disable-dynamic was given.
1819 if test "${enable_dynamic+set}" = set; then
1820 enableval="$enable_dynamic"
1823 for ol_val in auto yes no ; do
1824 if test "$enableval" = "$ol_val" ; then
1828 if test "$ol_arg" = "invalid" ; then
1829 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1831 ol_enable_dynamic="$ol_arg"
1834 ol_enable_dynamic="no"
1836 # end --enable-dynamic
1838 # OpenLDAP --enable-bdb2
1839 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1840 if test "${enable_bdb2+set}" = set; then
1841 enableval="$enable_bdb2"
1844 for ol_val in auto yes no ; do
1845 if test "$enableval" = "$ol_val" ; then
1849 if test "$ol_arg" = "invalid" ; then
1850 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1852 ol_enable_bdb2="$ol_arg"
1858 # OpenLDAP --with-bdb2_module
1859 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1860 if test "${with_bdb2_module+set}" = set; then
1861 withval="$with_bdb2_module"
1864 for ol_val in static dynamic ; do
1865 if test "$withval" = "$ol_val" ; then
1869 if test "$ol_arg" = "invalid" ; then
1870 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1872 ol_with_bdb2_module="$ol_arg"
1875 ol_with_bdb2_module="static"
1877 # end --with-bdb2_module
1879 # OpenLDAP --enable-ldap
1880 # Check whether --enable-ldap or --disable-ldap was given.
1881 if test "${enable_ldap+set}" = set; then
1882 enableval="$enable_ldap"
1885 for ol_val in auto yes no ; do
1886 if test "$enableval" = "$ol_val" ; then
1890 if test "$ol_arg" = "invalid" ; then
1891 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1893 ol_enable_ldap="$ol_arg"
1899 # OpenLDAP --with-ldap_module
1900 # Check whether --with-ldap_module or --without-ldap_module was given.
1901 if test "${with_ldap_module+set}" = set; then
1902 withval="$with_ldap_module"
1905 for ol_val in static dynamic ; do
1906 if test "$withval" = "$ol_val" ; then
1910 if test "$ol_arg" = "invalid" ; then
1911 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1913 ol_with_ldap_module="$ol_arg"
1916 ol_with_ldap_module="static"
1918 # end --with-ldap_module
1920 # OpenLDAP --enable-ldbm
1921 # Check whether --enable-ldbm or --disable-ldbm was given.
1922 if test "${enable_ldbm+set}" = set; then
1923 enableval="$enable_ldbm"
1926 for ol_val in auto yes no ; do
1927 if test "$enableval" = "$ol_val" ; then
1931 if test "$ol_arg" = "invalid" ; then
1932 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1934 ol_enable_ldbm="$ol_arg"
1937 ol_enable_ldbm="yes"
1940 # OpenLDAP --with-ldbm_api
1941 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1942 if test "${with_ldbm_api+set}" = set; then
1943 withval="$with_ldbm_api"
1946 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1947 if test "$withval" = "$ol_val" ; then
1951 if test "$ol_arg" = "invalid" ; then
1952 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1954 ol_with_ldbm_api="$ol_arg"
1957 ol_with_ldbm_api="auto"
1959 # end --with-ldbm_api
1961 # OpenLDAP --with-ldbm_module
1962 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1963 if test "${with_ldbm_module+set}" = set; then
1964 withval="$with_ldbm_module"
1967 for ol_val in static dynamic ; do
1968 if test "$withval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1975 ol_with_ldbm_module="$ol_arg"
1978 ol_with_ldbm_module="static"
1980 # end --with-ldbm_module
1982 # OpenLDAP --with-ldbm_type
1983 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1984 if test "${with_ldbm_type+set}" = set; then
1985 withval="$with_ldbm_type"
1988 for ol_val in auto btree hash ; do
1989 if test "$withval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1996 ol_with_ldbm_type="$ol_arg"
1999 ol_with_ldbm_type="auto"
2001 # end --with-ldbm_type
2004 # OpenLDAP --enable-passwd
2005 # Check whether --enable-passwd or --disable-passwd was given.
2006 if test "${enable_passwd+set}" = set; then
2007 enableval="$enable_passwd"
2010 for ol_val in auto yes no ; do
2011 if test "$enableval" = "$ol_val" ; then
2015 if test "$ol_arg" = "invalid" ; then
2016 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2018 ol_enable_passwd="$ol_arg"
2021 ol_enable_passwd="no"
2023 # end --enable-passwd
2024 # OpenLDAP --with-passwd_module
2025 # Check whether --with-passwd_module or --without-passwd_module was given.
2026 if test "${with_passwd_module+set}" = set; then
2027 withval="$with_passwd_module"
2030 for ol_val in static dynamic ; do
2031 if test "$withval" = "$ol_val" ; then
2035 if test "$ol_arg" = "invalid" ; then
2036 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2038 ol_with_passwd_module="$ol_arg"
2041 ol_with_passwd_module="static"
2043 # end --with-passwd_module
2045 # OpenLDAP --enable-perl
2046 # Check whether --enable-perl or --disable-perl was given.
2047 if test "${enable_perl+set}" = set; then
2048 enableval="$enable_perl"
2051 for ol_val in auto yes no ; do
2052 if test "$enableval" = "$ol_val" ; then
2056 if test "$ol_arg" = "invalid" ; then
2057 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2059 ol_enable_perl="$ol_arg"
2065 # OpenLDAP --with-perl_module
2066 # Check whether --with-perl_module or --without-perl_module was given.
2067 if test "${with_perl_module+set}" = set; then
2068 withval="$with_perl_module"
2071 for ol_val in static dynamic ; do
2072 if test "$withval" = "$ol_val" ; then
2076 if test "$ol_arg" = "invalid" ; then
2077 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2079 ol_with_perl_module="$ol_arg"
2082 ol_with_perl_module="static"
2084 # end --with-perl_module
2086 # OpenLDAP --enable-shell
2087 # Check whether --enable-shell or --disable-shell was given.
2088 if test "${enable_shell+set}" = set; then
2089 enableval="$enable_shell"
2092 for ol_val in auto yes no ; do
2093 if test "$enableval" = "$ol_val" ; then
2097 if test "$ol_arg" = "invalid" ; then
2098 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2100 ol_enable_shell="$ol_arg"
2103 ol_enable_shell="no"
2105 # end --enable-shell
2106 # OpenLDAP --with-shell_module
2107 # Check whether --with-shell_module or --without-shell_module was given.
2108 if test "${with_shell_module+set}" = set; then
2109 withval="$with_shell_module"
2112 for ol_val in static dynamic ; do
2113 if test "$withval" = "$ol_val" ; then
2117 if test "$ol_arg" = "invalid" ; then
2118 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2120 ol_with_shell_module="$ol_arg"
2123 ol_with_shell_module="static"
2125 # end --with-shell_module
2127 # OpenLDAP --enable-tcl
2128 # Check whether --enable-tcl or --disable-tcl was given.
2129 if test "${enable_tcl+set}" = set; then
2130 enableval="$enable_tcl"
2133 for ol_val in auto yes no ; do
2134 if test "$enableval" = "$ol_val" ; then
2138 if test "$ol_arg" = "invalid" ; then
2139 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2141 ol_enable_tcl="$ol_arg"
2147 # OpenLDAP --with-tcl_module
2148 # Check whether --with-tcl_module or --without-tcl_module was given.
2149 if test "${with_tcl_module+set}" = set; then
2150 withval="$with_tcl_module"
2153 for ol_val in static dynamic ; do
2154 if test "$withval" = "$ol_val" ; then
2158 if test "$ol_arg" = "invalid" ; then
2159 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2161 ol_with_tcl_module="$ol_arg"
2164 ol_with_tcl_module="static"
2166 # end --with-tcl_module
2169 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2170 if test "${with_xxslurpdoptions+set}" = set; then
2171 withval="$with_xxslurpdoptions"
2175 # OpenLDAP --enable-slurpd
2176 # Check whether --enable-slurpd or --disable-slurpd was given.
2177 if test "${enable_slurpd+set}" = set; then
2178 enableval="$enable_slurpd"
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-slurpd" 1>&2; exit 1; }
2189 ol_enable_slurpd="$ol_arg"
2192 ol_enable_slurpd="auto"
2194 # end --enable-slurpd
2196 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2197 if test "${with_xxliboptions+set}" = set; then
2198 withval="$with_xxliboptions"
2202 # Check whether --enable-static or --disable-static was given.
2203 if test "${enable_static+set}" = set; then
2204 enableval="$enable_static"
2205 p=${PACKAGE-default}
2206 case "$enableval" in
2207 yes) enable_static=yes ;;
2208 no) enable_static=no ;;
2211 # Look at the argument we got. We use all the common list separators.
2212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2213 for pkg in $enableval; do
2214 if test "X$pkg" = "X$p"; then
2225 # Check whether --enable-shared or --disable-shared was given.
2226 if test "${enable_shared+set}" = set; then
2227 enableval="$enable_shared"
2228 p=${PACKAGE-default}
2229 case "$enableval" in
2230 yes) enable_shared=yes ;;
2231 no) enable_shared=no ;;
2234 # Look at the argument we got. We use all the common list separators.
2235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2236 for pkg in $enableval; do
2237 if test "X$pkg" = "X$p"; then
2251 if test $ol_enable_dns = yes ; then
2252 if test $ol_enable_referrals = no ; then
2253 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2255 if test $ol_enable_referrals = auto ; then
2256 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2257 ol_enable_referrals=yes
2261 if test $ol_enable_slapd = no ; then
2262 if test $ol_enable_bdb2 = yes ; then
2263 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2265 if test $ol_enable_ldap = yes ; then
2266 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2268 if test $ol_enable_ldbm = yes ; then
2269 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2271 if test $ol_enable_passwd = yes ; then
2272 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2274 if test $ol_enable_perl = yes ; then
2275 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2277 if test $ol_enable_shell = yes ; then
2278 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2280 if test $ol_enable_tcl = yes ; then
2281 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2283 if test $ol_enable_modules = yes ; then
2284 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2286 if test $ol_enable_multimaster = yes ; then
2287 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2289 if test $ol_enable_wrappers = yes ; then
2290 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2292 if test $ol_enable_phonetic = yes ; then
2293 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2295 if test $ol_enable_quipu = yes ; then
2296 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2298 if test $ol_enable_rlookups = yes ; then
2299 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2301 if test $ol_enable_aci = yes ; then
2302 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2304 if test $ol_enable_discreteaci = yes ; then
2305 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2307 if test $ol_with_ldbm_api != auto ; then
2308 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2310 if test $ol_with_ldbm_type != auto ; then
2311 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2313 if test $ol_with_bdb2_module != static ; then
2314 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2316 if test $ol_with_ldap_module != static ; then
2317 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2319 if test $ol_with_ldbm_module != static ; then
2320 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2322 if test $ol_with_passwd_module != static ; then
2323 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2325 if test $ol_with_perl_module != static ; then
2326 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2328 if test $ol_with_shell_module != static ; then
2329 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2331 if test $ol_with_tcl_module != static ; then
2332 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2334 if test $ol_enable_slurpd = yes ; then
2335 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2338 # force settings to no
2347 ol_enable_modules=no
2348 ol_enable_multimaster=no
2349 ol_enable_phonetic=no
2351 ol_enable_rlookups=no
2353 ol_enable_discreteaci=no
2354 ol_enable_wrappers=no
2355 ol_enable_dynamic=no
2358 ol_with_ldbm_type=no
2360 ol_with_bdb2_module=static
2361 ol_with_ldap_module=static
2362 ol_with_ldbm_module=static
2363 ol_with_passwd_module=static
2364 ol_with_perl_module=static
2365 ol_with_shell_module=static
2366 ol_with_tcl_module=static
2370 elif test $ol_enable_ldbm = no ; then
2372 if test $ol_with_ldbm_api != auto ; then
2373 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2376 if test $ol_with_ldbm_type != auto ; then
2377 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2380 if test $ol_with_ldbm_module != static ; then
2381 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2384 if test $ol_enable_bdb2 = yes ; then
2385 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2388 if test $ol_enable_modules != yes -a \
2389 $ol_enable_ldap = no -a \
2390 $ol_enable_passwd = no -a \
2391 $ol_enable_perl = no -a \
2392 $ol_enable_shell = no -a \
2393 $ol_enable_tcl = no ; then
2394 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2398 ol_with_ldbm_type=no
2399 ol_with_ldbm_module=static
2401 elif test $ol_enable_bdb2 = yes ; then
2403 if test $ol_with_ldbm_api != auto -a \
2404 $ol_with_ldbm_api != db2 ; then
2405 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2408 ol_with_ldbm_api=db2
2412 if test $ol_enable_bdb2 != no ; then
2413 if test $ol_with_ldbm_api != auto -a \
2414 $ol_with_ldbm_api != db2 ; then
2415 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2420 if test $ol_with_ldbm_api = gdbm -a \
2421 $ol_with_ldbm_type = btree ; then
2422 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2424 if test $ol_with_ldbm_api = mdbm -a \
2425 $ol_with_ldbm_type = btree ; then
2426 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2428 if test $ol_with_ldbm_api = ndbm -a \
2429 $ol_with_ldbm_type = btree ; then
2430 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2434 if test $ol_enable_slurpd = yes ; then
2435 if test $ol_with_threads = no ; then
2436 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2440 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2441 if test $ol_with_kerberos = no ; then
2442 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2444 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2445 if test $ol_with_kerberos != auto ; then
2446 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2452 echo "$ac_t""done" 1>&6
2478 BUILD_BDB2_DYNAMIC=static
2479 BUILD_LDAP_DYNAMIC=static
2480 BUILD_LDBM_DYNAMIC=static
2481 BUILD_PASSWD_DYNAMIC=static
2482 BUILD_PERL_DYNAMIC=static
2483 BUILD_SHELL_DYNAMIC=static
2484 BUILD_TCL_DYNAMIC=static
2486 SLAPD_MODULES_LDFLAGS=
2487 SLAPD_MODULES_CPPFLAGS=
2505 cat >> confdefs.h <<\EOF
2506 #define HAVE_MKVERSION 1
2514 *-*-aix*) if test -z "$CC" ; then
2515 case "$ol_with_threads" in
2516 auto | yes | posix) ol_aix_threads=yes ;;
2522 if test $ol_aix_threads = yes ; then
2523 if test -z "${CC}" ; then
2524 for ac_prog in cc_r xlc_r cc
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_word" >&5
2530 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2538 for ac_dir in $ac_dummy; do
2539 test -z "$ac_dir" && ac_dir=.
2540 if test -f $ac_dir/$ac_word; then
2541 ac_cv_prog_CC="$ac_prog"
2549 if test -n "$CC"; then
2550 echo "$ac_t""$CC" 1>&6
2552 echo "$ac_t""no" 1>&6
2555 test -n "$CC" && break
2559 if test "$CC" = cc ; then
2560 if test $ol_with_threads != auto ; then
2561 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2563 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2569 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2570 ol_with_threads=posix
2571 ol_cv_pthread_create=yes
2575 if test -z "${CC}"; then
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_word" >&5
2582 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 ac_cv_prog_CC="$ac_prog"
2601 if test -n "$CC"; then
2602 echo "$ac_t""$CC" 1>&6
2604 echo "$ac_t""no" 1>&6
2607 test -n "$CC" && break
2615 # Check whether --enable-fast-install or --disable-fast-install was given.
2616 if test "${enable_fast_install+set}" = set; then
2617 enableval="$enable_fast_install"
2618 p=${PACKAGE-default}
2619 case "$enableval" in
2620 yes) enable_fast_install=yes ;;
2621 no) enable_fast_install=no ;;
2623 enable_fast_install=no
2624 # Look at the argument we got. We use all the common list separators.
2625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2626 for pkg in $enableval; do
2627 if test "X$pkg" = "X$p"; then
2628 enable_fast_install=yes
2635 enable_fast_install=yes
2638 # Extract the first word of "ranlib", so it can be a program name with args.
2639 set dummy ranlib; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 if test -n "$RANLIB"; then
2646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2650 for ac_dir in $ac_dummy; do
2651 test -z "$ac_dir" && ac_dir=.
2652 if test -f $ac_dir/$ac_word; then
2653 ac_cv_prog_RANLIB="ranlib"
2658 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2661 RANLIB="$ac_cv_prog_RANLIB"
2662 if test -n "$RANLIB"; then
2663 echo "$ac_t""$RANLIB" 1>&6
2665 echo "$ac_t""no" 1>&6
2668 # Extract the first word of "gcc", so it can be a program name with args.
2669 set dummy gcc; ac_word=$2
2670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_word" >&5
2672 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2680 for ac_dir in $ac_dummy; do
2681 test -z "$ac_dir" && ac_dir=.
2682 if test -f $ac_dir/$ac_word; then
2691 if test -n "$CC"; then
2692 echo "$ac_t""$CC" 1>&6
2694 echo "$ac_t""no" 1>&6
2697 if test -z "$CC"; then
2698 # Extract the first word of "cc", so it can be a program name with args.
2699 set dummy cc; 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=":"
2711 for ac_dir in $ac_dummy; do
2712 test -z "$ac_dir" && ac_dir=.
2713 if test -f $ac_dir/$ac_word; then
2714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2715 ac_prog_rejected=yes
2723 if test $ac_prog_rejected = yes; then
2724 # We found a bogon in the path, so make sure we never use it.
2725 set dummy $ac_cv_prog_CC
2727 if test $# -gt 0; then
2728 # We chose a different compiler from the bogus one.
2729 # However, it has the same basename, so the bogon will be chosen
2730 # first if we set CC to just the basename; use the full file name.
2732 set dummy "$ac_dir/$ac_word" "$@"
2740 if test -n "$CC"; then
2741 echo "$ac_t""$CC" 1>&6
2743 echo "$ac_t""no" 1>&6
2746 if test -z "$CC"; then
2747 case "`uname -s`" in
2748 *win32* | *WIN32* | *CYGWIN*)
2749 # Extract the first word of "cl", so it can be a program name with args.
2750 set dummy cl; ac_word=$2
2751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_word" >&5
2753 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2761 for ac_dir in $ac_dummy; do
2762 test -z "$ac_dir" && ac_dir=.
2763 if test -f $ac_dir/$ac_word; then
2772 if test -n "$CC"; then
2773 echo "$ac_t""$CC" 1>&6
2775 echo "$ac_t""no" 1>&6
2780 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2784 echo "configure:2785: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2791 cross_compiling=$ac_cv_prog_cc_cross
2793 cat > conftest.$ac_ext << EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801 ac_cv_prog_cc_works=yes
2802 # If we can't run a trivial program, we are probably using a cross compiler.
2803 if (./conftest; exit) 2>/dev/null; then
2804 ac_cv_prog_cc_cross=no
2806 ac_cv_prog_cc_cross=yes
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2811 ac_cv_prog_cc_works=no
2815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2819 cross_compiling=$ac_cv_prog_cc_cross
2821 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2822 if test $ac_cv_prog_cc_works = no; then
2823 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2826 echo "configure:2827: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2827 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2828 cross_compiling=$ac_cv_prog_cc_cross
2830 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2831 echo "configure:2832: checking whether we are using GNU C" >&5
2832 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.c <<EOF
2840 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2847 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2849 if test $ac_cv_prog_gcc = yes; then
2855 ac_test_CFLAGS="${CFLAGS+set}"
2856 ac_save_CFLAGS="$CFLAGS"
2858 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2859 echo "configure:2860: checking whether ${CC-cc} accepts -g" >&5
2860 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 echo 'void f(){}' > conftest.c
2864 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2873 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2874 if test "$ac_test_CFLAGS" = set; then
2875 CFLAGS="$ac_save_CFLAGS"
2876 elif test $ac_cv_prog_cc_g = yes; then
2877 if test "$GCC" = yes; then
2883 if test "$GCC" = yes; then
2890 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2891 if test "${with_gnu_ld+set}" = set; then
2892 withval="$with_gnu_ld"
2893 test "$withval" = no || with_gnu_ld=yes
2899 if test "$ac_cv_prog_gcc" = yes; then
2900 # Check if gcc -print-prog-name=ld gives a path.
2901 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2902 echo "configure:2903: checking for ld used by GCC" >&5
2903 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2905 # Accept absolute paths.
2906 [\\/]* | [A-Za-z]:[\\/]*)
2907 re_direlt='/[^/][^/]*/\.\./'
2908 # Canonicalize the path of ld
2909 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2910 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2911 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2913 test -z "$LD" && LD="$ac_prog"
2916 # If it fails, then pretend we aren't using GCC.
2920 # If it is relative, then search for the first ld in PATH.
2924 elif test "$with_gnu_ld" = yes; then
2925 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2926 echo "configure:2927: checking for GNU ld" >&5
2928 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2929 echo "configure:2930: checking for non-GNU ld" >&5
2931 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 if test -z "$LD"; then
2935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2936 for ac_dir in $PATH; do
2937 test -z "$ac_dir" && ac_dir=.
2938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2939 ac_cv_path_LD="$ac_dir/$ac_prog"
2940 # Check to see if the program is GNU ld. I'd rather use --version,
2941 # but apparently some GNU ld's only accept -v.
2942 # Break only if it was the GNU/non-GNU ld that we prefer.
2943 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2944 test "$with_gnu_ld" != no && break
2946 test "$with_gnu_ld" != yes && break
2952 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2957 if test -n "$LD"; then
2958 echo "$ac_t""$LD" 1>&6
2960 echo "$ac_t""no" 1>&6
2962 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2964 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2965 echo "configure:2966: checking if the linker ($LD) is GNU ld" >&5
2966 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2970 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2971 ac_cv_prog_gnu_ld=yes
2973 ac_cv_prog_gnu_ld=no
2977 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2980 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2981 echo "configure:2982: checking for BSD-compatible nm" >&5
2982 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test -n "$NM"; then
2986 # Let the user override the test.
2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2990 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2993 # Check to see if the nm accepts a BSD-compat flag.
2994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2995 # nm: unknown option "B" ignored
2996 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2997 ac_cv_path_NM="$ac_dir/nm -B"
2999 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3000 ac_cv_path_NM="$ac_dir/nm -p"
3003 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3004 continue # so that we can try to find one that supports BSD flags
3009 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3014 echo "$ac_t""$NM" 1>&6
3017 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3018 echo "configure:3019: checking whether ln -s works" >&5
3019 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3023 if ln -s X conftestdata 2>/dev/null
3026 ac_cv_prog_LN_S="ln -s"
3031 LN_S="$ac_cv_prog_LN_S"
3032 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3033 echo "$ac_t""yes" 1>&6
3035 echo "$ac_t""no" 1>&6
3038 if test $host != $build; then
3039 ac_tool_prefix=${host_alias}-
3045 # Check for any special flags to pass to ltconfig.
3046 libtool_flags="--cache-file=$cache_file"
3047 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3048 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3049 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3050 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3051 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3052 libtool_flags="$libtool_flags --enable-dlopen"
3053 libtool_flags="$libtool_flags --enable-win32-dll"
3054 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3055 if test "${enable_libtool_lock+set}" = set; then
3056 enableval="$enable_libtool_lock"
3060 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3061 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3063 # Some flags need to be propagated to the compiler or linker for good
3067 # Find out which ABI we are using.
3068 echo '#line 3069 "configure"' > conftest.$ac_ext
3069 if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 case "`/usr/bin/file conftest.o`" in
3086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3087 SAVE_CFLAGS="$CFLAGS"
3088 CFLAGS="$CFLAGS -belf"
3089 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3090 echo "configure:3091: checking whether the C compiler needs -belf" >&5
3091 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3102 if { (eval echo configure:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3104 lt_cv_cc_needs_belf=yes
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3109 lt_cv_cc_needs_belf=no
3114 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3117 CFLAGS="$SAVE_CFLAGS"
3121 *-*-cygwin* | *-*-mingw*)
3122 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3125 echo "configure:3126: checking for $ac_word" >&5
3126 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 if test -n "$DLLTOOL"; then
3130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3134 for ac_dir in $ac_dummy; do
3135 test -z "$ac_dir" && ac_dir=.
3136 if test -f $ac_dir/$ac_word; then
3137 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3144 DLLTOOL="$ac_cv_prog_DLLTOOL"
3145 if test -n "$DLLTOOL"; then
3146 echo "$ac_t""$DLLTOOL" 1>&6
3148 echo "$ac_t""no" 1>&6
3152 if test -z "$ac_cv_prog_DLLTOOL"; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "dlltool", so it can be a program name with args.
3155 set dummy dlltool; ac_word=$2
3156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_word" >&5
3158 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 if test -n "$DLLTOOL"; then
3162 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3166 for ac_dir in $ac_dummy; do
3167 test -z "$ac_dir" && ac_dir=.
3168 if test -f $ac_dir/$ac_word; then
3169 ac_cv_prog_DLLTOOL="dlltool"
3174 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3177 DLLTOOL="$ac_cv_prog_DLLTOOL"
3178 if test -n "$DLLTOOL"; then
3179 echo "$ac_t""$DLLTOOL" 1>&6
3181 echo "$ac_t""no" 1>&6
3189 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}as; ac_word=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 if test -n "$AS"; then
3197 ac_cv_prog_AS="$AS" # Let the user override the test.
3199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3201 for ac_dir in $ac_dummy; do
3202 test -z "$ac_dir" && ac_dir=.
3203 if test -f $ac_dir/$ac_word; then
3204 ac_cv_prog_AS="${ac_tool_prefix}as"
3212 if test -n "$AS"; then
3213 echo "$ac_t""$AS" 1>&6
3215 echo "$ac_t""no" 1>&6
3219 if test -z "$ac_cv_prog_AS"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "as", so it can be a program name with args.
3222 set dummy as; ac_word=$2
3223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_word" >&5
3225 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 if test -n "$AS"; then
3229 ac_cv_prog_AS="$AS" # Let the user override the test.
3231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3233 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/$ac_word; then
3241 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3245 if test -n "$AS"; then
3246 echo "$ac_t""$AS" 1>&6
3248 echo "$ac_t""no" 1>&6
3256 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_word" >&5
3260 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 if test -n "$OBJDUMP"; then
3264 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3268 for ac_dir in $ac_dummy; do
3269 test -z "$ac_dir" && ac_dir=.
3270 if test -f $ac_dir/$ac_word; then
3271 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3278 OBJDUMP="$ac_cv_prog_OBJDUMP"
3279 if test -n "$OBJDUMP"; then
3280 echo "$ac_t""$OBJDUMP" 1>&6
3282 echo "$ac_t""no" 1>&6
3286 if test -z "$ac_cv_prog_OBJDUMP"; then
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "objdump", so it can be a program name with args.
3289 set dummy objdump; ac_word=$2
3290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3291 echo "configure:3292: checking for $ac_word" >&5
3292 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 if test -n "$OBJDUMP"; then
3296 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3300 for ac_dir in $ac_dummy; do
3301 test -z "$ac_dir" && ac_dir=.
3302 if test -f $ac_dir/$ac_word; then
3303 ac_cv_prog_OBJDUMP="objdump"
3308 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3311 OBJDUMP="$ac_cv_prog_OBJDUMP"
3312 if test -n "$OBJDUMP"; then
3313 echo "$ac_t""$OBJDUMP" 1>&6
3315 echo "$ac_t""no" 1>&6
3328 # Save cache, so that ltconfig can load it
3331 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3332 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3333 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3334 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3335 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3336 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3337 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3338 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3340 # Reload cache, that may have been modified by ltconfig
3343 # This can be used to rebuild libtool when needed
3344 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3346 # Always use our own libtool.
3347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3349 # Redirect the config.log output again, so that the ltconfig log is not
3350 # clobbered by the next message.
3351 exec 5>>./config.log
3354 for ac_prog in mawk gawk nawk awk
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_word" >&5
3360 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 if test -n "$AWK"; then
3364 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f $ac_dir/$ac_word; then
3371 ac_cv_prog_AWK="$ac_prog"
3378 AWK="$ac_cv_prog_AWK"
3379 if test -n "$AWK"; then
3380 echo "$ac_t""$AWK" 1>&6
3382 echo "$ac_t""no" 1>&6
3385 test -n "$AWK" && break
3388 # test for ln hardlink support
3389 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3390 echo "configure:3391: checking whether ln works" >&5
3391 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 rm -f conftest.src conftest.dst
3395 echo "conftest" > conftest.src
3396 if ln conftest.src conftest.dst 2>/dev/null
3398 ol_cv_prog_LN_H="ln"
3400 ol_cv_prog_LN_H="cp"
3402 rm -f conftest.src conftest.dst
3405 LN_H="$ol_cv_prog_LN_H"
3406 if test "$ol_cv_prog_LN_H" = "ln"; then
3407 echo "$ac_t""yes" 1>&6
3409 echo "$ac_t""no" 1>&6
3412 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3413 echo "configure:3414: checking whether ln -s works" >&5
3414 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3418 if ln -s X conftestdata 2>/dev/null
3421 ac_cv_prog_LN_S="ln -s"
3426 LN_S="$ac_cv_prog_LN_S"
3427 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3428 echo "$ac_t""yes" 1>&6
3430 echo "$ac_t""no" 1>&6
3434 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3438 # Extract the first word of "sendmail", so it can be a program name with args.
3439 set dummy sendmail; ac_word=$2
3440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3441 echo "configure:3442: checking for $ac_word" >&5
3442 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3447 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3450 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3454 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3458 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3463 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3467 SENDMAIL="$ac_cv_path_SENDMAIL"
3468 if test -n "$SENDMAIL"; then
3469 echo "$ac_t""$SENDMAIL" 1>&6
3471 echo "$ac_t""no" 1>&6
3474 # Extract the first word of "vi", so it can be a program name with args.
3475 set dummy vi; ac_word=$2
3476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3477 echo "configure:3478: checking for $ac_word" >&5
3478 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3483 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3486 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3490 ac_dummy="$PATH:/usr/ucb"
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_path_EDITOR="$ac_dir/$ac_word"
3499 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3503 EDITOR="$ac_cv_path_EDITOR"
3504 if test -n "$EDITOR"; then
3505 echo "$ac_t""$EDITOR" 1>&6
3507 echo "$ac_t""no" 1>&6
3510 # Extract the first word of "finger", so it can be a program name with args.
3511 set dummy finger; ac_word=$2
3512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_word" >&5
3514 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3519 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3522 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3526 ac_dummy="$PATH:/usr/ucb"
3527 for ac_dir in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_path_FINGER="$ac_dir/$ac_word"
3535 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3539 FINGER="$ac_cv_path_FINGER"
3540 if test -n "$FINGER"; then
3541 echo "$ac_t""$FINGER" 1>&6
3543 echo "$ac_t""no" 1>&6
3548 if test $ol_enable_perl != no ; then
3549 # Extract the first word of "perl", so it can be a program name with args.
3550 set dummy perl; ac_word=$2
3551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3552 echo "configure:3553: checking for $ac_word" >&5
3553 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3558 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3561 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3566 for ac_dir in $ac_dummy; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f $ac_dir/$ac_word; then
3569 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3574 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3578 PERLBIN="$ac_cv_path_PERLBIN"
3579 if test -n "$PERLBIN"; then
3580 echo "$ac_t""$PERLBIN" 1>&6
3582 echo "$ac_t""no" 1>&6
3586 if test "no$PERLBIN" = "no" ; then
3587 if test $ol_enable_perl = yes ; then
3588 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3592 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3593 if test x"$ol_with_perl_module" = "xstatic" ; then
3594 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3596 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3602 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3603 echo "configure:3604: checking how to run the C preprocessor" >&5
3604 # On Suns, sometimes $CPP names a directory.
3605 if test -n "$CPP" && test -d "$CPP"; then
3608 if test -z "$CPP"; then
3609 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 # This must be in double quotes, not single quotes, because CPP may get
3613 # substituted into the Makefile and "${CC-cc}" will confuse make.
3615 # On the NeXT, cc -E runs the code through the compiler's parser,
3616 # not just through cpp.
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3624 { (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3626 if test -z "$ac_err"; then
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 CPP="${CC-cc} -E -traditional-cpp"
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3641 { (eval echo configure:3642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3643 if test -z "$ac_err"; then
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 CPP="${CC-cc} -nologo -E"
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3658 { (eval echo configure:3659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3660 if test -z "$ac_err"; then
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3674 ac_cv_prog_CPP="$CPP"
3676 CPP="$ac_cv_prog_CPP"
3678 ac_cv_prog_CPP="$CPP"
3680 echo "$ac_t""$CPP" 1>&6
3683 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3684 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3686 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3687 echo "configure: warning: programs compiled here do run here..." 1>&2
3688 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3690 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3691 echo "configure: warning: programs compiled here do not run here..." 1>&2
3692 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3695 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3696 echo "configure:3697: checking for AIX" >&5
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706 egrep "yes" >/dev/null 2>&1; then
3708 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3709 #define _ALL_SOURCE 1
3714 echo "$ac_t""no" 1>&6
3719 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3720 echo "configure:3721: checking for POSIXized ISC" >&5
3721 if test -d /etc/conf/kconfig.d &&
3722 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3724 echo "$ac_t""yes" 1>&6
3725 ISC=yes # If later tests want to check for ISC.
3726 cat >> confdefs.h <<\EOF
3727 #define _POSIX_SOURCE 1
3730 if test "$GCC" = yes; then
3736 echo "$ac_t""no" 1>&6
3740 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3741 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3742 echo "configure:3743: checking for minix/config.h" >&5
3743 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 #include <minix/config.h>
3751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3752 { (eval echo configure:3753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3754 if test -z "$ac_err"; then
3756 eval "ac_cv_header_$ac_safe=yes"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 eval "ac_cv_header_$ac_safe=no"
3766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3767 echo "$ac_t""yes" 1>&6
3770 echo "$ac_t""no" 1>&6
3774 if test "$MINIX" = yes; then
3775 cat >> confdefs.h <<\EOF
3776 #define _POSIX_SOURCE 1
3779 cat >> confdefs.h <<\EOF
3780 #define _POSIX_1_SOURCE 2
3783 cat >> confdefs.h <<\EOF
3790 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3791 echo "configure:3792: checking for Cygwin environment" >&5
3792 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3802 #define __CYGWIN__ __CYGWIN32__
3807 if { (eval echo configure:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3819 echo "$ac_t""$ac_cv_cygwin" 1>&6
3821 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3822 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3823 echo "configure:3824: checking for mingw32 environment" >&5
3824 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3835 if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3847 echo "$ac_t""$ac_cv_mingw32" 1>&6
3849 test "$ac_cv_mingw32" = yes && MINGW32=yes
3850 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3851 echo "configure:3852: checking for EMX OS/2 environment" >&5
3852 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3863 if { (eval echo configure:3864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3875 echo "$ac_t""$ac_cv_emxos2" 1>&6
3877 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3881 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3882 echo "configure:3883: checking for executable suffix" >&5
3883 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3890 echo 'int main () { return 0; }' > conftest.$ac_ext
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3893 for file in conftest.*; do
3895 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3896 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3900 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3903 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3908 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3909 echo "$ac_t""${ac_cv_exeext}" 1>&6
3912 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3913 echo "configure:3914: checking for object suffix" >&5
3914 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3918 echo 'int i = 1;' > conftest.$ac_ext
3919 if { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3920 for ac_file in conftest.*; do
3923 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3927 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3932 echo "$ac_t""$ac_cv_objext" 1>&6
3933 OBJEXT=$ac_cv_objext
3934 ac_objext=$ac_cv_objext
3937 cat >> confdefs.h <<EOF
3938 #define EXEEXT "${EXEEXT}"
3942 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3943 echo "configure:3944: checking for be_app in -lbe" >&5
3944 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3945 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 ac_save_LIBS="$LIBS"
3949 LIBS="-lbe -lroot -lnet $LIBS"
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* Override any gcc2 internal prototype to avoid an error. */
3954 /* We use char because int might match the return type of a gcc2
3955 builtin and then its argument prototype would still apply. */
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964 eval "ac_cv_lib_$ac_lib_var=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 eval "ac_cv_lib_$ac_lib_var=no"
3972 LIBS="$ac_save_LIBS"
3975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 LIBS="$LIBS -lbe -lroot -lnet"
3979 echo "$ac_t""no" 1>&6
3987 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3988 echo "configure:3989: checking for ${CC-cc} option to accept ANSI C" >&5
3989 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 am_cv_prog_cc_stdc=no
3994 # Don't try gcc -ansi; that turns off useful extensions and
3995 # breaks some systems' header files.
3996 # AIX -qlanglvl=ansi
3997 # Ultrix and OSF/1 -std1
3998 # HP-UX 10.20 and later -Ae
3999 # HP-UX older versions -Aa -D_HPUX_SOURCE
4000 # SVR4 -Xc -D__EXTENSIONS__
4001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4003 CC="$ac_save_CC $ac_arg"
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4009 #include <sys/types.h>
4010 #include <sys/stat.h>
4011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4012 struct buf { int x; };
4013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4014 static char *e (p, i)
4020 static char *f (char * (*g) (char **, int), char **p, ...)
4025 s = g (p, va_arg (v,int));
4029 int test (int i, double x);
4030 struct s1 {int (*f) (int a);};
4031 struct s2 {int (*f) (double a);};
4032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 am_cv_prog_cc_stdc="$ac_arg"; break
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4055 if test -z "$am_cv_prog_cc_stdc"; then
4056 echo "$ac_t""none needed" 1>&6
4058 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4060 case "x$am_cv_prog_cc_stdc" in
4062 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4065 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4066 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4069 # test for make depend flag
4072 if test -z "${MKDEP}"; then
4074 if test -z "${MKDEP_FLAGS}"; then
4075 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4076 echo "configure:4077: checking for ${OL_MKDEP} depend flag" >&5
4077 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4082 for flag in "-M" "-xM"; do
4083 cat > conftest.c <<EOF
4086 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4087 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4089 if test ! -f conftest."${ac_object}" ; then
4091 OL_MKDEP_FLAGS="$flag"
4100 echo "$ac_t""$ol_cv_mkdep" 1>&6
4103 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4108 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4113 if test "${ol_cv_mkdep}" = no ; then
4114 # this will soon become an error
4115 echo "configure: warning: do not know how to generate dependencies" 1>&2
4119 if test $ol_enable_modules != no ; then
4120 for ac_hdr in ltdl.h
4122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_hdr" >&5
4125 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4134 { (eval echo configure:4135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4136 if test -z "$ac_err"; then
4138 eval "ac_cv_header_$ac_safe=yes"
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 eval "ac_cv_header_$ac_safe=no"
4148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4151 cat >> confdefs.h <<EOF
4152 #define $ac_tr_hdr 1
4156 echo "$ac_t""no" 1>&6
4161 if test $ac_cv_header_ltdl_h = no ; then
4162 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4165 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4166 echo "configure:4167: checking for lt_dlinit in -lltdl" >&5
4167 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4168 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 ac_save_LIBS="$LIBS"
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187 eval "ac_cv_lib_$ac_lib_var=yes"
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 eval "ac_cv_lib_$ac_lib_var=no"
4195 LIBS="$ac_save_LIBS"
4198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4202 cat >> confdefs.h <<\EOF
4203 #define HAVE_LIBLTDL 1
4208 echo "$ac_t""no" 1>&6
4212 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4213 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4217 ol_with_bdb2_module=static
4218 ol_with_ldap_module=static
4219 ol_with_ldbm_module=static
4220 ol_with_passwd_module=static
4221 ol_with_perl_module=static
4222 ol_with_shell_module=static
4223 ol_with_tcl_module=static
4227 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4228 echo "configure:4229: checking for EBCDIC" >&5
4229 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4238 #include <__ASCII__/generate_error.h>
4242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4243 { (eval echo configure:4244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4245 if test -z "$ac_err"; then
4247 ol_cv_cpp_ebcdic=yes
4250 echo "configure: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4258 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4259 if test $ol_cv_cpp_ebcdic = yes ; then
4260 cat >> confdefs.h <<\EOF
4261 #define HAVE_EBCDIC 1
4266 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4267 echo "configure:4268: checking for ANSI C header files" >&5
4268 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4280 { (eval echo configure:4281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4282 if test -z "$ac_err"; then
4284 ol_cv_header_stdc=yes
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 ol_cv_header_stdc=no
4294 if test $ol_cv_header_stdc = yes; then
4295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 egrep "memchr" >/dev/null 2>&1; then
4306 ol_cv_header_stdc=no
4312 if test $ol_cv_header_stdc = yes; then
4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 egrep "free" >/dev/null 2>&1; then
4324 ol_cv_header_stdc=no
4330 if test $ol_cv_header_stdc = yes; then
4331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332 if test "$cross_compiling" = yes; then
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4344 || ('j' <= (c) && (c) <= 'r') \
4345 || ('s' <= (c) && (c) <= 'z'))
4346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4349 int main () { int i; for (i = 0; i < 256; i++)
4350 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4354 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4361 ol_cv_header_stdc=no
4369 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4370 if test $ol_cv_header_stdc = yes; then
4371 cat >> confdefs.h <<\EOF
4372 #define STDC_HEADERS 1
4376 ac_cv_header_stdc=disable
4379 if test $ol_cv_header_stdc != yes; then
4380 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4384 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4387 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4388 echo "configure:4389: checking for $ac_hdr that defines DIR" >&5
4389 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 #include <sys/types.h>
4401 if { (eval echo configure:4402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4403 eval "ac_cv_header_dirent_$ac_safe=yes"
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4408 eval "ac_cv_header_dirent_$ac_safe=no"
4412 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_hdr 1
4418 ac_header_dirent=$ac_hdr; break
4420 echo "$ac_t""no" 1>&6
4423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4424 if test $ac_header_dirent = dirent.h; then
4425 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4426 echo "configure:4427: checking for opendir in -ldir" >&5
4427 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4428 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 ac_save_LIBS="$LIBS"
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* Override any gcc2 internal prototype to avoid an error. */
4437 /* We use char because int might match the return type of a gcc2
4438 builtin and then its argument prototype would still apply. */
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 eval "ac_cv_lib_$ac_lib_var=yes"
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 eval "ac_cv_lib_$ac_lib_var=no"
4455 LIBS="$ac_save_LIBS"
4458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4462 echo "$ac_t""no" 1>&6
4466 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4467 echo "configure:4468: checking for opendir in -lx" >&5
4468 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4469 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 ac_save_LIBS="$LIBS"
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* Override any gcc2 internal prototype to avoid an error. */
4478 /* We use char because int might match the return type of a gcc2
4479 builtin and then its argument prototype would still apply. */
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4488 eval "ac_cv_lib_$ac_lib_var=yes"
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4493 eval "ac_cv_lib_$ac_lib_var=no"
4496 LIBS="$ac_save_LIBS"
4499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4503 echo "$ac_t""no" 1>&6
4508 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4509 echo "configure:4510: checking for sys/wait.h that is POSIX.1 compatible" >&5
4510 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 #include <sys/types.h>
4517 #include <sys/wait.h>
4519 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4522 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4527 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4530 if { (eval echo configure:4531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4532 ac_cv_header_sys_wait_h=yes
4534 echo "configure: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4537 ac_cv_header_sys_wait_h=no
4542 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4543 if test $ac_cv_header_sys_wait_h = yes; then
4544 cat >> confdefs.h <<\EOF
4545 #define HAVE_SYS_WAIT_H 1
4550 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4551 echo "configure:4552: checking POSIX termios" >&5
4552 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 #include <sys/types.h>
4560 #include <termios.h>
4562 /* SunOS 4.0.3 has termios.h but not the library calls. */
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 am_cv_sys_posix_termios=yes
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 am_cv_sys_posix_termios=no
4578 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4581 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4582 echo "configure:4583: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4583 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4588 gwinsz_in_termios_h=no
4589 if test $am_cv_sys_posix_termios = yes; then
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4594 # include <termios.h>
4600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 egrep "yes" >/dev/null 2>&1; then
4603 gwinsz_in_termios_h=yes
4609 if test $gwinsz_in_termios_h = no; then
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 #include <sys/types.h>
4614 # include <sys/ioctl.h>
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 egrep "yes" >/dev/null 2>&1; then
4623 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4631 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4632 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4633 cat >> confdefs.h <<\EOF
4634 #define GWINSZ_IN_SYS_IOCTL 1
4639 if test $am_cv_sys_posix_termios = yes ; then
4640 cat >> confdefs.h <<\EOF
4641 #define HAVE_POSIX_TERMIOS 1
4692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_hdr" >&5
4695 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4704 { (eval echo configure:4705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4706 if test -z "$ac_err"; then
4708 eval "ac_cv_header_$ac_safe=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_header_$ac_safe=no"
4718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4721 cat >> confdefs.h <<EOF
4722 #define $ac_tr_hdr 1
4726 echo "$ac_t""no" 1>&6
4733 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4734 echo "configure:4735: checking for sigset in -lV3" >&5
4735 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4736 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 ac_save_LIBS="$LIBS"
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4755 eval "ac_cv_lib_$ac_lib_var=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4760 eval "ac_cv_lib_$ac_lib_var=no"
4763 LIBS="$ac_save_LIBS"
4766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4767 echo "$ac_t""yes" 1>&6
4768 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4770 cat >> confdefs.h <<EOF
4771 #define $ac_tr_lib 1
4777 echo "$ac_t""no" 1>&6
4781 if test $ac_cv_header_winsock_h = yes; then
4782 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4783 echo "configure:4784: checking for winsock" >&5
4784 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 #include <winsock.h>
4794 select(0,NULL,NULL,NULL,NULL);
4796 gethostname(NULL,0);
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4812 echo "$ac_t""$ol_cv_winsock" 1>&6
4814 if test $ol_cv_winsock = yes ; then
4815 cat >> confdefs.h <<\EOF
4816 #define HAVE_WINSOCK 1
4819 ac_cv_func_socket=yes
4820 ac_cv_func_select=yes
4821 ac_cv_func_closesocket=yes
4822 ac_cv_func_gethostname=yes
4827 echo $ac_n "checking for socket""... $ac_c" 1>&6
4828 echo "configure:4829: checking for socket" >&5
4829 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* System header to define __stub macros and hopefully few prototypes,
4836 which can conflict with char socket(); below. */
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_socket) || defined (__stub___socket)
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 eval "ac_cv_func_socket=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_func_socket=no"
4869 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4873 echo "$ac_t""no" 1>&6
4875 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4876 echo "configure:4877: checking for main in -lsocket" >&5
4877 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 ac_save_LIBS="$LIBS"
4882 LIBS="-lsocket $LIBS"
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 eval "ac_cv_lib_$ac_lib_var=yes"
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4898 eval "ac_cv_lib_$ac_lib_var=no"
4901 LIBS="$ac_save_LIBS"
4904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4906 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4907 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4908 cat >> confdefs.h <<EOF
4909 #define $ac_tr_lib 1
4912 LIBS="-lsocket $LIBS"
4915 echo "$ac_t""no" 1>&6
4918 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4919 echo "configure:4920: checking for main in -lnet" >&5
4920 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4921 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 ac_save_LIBS="$LIBS"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 eval "ac_cv_lib_$ac_lib_var=yes"
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 eval "ac_cv_lib_$ac_lib_var=no"
4944 LIBS="$ac_save_LIBS"
4947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4951 cat >> confdefs.h <<EOF
4952 #define $ac_tr_lib 1
4958 echo "$ac_t""no" 1>&6
4961 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4962 echo "configure:4963: checking for main in -lnsl_s" >&5
4963 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 ac_save_LIBS="$LIBS"
4968 LIBS="-lnsl_s $LIBS"
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_lib_$ac_lib_var=no"
4987 LIBS="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4994 cat >> confdefs.h <<EOF
4995 #define $ac_tr_lib 1
4998 LIBS="-lnsl_s $LIBS"
5001 echo "$ac_t""no" 1>&6
5004 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5005 echo "configure:5006: checking for main in -lnsl" >&5
5006 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 ac_save_LIBS="$LIBS"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5030 LIBS="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_lib 1
5044 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5048 echo "configure:5049: checking for socket in -linet" >&5
5049 ac_lib_var=`echo inet'_'socket | 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"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5069 eval "ac_cv_lib_$ac_lib_var=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_lib_$ac_lib_var=no"
5077 LIBS="$ac_save_LIBS"
5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5083 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5084 cat >> confdefs.h <<EOF
5085 #define $ac_tr_lib 1
5091 echo "$ac_t""no" 1>&6
5094 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5095 echo "configure:5096: checking for main in -lgen" >&5
5096 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 ac_save_LIBS="$LIBS"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_lib 1
5134 echo "$ac_t""no" 1>&6
5141 echo $ac_n "checking for select""... $ac_c" 1>&6
5142 echo "configure:5143: checking for select" >&5
5143 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* System header to define __stub macros and hopefully few prototypes,
5150 which can conflict with char select(); below. */
5152 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5160 /* The GNU C library defines this for functions which it implements
5161 to always fail with ENOSYS. Some functions are actually named
5162 something starting with __ and the normal name is an alias. */
5163 #if defined (__stub_select) || defined (__stub___select)
5171 if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5173 eval "ac_cv_func_select=yes"
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5178 eval "ac_cv_func_select=no"
5183 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5184 echo "$ac_t""yes" 1>&6
5187 echo "$ac_t""no" 1>&6
5188 { echo "configure: error: select() required." 1>&2; exit 1; }
5192 if test "${ac_cv_header_winsock_h}" != yes; then
5193 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5194 echo "configure:5195: checking types of arguments for select()" >&5
5195 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5201 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5205 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5206 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 #ifdef HAVE_SYS_TYPES_H
5211 #include <sys/types.h>
5213 #ifdef HAVE_SYS_TIME_H
5214 #include <sys/time.h>
5216 #ifdef HAVE_SYS_SELECT_H
5217 #include <sys/select.h>
5219 #ifdef HAVE_SYS_SOCKET_H
5220 #include <sys/socket.h>
5222 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);
5227 if { (eval echo configure:5228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 ac_not_found=no ; break 3
5231 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5246 if test "$ac_not_found" = yes; then
5247 ac_cv_func_select_arg1=int
5248 ac_cv_func_select_arg234='int *'
5249 ac_cv_func_select_arg5='struct timeval *'
5251 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5252 cat >> confdefs.h <<EOF
5253 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5256 cat >> confdefs.h <<EOF
5257 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5260 cat >> confdefs.h <<EOF
5261 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5268 for ac_hdr in regex.h
5270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5272 echo "configure:5273: checking for $ac_hdr" >&5
5273 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5282 { (eval echo configure:5283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5284 if test -z "$ac_err"; then
5286 eval "ac_cv_header_$ac_safe=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_header_$ac_safe=no"
5296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5297 echo "$ac_t""yes" 1>&6
5298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5299 cat >> confdefs.h <<EOF
5300 #define $ac_tr_hdr 1
5304 echo "$ac_t""no" 1>&6
5308 if test "$ac_cv_header_regex_h" != yes ; then
5309 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5311 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5312 echo "configure:5313: checking for regfree" >&5
5313 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char regfree(); below. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5330 /* The GNU C library defines this for functions which it implements
5331 to always fail with ENOSYS. Some functions are actually named
5332 something starting with __ and the normal name is an alias. */
5333 #if defined (__stub_regfree) || defined (__stub___regfree)
5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 eval "ac_cv_func_regfree=yes"
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5348 eval "ac_cv_func_regfree=no"
5353 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5357 echo "$ac_t""no" 1>&6
5358 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5363 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5364 echo "configure:5365: checking for compatible POSIX regex" >&5
5365 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5369 if test "$cross_compiling" = yes; then
5370 ol_cv_c_posix_regex=cross
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5376 #include <sys/types.h>
5378 static char *pattern, *string;
5386 if(regcomp(&re, pattern, 0)) {
5390 string = "ALL MATCH";
5392 rc = regexec(&re, string, 0, (void*)0, 0);
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5401 ol_cv_c_posix_regex=yes
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 ol_cv_c_posix_regex=no
5413 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5415 if test "$ol_cv_c_posix_regex" = no ; then
5416 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5419 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5420 echo "configure:5421: checking for res_search" >&5
5421 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* System header to define __stub macros and hopefully few prototypes,
5428 which can conflict with char res_search(); below. */
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 /* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5438 /* The GNU C library defines this for functions which it implements
5439 to always fail with ENOSYS. Some functions are actually named
5440 something starting with __ and the normal name is an alias. */
5441 #if defined (__stub_res_search) || defined (__stub___res_search)
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5451 eval "ac_cv_func_res_search=yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 eval "ac_cv_func_res_search=no"
5461 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5462 echo "$ac_t""yes" 1>&6
5465 echo "$ac_t""no" 1>&6
5468 if test $ac_cv_func_res_search = no ; then
5469 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5470 echo "configure:5471: checking for res_search in -lbind" >&5
5471 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5472 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 ac_save_LIBS="$LIBS"
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 /* Override any gcc2 internal prototype to avoid an error. */
5481 /* We use char because int might match the return type of a gcc2
5482 builtin and then its argument prototype would still apply. */
5489 if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5491 eval "ac_cv_lib_$ac_lib_var=yes"
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5496 eval "ac_cv_lib_$ac_lib_var=no"
5499 LIBS="$ac_save_LIBS"
5502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5506 cat >> confdefs.h <<EOF
5507 #define $ac_tr_lib 1
5513 echo "$ac_t""no" 1>&6
5516 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5519 if test $ac_cv_func_res_search = no ; then
5520 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5521 echo "configure:5522: checking for __res_search in -lbind" >&5
5522 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 ac_save_LIBS="$LIBS"
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5531 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5534 char __res_search();
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5542 eval "ac_cv_lib_$ac_lib_var=yes"
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 eval "ac_cv_lib_$ac_lib_var=no"
5550 LIBS="$ac_save_LIBS"
5553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5554 echo "$ac_t""yes" 1>&6
5555 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5557 cat >> confdefs.h <<EOF
5558 #define $ac_tr_lib 1
5564 echo "$ac_t""no" 1>&6
5567 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5570 if test $ac_cv_func_res_search = no ; then
5571 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5572 echo "configure:5573: checking for res_search in -lresolv" >&5
5573 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 ac_save_LIBS="$LIBS"
5578 LIBS="-lresolv $LIBS"
5579 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5582 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 eval "ac_cv_lib_$ac_lib_var=yes"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 eval "ac_cv_lib_$ac_lib_var=no"
5601 LIBS="$ac_save_LIBS"
5604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5606 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5608 cat >> confdefs.h <<EOF
5609 #define $ac_tr_lib 1
5612 LIBS="-lresolv $LIBS"
5615 echo "$ac_t""no" 1>&6
5618 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5621 if test "$ac_cv_func_res_search" = yes ; then
5622 cat >> confdefs.h <<\EOF
5623 #define HAVE_RES_SEARCH 1
5626 elif test $ol_enable_dns = yes ; then
5627 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5628 elif test $ol_enable_dns != no ; then
5629 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5634 if test $ol_enable_ldapd != no ; then
5635 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5637 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5638 echo "configure:5639: checking for main in -lxtpp" >&5
5639 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5643 ac_save_LIBS="$LIBS"
5644 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5653 if { (eval echo configure:5654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5655 eval "ac_cv_lib_$ac_lib_var=yes"
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 eval "ac_cv_lib_$ac_lib_var=no"
5663 LIBS="$ac_save_LIBS"
5666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5667 echo "$ac_t""yes" 1>&6
5670 cat >> confdefs.h <<\EOF
5674 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5677 echo "$ac_t""no" 1>&6
5681 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5682 echo "configure:5683: checking for main in -ldsap" >&5
5683 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5684 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 ac_save_LIBS="$LIBS"
5688 LIBS="-ldsap -lisode $LIBS"
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5699 eval "ac_cv_lib_$ac_lib_var=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_lib_$ac_lib_var=no"
5707 LIBS="$ac_save_LIBS"
5710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5714 cat >> confdefs.h <<\EOF
5718 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5721 echo "$ac_t""no" 1>&6
5725 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5726 echo "configure:5727: checking for main in -lisode" >&5
5727 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 ac_save_LIBS="$LIBS"
5732 LIBS="-lisode $LIBS"
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 eval "ac_cv_lib_$ac_lib_var=yes"
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5748 eval "ac_cv_lib_$ac_lib_var=no"
5751 LIBS="$ac_save_LIBS"
5754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5758 cat >> confdefs.h <<\EOF
5759 #define HAVE_ISODE 1
5762 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5765 echo "$ac_t""no" 1>&6
5771 if test $ol_link_isode != no; then
5772 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5773 echo "configure:5774: checking for main in -lpp" >&5
5774 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5775 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5778 ac_save_LIBS="$LIBS"
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 eval "ac_cv_lib_$ac_lib_var=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 eval "ac_cv_lib_$ac_lib_var=no"
5798 LIBS="$ac_save_LIBS"
5801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5804 cat >> confdefs.h <<\EOF
5808 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5811 echo "$ac_t""no" 1>&6
5816 # Extract the first word of "pepsy", so it can be a program name with args.
5817 set dummy pepsy; ac_word=$2
5818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_word" >&5
5820 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5825 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5828 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5833 for ac_dir in $ac_dummy; do
5834 test -z "$ac_dir" && ac_dir=.
5835 if test -f $ac_dir/$ac_word; then
5836 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5844 PEPSY="$ac_cv_path_PEPSY"
5845 if test -n "$PEPSY"; then
5846 echo "$ac_t""$PEPSY" 1>&6
5848 echo "$ac_t""no" 1>&6
5853 if test $ol_enable_quipu != no ; then
5854 for ac_hdr in quipu/commonarg.h
5856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5858 echo "configure:5859: checking for $ac_hdr" >&5
5859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5868 { (eval echo configure:5869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5870 if test -z "$ac_err"; then
5872 eval "ac_cv_header_$ac_safe=yes"
5875 echo "configure: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5878 eval "ac_cv_header_$ac_safe=no"
5882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5883 echo "$ac_t""yes" 1>&6
5884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5885 cat >> confdefs.h <<EOF
5886 #define $ac_tr_hdr 1
5890 echo "$ac_t""no" 1>&6
5895 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5897 elif test $ol_enable_quipu = auto ; then
5898 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5900 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5906 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5907 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5909 for ac_hdr in krb5.h
5911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5913 echo "configure:5914: checking for $ac_hdr" >&5
5914 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5923 { (eval echo configure:5924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5925 if test -z "$ac_err"; then
5927 eval "ac_cv_header_$ac_safe=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5933 eval "ac_cv_header_$ac_safe=no"
5937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5938 echo "$ac_t""yes" 1>&6
5939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5940 cat >> confdefs.h <<EOF
5941 #define $ac_tr_hdr 1
5945 echo "$ac_t""no" 1>&6
5950 if test $ac_cv_header_krb5_h = yes ; then
5951 for ac_hdr in heim_err.h
5953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_hdr" >&5
5956 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5965 { (eval echo configure:5966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5967 if test -z "$ac_err"; then
5969 eval "ac_cv_header_$ac_safe=yes"
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_header_$ac_safe=no"
5979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5982 cat >> confdefs.h <<EOF
5983 #define $ac_tr_hdr 1
5987 echo "$ac_t""no" 1>&6
5991 if test $ac_cv_header_heim_err_h = yes ; then
5997 if test $krb5_impl = mit; then
5998 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5999 echo "configure:6000: checking for main in -lkrb5" >&5
6000 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6001 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 ac_save_LIBS="$LIBS"
6005 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 eval "ac_cv_lib_$ac_lib_var=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_lib_$ac_lib_var=no"
6024 LIBS="$ac_save_LIBS"
6027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6030 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6032 echo "$ac_t""no" 1>&6
6037 elif test $krb5_impl = heimdal; then
6038 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6039 echo "configure:6040: checking for main in -lkrb5" >&5
6040 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 ac_save_LIBS="$LIBS"
6045 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6046 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6056 eval "ac_cv_lib_$ac_lib_var=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_lib_$ac_lib_var=no"
6064 LIBS="$ac_save_LIBS"
6067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6068 echo "$ac_t""yes" 1>&6
6070 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6072 echo "$ac_t""no" 1>&6
6077 cat >> confdefs.h <<\EOF
6078 #define HAVE_HEIMDAL_KERBEROS 1
6083 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6086 if test $have_krb5 = yes ; then
6089 cat >> confdefs.h <<\EOF
6094 if test $ol_with_kerberos = k5only ; then
6095 ol_with_kerberos=found
6098 elif test $ol_with_kerberos != auto ; then
6099 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6106 if test $ol_link_krb5 = yes -a \
6107 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6109 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6111 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6113 echo "configure:6114: checking for $ac_hdr" >&5
6114 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6123 { (eval echo configure:6124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6125 if test -z "$ac_err"; then
6127 eval "ac_cv_header_$ac_safe=yes"
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6133 eval "ac_cv_header_$ac_safe=no"
6137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6138 echo "$ac_t""yes" 1>&6
6139 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6140 cat >> confdefs.h <<EOF
6141 #define $ac_tr_hdr 1
6145 echo "$ac_t""no" 1>&6
6150 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6151 if test $krb5_impl = mit; then
6152 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6153 echo "configure:6154: checking for main in -lkrb4" >&5
6154 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 ac_save_LIBS="$LIBS"
6159 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6168 if { (eval echo configure:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6170 eval "ac_cv_lib_$ac_lib_var=yes"
6172 echo "configure: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6175 eval "ac_cv_lib_$ac_lib_var=no"
6178 LIBS="$ac_save_LIBS"
6181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6184 KRB4_LIBS="-lkrb4 -ldes425"
6186 echo "$ac_t""no" 1>&6
6191 elif test $krb5_impl = heimdal; then
6192 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6193 echo "configure:6194: checking for main in -lkrb4" >&5
6194 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6195 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 ac_save_LIBS="$LIBS"
6199 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6208 if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6210 eval "ac_cv_lib_$ac_lib_var=yes"
6212 echo "configure: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 eval "ac_cv_lib_$ac_lib_var=no"
6218 LIBS="$ac_save_LIBS"
6221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6226 echo "$ac_t""no" 1>&6
6233 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6236 if test $have_k425 = yes ; then
6237 ol_with_kerberos=found
6240 cat >> confdefs.h <<\EOF
6241 #define HAVE_KRB425 1
6244 cat >> confdefs.h <<\EOF
6249 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6250 echo "configure:6251: checking for des_debug in Kerberos libraries" >&5
6251 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6256 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6261 #include <kerberosIV/krb.h>
6262 #include <kerberosIV/des.h>
6263 extern int des_debug;
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 ol_cv_var_des_debug=yes
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 ol_cv_var_des_debug=no
6285 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6287 if test $ol_cv_var_des_debug = yes ; then
6288 cat >> confdefs.h <<\EOF
6289 #define HAVE_DES_DEBUG 1
6299 if test $ol_link_krb5 = yes ; then
6300 ol_with_kerberos=found
6303 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6304 -o $ol_with_kerberos = kth ; then
6306 for ac_hdr in krb.h des.h krb-archaeology.h
6308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_hdr" >&5
6311 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6320 { (eval echo configure:6321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6322 if test -z "$ac_err"; then
6324 eval "ac_cv_header_$ac_safe=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_header_$ac_safe=no"
6334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6335 echo "$ac_t""yes" 1>&6
6336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6337 cat >> confdefs.h <<EOF
6338 #define $ac_tr_hdr 1
6342 echo "$ac_t""no" 1>&6
6347 if test $ac_cv_header_krb_h = yes ; then
6348 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6349 echo "configure:6350: checking for main in -lkrb" >&5
6350 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6354 ac_save_LIBS="$LIBS"
6355 LIBS="-lkrb -ldes $LIBS"
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6366 eval "ac_cv_lib_$ac_lib_var=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_lib_$ac_lib_var=no"
6374 LIBS="$ac_save_LIBS"
6377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6378 echo "$ac_t""yes" 1>&6
6381 echo "$ac_t""no" 1>&6
6386 if test $have_k4 = yes ; then
6387 ol_with_kerberos=found
6390 cat >> confdefs.h <<\EOF
6395 KRB4_LIBS="-lkrb -ldes"
6397 if test $ac_cv_header_krb_archaeology_h = yes ; then
6398 cat >> confdefs.h <<\EOF
6399 #define HAVE_KTH_KERBEROS 1
6407 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6408 cat >> confdefs.h <<\EOF
6409 #define HAVE_KERBEROS 1
6413 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6414 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6418 if test $ol_with_tls != no ; then
6420 for ac_hdr in openssl/ssl.h ssl.h
6422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6424 echo "configure:6425: checking for $ac_hdr" >&5
6425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6434 { (eval echo configure:6435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6436 if test -z "$ac_err"; then
6438 eval "ac_cv_header_$ac_safe=yes"
6441 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6444 eval "ac_cv_header_$ac_safe=no"
6448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6449 echo "$ac_t""yes" 1>&6
6450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6451 cat >> confdefs.h <<EOF
6452 #define $ac_tr_hdr 1
6456 echo "$ac_t""no" 1>&6
6461 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6462 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6463 echo "configure:6464: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6464 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6465 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6466 echo $ac_n "(cached) $ac_c" 1>&6
6468 ac_save_LIBS="$LIBS"
6469 LIBS="-lssl -lcrypto $LIBS"
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* Override any gcc2 internal prototype to avoid an error. */
6474 /* We use char because int might match the return type of a gcc2
6475 builtin and then its argument prototype would still apply. */
6476 char SSLeay_add_ssl_algorithms();
6479 SSLeay_add_ssl_algorithms()
6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6484 eval "ac_cv_lib_$ac_lib_var=yes"
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 eval "ac_cv_lib_$ac_lib_var=no"
6492 LIBS="$ac_save_LIBS"
6495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6496 echo "$ac_t""yes" 1>&6
6500 echo "$ac_t""no" 1>&6
6505 if test $have_ssleay = no ; then
6506 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6507 echo "configure:6508: checking for SSL_library_init in -lssl" >&5
6508 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6510 echo $ac_n "(cached) $ac_c" 1>&6
6512 ac_save_LIBS="$LIBS"
6513 LIBS="-lssl -lcrypto $LIBS"
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6517 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520 char SSL_library_init();
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6528 eval "ac_cv_lib_$ac_lib_var=yes"
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6533 eval "ac_cv_lib_$ac_lib_var=no"
6536 LIBS="$ac_save_LIBS"
6539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6540 echo "$ac_t""yes" 1>&6
6544 echo "$ac_t""no" 1>&6
6550 if test $have_ssleay = no ; then
6551 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6552 echo "configure:6553: checking for ssl3_accept in -lssl" >&5
6553 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6554 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 ac_save_LIBS="$LIBS"
6558 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6562 /* Override any gcc2 internal prototype to avoid an error. */
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6573 eval "ac_cv_lib_$ac_lib_var=yes"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 eval "ac_cv_lib_$ac_lib_var=no"
6581 LIBS="$ac_save_LIBS"
6584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6589 echo "$ac_t""no" 1>&6
6595 if test $have_ssleay = yes ; then
6599 cat >> confdefs.h <<\EOF
6600 #define HAVE_SSLEAY 1
6604 if test $need_rsaref = yes; then
6605 cat >> confdefs.h <<\EOF
6606 #define HAVE_RSAREF 1
6610 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6612 TLS_LIBS="-lssl -lcrypto"
6618 if test $ol_link_tls = yes ; then
6619 cat >> confdefs.h <<\EOF
6627 gethostbyname_r gethostbyaddr_r \
6630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6631 echo "configure:6632: checking for $ac_func" >&5
6632 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 /* System header to define __stub macros and hopefully few prototypes,
6639 which can conflict with char $ac_func(); below. */
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6662 eval "ac_cv_func_$ac_func=yes"
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 eval "ac_cv_func_$ac_func=no"
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6680 echo "$ac_t""no" 1>&6
6685 if test "$ac_cv_func_ctime_r" = no ; then
6686 ol_cv_func_ctime_r_nargs=0
6688 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6689 echo "configure:6690: checking number of arguments of ctime_r" >&5
6690 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6698 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6701 if { (eval echo configure:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6703 ol_cv_func_ctime_r_nargs3=yes
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6708 ol_cv_func_ctime_r_nargs3=no
6712 cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6717 time_t ti; char *buffer; ctime_r(&ti,buffer);
6720 if { (eval echo configure:6721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6722 ol_cv_func_ctime_r_nargs2=yes
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 ol_cv_func_ctime_r_nargs2=no
6731 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6732 $ol_cv_func_ctime_r_nargs2 = no ; then
6734 ol_cv_func_ctime_r_nargs=3
6736 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6737 $ol_cv_func_ctime_r_nargs2 = yes ; then
6739 ol_cv_func_ctime_r_nargs=2
6742 ol_cv_func_ctime_r_nargs=0
6747 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6749 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6750 cat >> confdefs.h <<EOF
6751 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6758 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6759 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6760 echo "configure:6761: checking number of arguments of gethostbyname_r" >&5
6761 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <sys/types.h>
6768 #include <sys/socket.h>
6769 #include <netinet/in.h>
6771 #define BUFSIZE (sizeof(struct hostent)+10)
6773 struct hostent hent; char buffer[BUFSIZE];
6774 int bufsize=BUFSIZE;int h_errno;
6775 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6776 buffer, bufsize, &h_errno);
6779 if { (eval echo configure:6780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6781 ol_cv_func_gethostbyname_r_nargs5=yes
6783 echo "configure: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6786 ol_cv_func_gethostbyname_r_nargs5=no
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 #include <sys/types.h>
6794 #include <sys/socket.h>
6795 #include <netinet/in.h>
6797 #define BUFSIZE (sizeof(struct hostent)+10)
6799 struct hostent hent;struct hostent *rhent;
6800 char buffer[BUFSIZE];
6801 int bufsize=BUFSIZE;int h_errno;
6802 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6806 if { (eval echo configure:6807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6808 ol_cv_func_gethostbyname_r_nargs6=yes
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 ol_cv_func_gethostbyname_r_nargs6=no
6817 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6818 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6820 ol_cv_func_gethostbyname_r_nargs=5
6822 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6823 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6825 ol_cv_func_gethostbyname_r_nargs=6
6828 ol_cv_func_gethostbyname_r_nargs=0
6833 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6834 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6835 cat >> confdefs.h <<EOF
6836 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6842 ol_cv_func_gethostbyname_r_nargs=0
6845 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6846 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6847 echo "configure:6848: checking number of arguments of gethostbyaddr_r" >&5
6848 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 #include <sys/types.h>
6855 #include <sys/socket.h>
6856 #include <netinet/in.h>
6858 #define BUFSIZE (sizeof(struct hostent)+10)
6860 struct hostent hent; char buffer[BUFSIZE];
6862 size_t alen=sizeof(struct in_addr);
6863 int bufsize=BUFSIZE;int h_errno;
6864 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6865 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6868 if { (eval echo configure:6869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6870 ol_cv_func_gethostbyaddr_r_nargs7=yes
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 ol_cv_func_gethostbyaddr_r_nargs7=no
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 #include <sys/types.h>
6883 #include <sys/socket.h>
6884 #include <netinet/in.h>
6886 #define BUFSIZE (sizeof(struct hostent)+10)
6888 struct hostent hent;
6889 struct hostent *rhent; char buffer[BUFSIZE];
6891 size_t alen=sizeof(struct in_addr);
6892 int bufsize=BUFSIZE;int h_errno;
6893 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6894 alen, AF_INET, &hent, buffer, bufsize,
6898 if { (eval echo configure:6899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6900 ol_cv_func_gethostbyaddr_r_nargs8=yes
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 ol_cv_func_gethostbyaddr_r_nargs8=no
6909 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6910 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6912 ol_cv_func_gethostbyaddr_r_nargs=7
6914 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6915 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6917 ol_cv_func_gethostbyaddr_r_nargs=8
6920 ol_cv_func_gethostbyaddr_r_nargs=0
6925 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6926 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6927 cat >> confdefs.h <<EOF
6928 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6934 ol_cv_func_gethostbyaddr_r_nargs=0
6937 if test "$ac_cv_func_ctime_r" = yes \
6938 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6939 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6940 -a "$ac_cv_func_gethostbyname_r" = yes \
6941 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6942 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6943 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6944 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6945 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6948 cat >> confdefs.h <<\EOF
6949 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6956 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6957 -o $ol_with_threads = nt ; then
6960 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6961 echo "configure:6962: checking for NT Threads" >&5
6962 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6966 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6967 echo "configure:6968: checking for _beginthread" >&5
6968 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char _beginthread(); below. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char _beginthread();
6985 /* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6996 if { (eval echo configure:6997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6998 eval "ac_cv_func__beginthread=yes"
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 eval "ac_cv_func__beginthread=no"
7008 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7009 echo "$ac_t""yes" 1>&6
7010 ol_cv_nt_threads=yes
7012 echo "$ac_t""no" 1>&6
7019 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7021 if test $ol_cv_nt_threads = yes ; then
7022 cat >> confdefs.h <<\EOF
7023 #define HAVE_NT_THREADS 1
7029 if test "$ol_cv_nt_threads" = yes ; then
7031 ol_with_threads=found
7032 ol_with_yielding_select=yes
7034 cat >> confdefs.h <<\EOF
7035 #define HAVE_NT_SERVICE_MANAGER 1
7038 cat >> confdefs.h <<\EOF
7039 #define HAVE_NT_EVENT_LOG 1
7044 if test $ol_with_threads = nt ; then
7045 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7049 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7050 -o $ol_with_threads = posix ; then
7052 for ac_hdr in pthread.h
7054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7056 echo "configure:7057: checking for $ac_hdr" >&5
7057 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7058 echo $ac_n "(cached) $ac_c" 1>&6
7060 cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7066 { (eval echo configure:7067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7068 if test -z "$ac_err"; then
7070 eval "ac_cv_header_$ac_safe=yes"
7073 echo "configure: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7076 eval "ac_cv_header_$ac_safe=no"
7080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7081 echo "$ac_t""yes" 1>&6
7082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7083 cat >> confdefs.h <<EOF
7084 #define $ac_tr_hdr 1
7088 echo "$ac_t""no" 1>&6
7093 if test $ac_cv_header_pthread_h = yes ; then
7094 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7095 echo "configure:7096: checking POSIX thread version" >&5
7096 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7100 cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7104 # include <pthread.h>
7105 /* this check could be improved */
7106 # ifdef PTHREAD_ONCE_INIT
7107 pthread_version_final;
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 egrep "pthread_version_final" >/dev/null 2>&1; then
7114 ol_pthread_final=yes
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7126 # include <pthread.h>
7127 /* this check could be improved */
7128 # ifdef pthread_once_init
7129 pthread_version_draft4;
7133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7136 ol_pthread_draft4=yes
7139 ol_pthread_draft4=no
7144 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7145 ol_cv_pthread_version=final
7146 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7147 ol_cv_pthread_version=draft4
7149 ol_cv_pthread_version=unknown
7154 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7157 if test $ol_cv_pthread_version = final ; then
7158 cat >> confdefs.h <<\EOF
7159 #define HAVE_PTHREADS_FINAL 1
7162 elif test $ol_cv_pthread_version = draft4 ; then
7163 cat >> confdefs.h <<\EOF
7164 #define HAVE_PTHREADS_D4 1
7168 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7171 # consider threads found
7172 ol_with_threads=found
7175 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7176 echo "configure:7177: checking for LinuxThreads pthread.h" >&5
7177 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 #include <pthread.h>
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7188 ol_cv_header_linux_threads=yes
7191 ol_cv_header_linux_threads=no
7198 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7199 if test $ol_cv_header_linux_threads = yes; then
7200 cat >> confdefs.h <<\EOF
7201 #define HAVE_LINUX_THREADS 1
7207 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7208 echo "configure:7209: checking for GNU Pth pthread.h" >&5
7209 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <pthread.h>
7216 #ifdef _POSIX_THREAD_IS_GNU_PTH
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 egrep "__gnu_pth__" >/dev/null 2>&1; then
7224 ol_cv_header_gnu_pth_pthread_h=yes
7227 ol_cv_header_gnu_pth_pthread_h=no
7234 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7237 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7238 for ac_hdr in sched.h
7240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_hdr" >&5
7243 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7252 { (eval echo configure:7253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7254 if test -z "$ac_err"; then
7256 eval "ac_cv_header_$ac_safe=yes"
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 eval "ac_cv_header_$ac_safe=no"
7266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7267 echo "$ac_t""yes" 1>&6
7268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7269 cat >> confdefs.h <<EOF
7270 #define $ac_tr_hdr 1
7274 echo "$ac_t""no" 1>&6
7281 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7282 echo "configure:7283: checking for pthread_create in default libraries" >&5
7283 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7287 if test "$cross_compiling" = yes; then
7288 cat > conftest.$ac_ext <<EOF
7289 #line 7290 "configure"
7290 #include "confdefs.h"
7291 /* pthread test headers */
7292 #include <pthread.h>
7294 #define NULL (void*)0
7297 static void *task(p)
7300 return (void *) (p == NULL);
7305 /* pthread test function */
7309 /* make sure pthread_create() isn't just a stub */
7310 #if HAVE_PTHREADS_D4
7311 status = pthread_create(&t, pthread_attr_default, task, NULL);
7313 status = pthread_create(&t, NULL, task, NULL);
7316 if( status ) exit( status );
7318 /* make sure pthread_detach() isn't just a stub */
7319 #if HAVE_PTHREADS_D4
7320 status = pthread_detach( &t );
7322 status = pthread_detach( t );
7325 #ifdef HAVE_LINUX_THREADS
7326 pthread_kill_other_threads_np();
7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7335 ol_cv_pthread_create=yes
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7340 ol_cv_pthread_create=no
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* pthread test headers */
7348 #include <pthread.h>
7350 #define NULL (void*)0
7353 static void *task(p)
7356 return (void *) (p == NULL);
7360 int main(argc, argv)
7365 /* pthread test function */
7369 /* make sure pthread_create() isn't just a stub */
7370 #if HAVE_PTHREADS_D4
7371 status = pthread_create(&t, pthread_attr_default, task, NULL);
7373 status = pthread_create(&t, NULL, task, NULL);
7376 if( status ) exit( status );
7378 /* make sure pthread_detach() isn't just a stub */
7379 #if HAVE_PTHREADS_D4
7380 status = pthread_detach( &t );
7382 status = pthread_detach( t );
7385 #ifdef HAVE_LINUX_THREADS
7386 pthread_kill_other_threads_np();
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7396 ol_cv_pthread_create=yes
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7401 ol_cv_pthread_create=no
7408 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7410 if test $ol_cv_pthread_create != no ; then
7411 ol_link_threads=posix
7415 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7416 if test "$ol_link_threads" = no ; then
7418 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7419 echo "configure:7420: checking for pthread link with -kthread" >&5
7420 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7426 LIBS="-kthread $LIBS"
7428 if test "$cross_compiling" = yes; then
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 /* pthread test headers */
7433 #include <pthread.h>
7435 #define NULL (void*)0
7438 static void *task(p)
7441 return (void *) (p == NULL);
7446 /* pthread test function */
7450 /* make sure pthread_create() isn't just a stub */
7451 #if HAVE_PTHREADS_D4
7452 status = pthread_create(&t, pthread_attr_default, task, NULL);
7454 status = pthread_create(&t, NULL, task, NULL);
7457 if( status ) exit( status );
7459 /* make sure pthread_detach() isn't just a stub */
7460 #if HAVE_PTHREADS_D4
7461 status = pthread_detach( &t );
7463 status = pthread_detach( t );
7466 #ifdef HAVE_LINUX_THREADS
7467 pthread_kill_other_threads_np();
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 ol_cv_pthread_kthread=yes
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 ol_cv_pthread_kthread=no
7485 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7488 /* pthread test headers */
7489 #include <pthread.h>
7491 #define NULL (void*)0
7494 static void *task(p)
7497 return (void *) (p == NULL);
7501 int main(argc, argv)
7506 /* pthread test function */
7510 /* make sure pthread_create() isn't just a stub */
7511 #if HAVE_PTHREADS_D4
7512 status = pthread_create(&t, pthread_attr_default, task, NULL);
7514 status = pthread_create(&t, NULL, task, NULL);
7517 if( status ) exit( status );
7519 /* make sure pthread_detach() isn't just a stub */
7520 #if HAVE_PTHREADS_D4
7521 status = pthread_detach( &t );
7523 status = pthread_detach( t );
7526 #ifdef HAVE_LINUX_THREADS
7527 pthread_kill_other_threads_np();
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7537 ol_cv_pthread_kthread=yes
7539 echo "configure: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7542 ol_cv_pthread_kthread=no
7553 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7555 if test $ol_cv_pthread_kthread = yes ; then
7556 ol_link_pthreads="-kthread"
7557 ol_link_threads=posix
7561 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7562 if test "$ol_link_threads" = no ; then
7564 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7565 echo "configure:7566: checking for pthread link with -pthread" >&5
7566 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7572 LIBS="-pthread $LIBS"
7574 if test "$cross_compiling" = yes; then
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7578 /* pthread test headers */
7579 #include <pthread.h>
7581 #define NULL (void*)0
7584 static void *task(p)
7587 return (void *) (p == NULL);
7592 /* pthread test function */
7596 /* make sure pthread_create() isn't just a stub */
7597 #if HAVE_PTHREADS_D4
7598 status = pthread_create(&t, pthread_attr_default, task, NULL);
7600 status = pthread_create(&t, NULL, task, NULL);
7603 if( status ) exit( status );
7605 /* make sure pthread_detach() isn't just a stub */
7606 #if HAVE_PTHREADS_D4
7607 status = pthread_detach( &t );
7609 status = pthread_detach( t );
7612 #ifdef HAVE_LINUX_THREADS
7613 pthread_kill_other_threads_np();
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7622 ol_cv_pthread_pthread=yes
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 ol_cv_pthread_pthread=no
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* pthread test headers */
7635 #include <pthread.h>
7637 #define NULL (void*)0
7640 static void *task(p)
7643 return (void *) (p == NULL);
7647 int main(argc, argv)
7652 /* pthread test function */
7656 /* make sure pthread_create() isn't just a stub */
7657 #if HAVE_PTHREADS_D4
7658 status = pthread_create(&t, pthread_attr_default, task, NULL);
7660 status = pthread_create(&t, NULL, task, NULL);
7663 if( status ) exit( status );
7665 /* make sure pthread_detach() isn't just a stub */
7666 #if HAVE_PTHREADS_D4
7667 status = pthread_detach( &t );
7669 status = pthread_detach( t );
7672 #ifdef HAVE_LINUX_THREADS
7673 pthread_kill_other_threads_np();
7681 if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7683 ol_cv_pthread_pthread=yes
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7688 ol_cv_pthread_pthread=no
7699 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7701 if test $ol_cv_pthread_pthread = yes ; then
7702 ol_link_pthreads="-pthread"
7703 ol_link_threads=posix
7707 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7708 if test "$ol_link_threads" = no ; then
7710 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7711 echo "configure:7712: checking for pthread link with -pthreads" >&5
7712 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7718 LIBS="-pthreads $LIBS"
7720 if test "$cross_compiling" = yes; then
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* pthread test headers */
7725 #include <pthread.h>
7727 #define NULL (void*)0
7730 static void *task(p)
7733 return (void *) (p == NULL);
7738 /* pthread test function */
7742 /* make sure pthread_create() isn't just a stub */
7743 #if HAVE_PTHREADS_D4
7744 status = pthread_create(&t, pthread_attr_default, task, NULL);
7746 status = pthread_create(&t, NULL, task, NULL);
7749 if( status ) exit( status );
7751 /* make sure pthread_detach() isn't just a stub */
7752 #if HAVE_PTHREADS_D4
7753 status = pthread_detach( &t );
7755 status = pthread_detach( t );
7758 #ifdef HAVE_LINUX_THREADS
7759 pthread_kill_other_threads_np();
7766 if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7768 ol_cv_pthread_pthreads=yes
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7773 ol_cv_pthread_pthreads=no
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* pthread test headers */
7781 #include <pthread.h>
7783 #define NULL (void*)0
7786 static void *task(p)
7789 return (void *) (p == NULL);
7793 int main(argc, argv)
7798 /* pthread test function */
7802 /* make sure pthread_create() isn't just a stub */
7803 #if HAVE_PTHREADS_D4
7804 status = pthread_create(&t, pthread_attr_default, task, NULL);
7806 status = pthread_create(&t, NULL, task, NULL);
7809 if( status ) exit( status );
7811 /* make sure pthread_detach() isn't just a stub */
7812 #if HAVE_PTHREADS_D4
7813 status = pthread_detach( &t );
7815 status = pthread_detach( t );
7818 #ifdef HAVE_LINUX_THREADS
7819 pthread_kill_other_threads_np();
7827 if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7829 ol_cv_pthread_pthreads=yes
7831 echo "configure: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7834 ol_cv_pthread_pthreads=no
7845 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7847 if test $ol_cv_pthread_pthreads = yes ; then
7848 ol_link_pthreads="-pthreads"
7849 ol_link_threads=posix
7853 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7854 if test "$ol_link_threads" = no ; then
7856 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7857 echo "configure:7858: checking for pthread link with -mthreads" >&5
7858 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7864 LIBS="-mthreads $LIBS"
7866 if test "$cross_compiling" = yes; then
7867 cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7870 /* pthread test headers */
7871 #include <pthread.h>
7873 #define NULL (void*)0
7876 static void *task(p)
7879 return (void *) (p == NULL);
7884 /* pthread test function */
7888 /* make sure pthread_create() isn't just a stub */
7889 #if HAVE_PTHREADS_D4
7890 status = pthread_create(&t, pthread_attr_default, task, NULL);
7892 status = pthread_create(&t, NULL, task, NULL);
7895 if( status ) exit( status );
7897 /* make sure pthread_detach() isn't just a stub */
7898 #if HAVE_PTHREADS_D4
7899 status = pthread_detach( &t );
7901 status = pthread_detach( t );
7904 #ifdef HAVE_LINUX_THREADS
7905 pthread_kill_other_threads_np();
7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7914 ol_cv_pthread_mthreads=yes
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7919 ol_cv_pthread_mthreads=no
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* pthread test headers */
7927 #include <pthread.h>
7929 #define NULL (void*)0
7932 static void *task(p)
7935 return (void *) (p == NULL);
7939 int main(argc, argv)
7944 /* pthread test function */
7948 /* make sure pthread_create() isn't just a stub */
7949 #if HAVE_PTHREADS_D4
7950 status = pthread_create(&t, pthread_attr_default, task, NULL);
7952 status = pthread_create(&t, NULL, task, NULL);
7955 if( status ) exit( status );
7957 /* make sure pthread_detach() isn't just a stub */
7958 #if HAVE_PTHREADS_D4
7959 status = pthread_detach( &t );
7961 status = pthread_detach( t );
7964 #ifdef HAVE_LINUX_THREADS
7965 pthread_kill_other_threads_np();
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7975 ol_cv_pthread_mthreads=yes
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 ol_cv_pthread_mthreads=no
7991 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7993 if test $ol_cv_pthread_mthreads = yes ; then
7994 ol_link_pthreads="-mthreads"
7995 ol_link_threads=posix
7999 # Pthread try link: -thread (ol_cv_pthread_thread)
8000 if test "$ol_link_threads" = no ; then
8002 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8003 echo "configure:8004: checking for pthread link with -thread" >&5
8004 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8005 echo $ac_n "(cached) $ac_c" 1>&6
8010 LIBS="-thread $LIBS"
8012 if test "$cross_compiling" = yes; then
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* pthread test headers */
8017 #include <pthread.h>
8019 #define NULL (void*)0
8022 static void *task(p)
8025 return (void *) (p == NULL);
8030 /* pthread test function */
8034 /* make sure pthread_create() isn't just a stub */
8035 #if HAVE_PTHREADS_D4
8036 status = pthread_create(&t, pthread_attr_default, task, NULL);
8038 status = pthread_create(&t, NULL, task, NULL);
8041 if( status ) exit( status );
8043 /* make sure pthread_detach() isn't just a stub */
8044 #if HAVE_PTHREADS_D4
8045 status = pthread_detach( &t );
8047 status = pthread_detach( t );
8050 #ifdef HAVE_LINUX_THREADS
8051 pthread_kill_other_threads_np();
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8060 ol_cv_pthread_thread=yes
8062 echo "configure: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8065 ol_cv_pthread_thread=no
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8072 /* pthread test headers */
8073 #include <pthread.h>
8075 #define NULL (void*)0
8078 static void *task(p)
8081 return (void *) (p == NULL);
8085 int main(argc, argv)
8090 /* pthread test function */
8094 /* make sure pthread_create() isn't just a stub */
8095 #if HAVE_PTHREADS_D4
8096 status = pthread_create(&t, pthread_attr_default, task, NULL);
8098 status = pthread_create(&t, NULL, task, NULL);
8101 if( status ) exit( status );
8103 /* make sure pthread_detach() isn't just a stub */
8104 #if HAVE_PTHREADS_D4
8105 status = pthread_detach( &t );
8107 status = pthread_detach( t );
8110 #ifdef HAVE_LINUX_THREADS
8111 pthread_kill_other_threads_np();
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8121 ol_cv_pthread_thread=yes
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 ol_cv_pthread_thread=no
8137 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8139 if test $ol_cv_pthread_thread = yes ; then
8140 ol_link_pthreads="-thread"
8141 ol_link_threads=posix
8146 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8147 if test "$ol_link_threads" = no ; then
8148 # try -lpthread -lmach -lexc -lc_r
8149 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8150 echo "configure:8151: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8151 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8157 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8159 if test "$cross_compiling" = yes; then
8160 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8163 /* pthread test headers */
8164 #include <pthread.h>
8166 #define NULL (void*)0
8169 static void *task(p)
8172 return (void *) (p == NULL);
8177 /* pthread test function */
8181 /* make sure pthread_create() isn't just a stub */
8182 #if HAVE_PTHREADS_D4
8183 status = pthread_create(&t, pthread_attr_default, task, NULL);
8185 status = pthread_create(&t, NULL, task, NULL);
8188 if( status ) exit( status );
8190 /* make sure pthread_detach() isn't just a stub */
8191 #if HAVE_PTHREADS_D4
8192 status = pthread_detach( &t );
8194 status = pthread_detach( t );
8197 #ifdef HAVE_LINUX_THREADS
8198 pthread_kill_other_threads_np();
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 /* pthread test headers */
8220 #include <pthread.h>
8222 #define NULL (void*)0
8225 static void *task(p)
8228 return (void *) (p == NULL);
8232 int main(argc, argv)
8237 /* pthread test function */
8241 /* make sure pthread_create() isn't just a stub */
8242 #if HAVE_PTHREADS_D4
8243 status = pthread_create(&t, pthread_attr_default, task, NULL);
8245 status = pthread_create(&t, NULL, task, NULL);
8248 if( status ) exit( status );
8250 /* make sure pthread_detach() isn't just a stub */
8251 #if HAVE_PTHREADS_D4
8252 status = pthread_detach( &t );
8254 status = pthread_detach( t );
8257 #ifdef HAVE_LINUX_THREADS
8258 pthread_kill_other_threads_np();
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8268 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8284 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8286 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8287 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8288 ol_link_threads=posix
8292 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8293 if test "$ol_link_threads" = no ; then
8294 # try -lpthread -lmach -lexc
8295 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8296 echo "configure:8297: checking for pthread link with -lpthread -lmach -lexc" >&5
8297 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8298 echo $ac_n "(cached) $ac_c" 1>&6
8303 LIBS="-lpthread -lmach -lexc $LIBS"
8305 if test "$cross_compiling" = yes; then
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 /* pthread test headers */
8310 #include <pthread.h>
8312 #define NULL (void*)0
8315 static void *task(p)
8318 return (void *) (p == NULL);
8323 /* pthread test function */
8327 /* make sure pthread_create() isn't just a stub */
8328 #if HAVE_PTHREADS_D4
8329 status = pthread_create(&t, pthread_attr_default, task, NULL);
8331 status = pthread_create(&t, NULL, task, NULL);
8334 if( status ) exit( status );
8336 /* make sure pthread_detach() isn't just a stub */
8337 #if HAVE_PTHREADS_D4
8338 status = pthread_detach( &t );
8340 status = pthread_detach( t );
8343 #ifdef HAVE_LINUX_THREADS
8344 pthread_kill_other_threads_np();
8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 ol_cv_pthread_lpthread_lmach_lexc=yes
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8358 ol_cv_pthread_lpthread_lmach_lexc=no
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 /* pthread test headers */
8366 #include <pthread.h>
8368 #define NULL (void*)0
8371 static void *task(p)
8374 return (void *) (p == NULL);
8378 int main(argc, argv)
8383 /* pthread test function */
8387 /* make sure pthread_create() isn't just a stub */
8388 #if HAVE_PTHREADS_D4
8389 status = pthread_create(&t, pthread_attr_default, task, NULL);
8391 status = pthread_create(&t, NULL, task, NULL);
8394 if( status ) exit( status );
8396 /* make sure pthread_detach() isn't just a stub */
8397 #if HAVE_PTHREADS_D4
8398 status = pthread_detach( &t );
8400 status = pthread_detach( t );
8403 #ifdef HAVE_LINUX_THREADS
8404 pthread_kill_other_threads_np();
8412 if { (eval echo configure:8413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8414 ol_cv_pthread_lpthread_lmach_lexc=yes
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 ol_cv_pthread_lpthread_lmach_lexc=no
8430 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8432 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8433 ol_link_pthreads="-lpthread -lmach -lexc"
8434 ol_link_threads=posix
8439 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8440 if test "$ol_link_threads" = no ; then
8441 # try -lpthread -Wl,-woff,85
8442 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8443 echo "configure:8444: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8444 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8445 echo $ac_n "(cached) $ac_c" 1>&6
8450 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8452 if test "$cross_compiling" = yes; then
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 /* pthread test headers */
8457 #include <pthread.h>
8459 #define NULL (void*)0
8462 static void *task(p)
8465 return (void *) (p == NULL);
8470 /* pthread test function */
8474 /* make sure pthread_create() isn't just a stub */
8475 #if HAVE_PTHREADS_D4
8476 status = pthread_create(&t, pthread_attr_default, task, NULL);
8478 status = pthread_create(&t, NULL, task, NULL);
8481 if( status ) exit( status );
8483 /* make sure pthread_detach() isn't just a stub */
8484 #if HAVE_PTHREADS_D4
8485 status = pthread_detach( &t );
8487 status = pthread_detach( t );
8490 #ifdef HAVE_LINUX_THREADS
8491 pthread_kill_other_threads_np();
8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8500 ol_cv_pthread_lib_lpthread_woff=yes
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 ol_cv_pthread_lib_lpthread_woff=no
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8512 /* pthread test headers */
8513 #include <pthread.h>
8515 #define NULL (void*)0
8518 static void *task(p)
8521 return (void *) (p == NULL);
8525 int main(argc, argv)
8530 /* pthread test function */
8534 /* make sure pthread_create() isn't just a stub */
8535 #if HAVE_PTHREADS_D4
8536 status = pthread_create(&t, pthread_attr_default, task, NULL);
8538 status = pthread_create(&t, NULL, task, NULL);
8541 if( status ) exit( status );
8543 /* make sure pthread_detach() isn't just a stub */
8544 #if HAVE_PTHREADS_D4
8545 status = pthread_detach( &t );
8547 status = pthread_detach( t );
8550 #ifdef HAVE_LINUX_THREADS
8551 pthread_kill_other_threads_np();
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8561 ol_cv_pthread_lib_lpthread_woff=yes
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 ol_cv_pthread_lib_lpthread_woff=no
8577 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8579 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8580 ol_link_pthreads="-lpthread -Wl,-woff,85"
8581 ol_link_threads=posix
8586 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8587 if test "$ol_link_threads" = no ; then
8589 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8590 echo "configure:8591: checking for pthread link with -lpthread" >&5
8591 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6
8597 LIBS="-lpthread $LIBS"
8599 if test "$cross_compiling" = yes; then
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 /* pthread test headers */
8604 #include <pthread.h>
8606 #define NULL (void*)0
8609 static void *task(p)
8612 return (void *) (p == NULL);
8617 /* pthread test function */
8621 /* make sure pthread_create() isn't just a stub */
8622 #if HAVE_PTHREADS_D4
8623 status = pthread_create(&t, pthread_attr_default, task, NULL);
8625 status = pthread_create(&t, NULL, task, NULL);
8628 if( status ) exit( status );
8630 /* make sure pthread_detach() isn't just a stub */
8631 #if HAVE_PTHREADS_D4
8632 status = pthread_detach( &t );
8634 status = pthread_detach( t );
8637 #ifdef HAVE_LINUX_THREADS
8638 pthread_kill_other_threads_np();
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 ol_cv_pthread_lpthread=yes
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 ol_cv_pthread_lpthread=no
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);
8672 int main(argc, argv)
8677 /* pthread test function */
8681 /* make sure pthread_create() isn't just a stub */
8682 #if HAVE_PTHREADS_D4
8683 status = pthread_create(&t, pthread_attr_default, task, NULL);
8685 status = pthread_create(&t, NULL, task, NULL);
8688 if( status ) exit( status );
8690 /* make sure pthread_detach() isn't just a stub */
8691 #if HAVE_PTHREADS_D4
8692 status = pthread_detach( &t );
8694 status = pthread_detach( t );
8697 #ifdef HAVE_LINUX_THREADS
8698 pthread_kill_other_threads_np();
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8708 ol_cv_pthread_lpthread=yes
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8713 ol_cv_pthread_lpthread=no
8724 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8726 if test $ol_cv_pthread_lpthread = yes ; then
8727 ol_link_pthreads="-lpthread"
8728 ol_link_threads=posix
8732 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8733 if test "$ol_link_threads" = no ; then
8735 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8736 echo "configure:8737: checking for pthread link with -lc_r" >&5
8737 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8745 if test "$cross_compiling" = yes; then
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 /* pthread test headers */
8750 #include <pthread.h>
8752 #define NULL (void*)0
8755 static void *task(p)
8758 return (void *) (p == NULL);
8763 /* pthread test function */
8767 /* make sure pthread_create() isn't just a stub */
8768 #if HAVE_PTHREADS_D4
8769 status = pthread_create(&t, pthread_attr_default, task, NULL);
8771 status = pthread_create(&t, NULL, task, NULL);
8774 if( status ) exit( status );
8776 /* make sure pthread_detach() isn't just a stub */
8777 #if HAVE_PTHREADS_D4
8778 status = pthread_detach( &t );
8780 status = pthread_detach( t );
8783 #ifdef HAVE_LINUX_THREADS
8784 pthread_kill_other_threads_np();
8791 if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8793 ol_cv_pthread_lc_r=yes
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 ol_cv_pthread_lc_r=no
8802 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 /* pthread test headers */
8806 #include <pthread.h>
8808 #define NULL (void*)0
8811 static void *task(p)
8814 return (void *) (p == NULL);
8818 int main(argc, argv)
8823 /* pthread test function */
8827 /* make sure pthread_create() isn't just a stub */
8828 #if HAVE_PTHREADS_D4
8829 status = pthread_create(&t, pthread_attr_default, task, NULL);
8831 status = pthread_create(&t, NULL, task, NULL);
8834 if( status ) exit( status );
8836 /* make sure pthread_detach() isn't just a stub */
8837 #if HAVE_PTHREADS_D4
8838 status = pthread_detach( &t );
8840 status = pthread_detach( t );
8843 #ifdef HAVE_LINUX_THREADS
8844 pthread_kill_other_threads_np();
8852 if { (eval echo configure:8853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8854 ol_cv_pthread_lc_r=yes
8856 echo "configure: failed program was:" >&5
8857 cat conftest.$ac_ext >&5
8859 ol_cv_pthread_lc_r=no
8870 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8872 if test $ol_cv_pthread_lc_r = yes ; then
8873 ol_link_pthreads="-lc_r"
8874 ol_link_threads=posix
8879 # Pthread try link: -threads (ol_cv_pthread_threads)
8880 if test "$ol_link_threads" = no ; then
8882 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8883 echo "configure:8884: checking for pthread link with -threads" >&5
8884 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8890 LIBS="-threads $LIBS"
8892 if test "$cross_compiling" = yes; then
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 /* pthread test headers */
8897 #include <pthread.h>
8899 #define NULL (void*)0
8902 static void *task(p)
8905 return (void *) (p == NULL);
8910 /* pthread test function */
8914 /* make sure pthread_create() isn't just a stub */
8915 #if HAVE_PTHREADS_D4
8916 status = pthread_create(&t, pthread_attr_default, task, NULL);
8918 status = pthread_create(&t, NULL, task, NULL);
8921 if( status ) exit( status );
8923 /* make sure pthread_detach() isn't just a stub */
8924 #if HAVE_PTHREADS_D4
8925 status = pthread_detach( &t );
8927 status = pthread_detach( t );
8930 #ifdef HAVE_LINUX_THREADS
8931 pthread_kill_other_threads_np();
8938 if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 ol_cv_pthread_threads=yes
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8945 ol_cv_pthread_threads=no
8949 cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8952 /* pthread test headers */
8953 #include <pthread.h>
8955 #define NULL (void*)0
8958 static void *task(p)
8961 return (void *) (p == NULL);
8965 int main(argc, argv)
8970 /* pthread test function */
8974 /* make sure pthread_create() isn't just a stub */
8975 #if HAVE_PTHREADS_D4
8976 status = pthread_create(&t, pthread_attr_default, task, NULL);
8978 status = pthread_create(&t, NULL, task, NULL);
8981 if( status ) exit( status );
8983 /* make sure pthread_detach() isn't just a stub */
8984 #if HAVE_PTHREADS_D4
8985 status = pthread_detach( &t );
8987 status = pthread_detach( t );
8990 #ifdef HAVE_LINUX_THREADS
8991 pthread_kill_other_threads_np();
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9001 ol_cv_pthread_threads=yes
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9006 ol_cv_pthread_threads=no
9017 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9019 if test $ol_cv_pthread_threads = yes ; then
9020 ol_link_pthreads="-threads"
9021 ol_link_threads=posix
9026 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9027 if test "$ol_link_threads" = no ; then
9028 # try -lpthreads -lmach -lexc -lc_r
9029 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9030 echo "configure:9031: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9031 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9032 echo $ac_n "(cached) $ac_c" 1>&6
9037 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9039 if test "$cross_compiling" = yes; then
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 /* pthread test headers */
9044 #include <pthread.h>
9046 #define NULL (void*)0
9049 static void *task(p)
9052 return (void *) (p == NULL);
9057 /* pthread test function */
9061 /* make sure pthread_create() isn't just a stub */
9062 #if HAVE_PTHREADS_D4
9063 status = pthread_create(&t, pthread_attr_default, task, NULL);
9065 status = pthread_create(&t, NULL, task, NULL);
9068 if( status ) exit( status );
9070 /* make sure pthread_detach() isn't just a stub */
9071 #if HAVE_PTHREADS_D4
9072 status = pthread_detach( &t );
9074 status = pthread_detach( t );
9077 #ifdef HAVE_LINUX_THREADS
9078 pthread_kill_other_threads_np();
9085 if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9087 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9089 echo "configure: failed program was:" >&5
9090 cat conftest.$ac_ext >&5
9092 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 /* pthread test headers */
9100 #include <pthread.h>
9102 #define NULL (void*)0
9105 static void *task(p)
9108 return (void *) (p == NULL);
9112 int main(argc, argv)
9117 /* pthread test function */
9121 /* make sure pthread_create() isn't just a stub */
9122 #if HAVE_PTHREADS_D4
9123 status = pthread_create(&t, pthread_attr_default, task, NULL);
9125 status = pthread_create(&t, NULL, task, NULL);
9128 if( status ) exit( status );
9130 /* make sure pthread_detach() isn't just a stub */
9131 #if HAVE_PTHREADS_D4
9132 status = pthread_detach( &t );
9134 status = pthread_detach( t );
9137 #ifdef HAVE_LINUX_THREADS
9138 pthread_kill_other_threads_np();
9146 if { (eval echo configure:9147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9148 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9164 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9166 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9167 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9168 ol_link_threads=posix
9172 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9173 if test "$ol_link_threads" = no ; then
9174 # try -lpthreads -lmach -lexc
9175 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9176 echo "configure:9177: checking for pthread link with -lpthreads -lmach -lexc" >&5
9177 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9178 echo $ac_n "(cached) $ac_c" 1>&6
9183 LIBS="-lpthreads -lmach -lexc $LIBS"
9185 if test "$cross_compiling" = yes; then
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 /* pthread test headers */
9190 #include <pthread.h>
9192 #define NULL (void*)0
9195 static void *task(p)
9198 return (void *) (p == NULL);
9203 /* pthread test function */
9207 /* make sure pthread_create() isn't just a stub */
9208 #if HAVE_PTHREADS_D4
9209 status = pthread_create(&t, pthread_attr_default, task, NULL);
9211 status = pthread_create(&t, NULL, task, NULL);
9214 if( status ) exit( status );
9216 /* make sure pthread_detach() isn't just a stub */
9217 #if HAVE_PTHREADS_D4
9218 status = pthread_detach( &t );
9220 status = pthread_detach( t );
9223 #ifdef HAVE_LINUX_THREADS
9224 pthread_kill_other_threads_np();
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9233 ol_cv_pthread_lpthreads_lmach_lexc=yes
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 ol_cv_pthread_lpthreads_lmach_lexc=no
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 /* pthread test headers */
9246 #include <pthread.h>
9248 #define NULL (void*)0
9251 static void *task(p)
9254 return (void *) (p == NULL);
9258 int main(argc, argv)
9263 /* pthread test function */
9267 /* make sure pthread_create() isn't just a stub */
9268 #if HAVE_PTHREADS_D4
9269 status = pthread_create(&t, pthread_attr_default, task, NULL);
9271 status = pthread_create(&t, NULL, task, NULL);
9274 if( status ) exit( status );
9276 /* make sure pthread_detach() isn't just a stub */
9277 #if HAVE_PTHREADS_D4
9278 status = pthread_detach( &t );
9280 status = pthread_detach( t );
9283 #ifdef HAVE_LINUX_THREADS
9284 pthread_kill_other_threads_np();
9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9294 ol_cv_pthread_lpthreads_lmach_lexc=yes
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9299 ol_cv_pthread_lpthreads_lmach_lexc=no
9310 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9312 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9313 ol_link_pthreads="-lpthreads -lmach -lexc"
9314 ol_link_threads=posix
9318 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9319 if test "$ol_link_threads" = no ; then
9320 # try -lpthreads -lexc
9321 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9322 echo "configure:9323: checking for pthread link with -lpthreads -lexc" >&5
9323 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9329 LIBS="-lpthreads -lexc $LIBS"
9331 if test "$cross_compiling" = yes; then
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9335 /* pthread test headers */
9336 #include <pthread.h>
9338 #define NULL (void*)0
9341 static void *task(p)
9344 return (void *) (p == NULL);
9349 /* pthread test function */
9353 /* make sure pthread_create() isn't just a stub */
9354 #if HAVE_PTHREADS_D4
9355 status = pthread_create(&t, pthread_attr_default, task, NULL);
9357 status = pthread_create(&t, NULL, task, NULL);
9360 if( status ) exit( status );
9362 /* make sure pthread_detach() isn't just a stub */
9363 #if HAVE_PTHREADS_D4
9364 status = pthread_detach( &t );
9366 status = pthread_detach( t );
9369 #ifdef HAVE_LINUX_THREADS
9370 pthread_kill_other_threads_np();
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9379 ol_cv_pthread_lpthreads_lexc=yes
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 ol_cv_pthread_lpthreads_lexc=no
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 /* pthread test headers */
9392 #include <pthread.h>
9394 #define NULL (void*)0
9397 static void *task(p)
9400 return (void *) (p == NULL);
9404 int main(argc, argv)
9409 /* pthread test function */
9413 /* make sure pthread_create() isn't just a stub */
9414 #if HAVE_PTHREADS_D4
9415 status = pthread_create(&t, pthread_attr_default, task, NULL);
9417 status = pthread_create(&t, NULL, task, NULL);
9420 if( status ) exit( status );
9422 /* make sure pthread_detach() isn't just a stub */
9423 #if HAVE_PTHREADS_D4
9424 status = pthread_detach( &t );
9426 status = pthread_detach( t );
9429 #ifdef HAVE_LINUX_THREADS
9430 pthread_kill_other_threads_np();
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9440 ol_cv_pthread_lpthreads_lexc=yes
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9445 ol_cv_pthread_lpthreads_lexc=no
9456 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9458 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9459 ol_link_pthreads="-lpthreads -lexc"
9460 ol_link_threads=posix
9465 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9466 if test "$ol_link_threads" = no ; then
9468 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9469 echo "configure:9470: checking for pthread link with -lpthreads" >&5
9470 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9476 LIBS="-lpthreads $LIBS"
9478 if test "$cross_compiling" = yes; then
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 /* pthread test headers */
9483 #include <pthread.h>
9485 #define NULL (void*)0
9488 static void *task(p)
9491 return (void *) (p == NULL);
9496 /* pthread test function */
9500 /* make sure pthread_create() isn't just a stub */
9501 #if HAVE_PTHREADS_D4
9502 status = pthread_create(&t, pthread_attr_default, task, NULL);
9504 status = pthread_create(&t, NULL, task, NULL);
9507 if( status ) exit( status );
9509 /* make sure pthread_detach() isn't just a stub */
9510 #if HAVE_PTHREADS_D4
9511 status = pthread_detach( &t );
9513 status = pthread_detach( t );
9516 #ifdef HAVE_LINUX_THREADS
9517 pthread_kill_other_threads_np();
9524 if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9526 ol_cv_pthread_lib_lpthreads=yes
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9531 ol_cv_pthread_lib_lpthreads=no
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 /* pthread test headers */
9539 #include <pthread.h>
9541 #define NULL (void*)0
9544 static void *task(p)
9547 return (void *) (p == NULL);
9551 int main(argc, argv)
9556 /* pthread test function */
9560 /* make sure pthread_create() isn't just a stub */
9561 #if HAVE_PTHREADS_D4
9562 status = pthread_create(&t, pthread_attr_default, task, NULL);
9564 status = pthread_create(&t, NULL, task, NULL);
9567 if( status ) exit( status );
9569 /* make sure pthread_detach() isn't just a stub */
9570 #if HAVE_PTHREADS_D4
9571 status = pthread_detach( &t );
9573 status = pthread_detach( t );
9576 #ifdef HAVE_LINUX_THREADS
9577 pthread_kill_other_threads_np();
9585 if { (eval echo configure:9586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9587 ol_cv_pthread_lib_lpthreads=yes
9589 echo "configure: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9592 ol_cv_pthread_lib_lpthreads=no
9603 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9605 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9606 ol_link_pthreads="-lpthreads"
9607 ol_link_threads=posix
9612 if test $ol_link_threads != no ; then
9613 cat >> confdefs.h <<\EOF
9614 #define HAVE_PTHREADS 1
9618 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9620 save_CPPFLAGS="$CPPFLAGS"
9622 LIBS="$LTHREAD_LIBS $LIBS"
9624 for ac_func in sched_yield pthread_yield
9626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9627 echo "configure:9628: checking for $ac_func" >&5
9628 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 /* System header to define __stub macros and hopefully few prototypes,
9635 which can conflict with char $ac_func(); below. */
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 /* We use char because int might match the return type of a gcc2
9639 builtin and then its argument prototype would still apply. */
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9656 if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9658 eval "ac_cv_func_$ac_func=yes"
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9663 eval "ac_cv_func_$ac_func=no"
9668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9671 cat >> confdefs.h <<EOF
9672 #define $ac_tr_func 1
9676 echo "$ac_t""no" 1>&6
9681 if test $ac_cv_func_sched_yield = no -a \
9682 $ac_cv_func_pthread_yield = no ; then
9683 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9684 echo "configure:9685: checking for sched_yield in -lrt" >&5
9685 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9686 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9689 ac_save_LIBS="$LIBS"
9691 cat > conftest.$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 /* Override any gcc2 internal prototype to avoid an error. */
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9703 if { (eval echo configure:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9705 eval "ac_cv_lib_$ac_lib_var=yes"
9707 echo "configure: failed program was:" >&5
9708 cat conftest.$ac_ext >&5
9710 eval "ac_cv_lib_$ac_lib_var=no"
9713 LIBS="$ac_save_LIBS"
9716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9717 echo "$ac_t""yes" 1>&6
9718 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9719 cat >> confdefs.h <<\EOF
9720 #define HAVE_SCHED_YIELD 1
9723 ac_cv_func_sched_yield=yes
9725 echo "$ac_t""no" 1>&6
9726 ac_cv_func_sched_yield=no
9730 if test $ac_cv_func_sched_yield = no -a \
9731 $ac_cv_func_pthread_yield = no ; then
9732 for ac_func in thr_yield
9734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9735 echo "configure:9736: checking for $ac_func" >&5
9736 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 /* System header to define __stub macros and hopefully few prototypes,
9743 which can conflict with char $ac_func(); below. */
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9753 /* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
9756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9764 if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9766 eval "ac_cv_func_$ac_func=yes"
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 eval "ac_cv_func_$ac_func=no"
9776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9777 echo "$ac_t""yes" 1>&6
9778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9779 cat >> confdefs.h <<EOF
9780 #define $ac_tr_func 1
9784 echo "$ac_t""no" 1>&6
9789 if test $ac_cv_func_sched_yield = no -a \
9790 $ac_cv_func_pthread_yield = no -a \
9791 "$ac_cv_func_thr_yield" = no ; then
9792 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9795 for ac_func in pthread_kill
9797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9798 echo "configure:9799: checking for $ac_func" >&5
9799 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 /* System header to define __stub macros and hopefully few prototypes,
9806 which can conflict with char $ac_func(); below. */
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9816 /* The GNU C library defines this for functions which it implements
9817 to always fail with ENOSYS. Some functions are actually named
9818 something starting with __ and the normal name is an alias. */
9819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9827 if { (eval echo configure:9828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9829 eval "ac_cv_func_$ac_func=yes"
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9834 eval "ac_cv_func_$ac_func=no"
9839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9840 echo "$ac_t""yes" 1>&6
9841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9842 cat >> confdefs.h <<EOF
9843 #define $ac_tr_func 1
9847 echo "$ac_t""no" 1>&6
9852 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9853 echo "configure:9854: checking for pthread_detach with <pthread.h>" >&5
9854 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9855 echo $ac_n "(cached) $ac_c" 1>&6
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9860 "configure"
9860 #include "confdefs.h"
9862 #include <pthread.h>
9864 #define NULL (void*)0
9868 pthread_detach(NULL);
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873 ol_cv_func_pthread_detach=yes
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9878 ol_cv_func_pthread_detach=no
9884 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9886 if test $ol_cv_func_pthread_detach = no ; then
9887 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_PTHREAD_DETACH 1
9896 pthread_setconcurrency \
9897 pthread_getconcurrency \
9898 thr_setconcurrency \
9899 thr_getconcurrency \
9902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9903 echo "configure:9904: checking for $ac_func" >&5
9904 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9905 echo $ac_n "(cached) $ac_c" 1>&6
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 /* System header to define __stub macros and hopefully few prototypes,
9911 which can conflict with char $ac_func(); below. */
9913 /* Override any gcc2 internal prototype to avoid an error. */
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9934 eval "ac_cv_func_$ac_func=yes"
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 eval "ac_cv_func_$ac_func=no"
9944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9945 echo "$ac_t""yes" 1>&6
9946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9947 cat >> confdefs.h <<EOF
9948 #define $ac_tr_func 1
9952 echo "$ac_t""no" 1>&6
9958 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9959 echo "configure:9960: checking for pthread_kill_other_threads_np" >&5
9960 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9963 cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 /* System header to define __stub macros and hopefully few prototypes,
9967 which can conflict with char pthread_kill_other_threads_np(); below. */
9969 /* Override any gcc2 internal prototype to avoid an error. */
9970 /* We use char because int might match the return type of a gcc2
9971 builtin and then its argument prototype would still apply. */
9972 char pthread_kill_other_threads_np();
9977 /* The GNU C library defines this for functions which it implements
9978 to always fail with ENOSYS. Some functions are actually named
9979 something starting with __ and the normal name is an alias. */
9980 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9983 f = pthread_kill_other_threads_np;
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9995 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10000 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10001 echo "$ac_t""yes" 1>&6
10004 echo "$ac_t""no" 1>&6
10007 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10008 echo "configure:10009: checking for LinuxThreads implementation" >&5
10009 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10010 echo $ac_n "(cached) $ac_c" 1>&6
10012 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10015 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10020 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10021 echo "configure:10022: checking for LinuxThreads consistency" >&5
10022 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10026 if test $ol_cv_header_linux_threads = yes -a \
10027 $ol_cv_sys_linux_threads = yes; then
10028 ol_cv_linux_threads=yes
10029 elif test $ol_cv_header_linux_threads = no -a \
10030 $ol_cv_sys_linux_threads = no; then
10031 ol_cv_linux_threads=no
10033 ol_cv_linux_threads=error
10038 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10041 if test $ol_cv_linux_threads = error; then
10042 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10045 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10046 echo "configure:10047: checking if pthread_create() works" >&5
10047 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10048 echo $ac_n "(cached) $ac_c" 1>&6
10051 if test "$cross_compiling" = yes; then
10052 ol_cv_pthread_create_works=yes
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 /* pthread test headers */
10058 #include <pthread.h>
10060 #define NULL (void*)0
10063 static void *task(p)
10066 return (void *) (p == NULL);
10070 int main(argc, argv)
10075 /* pthread test function */
10079 /* make sure pthread_create() isn't just a stub */
10080 #if HAVE_PTHREADS_D4
10081 status = pthread_create(&t, pthread_attr_default, task, NULL);
10083 status = pthread_create(&t, NULL, task, NULL);
10086 if( status ) exit( status );
10088 /* make sure pthread_detach() isn't just a stub */
10089 #if HAVE_PTHREADS_D4
10090 status = pthread_detach( &t );
10092 status = pthread_detach( t );
10095 #ifdef HAVE_LINUX_THREADS
10096 pthread_kill_other_threads_np();
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10106 ol_cv_pthread_create_works=yes
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10111 ol_cv_pthread_create_works=no
10118 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10120 if test $ol_cv_pthread_create_works = no ; then
10121 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10124 if test $ol_with_yielding_select = auto ; then
10125 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10126 echo "configure:10127: checking if select yields when using pthreads" >&5
10127 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10131 if test "$cross_compiling" = yes; then
10132 ol_cv_pthread_select_yields=cross
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10138 #include <sys/types.h>
10139 #include <sys/time.h>
10140 #include <unistd.h>
10141 #include <pthread.h>
10143 #define NULL (void*) 0
10146 static int fildes[2];
10148 static void *task(p)
10160 FD_SET(fildes[0], &rfds);
10162 /* we're not interested in any fds */
10163 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10170 exit(0); /* if we exit here, the select blocked the whole process */
10173 int main(argc, argv)
10179 /* create a pipe to select */
10180 if(pipe(&fildes[0])) {
10185 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10186 (void) pthread_setconcurrency(2);
10188 #ifdef HAVE_THR_SETCONCURRENCY
10189 /* Set Solaris LWP concurrency to 2 */
10190 thr_setconcurrency(2);
10194 #if HAVE_PTHREADS_D4
10195 pthread_create(&t, pthread_attr_default, task, NULL);
10197 pthread_create(&t, NULL, task, NULL);
10200 #if HAVE_SCHED_YIELD
10201 sched_yield(); /* make sure task runs first */
10203 #ifdef HAVE_PTHREAD_YIELD
10204 pthread_yield(); /* make sure task runs first */
10211 if { (eval echo configure:10212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10213 ol_cv_pthread_select_yields=no
10215 echo "configure: failed program was:" >&5
10216 cat conftest.$ac_ext >&5
10218 ol_cv_pthread_select_yields=yes
10225 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10227 if test $ol_cv_pthread_select_yields = cross ; then
10228 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10231 if test $ol_cv_pthread_select_yields = yes ; then
10232 ol_with_yielding_select=yes
10236 CPPFLAGS="$save_CPPFLAGS"
10239 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10243 if test $ol_with_threads = posix ; then
10244 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10248 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10249 -o $ol_with_threads = mach ; then
10251 for ac_hdr in mach/cthreads.h
10253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10255 echo "configure:10256: checking for $ac_hdr" >&5
10256 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10265 { (eval echo configure:10266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10267 if test -z "$ac_err"; then
10269 eval "ac_cv_header_$ac_safe=yes"
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10275 eval "ac_cv_header_$ac_safe=no"
10279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10280 echo "$ac_t""yes" 1>&6
10281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10282 cat >> confdefs.h <<EOF
10283 #define $ac_tr_hdr 1
10287 echo "$ac_t""no" 1>&6
10291 if test $ac_cv_header_mach_cthreads_h = yes ; then
10292 ol_with_threads=found
10294 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10295 echo "configure:10296: checking for cthread_fork" >&5
10296 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10297 echo $ac_n "(cached) $ac_c" 1>&6
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10302 /* System header to define __stub macros and hopefully few prototypes,
10303 which can conflict with char cthread_fork(); below. */
10304 #include <assert.h>
10305 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char cthread_fork();
10313 /* The GNU C library defines this for functions which it implements
10314 to always fail with ENOSYS. Some functions are actually named
10315 something starting with __ and the normal name is an alias. */
10316 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 eval "ac_cv_func_cthread_fork=yes"
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 eval "ac_cv_func_cthread_fork=no"
10336 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10337 echo "$ac_t""yes" 1>&6
10338 ol_link_threads=yes
10340 echo "$ac_t""no" 1>&6
10344 if test $ol_link_threads = no ; then
10345 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10346 echo "configure:10347: checking for cthread_fork with -all_load" >&5
10347 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10348 echo $ac_n "(cached) $ac_c" 1>&6
10352 LIBS="-all_load $LIBS"
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 #include <mach/cthreads.h>
10359 cthread_fork((void *)0, (void *)0);
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10365 ol_cv_cthread_all_load=yes
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10370 ol_cv_cthread_all_load=no
10377 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10379 if test $ol_cv_cthread_all_load = yes ; then
10380 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10381 ol_link_threads=mach
10385 if test $ol_link_threads != no ; then
10386 : check for cthread specific functionality here
10387 cat >> confdefs.h <<\EOF
10388 #define HAVE_MACH_CTHREADS 1
10392 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10396 if test $ol_with_threads = mach ; then
10397 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10401 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10402 -o $ol_with_threads = pth ; then
10404 for ac_hdr in pth.h
10406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10408 echo "configure:10409: checking for $ac_hdr" >&5
10409 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure"
10414 #include "confdefs.h"
10417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10418 { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10420 if test -z "$ac_err"; then
10422 eval "ac_cv_header_$ac_safe=yes"
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 eval "ac_cv_header_$ac_safe=no"
10432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10435 cat >> confdefs.h <<EOF
10436 #define $ac_tr_hdr 1
10440 echo "$ac_t""no" 1>&6
10445 if test $ac_cv_header_pth_h = yes ; then
10446 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10447 echo "configure:10448: checking for pth_version in -lpth" >&5
10448 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10450 echo $ac_n "(cached) $ac_c" 1>&6
10452 ac_save_LIBS="$LIBS"
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10457 /* Override any gcc2 internal prototype to avoid an error. */
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10460 char pth_version();
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10468 eval "ac_cv_lib_$ac_lib_var=yes"
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10473 eval "ac_cv_lib_$ac_lib_var=no"
10476 LIBS="$ac_save_LIBS"
10479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10480 echo "$ac_t""yes" 1>&6
10483 echo "$ac_t""no" 1>&6
10488 if test $have_pth = yes ; then
10489 cat >> confdefs.h <<\EOF
10490 #define HAVE_GNU_PTH 1
10493 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10494 ol_link_threads=pth
10496 if test $ol_with_yielding_select = auto ; then
10497 ol_with_yielding_select=yes
10503 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10504 -o $ol_with_threads = lwp ; then
10506 for ac_hdr in thread.h synch.h
10508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10510 echo "configure:10511: checking for $ac_hdr" >&5
10511 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520 { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522 if test -z "$ac_err"; then
10524 eval "ac_cv_header_$ac_safe=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_header_$ac_safe=no"
10534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10535 echo "$ac_t""yes" 1>&6
10536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10537 cat >> confdefs.h <<EOF
10538 #define $ac_tr_hdr 1
10542 echo "$ac_t""no" 1>&6
10546 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10547 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10548 echo "configure:10549: checking for thr_create in -lthread" >&5
10549 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10553 ac_save_LIBS="$LIBS"
10554 LIBS="-lthread $LIBS"
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10558 /* Override any gcc2 internal prototype to avoid an error. */
10559 /* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10567 if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10569 eval "ac_cv_lib_$ac_lib_var=yes"
10571 echo "configure: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10574 eval "ac_cv_lib_$ac_lib_var=no"
10577 LIBS="$ac_save_LIBS"
10580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10581 echo "$ac_t""yes" 1>&6
10584 echo "$ac_t""no" 1>&6
10589 if test $have_thr = yes ; then
10590 cat >> confdefs.h <<\EOF
10594 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10595 ol_link_threads=thr
10597 if test $ol_with_yielding_select = auto ; then
10598 ol_with_yielding_select=yes
10602 thr_setconcurrency \
10603 thr_getconcurrency \
10606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10607 echo "configure:10608: checking for $ac_func" >&5
10608 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10609 echo $ac_n "(cached) $ac_c" 1>&6
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure"
10613 #include "confdefs.h"
10614 /* System header to define __stub macros and hopefully few prototypes,
10615 which can conflict with char $ac_func(); below. */
10616 #include <assert.h>
10617 /* Override any gcc2 internal prototype to avoid an error. */
10618 /* We use char because int might match the return type of a gcc2
10619 builtin and then its argument prototype would still apply. */
10625 /* The GNU C library defines this for functions which it implements
10626 to always fail with ENOSYS. Some functions are actually named
10627 something starting with __ and the normal name is an alias. */
10628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10636 if { (eval echo configure:10637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10638 eval "ac_cv_func_$ac_func=yes"
10640 echo "configure: failed program was:" >&5
10641 cat conftest.$ac_ext >&5
10643 eval "ac_cv_func_$ac_func=no"
10648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10651 cat >> confdefs.h <<EOF
10652 #define $ac_tr_func 1
10656 echo "$ac_t""no" 1>&6
10663 for ac_hdr in lwp/lwp.h
10665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10667 echo "configure:10668: checking for $ac_hdr" >&5
10668 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10669 echo $ac_n "(cached) $ac_c" 1>&6
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10677 { (eval echo configure:10678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10679 if test -z "$ac_err"; then
10681 eval "ac_cv_header_$ac_safe=yes"
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 eval "ac_cv_header_$ac_safe=no"
10691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10692 echo "$ac_t""yes" 1>&6
10693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10694 cat >> confdefs.h <<EOF
10695 #define $ac_tr_hdr 1
10699 echo "$ac_t""no" 1>&6
10703 if test $ac_cv_header_lwp_lwp_h = yes ; then
10704 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10705 echo "configure:10706: checking for lwp_create in -llwp" >&5
10706 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10707 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10710 ac_save_LIBS="$LIBS"
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 /* Override any gcc2 internal prototype to avoid an error. */
10716 /* We use char because int might match the return type of a gcc2
10717 builtin and then its argument prototype would still apply. */
10724 if { (eval echo configure:10725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10726 eval "ac_cv_lib_$ac_lib_var=yes"
10728 echo "configure: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10731 eval "ac_cv_lib_$ac_lib_var=no"
10734 LIBS="$ac_save_LIBS"
10737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10738 echo "$ac_t""yes" 1>&6
10741 echo "$ac_t""no" 1>&6
10746 if test $have_lwp = yes ; then
10747 cat >> confdefs.h <<\EOF
10751 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10752 ol_link_threads=lwp
10754 if test $ol_with_yielding_select = auto ; then
10755 ol_with_yielding_select=no
10761 if test $ol_with_yielding_select = yes ; then
10762 cat >> confdefs.h <<\EOF
10763 #define HAVE_YIELDING_SELECT 1
10768 if test $ol_with_threads = manual ; then
10769 ol_link_threads=yes
10771 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10773 for ac_hdr in pthread.h sched.h
10775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10777 echo "configure:10778: checking for $ac_hdr" >&5
10778 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10787 { (eval echo configure:10788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10789 if test -z "$ac_err"; then
10791 eval "ac_cv_header_$ac_safe=yes"
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 eval "ac_cv_header_$ac_safe=no"
10801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10802 echo "$ac_t""yes" 1>&6
10803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10804 cat >> confdefs.h <<EOF
10805 #define $ac_tr_hdr 1
10809 echo "$ac_t""no" 1>&6
10813 for ac_func in sched_yield pthread_yield
10815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10816 echo "configure:10817: checking for $ac_func" >&5
10817 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10818 echo $ac_n "(cached) $ac_c" 1>&6
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10822 "configure"
10822 #include "confdefs.h"
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char $ac_func(); below. */
10825 #include <assert.h>
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847 eval "ac_cv_func_$ac_func=yes"
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10852 eval "ac_cv_func_$ac_func=no"
10857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10860 cat >> confdefs.h <<EOF
10861 #define $ac_tr_func 1
10865 echo "$ac_t""no" 1>&6
10870 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10871 echo "configure:10872: checking for LinuxThreads pthread.h" >&5
10872 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10875 cat > conftest.$ac_ext <<EOF
10876 #line 10877 "configure"
10877 #include "confdefs.h"
10878 #include <pthread.h>
10880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10883 ol_cv_header_linux_threads=yes
10886 ol_cv_header_linux_threads=no
10893 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10894 if test $ol_cv_header_linux_threads = yes; then
10895 cat >> confdefs.h <<\EOF
10896 #define HAVE_LINUX_THREADS 1
10902 for ac_hdr in mach/cthreads.h
10904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10906 echo "configure:10907: checking for $ac_hdr" >&5
10907 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10916 { (eval echo configure:10917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10918 if test -z "$ac_err"; then
10920 eval "ac_cv_header_$ac_safe=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_header_$ac_safe=no"
10930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10931 echo "$ac_t""yes" 1>&6
10932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10933 cat >> confdefs.h <<EOF
10934 #define $ac_tr_hdr 1
10938 echo "$ac_t""no" 1>&6
10942 for ac_hdr in lwp/lwp.h
10944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10946 echo "configure:10947: checking for $ac_hdr" >&5
10947 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10956 { (eval echo configure:10957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10958 if test -z "$ac_err"; then
10960 eval "ac_cv_header_$ac_safe=yes"
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 eval "ac_cv_header_$ac_safe=no"
10970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10973 cat >> confdefs.h <<EOF
10974 #define $ac_tr_hdr 1
10978 echo "$ac_t""no" 1>&6
10982 for ac_hdr in thread.h synch.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
11024 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11025 cat >> confdefs.h <<\EOF
11026 #define REENTRANT 1
11029 cat >> confdefs.h <<\EOF
11030 #define _REENTRANT 1
11033 cat >> confdefs.h <<\EOF
11034 #define THREAD_SAFE 1
11037 cat >> confdefs.h <<\EOF
11038 #define _THREAD_SAFE 1
11041 cat >> confdefs.h <<\EOF
11042 #define THREADSAFE 1
11045 cat >> confdefs.h <<\EOF
11046 #define _THREADSAFE 1
11049 cat >> confdefs.h <<\EOF
11050 #define _SGI_MP_SOURCE 1
11054 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11055 echo "configure:11056: checking for thread specific errno" >&5
11056 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11057 echo $ac_n "(cached) $ac_c" 1>&6
11060 cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11068 if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11070 ol_cv_errno_thread_specific=yes
11072 echo "configure: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11075 ol_cv_errno_thread_specific=no
11081 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11083 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11084 echo "configure:11085: checking for thread specific h_errno" >&5
11085 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11097 if { (eval echo configure:11098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11099 ol_cv_h_errno_thread_specific=yes
11101 echo "configure: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11104 ol_cv_h_errno_thread_specific=no
11110 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11112 if test $ol_cv_errno_thread_specific != yes \
11113 -o $ol_cv_h_errno_thread_specific != yes ; then
11114 LIBS="$LTHREAD_LIBS $LIBS"
11120 if test $ol_link_threads = no ; then
11121 if test $ol_with_threads = yes ; then
11122 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11125 if test $ol_with_threads = auto ; then
11126 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11130 cat >> confdefs.h <<\EOF
11131 #define NO_THREADS 1
11137 if test $ol_link_threads != no ; then
11138 cat >> confdefs.h <<\EOF
11139 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11146 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11147 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11148 echo "configure:11149: checking for DB2 library" >&5
11149 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11153 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11154 echo "configure:11155: checking for db_appexit in -ldb" >&5
11155 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11156 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11159 ac_save_LIBS="$LIBS"
11161 cat > conftest.$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11164 /* Override any gcc2 internal prototype to avoid an error. */
11165 /* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11173 if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11175 eval "ac_cv_lib_$ac_lib_var=yes"
11177 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11180 eval "ac_cv_lib_$ac_lib_var=no"
11183 LIBS="$ac_save_LIBS"
11186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11187 echo "$ac_t""yes" 1>&6
11190 echo "$ac_t""no" 1>&6
11198 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11204 echo "configure:11205: checking for $ac_hdr" >&5
11205 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11214 { (eval echo configure:11215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11216 if test -z "$ac_err"; then
11218 eval "ac_cv_header_$ac_safe=yes"
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 eval "ac_cv_header_$ac_safe=no"
11228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11229 echo "$ac_t""yes" 1>&6
11230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11231 cat >> confdefs.h <<EOF
11232 #define $ac_tr_hdr 1
11236 echo "$ac_t""no" 1>&6
11240 if test $ac_cv_header_db_h = yes ; then
11241 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11242 echo "configure:11243: checking if db.h is DB2" >&5
11243 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11252 /* this check could be improved */
11253 # ifdef DB_VERSION_MAJOR
11254 # if DB_VERSION_MAJOR == 2
11260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11261 egrep "__db_version_2" >/dev/null 2>&1; then
11263 ol_cv_header_db2=yes
11266 ol_cv_header_db2=no
11272 echo "$ac_t""$ol_cv_header_db2" 1>&6
11274 ol_cv_header_db2=no
11279 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11280 echo "configure:11281: checking for Berkeley DB2" >&5
11281 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11285 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11286 ol_cv_berkeley_db2=no
11288 ol_cv_berkeley_db2=yes
11293 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11294 if test $ol_cv_berkeley_db2 = yes ; then
11295 cat >> confdefs.h <<\EOF
11296 #define HAVE_BERKELEY_DB2 1
11302 if test $ol_cv_berkeley_db2 = yes ; then
11304 ol_with_ldbm_api=db2
11306 if test $ol_with_ldbm_type = hash ; then
11307 cat >> confdefs.h <<\EOF
11308 #define LDBM_USE_DBHASH 1
11312 cat >> confdefs.h <<\EOF
11313 #define LDBM_USE_DBBTREE 1
11318 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11319 echo "configure:11320: checking for DB_THREAD support" >&5
11320 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11325 if test $ol_cv_lib_db2 != yes ; then
11326 LIBS="$ol_cv_lib_db2"
11329 if test "$cross_compiling" = yes; then
11330 ol_cv_berkeley_db2_db_thread=cross
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure"
11334 #include "confdefs.h"
11338 #define NULL ((void *)0)
11344 u_int32_t flags = DB_CREATE | DB_THREAD;
11346 memset( &env, '\0', sizeof(env) );
11348 rc = db_appinit( NULL, NULL, &env, flags );
11351 db_appexit( &env );
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11359 ol_cv_berkeley_db2_db_thread=yes
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 ol_cv_berkeley_db2_db_thread=no
11372 if test $ol_cv_berkeley_db2_db_thread != no ; then
11373 cat >> confdefs.h <<\EOF
11374 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11381 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11383 if test $ol_cv_lib_db2 != yes ; then
11384 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11390 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11391 if test $ol_cv_berkeley_db2_db_thread != no ; then
11394 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11398 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11399 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11400 echo "configure:11401: checking for Berkeley DB library" >&5
11401 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11405 for ac_hdr in db1/db.h
11407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11409 echo "configure:11410: checking for $ac_hdr" >&5
11410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11411 echo $ac_n "(cached) $ac_c" 1>&6
11413 cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11419 { (eval echo configure:11420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11421 if test -z "$ac_err"; then
11423 eval "ac_cv_header_$ac_safe=yes"
11426 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11429 eval "ac_cv_header_$ac_safe=no"
11433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11434 echo "$ac_t""yes" 1>&6
11435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11436 cat >> confdefs.h <<EOF
11437 #define $ac_tr_hdr 1
11441 echo "$ac_t""no" 1>&6
11446 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11447 echo "configure:11448: checking for dbopen" >&5
11448 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char dbopen(); below. */
11456 #include <assert.h>
11457 /* Override any gcc2 internal prototype to avoid an error. */
11458 /* We use char because int might match the return type of a gcc2
11459 builtin and then its argument prototype would still apply. */
11465 /* The GNU C library defines this for functions which it implements
11466 to always fail with ENOSYS. Some functions are actually named
11467 something starting with __ and the normal name is an alias. */
11468 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11478 eval "ac_cv_func_dbopen=yes"
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 eval "ac_cv_func_dbopen=no"
11488 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11489 echo "$ac_t""yes" 1>&6
11492 echo "$ac_t""no" 1>&6
11494 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11495 echo "configure:11496: checking for dbopen in -ldb1" >&5
11496 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11497 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11498 echo $ac_n "(cached) $ac_c" 1>&6
11500 ac_save_LIBS="$LIBS"
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11505 /* Override any gcc2 internal prototype to avoid an error. */
11506 /* We use char because int might match the return type of a gcc2
11507 builtin and then its argument prototype would still apply. */
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11516 eval "ac_cv_lib_$ac_lib_var=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_lib_$ac_lib_var=no"
11524 LIBS="$ac_save_LIBS"
11527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11528 echo "$ac_t""yes" 1>&6
11531 echo "$ac_t""no" 1>&6
11533 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11534 echo "configure:11535: checking for dbopen in -ldb" >&5
11535 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11536 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11539 ac_save_LIBS="$LIBS"
11541 cat > conftest.$ac_ext <<EOF
11542 #line 11543 "configure"
11543 #include "confdefs.h"
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11553 if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11555 eval "ac_cv_lib_$ac_lib_var=yes"
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11560 eval "ac_cv_lib_$ac_lib_var=no"
11563 LIBS="$ac_save_LIBS"
11566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11567 echo "$ac_t""yes" 1>&6
11570 echo "$ac_t""no" 1>&6
11584 echo "$ac_t""$ol_cv_lib_db" 1>&6
11587 for ac_hdr in db_185.h
11589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11591 echo "configure:11592: checking for $ac_hdr" >&5
11592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11601 { (eval echo configure:11602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11603 if test -z "$ac_err"; then
11605 eval "ac_cv_header_$ac_safe=yes"
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11611 eval "ac_cv_header_$ac_safe=no"
11615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11618 cat >> confdefs.h <<EOF
11619 #define $ac_tr_hdr 1
11623 echo "$ac_t""no" 1>&6
11627 if test "$ol_cv_header_db2" = yes ; then
11629 ol_cv_header_db=$ac_cv_header_db_185_h
11631 ol_cv_header_db=$ac_cv_header_db_h
11636 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11637 echo "configure:11638: checking for Berkeley DB" >&5
11638 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11639 echo $ac_n "(cached) $ac_c" 1>&6
11642 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11643 ol_cv_berkeley_db=no
11645 ol_cv_berkeley_db=yes
11650 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11651 if test $ol_cv_berkeley_db = yes ; then
11652 cat >> confdefs.h <<\EOF
11653 #define HAVE_BERKELEY_DB 1
11659 if test $ol_cv_berkeley_db = yes ; then
11661 ol_with_ldbm_api=db
11663 if test $ol_with_ldbm_type = hash ; then
11664 cat >> confdefs.h <<\EOF
11665 #define LDBM_USE_DBHASH 1
11669 cat >> confdefs.h <<\EOF
11670 #define LDBM_USE_DBBTREE 1
11675 if test $ol_cv_lib_db != yes ; then
11676 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11681 if test $ol_with_ldbm_api = manual ; then
11684 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11686 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11690 echo "configure:11691: checking for $ac_hdr" >&5
11691 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11692 echo $ac_n "(cached) $ac_c" 1>&6
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11700 { (eval echo configure:11701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11702 if test -z "$ac_err"; then
11704 eval "ac_cv_header_$ac_safe=yes"
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11710 eval "ac_cv_header_$ac_safe=no"
11714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11715 echo "$ac_t""yes" 1>&6
11716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11717 cat >> confdefs.h <<EOF
11718 #define $ac_tr_hdr 1
11722 echo "$ac_t""no" 1>&6
11728 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11729 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11730 ol_with_ldbm_api=none
11733 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11734 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11735 echo "configure:11736: checking for MDBM library" >&5
11736 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
11740 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11741 echo "configure:11742: checking for mdbm_set_chain" >&5
11742 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11748 /* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char mdbm_set_chain(); below. */
11750 #include <assert.h>
11751 /* Override any gcc2 internal prototype to avoid an error. */
11752 /* We use char because int might match the return type of a gcc2
11753 builtin and then its argument prototype would still apply. */
11754 char mdbm_set_chain();
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11765 f = mdbm_set_chain;
11770 if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11772 eval "ac_cv_func_mdbm_set_chain=yes"
11774 echo "configure: failed program was:" >&5
11775 cat conftest.$ac_ext >&5
11777 eval "ac_cv_func_mdbm_set_chain=no"
11782 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11783 echo "$ac_t""yes" 1>&6
11786 echo "$ac_t""no" 1>&6
11788 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11789 echo "configure:11790: checking for mdbm_set_chain in -lmdbm" >&5
11790 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11794 ac_save_LIBS="$LIBS"
11795 LIBS="-lmdbm $LIBS"
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 /* Override any gcc2 internal prototype to avoid an error. */
11800 /* We use char because int might match the return type of a gcc2
11801 builtin and then its argument prototype would still apply. */
11802 char mdbm_set_chain();
11808 if { (eval echo configure:11809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11810 eval "ac_cv_lib_$ac_lib_var=yes"
11812 echo "configure: failed program was:" >&5
11813 cat conftest.$ac_ext >&5
11815 eval "ac_cv_lib_$ac_lib_var=no"
11818 LIBS="$ac_save_LIBS"
11821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11822 echo "$ac_t""yes" 1>&6
11823 ol_cv_lib_mdbm=-lmdbm
11825 echo "$ac_t""no" 1>&6
11836 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11839 for ac_hdr in mdbm.h
11841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11843 echo "configure:11844: checking for $ac_hdr" >&5
11844 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11847 cat > conftest.$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11853 { (eval echo configure:11854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11855 if test -z "$ac_err"; then
11857 eval "ac_cv_header_$ac_safe=yes"
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11863 eval "ac_cv_header_$ac_safe=no"
11867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11868 echo "$ac_t""yes" 1>&6
11869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11870 cat >> confdefs.h <<EOF
11871 #define $ac_tr_hdr 1
11875 echo "$ac_t""no" 1>&6
11879 echo $ac_n "checking for db""... $ac_c" 1>&6
11880 echo "configure:11881: checking for db" >&5
11881 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
11885 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11893 echo "$ac_t""$ol_cv_mdbm" 1>&6
11894 if test $ol_cv_mdbm = yes ; then
11895 cat >> confdefs.h <<\EOF
11896 #define HAVE_MDBM 1
11902 if test $ol_cv_mdbm = yes ; then
11904 ol_with_ldbm_api=mdbm
11905 if test $ol_cv_lib_mdbm != yes ; then
11906 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11911 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11912 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11913 echo "configure:11914: checking for GDBM library" >&5
11914 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11918 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11919 echo "configure:11920: checking for gdbm_open" >&5
11920 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11923 cat > conftest.$ac_ext <<EOF
11924 #line 11925 "configure"
11925 #include "confdefs.h"
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char gdbm_open(); below. */
11928 #include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error. */
11930 /* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11950 eval "ac_cv_func_gdbm_open=yes"
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11955 eval "ac_cv_func_gdbm_open=no"
11960 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
11964 echo "$ac_t""no" 1>&6
11966 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11967 echo "configure:11968: checking for gdbm_open in -lgdbm" >&5
11968 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11969 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11970 echo $ac_n "(cached) $ac_c" 1>&6
11972 ac_save_LIBS="$LIBS"
11973 LIBS="-lgdbm $LIBS"
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11977 /* Override any gcc2 internal prototype to avoid an error. */
11978 /* We use char because int might match the return type of a gcc2
11979 builtin and then its argument prototype would still apply. */
11986 if { (eval echo configure:11987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11988 eval "ac_cv_lib_$ac_lib_var=yes"
11990 echo "configure: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11993 eval "ac_cv_lib_$ac_lib_var=no"
11996 LIBS="$ac_save_LIBS"
11999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12000 echo "$ac_t""yes" 1>&6
12001 ol_cv_lib_gdbm=-lgdbm
12003 echo "$ac_t""no" 1>&6
12014 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12017 for ac_hdr in gdbm.h
12019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12021 echo "configure:12022: checking for $ac_hdr" >&5
12022 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12025 cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12031 { (eval echo configure:12032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12033 if test -z "$ac_err"; then
12035 eval "ac_cv_header_$ac_safe=yes"
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12041 eval "ac_cv_header_$ac_safe=no"
12045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12046 echo "$ac_t""yes" 1>&6
12047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12048 cat >> confdefs.h <<EOF
12049 #define $ac_tr_hdr 1
12053 echo "$ac_t""no" 1>&6
12057 echo $ac_n "checking for db""... $ac_c" 1>&6
12058 echo "configure:12059: checking for db" >&5
12059 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12060 echo $ac_n "(cached) $ac_c" 1>&6
12063 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12071 echo "$ac_t""$ol_cv_gdbm" 1>&6
12072 if test $ol_cv_gdbm = yes ; then
12073 cat >> confdefs.h <<\EOF
12074 #define HAVE_GDBM 1
12080 if test $ol_cv_gdbm = yes ; then
12082 ol_with_ldbm_api=gdbm
12084 if test $ol_cv_lib_gdbm != yes ; then
12085 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12090 if test $ol_with_ldbm_api = auto ; then
12091 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
12092 elif test $ol_with_ldbm_api = ndbm ; then
12093 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12094 echo "configure:12095: checking for NDBM library" >&5
12095 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
12099 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12100 echo "configure:12101: checking for dbm_open" >&5
12101 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12102 echo $ac_n "(cached) $ac_c" 1>&6
12104 cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure"
12106 #include "confdefs.h"
12107 /* System header to define __stub macros and hopefully few prototypes,
12108 which can conflict with char dbm_open(); below. */
12109 #include <assert.h>
12110 /* Override any gcc2 internal prototype to avoid an error. */
12111 /* We use char because int might match the return type of a gcc2
12112 builtin and then its argument prototype would still apply. */
12118 /* The GNU C library defines this for functions which it implements
12119 to always fail with ENOSYS. Some functions are actually named
12120 something starting with __ and the normal name is an alias. */
12121 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12129 if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12131 eval "ac_cv_func_dbm_open=yes"
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12136 eval "ac_cv_func_dbm_open=no"
12141 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12145 echo "$ac_t""no" 1>&6
12147 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12148 echo "configure:12149: checking for dbm_open in -lndbm" >&5
12149 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12151 echo $ac_n "(cached) $ac_c" 1>&6
12153 ac_save_LIBS="$LIBS"
12154 LIBS="-lndbm $LIBS"
12155 cat > conftest.$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12158 /* Override any gcc2 internal prototype to avoid an error. */
12159 /* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12167 if { (eval echo configure:12168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12169 eval "ac_cv_lib_$ac_lib_var=yes"
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12174 eval "ac_cv_lib_$ac_lib_var=no"
12177 LIBS="$ac_save_LIBS"
12180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12181 echo "$ac_t""yes" 1>&6
12182 ol_cv_lib_ndbm=-lndbm
12184 echo "$ac_t""no" 1>&6
12186 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12187 echo "configure:12188: checking for dbm_open in -ldbm" >&5
12188 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12192 ac_save_LIBS="$LIBS"
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 /* Override any gcc2 internal prototype to avoid an error. */
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12206 if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12208 eval "ac_cv_lib_$ac_lib_var=yes"
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12213 eval "ac_cv_lib_$ac_lib_var=no"
12216 LIBS="$ac_save_LIBS"
12219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 ol_cv_lib_ndbm=-ldbm
12223 echo "$ac_t""no" 1>&6
12236 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12239 for ac_hdr in ndbm.h
12241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12243 echo "configure:12244: checking for $ac_hdr" >&5
12244 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12247 cat > conftest.$ac_ext <<EOF
12248 #line 12249 "configure"
12249 #include "confdefs.h"
12252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12253 { (eval echo configure:12254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12255 if test -z "$ac_err"; then
12257 eval "ac_cv_header_$ac_safe=yes"
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12263 eval "ac_cv_header_$ac_safe=no"
12267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12268 echo "$ac_t""yes" 1>&6
12269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12270 cat >> confdefs.h <<EOF
12271 #define $ac_tr_hdr 1
12275 echo "$ac_t""no" 1>&6
12279 echo $ac_n "checking for db""... $ac_c" 1>&6
12280 echo "configure:12281: checking for db" >&5
12281 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12285 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12293 echo "$ac_t""$ol_cv_ndbm" 1>&6
12294 if test $ol_cv_ndbm = yes ; then
12295 cat >> confdefs.h <<\EOF
12296 #define HAVE_NDBM 1
12302 if test $ol_cv_ndbm = yes ; then
12304 ol_with_ldbm_api=ndbm
12306 if test $ol_cv_lib_ndbm != yes ; then
12307 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12312 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12313 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12314 if test $ol_enable_ldbm = yes ; then
12315 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12318 echo "configure: warning: disabling LDBM" 1>&2
12322 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12323 LINK_BINS_DYNAMIC="yes"
12325 LINK_BINS_DYNAMIC="no"
12328 if test $ol_enable_wrappers != no ; then
12329 for ac_hdr in tcpd.h
12331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12333 echo "configure:12334: checking for $ac_hdr" >&5
12334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12337 cat > conftest.$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12343 { (eval echo configure:12344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12345 if test -z "$ac_err"; then
12347 eval "ac_cv_header_$ac_safe=yes"
12350 echo "configure: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12353 eval "ac_cv_header_$ac_safe=no"
12357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12358 echo "$ac_t""yes" 1>&6
12359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12360 cat >> confdefs.h <<EOF
12361 #define $ac_tr_hdr 1
12365 echo "$ac_t""no" 1>&6
12370 if test $ac_cv_header_tcpd_h != yes ; then
12373 cat > conftest.$ac_ext <<EOF
12374 #line 12375 "configure"
12375 #include "confdefs.h"
12377 int allow_severity = 0;
12378 int deny_severity = 0;
12384 if { (eval echo configure:12385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12388 echo "configure: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12396 if test $have_wrappers = yes ; then
12397 cat >> confdefs.h <<\EOF
12398 #define HAVE_TCPD 1
12403 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12404 echo "configure:12405: checking for main in -lnsl" >&5
12405 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12406 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12407 echo $ac_n "(cached) $ac_c" 1>&6
12409 ac_save_LIBS="$LIBS"
12411 cat > conftest.$ac_ext <<EOF
12412 #line 12413 "configure"
12413 #include "confdefs.h"
12419 if { (eval echo configure:12420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12421 eval "ac_cv_lib_$ac_lib_var=yes"
12423 echo "configure: failed program was:" >&5
12424 cat conftest.$ac_ext >&5
12426 eval "ac_cv_lib_$ac_lib_var=no"
12429 LIBS="$ac_save_LIBS"
12432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12433 echo "$ac_t""yes" 1>&6
12434 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12435 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12436 cat >> confdefs.h <<EOF
12437 #define $ac_tr_lib 1
12443 echo "$ac_t""no" 1>&6
12447 echo "configure: warning: could not find -lwrap" 1>&2
12448 if test $ol_enable_wrappers = yes ; then
12449 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12452 echo "configure: warning: disabling wrappers support" 1>&2
12453 ol_enable_wrappers=no
12458 if test $ol_enable_syslog != no ; then
12459 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12460 echo "configure:12461: checking for openlog" >&5
12461 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12462 echo $ac_n "(cached) $ac_c" 1>&6
12464 cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char openlog(); below. */
12469 #include <assert.h>
12470 /* Override any gcc2 internal prototype to avoid an error. */
12471 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12478 /* The GNU C library defines this for functions which it implements
12479 to always fail with ENOSYS. Some functions are actually named
12480 something starting with __ and the normal name is an alias. */
12481 #if defined (__stub_openlog) || defined (__stub___openlog)
12489 if { (eval echo configure:12490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12491 eval "ac_cv_func_openlog=yes"
12493 echo "configure: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12496 eval "ac_cv_func_openlog=no"
12501 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12502 echo "$ac_t""yes" 1>&6
12505 echo "$ac_t""no" 1>&6
12508 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12509 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12511 ol_enable_syslog=$ac_cv_func_openlog
12514 if test $ol_enable_dmalloc != no ; then
12515 for ac_hdr in dmalloc.h
12517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12519 echo "configure:12520: checking for $ac_hdr" >&5
12520 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12521 echo $ac_n "(cached) $ac_c" 1>&6
12523 cat > conftest.$ac_ext <<EOF
12524 #line 12525 "configure"
12525 #include "confdefs.h"
12528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12529 { (eval echo configure:12530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12531 if test -z "$ac_err"; then
12533 eval "ac_cv_header_$ac_safe=yes"
12536 echo "configure: failed program was:" >&5
12537 cat conftest.$ac_ext >&5
12539 eval "ac_cv_header_$ac_safe=no"
12543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12546 cat >> confdefs.h <<EOF
12547 #define $ac_tr_hdr 1
12551 echo "$ac_t""no" 1>&6
12555 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12556 echo "configure:12557: checking for dmalloc_shutdown in -ldmalloc" >&5
12557 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12558 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12559 echo $ac_n "(cached) $ac_c" 1>&6
12561 ac_save_LIBS="$LIBS"
12562 LIBS="-ldmalloc $LIBS"
12563 cat > conftest.$ac_ext <<EOF
12564 #line 12565 "configure"
12565 #include "confdefs.h"
12566 /* Override any gcc2 internal prototype to avoid an error. */
12567 /* We use char because int might match the return type of a gcc2
12568 builtin and then its argument prototype would still apply. */
12569 char dmalloc_shutdown();
12575 if { (eval echo configure:12576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12577 eval "ac_cv_lib_$ac_lib_var=yes"
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12582 eval "ac_cv_lib_$ac_lib_var=no"
12585 LIBS="$ac_save_LIBS"
12588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12589 echo "$ac_t""yes" 1>&6
12590 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12592 cat >> confdefs.h <<EOF
12593 #define $ac_tr_lib 1
12596 LIBS="-ldmalloc $LIBS"
12599 echo "$ac_t""no" 1>&6
12604 if test $ol_enable_tcl != no ; then
12605 for ac_hdr in tcl.h
12607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12609 echo "configure:12610: checking for $ac_hdr" >&5
12610 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12611 echo $ac_n "(cached) $ac_c" 1>&6
12613 cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12619 { (eval echo configure:12620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12621 if test -z "$ac_err"; then
12623 eval "ac_cv_header_$ac_safe=yes"
12626 echo "configure: failed program was:" >&5
12627 cat conftest.$ac_ext >&5
12629 eval "ac_cv_header_$ac_safe=no"
12633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
12635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12636 cat >> confdefs.h <<EOF
12637 #define $ac_tr_hdr 1
12641 echo "$ac_t""no" 1>&6
12646 if test $ac_cv_header_tcl_h != yes ; then
12649 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12650 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12651 echo "configure:12652: checking for main in -l$lib" >&5
12652 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12656 ac_save_LIBS="$LIBS"
12657 LIBS="-l$lib $LIBS"
12658 cat > conftest.$ac_ext <<EOF
12659 #line 12660 "configure"
12660 #include "confdefs.h"
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668 eval "ac_cv_lib_$ac_lib_var=yes"
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12673 eval "ac_cv_lib_$ac_lib_var=no"
12676 LIBS="$ac_save_LIBS"
12679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12680 echo "$ac_t""yes" 1>&6
12682 if test x"$ol_with_tcl_module" = "xstatic" ; then
12683 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12685 MOD_TCL_LIB="-l${lib}"
12688 echo "$ac_t""no" 1>&6
12695 if test $have_tcl != yes ; then
12696 echo "configure: warning: could not find -ltcl" 1>&2
12697 if test $ol_enable_tcl = yes ; then
12698 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12706 for ac_hdr in termcap.h ncurses.h
12708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12710 echo "configure:12711: checking for $ac_hdr" >&5
12711 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12712 echo $ac_n "(cached) $ac_c" 1>&6
12714 cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12720 { (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12722 if test -z "$ac_err"; then
12724 eval "ac_cv_header_$ac_safe=yes"
12727 echo "configure: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12730 eval "ac_cv_header_$ac_safe=no"
12734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12735 echo "$ac_t""yes" 1>&6
12736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12737 cat >> confdefs.h <<EOF
12738 #define $ac_tr_hdr 1
12742 echo "$ac_t""no" 1>&6
12747 if test $ol_link_termcap = no ; then
12748 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12749 echo "configure:12750: checking for tputs in -ltermcap" >&5
12750 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12754 ac_save_LIBS="$LIBS"
12755 LIBS="-ltermcap $LIBS"
12756 cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12759 /* Override any gcc2 internal prototype to avoid an error. */
12760 /* We use char because int might match the return type of a gcc2
12761 builtin and then its argument prototype would still apply. */
12768 if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12770 eval "ac_cv_lib_$ac_lib_var=yes"
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12775 eval "ac_cv_lib_$ac_lib_var=no"
12778 LIBS="$ac_save_LIBS"
12781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12782 echo "$ac_t""yes" 1>&6
12785 echo "$ac_t""no" 1>&6
12789 if test $have_termcap = yes ; then
12790 cat >> confdefs.h <<\EOF
12791 #define HAVE_TERMCAP 1
12794 ol_link_termcap=yes
12795 TERMCAP_LIBS=-ltermcap
12799 if test $ol_link_termcap = no ; then
12800 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12801 echo "configure:12802: checking for initscr in -lncurses" >&5
12802 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12804 echo $ac_n "(cached) $ac_c" 1>&6
12806 ac_save_LIBS="$LIBS"
12807 LIBS="-lncurses $LIBS"
12808 cat > conftest.$ac_ext <<EOF
12809 #line 12810 "configure"
12810 #include "confdefs.h"
12811 /* Override any gcc2 internal prototype to avoid an error. */
12812 /* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12820 if { (eval echo configure:12821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12822 eval "ac_cv_lib_$ac_lib_var=yes"
12824 echo "configure: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12827 eval "ac_cv_lib_$ac_lib_var=no"
12830 LIBS="$ac_save_LIBS"
12833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12834 echo "$ac_t""yes" 1>&6
12837 echo "$ac_t""no" 1>&6
12841 if test $have_ncurses = yes ; then
12842 cat >> confdefs.h <<\EOF
12843 #define HAVE_NCURSES 1
12846 ol_link_termcap=yes
12847 TERMCAP_LIBS=-lncurses
12851 if test $ol_link_termcap = no ; then
12852 cat >> confdefs.h <<\EOF
12853 #define NO_TERMCAP 1
12860 if test $ol_with_cyrus_sasl != no ; then
12861 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12862 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12863 echo "configure:12864: checking for sasl.h" >&5
12864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12873 { (eval echo configure:12874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12875 if test -z "$ac_err"; then
12877 eval "ac_cv_header_$ac_safe=yes"
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12883 eval "ac_cv_header_$ac_safe=no"
12887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12888 echo "$ac_t""yes" 1>&6
12891 echo "$ac_t""no" 1>&6
12895 if test $ac_cv_header_sasl_h = yes ; then
12896 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12897 echo "configure:12898: checking for sasl_client_init in -lsasl" >&5
12898 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12900 echo $ac_n "(cached) $ac_c" 1>&6
12902 ac_save_LIBS="$LIBS"
12903 LIBS="-lsasl $LIBS"
12904 cat > conftest.$ac_ext <<EOF
12905 #line 12906 "configure"
12906 #include "confdefs.h"
12907 /* Override any gcc2 internal prototype to avoid an error. */
12908 /* We use char because int might match the return type of a gcc2
12909 builtin and then its argument prototype would still apply. */
12910 char sasl_client_init();
12916 if { (eval echo configure:12917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12918 eval "ac_cv_lib_$ac_lib_var=yes"
12920 echo "configure: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12923 eval "ac_cv_lib_$ac_lib_var=no"
12926 LIBS="$ac_save_LIBS"
12929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12930 echo "$ac_t""yes" 1>&6
12931 have_cyrus_sasl=yes
12933 echo "$ac_t""no" 1>&6
12938 if test $have_cyrus_sasl != no ; then
12940 cat >> confdefs.h <<\EOF
12941 #define HAVE_CYRUS_SASL 1
12948 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12949 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12953 if test $cross_compiling != yes ; then
12955 if test -r /dev/urandom ; then
12956 dev="/dev/urandom";
12957 elif test -r /idev/urandom ; then
12958 dev="/idev/urandom";
12959 elif test -r /dev/srandom ; then
12960 dev="/dev/srandom";
12961 elif test -r /dev/random ; then
12963 elif test -r /idev/random ; then
12964 dev="/idev/random";
12967 if test $dev != no ; then
12968 cat >> confdefs.h <<EOF
12969 #define URANDOM_DEVICE "$dev"
12976 if test $ol_with_fetch != no ; then
12978 LIBS="-lfetch -lcom_err $LIBS"
12979 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12980 echo "configure:12981: checking fetch(3) library" >&5
12981 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12982 echo $ac_n "(cached) $ac_c" 1>&6
12985 cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure"
12987 #include "confdefs.h"
12989 #include <sys/param.h>
12993 struct url *u = fetchParseURL("file:///");
12996 if { (eval echo configure:12997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12998 ol_cv_lib_fetch=yes
13000 echo "configure: failed program was:" >&5
13001 cat conftest.$ac_ext >&5
13008 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13010 if test $ol_cv_lib_fetch != no ; then
13011 ol_link_fetch="-lfetch -lcom_err"
13012 cat >> confdefs.h <<\EOF
13013 #define HAVE_FETCH 1
13019 if test $ol_cv_lib_fetch != no ; then
13020 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13021 ol_link_fetch=freebsd
13023 elif test $ol_with_fetch != auto ; then
13024 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13028 ol_link_readline=no
13029 if test $ol_with_readline != no ; then
13030 for ac_hdr in readline/readline.h readline/history.h
13032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13034 echo "configure:13035: checking for $ac_hdr" >&5
13035 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
13038 cat > conftest.$ac_ext <<EOF
13039 #line 13040 "configure"
13040 #include "confdefs.h"
13043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13044 { (eval echo configure:13045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13046 if test -z "$ac_err"; then
13048 eval "ac_cv_header_$ac_safe=yes"
13051 echo "configure: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13054 eval "ac_cv_header_$ac_safe=no"
13058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13059 echo "$ac_t""yes" 1>&6
13060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13061 cat >> confdefs.h <<EOF
13062 #define $ac_tr_hdr 1
13066 echo "$ac_t""no" 1>&6
13071 if test $ac_cv_header_readline_readline_h = yes ; then
13073 LIBS="$TERMCAP_LIBS $LIBS"
13074 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13075 echo "configure:13076: checking for readline in -lreadline" >&5
13076 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13078 echo $ac_n "(cached) $ac_c" 1>&6
13080 ac_save_LIBS="$LIBS"
13081 LIBS="-lreadline $LIBS"
13082 cat > conftest.$ac_ext <<EOF
13083 #line 13084 "configure"
13084 #include "confdefs.h"
13085 /* Override any gcc2 internal prototype to avoid an error. */
13086 /* We use char because int might match the return type of a gcc2
13087 builtin and then its argument prototype would still apply. */
13094 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13096 eval "ac_cv_lib_$ac_lib_var=yes"
13098 echo "configure: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13101 eval "ac_cv_lib_$ac_lib_var=no"
13104 LIBS="$ac_save_LIBS"
13107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13108 echo "$ac_t""yes" 1>&6
13111 echo "$ac_t""no" 1>&6
13117 if test $have_readline = yes ; then
13118 ol_with_readline=found
13119 ol_link_readline=yes
13121 READLINE_LIBS="-lreadline"
13126 if test $ol_link_readline = yes ; then
13127 cat >> confdefs.h <<\EOF
13128 #define HAVE_READLINE 1
13134 if test $ol_enable_crypt != no ; then
13135 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13136 echo "configure:13137: checking for crypt" >&5
13137 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13138 echo $ac_n "(cached) $ac_c" 1>&6
13140 cat > conftest.$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13143 /* System header to define __stub macros and hopefully few prototypes,
13144 which can conflict with char crypt(); below. */
13145 #include <assert.h>
13146 /* Override any gcc2 internal prototype to avoid an error. */
13147 /* We use char because int might match the return type of a gcc2
13148 builtin and then its argument prototype would still apply. */
13154 /* The GNU C library defines this for functions which it implements
13155 to always fail with ENOSYS. Some functions are actually named
13156 something starting with __ and the normal name is an alias. */
13157 #if defined (__stub_crypt) || defined (__stub___crypt)
13165 if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13167 eval "ac_cv_func_crypt=yes"
13169 echo "configure: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13172 eval "ac_cv_func_crypt=no"
13177 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13178 echo "$ac_t""yes" 1>&6
13181 echo "$ac_t""no" 1>&6
13183 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13184 echo "configure:13185: checking for crypt in -lcrypt" >&5
13185 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13187 echo $ac_n "(cached) $ac_c" 1>&6
13189 ac_save_LIBS="$LIBS"
13190 LIBS="-lcrypt $LIBS"
13191 cat > conftest.$ac_ext <<EOF
13192 #line 13193 "configure"
13193 #include "confdefs.h"
13194 /* Override any gcc2 internal prototype to avoid an error. */
13195 /* We use char because int might match the return type of a gcc2
13196 builtin and then its argument prototype would still apply. */
13203 if { (eval echo configure:13204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13205 eval "ac_cv_lib_$ac_lib_var=yes"
13207 echo "configure: failed program was:" >&5
13208 cat conftest.$ac_ext >&5
13210 eval "ac_cv_lib_$ac_lib_var=no"
13213 LIBS="$ac_save_LIBS"
13216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13217 echo "$ac_t""yes" 1>&6
13218 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13221 echo "$ac_t""no" 1>&6
13228 if test $have_crypt = yes ; then
13229 cat >> confdefs.h <<\EOF
13230 #define HAVE_CRYPT 1
13234 echo "configure: warning: could not find crypt" 1>&2
13235 if test $ol_enable_crypt = yes ; then
13236 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13239 echo "configure: warning: disabling crypt support" 1>&2
13244 if test $ol_enable_proctitle != no ; then
13245 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13246 echo "configure:13247: checking for setproctitle" >&5
13247 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 /* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char setproctitle(); below. */
13255 #include <assert.h>
13256 /* Override any gcc2 internal prototype to avoid an error. */
13257 /* We use char because int might match the return type of a gcc2
13258 builtin and then its argument prototype would still apply. */
13259 char setproctitle();
13264 /* The GNU C library defines this for functions which it implements
13265 to always fail with ENOSYS. Some functions are actually named
13266 something starting with __ and the normal name is an alias. */
13267 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13277 eval "ac_cv_func_setproctitle=yes"
13279 echo "configure: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13282 eval "ac_cv_func_setproctitle=no"
13287 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13288 echo "$ac_t""yes" 1>&6
13289 have_setproctitle=yes
13291 echo "$ac_t""no" 1>&6
13293 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13294 echo "configure:13295: checking for setproctitle in -lutil" >&5
13295 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13297 echo $ac_n "(cached) $ac_c" 1>&6
13299 ac_save_LIBS="$LIBS"
13300 LIBS="-lutil $LIBS"
13301 cat > conftest.$ac_ext <<EOF
13302 #line 13303 "configure"
13303 #include "confdefs.h"
13304 /* Override any gcc2 internal prototype to avoid an error. */
13305 /* We use char because int might match the return type of a gcc2
13306 builtin and then its argument prototype would still apply. */
13307 char setproctitle();
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13315 eval "ac_cv_lib_$ac_lib_var=yes"
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13320 eval "ac_cv_lib_$ac_lib_var=no"
13323 LIBS="$ac_save_LIBS"
13326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13327 echo "$ac_t""yes" 1>&6
13328 have_setproctitle=yes
13329 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13331 echo "$ac_t""no" 1>&6
13332 have_setproctitle=no
13333 LIBOBJS="$LIBOBJS setproctitle.o"
13334 LIBSRCS="$LIBSRCS setproctitle.c"
13340 if test $have_setproctitle = yes ; then
13341 cat >> confdefs.h <<\EOF
13342 #define HAVE_SETPROCTITLE 1
13348 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13349 echo "configure:13350: checking for ANSI C header files" >&5
13350 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13351 echo $ac_n "(cached) $ac_c" 1>&6
13353 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure"
13355 #include "confdefs.h"
13356 #include <stdlib.h>
13357 #include <stdarg.h>
13358 #include <string.h>
13361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13362 { (eval echo configure:13363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13364 if test -z "$ac_err"; then
13366 ac_cv_header_stdc=yes
13369 echo "configure: failed program was:" >&5
13370 cat conftest.$ac_ext >&5
13372 ac_cv_header_stdc=no
13376 if test $ac_cv_header_stdc = yes; then
13377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 #include <string.h>
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384 egrep "memchr" >/dev/null 2>&1; then
13388 ac_cv_header_stdc=no
13394 if test $ac_cv_header_stdc = yes; then
13395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13396 cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 #include <stdlib.h>
13401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13402 egrep "free" >/dev/null 2>&1; then
13406 ac_cv_header_stdc=no
13412 if test $ac_cv_header_stdc = yes; then
13413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13414 if test "$cross_compiling" = yes; then
13417 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure"
13419 #include "confdefs.h"
13421 #if ((' ' & 0x0FF) == 0x020)
13422 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13423 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13425 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13426 || ('j' <= (c) && (c) <= 'r') \
13427 || ('s' <= (c) && (c) <= 'z'))
13428 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13431 int main () { int i; for (i = 0; i < 256; i++)
13432 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13440 echo "configure: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13443 ac_cv_header_stdc=no
13451 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13452 if test $ac_cv_header_stdc = yes; then
13453 cat >> confdefs.h <<\EOF
13454 #define STDC_HEADERS 1
13459 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13460 echo "configure:13461: checking for mode_t" >&5
13461 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13462 echo $ac_n "(cached) $ac_c" 1>&6
13464 cat > conftest.$ac_ext <<EOF
13465 #line 13466 "configure"
13466 #include "confdefs.h"
13467 #include <sys/types.h>
13469 #include <stdlib.h>
13470 #include <stddef.h>
13474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13475 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13477 eval "ac_cv_type_mode_t=yes"
13480 eval "ac_cv_type_mode_t=no"
13485 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13486 echo "$ac_t""yes" 1>&6
13488 echo "$ac_t""no" 1>&6
13489 cat >> confdefs.h <<EOF
13495 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13496 echo "configure:13497: checking for off_t" >&5
13497 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13498 echo $ac_n "(cached) $ac_c" 1>&6
13500 cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 #include <sys/types.h>
13505 #include <stdlib.h>
13506 #include <stddef.h>
13510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13511 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13513 eval "ac_cv_type_off_t=yes"
13516 eval "ac_cv_type_off_t=no"
13521 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13522 echo "$ac_t""yes" 1>&6
13524 echo "$ac_t""no" 1>&6
13525 cat >> confdefs.h <<EOF
13531 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13532 echo "configure:13533: checking for pid_t" >&5
13533 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13536 cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13539 #include <sys/types.h>
13541 #include <stdlib.h>
13542 #include <stddef.h>
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13549 eval "ac_cv_type_pid_t=yes"
13552 eval "ac_cv_type_pid_t=no"
13557 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6
13560 echo "$ac_t""no" 1>&6
13561 cat >> confdefs.h <<EOF
13567 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13568 echo "configure:13569: checking for ptrdiff_t" >&5
13569 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 #include <stddef.h>
13580 if { (eval echo configure:13581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13582 am_cv_type_ptrdiff_t=yes
13584 echo "configure: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13587 am_cv_type_ptrdiff_t=no
13592 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13593 if test $am_cv_type_ptrdiff_t = yes; then
13594 cat >> confdefs.h <<\EOF
13595 #define HAVE_PTRDIFF_T 1
13600 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13601 echo "configure:13602: checking return type of signal handlers" >&5
13602 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13603 echo $ac_n "(cached) $ac_c" 1>&6
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 #include <sys/types.h>
13609 #include <signal.h>
13614 extern "C" void (*signal (int, void (*)(int)))(int);
13616 void (*signal ()) ();
13623 if { (eval echo configure:13624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13625 ac_cv_type_signal=void
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13630 ac_cv_type_signal=int
13635 echo "$ac_t""$ac_cv_type_signal" 1>&6
13636 cat >> confdefs.h <<EOF
13637 #define RETSIGTYPE $ac_cv_type_signal
13641 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13642 echo "configure:13643: checking for size_t" >&5
13643 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13644 echo $ac_n "(cached) $ac_c" 1>&6
13646 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 #include <sys/types.h>
13651 #include <stdlib.h>
13652 #include <stddef.h>
13656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13657 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13659 eval "ac_cv_type_size_t=yes"
13662 eval "ac_cv_type_size_t=no"
13667 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13668 echo "$ac_t""yes" 1>&6
13670 echo "$ac_t""no" 1>&6
13671 cat >> confdefs.h <<EOF
13672 #define size_t unsigned
13678 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13679 echo "configure:13680: checking for ssize_t" >&5
13680 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13681 echo $ac_n "(cached) $ac_c" 1>&6
13683 cat > conftest.$ac_ext <<EOF
13684 #line 13685 "configure"
13685 #include "confdefs.h"
13686 #include <sys/types.h>
13688 #include <stdlib.h>
13689 #include <stddef.h>
13693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13694 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13696 eval "ac_cv_type_ssize_t=yes"
13699 eval "ac_cv_type_ssize_t=no"
13704 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13705 echo "$ac_t""yes" 1>&6
13707 echo "$ac_t""no" 1>&6
13708 cat >> confdefs.h <<EOF
13709 #define ssize_t signed int
13714 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13715 echo "configure:13716: checking for caddr_t" >&5
13716 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13717 echo $ac_n "(cached) $ac_c" 1>&6
13719 cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13722 #include <sys/types.h>
13724 #include <stdlib.h>
13725 #include <stddef.h>
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13732 eval "ac_cv_type_caddr_t=yes"
13735 eval "ac_cv_type_caddr_t=no"
13740 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13741 echo "$ac_t""yes" 1>&6
13743 echo "$ac_t""no" 1>&6
13744 cat >> confdefs.h <<EOF
13745 #define caddr_t char *
13751 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13752 echo "configure:13753: checking for socklen_t" >&5
13753 if eval "test \"\${ol_cv_type_socklen_t+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"
13760 #ifdef HAVE_SYS_TYPES_H
13761 #include <sys/types.h>
13763 #ifdef HAVE_SYS_SOCKET_H
13764 #include <sys/socket.h>
13771 if { (eval echo configure:13772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13773 ol_cv_type_socklen_t=yes
13775 echo "configure: failed program was:" >&5
13776 cat conftest.$ac_ext >&5
13778 ol_cv_type_socklen_t=no
13783 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13784 if test $ol_cv_type_socklen_t = no; then
13785 cat >> confdefs.h <<\EOF
13786 #define socklen_t int
13791 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13792 echo "configure:13793: checking for member st_blksize in aggregate type struct stat" >&5
13793 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13794 echo $ac_n "(cached) $ac_c" 1>&6
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 #include <sys/types.h>
13800 #include <sys/stat.h>
13802 struct stat foo; foo.st_blksize;
13805 if { (eval echo configure:13806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13807 ac_cv_c_struct_member_st_blksize=yes
13809 echo "configure: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13812 ac_cv_c_struct_member_st_blksize=no
13817 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13818 st_blksize="$ac_cv_c_struct_member_st_blksize"
13819 if test $ac_cv_c_struct_member_st_blksize = yes; then
13820 cat >> confdefs.h <<\EOF
13821 #define HAVE_ST_BLKSIZE 1
13826 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13827 echo "configure:13828: checking whether time.h and sys/time.h may both be included" >&5
13828 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13829 echo $ac_n "(cached) $ac_c" 1>&6
13831 cat > conftest.$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13834 #include <sys/types.h>
13835 #include <sys/time.h>
13841 if { (eval echo configure:13842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13843 ac_cv_header_time=yes
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13848 ac_cv_header_time=no
13853 echo "$ac_t""$ac_cv_header_time" 1>&6
13854 if test $ac_cv_header_time = yes; then
13855 cat >> confdefs.h <<\EOF
13856 #define TIME_WITH_SYS_TIME 1
13861 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13862 echo "configure:13863: checking whether struct tm is in sys/time.h or time.h" >&5
13863 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13864 echo $ac_n "(cached) $ac_c" 1>&6
13866 cat > conftest.$ac_ext <<EOF
13867 #line 13868 "configure"
13868 #include "confdefs.h"
13869 #include <sys/types.h>
13872 struct tm *tp; tp->tm_sec;
13875 if { (eval echo configure:13876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13877 ac_cv_struct_tm=time.h
13879 echo "configure: failed program was:" >&5
13880 cat conftest.$ac_ext >&5
13882 ac_cv_struct_tm=sys/time.h
13887 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13888 if test $ac_cv_struct_tm = sys/time.h; then
13889 cat >> confdefs.h <<\EOF
13890 #define TM_IN_SYS_TIME 1
13895 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13896 echo "configure:13897: checking for uid_t in sys/types.h" >&5
13897 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13900 cat > conftest.$ac_ext <<EOF
13901 #line 13902 "configure"
13902 #include "confdefs.h"
13903 #include <sys/types.h>
13905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13906 egrep "uid_t" >/dev/null 2>&1; then
13908 ac_cv_type_uid_t=yes
13911 ac_cv_type_uid_t=no
13917 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13918 if test $ac_cv_type_uid_t = no; then
13919 cat >> confdefs.h <<\EOF
13923 cat >> confdefs.h <<\EOF
13929 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13930 echo "configure:13931: checking for sig_atomic_t" >&5
13931 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
13932 echo $ac_n "(cached) $ac_c" 1>&6
13934 cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 #include <signal.h>
13939 sig_atomic_t atomic;
13942 if { (eval echo configure:13943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13944 ol_cv_type_sig_atomic_t=yes
13946 echo "configure: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13949 ol_cv_type_sig_atomic_t=no
13954 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13955 if test $ol_cv_type_sig_atomic_t = no; then
13956 cat >> confdefs.h <<\EOF
13957 #define sig_atomic_t int
13964 # test for pw_gecos in struct passwd
13965 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13966 echo "configure:13967: checking struct passwd for pw_gecos" >&5
13967 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13968 echo $ac_n "(cached) $ac_c" 1>&6
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13978 pwd.pw_gecos = pwd.pw_name;
13982 if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13984 ol_cv_struct_passwd_pw_gecos=yes
13986 echo "configure: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13989 ol_cv_struct_passwd_pw_gecos=no
13994 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13995 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13996 cat >> confdefs.h <<\EOF
13997 #define HAVE_PW_GECOS 1
14002 # test for pw_passwd in struct passwd
14003 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14004 echo "configure:14005: checking struct passwd for pw_passwd" >&5
14005 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14006 echo $ac_n "(cached) $ac_c" 1>&6
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14016 pwd.pw_passwd = pwd.pw_name;
14020 if { (eval echo configure:14021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14022 ol_cv_struct_passwd_pw_passwd=yes
14024 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5
14027 ol_cv_struct_passwd_pw_passwd=no
14032 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14033 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14034 cat >> confdefs.h <<\EOF
14035 #define HAVE_PW_PASSWD 1
14041 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14042 echo "configure:14043: checking if toupper() requires islower()" >&5
14043 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14047 if test "$cross_compiling" = yes; then
14048 ol_cv_c_upper_lower=safe
14050 cat > conftest.$ac_ext <<EOF
14051 #line 14052 "configure"
14052 #include "confdefs.h"
14057 if ('C' == toupper('C'))
14063 if { (eval echo configure:14064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14065 ol_cv_c_upper_lower=no
14067 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14070 ol_cv_c_upper_lower=yes
14077 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14078 if test $ol_cv_c_upper_lower != no ; then
14079 cat >> confdefs.h <<\EOF
14080 #define C_UPPER_LOWER 1
14085 echo $ac_n "checking for working const""... $ac_c" 1>&6
14086 echo "configure:14087: checking for working const" >&5
14087 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14090 cat > conftest.$ac_ext <<EOF
14091 #line 14092 "configure"
14092 #include "confdefs.h"
14096 /* Ultrix mips cc rejects this. */
14097 typedef int charset[2]; const charset x;
14098 /* SunOS 4.1.1 cc rejects this. */
14099 char const *const *ccp;
14101 /* NEC SVR4.0.2 mips cc rejects this. */
14102 struct point {int x, y;};
14103 static struct point const zero = {0,0};
14104 /* AIX XL C 1.02.0.0 rejects this.
14105 It does not let you subtract one const X* pointer from another in an arm
14106 of an if-expression whose if-part is not a constant expression */
14107 const char *g = "string";
14108 ccp = &g + (g ? g-g : 0);
14109 /* HPUX 7.0 cc rejects these. */
14112 ccp = (char const *const *) p;
14113 { /* SCO 3.2v4 cc rejects this. */
14115 char const *s = 0 ? (char *) 0 : (char const *) 0;
14119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14120 int x[] = {25, 17};
14121 const int *foo = &x[0];
14124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14125 typedef const int *iptr;
14129 { /* AIX XL C 1.02.0.0 rejects this saying
14130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14131 struct s { int j; const int *ap[3]; };
14132 struct s *b; b->j = 5;
14134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14135 const int foo = 10;
14140 if { (eval echo configure:14141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14144 echo "configure: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14152 echo "$ac_t""$ac_cv_c_const" 1>&6
14153 if test $ac_cv_c_const = no; then
14154 cat >> confdefs.h <<\EOF
14160 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14161 echo "configure:14162: checking if compiler understands volatile" >&5
14162 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14163 echo $ac_n "(cached) $ac_c" 1>&6
14165 cat > conftest.$ac_ext <<EOF
14166 #line 14167 "configure"
14167 #include "confdefs.h"
14170 volatile int a; int * volatile b = x ? &y : &z;
14171 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14175 if { (eval echo configure:14176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14177 ol_cv_c_volatile=yes
14179 echo "configure: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14182 ol_cv_c_volatile=no
14187 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14188 if test $ol_cv_c_volatile = yes; then
14191 cat >> confdefs.h <<\EOF
14198 if test $cross_compiling = yes ; then
14199 cat >> confdefs.h <<\EOF
14200 #define CROSS_COMPILING 1
14204 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14205 echo "configure:14206: checking whether byte ordering is bigendian" >&5
14206 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14207 echo $ac_n "(cached) $ac_c" 1>&6
14209 ac_cv_c_bigendian=unknown
14210 # See if sys/param.h defines the BYTE_ORDER macro.
14211 cat > conftest.$ac_ext <<EOF
14212 #line 14213 "configure"
14213 #include "confdefs.h"
14214 #include <sys/types.h>
14215 #include <sys/param.h>
14218 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14219 bogus endian macros
14223 if { (eval echo configure:14224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14225 # It does; now see whether it defined to BIG_ENDIAN or not.
14226 cat > conftest.$ac_ext <<EOF
14227 #line 14228 "configure"
14228 #include "confdefs.h"
14229 #include <sys/types.h>
14230 #include <sys/param.h>
14233 #if BYTE_ORDER != BIG_ENDIAN
14238 if { (eval echo configure:14239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14240 ac_cv_c_bigendian=yes
14242 echo "configure: failed program was:" >&5
14243 cat conftest.$ac_ext >&5
14245 ac_cv_c_bigendian=no
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14253 if test $ac_cv_c_bigendian = unknown; then
14254 if test "$cross_compiling" = yes; then
14255 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14261 /* Are we little or big endian? From Harbison&Steele. */
14265 char c[sizeof (long)];
14268 exit (u.c[sizeof (long) - 1] == 1);
14271 if { (eval echo configure:14272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14273 ac_cv_c_bigendian=no
14275 echo "configure: failed program was:" >&5
14276 cat conftest.$ac_ext >&5
14278 ac_cv_c_bigendian=yes
14286 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14287 if test $ac_cv_c_bigendian = yes; then
14288 cat >> confdefs.h <<\EOF
14289 #define WORDS_BIGENDIAN 1
14296 echo $ac_n "checking size of short""... $ac_c" 1>&6
14297 echo "configure:14298: checking size of short" >&5
14298 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
14301 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14302 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305 #include "confdefs.h"
14306 #include <sys/types.h>
14310 switch (0) case 0: case (sizeof (short) == $ac_size):;
14313 if { (eval echo configure:14314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14315 ac_cv_sizeof_short=$ac_size
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14321 if test x$ac_cv_sizeof_short != x ; then break; fi
14326 if test x$ac_cv_sizeof_short = x ; then
14327 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14329 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14330 cat >> confdefs.h <<EOF
14331 #define SIZEOF_SHORT $ac_cv_sizeof_short
14335 echo $ac_n "checking size of int""... $ac_c" 1>&6
14336 echo "configure:14337: checking size of int" >&5
14337 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14338 echo $ac_n "(cached) $ac_c" 1>&6
14340 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 #include "confdefs.h"
14345 #include <sys/types.h>
14349 switch (0) case 0: case (sizeof (int) == $ac_size):;
14352 if { (eval echo configure:14353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14354 ac_cv_sizeof_int=$ac_size
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14360 if test x$ac_cv_sizeof_int != x ; then break; fi
14365 if test x$ac_cv_sizeof_int = x ; then
14366 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14368 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14369 cat >> confdefs.h <<EOF
14370 #define SIZEOF_INT $ac_cv_sizeof_int
14374 echo $ac_n "checking size of long""... $ac_c" 1>&6
14375 echo "configure:14376: checking size of long" >&5
14376 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14377 echo $ac_n "(cached) $ac_c" 1>&6
14379 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 #include "confdefs.h"
14384 #include <sys/types.h>
14388 switch (0) case 0: case (sizeof (long) == $ac_size):;
14391 if { (eval echo configure:14392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14393 ac_cv_sizeof_long=$ac_size
14395 echo "configure: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
14399 if test x$ac_cv_sizeof_long != x ; then break; fi
14404 if test x$ac_cv_sizeof_long = x ; then
14405 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14407 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14408 cat >> confdefs.h <<EOF
14409 #define SIZEOF_LONG $ac_cv_sizeof_long
14414 if test "$ac_cv_sizeof_int" -lt 4 ; then
14415 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14417 cat >> confdefs.h <<\EOF
14418 #define LBER_INT_T long
14422 cat >> confdefs.h <<\EOF
14423 #define LBER_INT_T int
14428 cat >> confdefs.h <<\EOF
14429 #define LBER_LEN_T long
14432 cat >> confdefs.h <<\EOF
14433 #define LBER_SOCKET_T int
14436 cat >> confdefs.h <<\EOF
14437 #define LBER_TAG_T long
14441 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14442 echo "configure:14443: checking for 8-bit clean memcmp" >&5
14443 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14444 echo $ac_n "(cached) $ac_c" 1>&6
14446 if test "$cross_compiling" = yes; then
14447 ac_cv_func_memcmp_clean=no
14449 cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14455 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14456 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14460 if { (eval echo configure:14461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14462 ac_cv_func_memcmp_clean=yes
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14467 ac_cv_func_memcmp_clean=no
14474 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14475 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14477 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14478 echo "configure:14479: checking for strftime" >&5
14479 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14482 cat > conftest.$ac_ext <<EOF
14483 #line 14484 "configure"
14484 #include "confdefs.h"
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char strftime(); below. */
14487 #include <assert.h>
14488 /* Override any gcc2 internal prototype to avoid an error. */
14489 /* We use char because int might match the return type of a gcc2
14490 builtin and then its argument prototype would still apply. */
14496 /* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499 #if defined (__stub_strftime) || defined (__stub___strftime)
14507 if { (eval echo configure:14508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14509 eval "ac_cv_func_strftime=yes"
14511 echo "configure: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14514 eval "ac_cv_func_strftime=no"
14519 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14520 echo "$ac_t""yes" 1>&6
14521 cat >> confdefs.h <<\EOF
14522 #define HAVE_STRFTIME 1
14526 echo "$ac_t""no" 1>&6
14527 # strftime is in -lintl on SCO UNIX.
14528 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14529 echo "configure:14530: checking for strftime in -lintl" >&5
14530 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14531 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14532 echo $ac_n "(cached) $ac_c" 1>&6
14534 ac_save_LIBS="$LIBS"
14535 LIBS="-lintl $LIBS"
14536 cat > conftest.$ac_ext <<EOF
14537 #line 14538 "configure"
14538 #include "confdefs.h"
14539 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14548 if { (eval echo configure:14549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14550 eval "ac_cv_lib_$ac_lib_var=yes"
14552 echo "configure: failed program was:" >&5
14553 cat conftest.$ac_ext >&5
14555 eval "ac_cv_lib_$ac_lib_var=no"
14558 LIBS="$ac_save_LIBS"
14561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14562 echo "$ac_t""yes" 1>&6
14563 cat >> confdefs.h <<\EOF
14564 #define HAVE_STRFTIME 1
14567 LIBS="-lintl $LIBS"
14569 echo "$ac_t""no" 1>&6
14575 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14576 echo "configure:14577: checking for inet_aton()" >&5
14577 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14578 echo $ac_n "(cached) $ac_c" 1>&6
14580 cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure"
14582 #include "confdefs.h"
14584 #ifdef HAVE_SYS_TYPES_H
14585 # include <sys/types.h>
14587 #ifdef HAVE_SYS_SOCKET_H
14588 # include <sys/socket.h>
14589 # ifdef HAVE_SYS_SELECT_H
14590 # include <sys/select.h>
14592 # include <netinet/in.h>
14593 # ifdef HAVE_ARPA_INET_H
14594 # include <arpa/inet.h>
14600 int rc = inet_aton( "255.255.255.255", &in );
14603 if { (eval echo configure:14604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605 ol_cv_func_inet_aton=yes
14607 echo "configure: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14610 ol_cv_func_inet_aton=no
14615 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14616 if test $ol_cv_func_inet_aton != no; then
14617 cat >> confdefs.h <<\EOF
14618 #define HAVE_INET_ATON 1
14624 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14625 echo "configure:14626: checking for _spawnlp" >&5
14626 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14627 echo $ac_n "(cached) $ac_c" 1>&6
14629 cat > conftest.$ac_ext <<EOF
14630 #line 14631 "configure"
14631 #include "confdefs.h"
14632 /* System header to define __stub macros and hopefully few prototypes,
14633 which can conflict with char _spawnlp(); below. */
14634 #include <assert.h>
14635 /* Override any gcc2 internal prototype to avoid an error. */
14636 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */
14643 /* The GNU C library defines this for functions which it implements
14644 to always fail with ENOSYS. Some functions are actually named
14645 something starting with __ and the normal name is an alias. */
14646 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14654 if { (eval echo configure:14655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14656 eval "ac_cv_func__spawnlp=yes"
14658 echo "configure: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14661 eval "ac_cv_func__spawnlp=no"
14666 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14667 echo "$ac_t""yes" 1>&6
14668 cat >> confdefs.h <<\EOF
14669 #define HAVE_SPAWNLP 1
14673 echo "$ac_t""no" 1>&6
14677 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14678 echo "configure:14679: checking for _snprintf" >&5
14679 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14680 echo $ac_n "(cached) $ac_c" 1>&6
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 /* System header to define __stub macros and hopefully few prototypes,
14686 which can conflict with char _snprintf(); below. */
14687 #include <assert.h>
14688 /* Override any gcc2 internal prototype to avoid an error. */
14689 /* We use char because int might match the return type of a gcc2
14690 builtin and then its argument prototype would still apply. */
14696 /* The GNU C library defines this for functions which it implements
14697 to always fail with ENOSYS. Some functions are actually named
14698 something starting with __ and the normal name is an alias. */
14699 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14709 eval "ac_cv_func__snprintf=yes"
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14714 eval "ac_cv_func__snprintf=no"
14719 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14720 echo "$ac_t""yes" 1>&6
14721 ac_cv_func_snprintf=yes
14722 cat >> confdefs.h <<\EOF
14723 #define snprintf _snprintf
14728 echo "$ac_t""no" 1>&6
14732 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14733 echo "configure:14734: checking for _vsnprintf" >&5
14734 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14735 echo $ac_n "(cached) $ac_c" 1>&6
14737 cat > conftest.$ac_ext <<EOF
14738 #line 14739 "configure"
14739 #include "confdefs.h"
14740 /* System header to define __stub macros and hopefully few prototypes,
14741 which can conflict with char _vsnprintf(); below. */
14742 #include <assert.h>
14743 /* Override any gcc2 internal prototype to avoid an error. */
14744 /* We use char because int might match the return type of a gcc2
14745 builtin and then its argument prototype would still apply. */
14751 /* The GNU C library defines this for functions which it implements
14752 to always fail with ENOSYS. Some functions are actually named
14753 something starting with __ and the normal name is an alias. */
14754 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14762 if { (eval echo configure:14763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14764 eval "ac_cv_func__vsnprintf=yes"
14766 echo "configure: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14769 eval "ac_cv_func__vsnprintf=no"
14774 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14775 echo "$ac_t""yes" 1>&6
14776 ac_cv_func_vsnprintf=yes
14777 cat >> confdefs.h <<\EOF
14778 #define vsnprintf _vsnprintf
14783 echo "$ac_t""no" 1>&6
14787 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14788 echo "configure:14789: checking for vprintf" >&5
14789 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14790 echo $ac_n "(cached) $ac_c" 1>&6
14792 cat > conftest.$ac_ext <<EOF
14793 #line 14794 "configure"
14794 #include "confdefs.h"
14795 /* System header to define __stub macros and hopefully few prototypes,
14796 which can conflict with char vprintf(); below. */
14797 #include <assert.h>
14798 /* Override any gcc2 internal prototype to avoid an error. */
14799 /* We use char because int might match the return type of a gcc2
14800 builtin and then its argument prototype would still apply. */
14806 /* The GNU C library defines this for functions which it implements
14807 to always fail with ENOSYS. Some functions are actually named
14808 something starting with __ and the normal name is an alias. */
14809 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14817 if { (eval echo configure:14818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14819 eval "ac_cv_func_vprintf=yes"
14821 echo "configure: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14824 eval "ac_cv_func_vprintf=no"
14829 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14830 echo "$ac_t""yes" 1>&6
14831 cat >> confdefs.h <<\EOF
14832 #define HAVE_VPRINTF 1
14836 echo "$ac_t""no" 1>&6
14839 if test "$ac_cv_func_vprintf" != yes; then
14840 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14841 echo "configure:14842: checking for _doprnt" >&5
14842 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14843 echo $ac_n "(cached) $ac_c" 1>&6
14845 cat > conftest.$ac_ext <<EOF
14846 #line 14847 "configure"
14847 #include "confdefs.h"
14848 /* System header to define __stub macros and hopefully few prototypes,
14849 which can conflict with char _doprnt(); below. */
14850 #include <assert.h>
14851 /* Override any gcc2 internal prototype to avoid an error. */
14852 /* We use char because int might match the return type of a gcc2
14853 builtin and then its argument prototype would still apply. */
14859 /* The GNU C library defines this for functions which it implements
14860 to always fail with ENOSYS. Some functions are actually named
14861 something starting with __ and the normal name is an alias. */
14862 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14870 if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14872 eval "ac_cv_func__doprnt=yes"
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14877 eval "ac_cv_func__doprnt=no"
14882 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14883 echo "$ac_t""yes" 1>&6
14884 cat >> confdefs.h <<\EOF
14885 #define HAVE_DOPRNT 1
14889 echo "$ac_t""no" 1>&6
14895 if test $ac_cv_func_vprintf = yes ; then
14896 for ac_func in vsnprintf vsprintf
14898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14899 echo "configure:14900: checking for $ac_func" >&5
14900 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14901 echo $ac_n "(cached) $ac_c" 1>&6
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char $ac_func(); below. */
14908 #include <assert.h>
14909 /* Override any gcc2 internal prototype to avoid an error. */
14910 /* We use char because int might match the return type of a gcc2
14911 builtin and then its argument prototype would still apply. */
14917 /* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14928 if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14930 eval "ac_cv_func_$ac_func=yes"
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14935 eval "ac_cv_func_$ac_func=no"
14940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14943 cat >> confdefs.h <<EOF
14944 #define $ac_tr_func 1
14948 echo "$ac_t""no" 1>&6
15004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15005 echo "configure:15006: checking for $ac_func" >&5
15006 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15007 echo $ac_n "(cached) $ac_c" 1>&6
15009 cat > conftest.$ac_ext <<EOF
15010 #line 15011 "configure"
15011 #include "confdefs.h"
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func(); below. */
15014 #include <assert.h>
15015 /* Override any gcc2 internal prototype to avoid an error. */
15016 /* We use char because int might match the return type of a gcc2
15017 builtin and then its argument prototype would still apply. */
15023 /* The GNU C library defines this for functions which it implements
15024 to always fail with ENOSYS. Some functions are actually named
15025 something starting with __ and the normal name is an alias. */
15026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15034 if { (eval echo configure:15035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15036 eval "ac_cv_func_$ac_func=yes"
15038 echo "configure: failed program was:" >&5
15039 cat conftest.$ac_ext >&5
15041 eval "ac_cv_func_$ac_func=no"
15046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15047 echo "$ac_t""yes" 1>&6
15048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15049 cat >> confdefs.h <<EOF
15050 #define $ac_tr_func 1
15054 echo "$ac_t""no" 1>&6
15059 for ac_func in getopt tempnam
15061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15062 echo "configure:15063: checking for $ac_func" >&5
15063 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15064 echo $ac_n "(cached) $ac_c" 1>&6
15066 cat > conftest.$ac_ext <<EOF
15067 #line 15068 "configure"
15068 #include "confdefs.h"
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char $ac_func(); below. */
15071 #include <assert.h>
15072 /* Override any gcc2 internal prototype to avoid an error. */
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15080 /* The GNU C library defines this for functions which it implements
15081 to always fail with ENOSYS. Some functions are actually named
15082 something starting with __ and the normal name is an alias. */
15083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15091 if { (eval echo configure:15092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15093 eval "ac_cv_func_$ac_func=yes"
15095 echo "configure: failed program was:" >&5
15096 cat conftest.$ac_ext >&5
15098 eval "ac_cv_func_$ac_func=no"
15103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15104 echo "$ac_t""yes" 1>&6
15105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15106 cat >> confdefs.h <<EOF
15107 #define $ac_tr_func 1
15111 echo "$ac_t""no" 1>&6
15112 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15118 if test "$ac_cv_func_getopt" != yes; then
15119 LIBSRCS="$LIBSRCS getopt.c"
15122 if test "$ac_cv_func_tempnam" != yes; then
15123 LIBSRCS="$LIBSRCS tempnam.c"
15126 # Check Configuration
15127 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15128 echo "configure:15129: checking declaration of sys_errlist" >&5
15129 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15130 echo $ac_n "(cached) $ac_c" 1>&6
15133 cat > conftest.$ac_ext <<EOF
15134 #line 15135 "configure"
15135 #include "confdefs.h"
15138 #include <sys/types.h>
15141 #include <stdlib.h>
15144 char *c = (char *) *sys_errlist
15147 if { (eval echo configure:15148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15149 ol_cv_dcl_sys_errlist=yes
15150 ol_cv_have_sys_errlist=yes
15152 echo "configure: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15155 ol_cv_dcl_sys_errlist=no
15160 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15162 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15163 if test $ol_cv_dcl_sys_errlist = no ; then
15164 cat >> confdefs.h <<\EOF
15165 #define DECL_SYS_ERRLIST 1
15169 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15170 echo "configure:15171: checking existence of sys_errlist" >&5
15171 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15172 echo $ac_n "(cached) $ac_c" 1>&6
15175 cat > conftest.$ac_ext <<EOF
15176 #line 15177 "configure"
15177 #include "confdefs.h"
15180 char *c = (char *) *sys_errlist
15183 if { (eval echo configure:15184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15185 ol_cv_have_sys_errlist=yes
15187 echo "configure: failed program was:" >&5
15188 cat conftest.$ac_ext >&5
15190 ol_cv_have_sys_errlist=no
15195 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15197 if test $ol_cv_have_sys_errlist = yes ; then
15198 cat >> confdefs.h <<\EOF
15199 #define HAVE_SYS_ERRLIST 1
15206 if test "$ol_enable_debug" != no ; then
15207 cat >> confdefs.h <<\EOF
15208 #define LDAP_DEBUG 1
15212 if test "$ol_enable_syslog" = yes ; then
15213 cat >> confdefs.h <<\EOF
15214 #define LDAP_SYSLOG 1
15218 if test "$ol_enable_libui" = yes ; then
15219 cat >> confdefs.h <<\EOF
15220 #define LDAP_LIBUI 1
15224 if test "$ol_enable_cache" = no ; then
15225 cat >> confdefs.h <<\EOF
15226 #define LDAP_NOCACHE 1
15230 if test "$ol_enable_kbind" != no ; then
15231 cat >> confdefs.h <<\EOF
15232 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15236 if test "$ol_enable_dns" != no ; then
15237 cat >> confdefs.h <<\EOF
15238 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15242 if test "$ol_enable_proctitle" != no ; then
15243 cat >> confdefs.h <<\EOF
15244 #define LDAP_PROCTITLE 1
15248 if test "$ol_enable_referrals" != no ; then
15249 cat >> confdefs.h <<\EOF
15250 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15254 if test "$ol_enable_cldap" != no ; then
15255 cat >> confdefs.h <<\EOF
15256 #define LDAP_CONNECTIONLESS 1
15260 if test "$ol_enable_ldapi" != no; then
15261 cat >> confdefs.h <<\EOF
15262 #define USE_PF_LOCAL 1
15267 if test "$ol_enable_cleartext" != no ; then
15268 cat >> confdefs.h <<\EOF
15269 #define SLAPD_CLEARTEXT 1
15273 if test "$ol_enable_crypt" != no ; then
15274 cat >> confdefs.h <<\EOF
15275 #define SLAPD_CRYPT 1
15279 if test "$ol_enable_kpasswd" != no ; then
15280 cat >> confdefs.h <<\EOF
15281 #define SLAPD_KPASSWD 1
15285 if test "$ol_enable_multimaster" != no ; then
15286 cat >> confdefs.h <<\EOF
15287 #define SLAPD_MULTIMASTER 1
15291 if test "$ol_enable_phonetic" != no ; then
15292 cat >> confdefs.h <<\EOF
15293 #define SLAPD_PHONETIC 1
15297 if test "$ol_enable_rlookups" != no ; then
15298 cat >> confdefs.h <<\EOF
15299 #define SLAPD_RLOOKUPS 1
15303 if test "$ol_enable_aci" != no ; then
15304 cat >> confdefs.h <<\EOF
15305 #define SLAPD_ACI_ENABLED 1
15309 if test "$ol_enable_discreteaci" != no ; then
15310 cat >> confdefs.h <<\EOF
15311 #define SLAPD_ACI_DISCRETE_RIGHTS 1
15316 if test "$ol_link_modules" != no ; then
15317 cat >> confdefs.h <<\EOF
15318 #define SLAPD_MODULES 1
15322 SLAPD_MODULES_LDFLAGS="-dlopen self"
15325 if test "$ol_link_bdb2" != no ; then
15326 cat >> confdefs.h <<\EOF
15327 #define SLAPD_BDB2 1
15332 if test "$ol_with_bdb2_module" != static ; then
15333 cat >> confdefs.h <<\EOF
15334 #define SLAPD_BDB2_DYNAMIC 1
15338 BUILD_BDB2_DYNAMIC=shared
15339 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15343 if test "$ol_enable_ldap" != no ; then
15344 cat >> confdefs.h <<\EOF
15345 #define SLAPD_LDAP 1
15350 if test "$ol_with_ldap_module" != static ; then
15351 cat >> confdefs.h <<\EOF
15352 #define SLAPD_LDAP_DYNAMIC 1
15356 BUILD_LDAP_DYNAMIC=shared
15357 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15361 if test "$ol_link_ldbm" != no ; then
15362 cat >> confdefs.h <<\EOF
15363 #define SLAPD_LDBM 1
15368 if test "$ol_with_ldbm_module" != static ; then
15369 cat >> confdefs.h <<\EOF
15370 #define SLAPD_LDBM_DYNAMIC 1
15374 BUILD_LDBM_DYNAMIC=shared
15375 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15379 if test "$ol_enable_passwd" != no ; then
15380 cat >> confdefs.h <<\EOF
15381 #define SLAPD_PASSWD 1
15386 if test "$ol_with_passwd_module" != static ; then
15387 cat >> confdefs.h <<\EOF
15388 #define SLAPD_PASSWD_DYNAMIC 1
15392 BUILD_PASSWD_DYNAMIC=shared
15393 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15397 if test "$ol_link_perl" != no ; then
15398 cat >> confdefs.h <<\EOF
15399 #define SLAPD_PERL 1
15404 if test "$ol_with_perl_module" != static ; then
15405 cat >> confdefs.h <<\EOF
15406 #define SLAPD_PERL_DYNAMIC 1
15410 BUILD_PERL_DYNAMIC=shared
15411 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15415 if test "$ol_enable_shell" != no ; then
15416 cat >> confdefs.h <<\EOF
15417 #define SLAPD_SHELL 1
15422 if test "$ol_with_shell_module" != static ; then
15423 cat >> confdefs.h <<\EOF
15424 #define SLAPD_SHELL_DYNAMIC 1
15428 BUILD_SHELL_DYNAMIC=shared
15429 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15433 if test "$ol_enable_tcl" != no ; then
15434 cat >> confdefs.h <<\EOF
15435 #define SLAPD_TCL 1
15440 if test "$ol_with_tcl_module" != static; then
15441 cat >> confdefs.h <<\EOF
15442 #define SLAPD_TCL_DYNAMIC 1
15446 BUILD_TCL_DYNAMIC=shared
15447 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15451 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15452 $BUILD_SLAPD = yes ; then
15456 if test "$ol_link_isode" != no ; then
15461 if test "$LINK_BINS_DYNAMIC" = yes; then
15463 LT_LIB_LINKAGE=shared
15466 LT_LIB_LINKAGE=static
15469 if test "$ac_cv_mingw32" = yes ; then
15534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15537 # Let make expand exec_prefix.
15538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15540 # Any assignment to VPATH causes Sun make to only execute
15541 # the first set of double-colon rules, so remove it if not needed.
15542 # If there is a colon in the path, we need to keep it.
15543 if test "x$srcdir" = x.; then
15544 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15547 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15549 DEFS=-DHAVE_CONFIG_H
15551 # Without the "./", some shells look in PATH for config.status.
15552 : ${CONFIG_STATUS=./config.status}
15554 echo creating $CONFIG_STATUS
15555 rm -f $CONFIG_STATUS
15556 cat > $CONFIG_STATUS <<EOF
15558 # Generated automatically by configure.
15559 # Run this file to recreate the current configuration.
15560 # This directory was configured as follows,
15561 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15563 # $0 $ac_configure_args
15565 # Compiler output produced by configure, useful for debugging
15566 # configure, is in ./config.log if it exists.
15568 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15571 case "\$ac_option" in
15572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15573 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15574 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15575 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15576 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15578 -help | --help | --hel | --he | --h)
15579 echo "\$ac_cs_usage"; exit 0 ;;
15580 *) echo "\$ac_cs_usage"; exit 1 ;;
15584 ac_given_srcdir=$srcdir
15585 ac_given_INSTALL="$INSTALL"
15587 trap 'rm -fr `echo "\
15588 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15589 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15590 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15591 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15592 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15593 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15594 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15595 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15596 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15597 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15598 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15599 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15600 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15601 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15602 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15603 include/Makefile:build/top.mk:include/Makefile.in \
15604 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15605 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15606 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15607 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15608 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15609 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15610 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15611 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15612 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15613 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15614 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15615 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15616 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15617 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15618 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15619 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15620 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15621 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15622 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15623 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15624 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15625 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15626 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15627 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15628 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15629 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15630 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15632 cat >> $CONFIG_STATUS <<EOF
15634 # Protect against being on the right side of a sed subst in config.status.
15635 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15636 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15640 s%@CFLAGS@%$CFLAGS%g
15641 s%@CPPFLAGS@%$CPPFLAGS%g
15642 s%@CXXFLAGS@%$CXXFLAGS%g
15643 s%@FFLAGS@%$FFLAGS%g
15645 s%@LDFLAGS@%$LDFLAGS%g
15647 s%@exec_prefix@%$exec_prefix%g
15648 s%@prefix@%$prefix%g
15649 s%@program_transform_name@%$program_transform_name%g
15650 s%@bindir@%$bindir%g
15651 s%@sbindir@%$sbindir%g
15652 s%@libexecdir@%$libexecdir%g
15653 s%@datadir@%$datadir%g
15654 s%@sysconfdir@%$sysconfdir%g
15655 s%@sharedstatedir@%$sharedstatedir%g
15656 s%@localstatedir@%$localstatedir%g
15657 s%@libdir@%$libdir%g
15658 s%@includedir@%$includedir%g
15659 s%@oldincludedir@%$oldincludedir%g
15660 s%@infodir@%$infodir%g
15661 s%@mandir@%$mandir%g
15663 s%@host_alias@%$host_alias%g
15664 s%@host_cpu@%$host_cpu%g
15665 s%@host_vendor@%$host_vendor%g
15666 s%@host_os@%$host_os%g
15667 s%@target@%$target%g
15668 s%@target_alias@%$target_alias%g
15669 s%@target_cpu@%$target_cpu%g
15670 s%@target_vendor@%$target_vendor%g
15671 s%@target_os@%$target_os%g
15673 s%@build_alias@%$build_alias%g
15674 s%@build_cpu@%$build_cpu%g
15675 s%@build_vendor@%$build_vendor%g
15676 s%@build_os@%$build_os%g
15677 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15678 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15679 s%@INSTALL_DATA@%$INSTALL_DATA%g
15680 s%@PACKAGE@%$PACKAGE%g
15681 s%@VERSION@%$VERSION%g
15682 s%@ACLOCAL@%$ACLOCAL%g
15683 s%@AUTOCONF@%$AUTOCONF%g
15684 s%@AUTOMAKE@%$AUTOMAKE%g
15685 s%@AUTOHEADER@%$AUTOHEADER%g
15686 s%@MAKEINFO@%$MAKEINFO%g
15687 s%@install_sh@%$install_sh%g
15690 s%@AMTARFLAGS@%$AMTARFLAGS%g
15691 s%@SET_MAKE@%$SET_MAKE%g
15692 s%@top_builddir@%$top_builddir%g
15693 s%@ldap_subdir@%$ldap_subdir%g
15695 s%@RANLIB@%$RANLIB%g
15699 s%@DLLTOOL@%$DLLTOOL%g
15701 s%@OBJDUMP@%$OBJDUMP%g
15702 s%@LIBTOOL@%$LIBTOOL%g
15704 s%@SENDMAIL@%$SENDMAIL%g
15705 s%@EDITOR@%$EDITOR%g
15706 s%@FINGER@%$FINGER%g
15707 s%@PERLBIN@%$PERLBIN%g
15709 s%@EXEEXT@%$EXEEXT%g
15710 s%@OBJEXT@%$OBJEXT%g
15711 s%@OL_MKDEP@%$OL_MKDEP%g
15712 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15714 s%@LIBOBJS@%$LIBOBJS%g
15715 s%@LIBSRCS@%$LIBSRCS%g
15717 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15718 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15719 s%@DYN_EXT@%$DYN_EXT%g
15720 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15721 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15722 s%@BUILD_BDB2@%$BUILD_BDB2%g
15723 s%@BUILD_LDAP@%$BUILD_LDAP%g
15724 s%@BUILD_LDBM@%$BUILD_LDBM%g
15725 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15726 s%@BUILD_PERL@%$BUILD_PERL%g
15727 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15728 s%@BUILD_SHELL@%$BUILD_SHELL%g
15729 s%@BUILD_TCL@%$BUILD_TCL%g
15730 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15731 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15732 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15733 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15734 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15735 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15736 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15737 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15738 s%@LDAP_LIBS@%$LDAP_LIBS%g
15739 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15740 s%@LDIF_LIBS@%$LDIF_LIBS%g
15741 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15742 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15743 s%@LDBM_LIBS@%$LDBM_LIBS%g
15744 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15745 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15746 s%@WRAP_LIBS@%$WRAP_LIBS%g
15747 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15748 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15749 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15750 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15751 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15752 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15753 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15754 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15755 s%@KRB4_LIBS@%$KRB4_LIBS%g
15756 s%@KRB5_LIBS@%$KRB5_LIBS%g
15757 s%@READLINE_LIBS@%$READLINE_LIBS%g
15758 s%@SASL_LIBS@%$SASL_LIBS%g
15759 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15760 s%@TLS_LIBS@%$TLS_LIBS%g
15761 s%@MODULES_LIBS@%$MODULES_LIBS%g
15766 cat >> $CONFIG_STATUS <<\EOF
15768 # Split the substitutions into bite-sized pieces for seds with
15769 # small command number limits, like on Digital OSF/1 and HP-UX.
15770 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15771 ac_file=1 # Number of current file.
15772 ac_beg=1 # First line for current file.
15773 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15776 while $ac_more_lines; do
15777 if test $ac_beg -gt 1; then
15778 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15780 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15782 if test ! -s conftest.s$ac_file; then
15783 ac_more_lines=false
15784 rm -f conftest.s$ac_file
15786 if test -z "$ac_sed_cmds"; then
15787 ac_sed_cmds="sed -f conftest.s$ac_file"
15789 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15791 ac_file=`expr $ac_file + 1`
15793 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15796 if test -z "$ac_sed_cmds"; then
15801 cat >> $CONFIG_STATUS <<EOF
15803 CONFIG_FILES=\${CONFIG_FILES-"\
15804 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15805 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15806 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15807 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15808 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15809 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15810 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15811 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15812 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15813 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15814 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15815 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15816 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15817 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15818 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15819 include/Makefile:build/top.mk:include/Makefile.in \
15820 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15821 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15822 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15823 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15824 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15825 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15826 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15827 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15828 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15829 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15830 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15831 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15832 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15833 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15834 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15835 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15836 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15837 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15838 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15839 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15840 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15841 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15842 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15843 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15844 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15845 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15848 cat >> $CONFIG_STATUS <<\EOF
15849 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15852 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15853 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15854 *) ac_file_in="${ac_file}.in" ;;
15857 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15859 # Remove last slash and all that follows it. Not all systems have dirname.
15860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15862 # The file is in a subdirectory.
15863 test ! -d "$ac_dir" && mkdir "$ac_dir"
15864 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15865 # A "../" for each directory in $ac_dir_suffix.
15866 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15868 ac_dir_suffix= ac_dots=
15871 case "$ac_given_srcdir" in
15873 if test -z "$ac_dots"; then top_srcdir=.
15874 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15875 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15876 *) # Relative path.
15877 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15878 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15881 case "$ac_given_INSTALL" in
15882 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15883 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15886 echo creating "$ac_file"
15888 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15890 *[Mm]akefile*) ac_comsub="1i\\
15891 # $configure_input" ;;
15895 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15897 s%@configure_input@%$configure_input%g
15898 s%@srcdir@%$srcdir%g
15899 s%@top_srcdir@%$top_srcdir%g
15900 s%@INSTALL@%$INSTALL%g
15901 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15908 # ac_d sets the value in "#define NAME VALUE" lines.
15909 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15910 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15913 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15914 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15915 ac_uB='\([ ]\)%\1#\2define\3'
15918 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15919 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15920 ac_eB='$%\1#\2define\3'
15924 if test "${CONFIG_HEADERS+set}" != set; then
15926 cat >> $CONFIG_STATUS <<EOF
15927 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
15929 cat >> $CONFIG_STATUS <<\EOF
15931 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15934 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15935 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15936 *) ac_file_in="${ac_file}.in" ;;
15939 echo creating $ac_file
15941 rm -f conftest.frag conftest.in conftest.out
15942 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15943 cat $ac_file_inputs > conftest.in
15947 # Transform confdefs.h into a sed script conftest.vals that substitutes
15948 # the proper values into config.h.in to produce config.h. And first:
15949 # Protect against being on the right side of a sed subst in config.status.
15950 # Protect against being in an unquoted here document in config.status.
15951 rm -f conftest.vals
15952 cat > conftest.hdr <<\EOF
15955 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15959 sed -n -f conftest.hdr confdefs.h > conftest.vals
15962 # This sed command replaces #undef with comments. This is necessary, for
15963 # example, in the case of _POSIX_SOURCE, which is predefined and required
15964 # on some systems where configure will not decide to define it.
15965 cat >> conftest.vals <<\EOF
15966 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15969 # Break up conftest.vals because some shells have a limit on
15970 # the size of here documents, and old seds have small limits too.
15972 rm -f conftest.tail
15975 ac_lines=`grep -c . conftest.vals`
15976 # grep -c gives empty output for an empty file on some AIX systems.
15977 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15978 # Write a limited-size here document to conftest.frag.
15979 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15980 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15982 sed -f conftest.frag conftest.in > conftest.out
15984 mv conftest.out conftest.in
15985 ' >> $CONFIG_STATUS
15986 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15987 rm -f conftest.vals
15988 mv conftest.tail conftest.vals
15990 rm -f conftest.vals
15992 cat >> $CONFIG_STATUS <<\EOF
15993 rm -f conftest.frag conftest.h
15994 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15995 cat conftest.in >> conftest.h
15997 if cmp -s $ac_file conftest.h 2>/dev/null; then
15998 echo "$ac_file is unchanged"
16001 # Remove last slash and all that follows it. Not all systems have dirname.
16002 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16004 # The file is in a subdirectory.
16005 test ! -d "$ac_dir" && mkdir "$ac_dir"
16008 mv conftest.h $ac_file
16013 cat >> $CONFIG_STATUS <<EOF
16016 cat >> $CONFIG_STATUS <<\EOF
16019 echo Please \"make depend\" to build dependencies
16023 chmod +x $CONFIG_STATUS
16024 rm -fr confdefs* $ac_clean_files
16025 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1