3 # from OpenLDAP: pkg/ldap/configure.in,v 1.292 2000/03/16 17:54:11 mit 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-wrappers enable tcp wrapper support (no)"
94 --enable-dynamic enable linking built binaries with dynamic libs (no)"
96 --enable-bdb2 enable bdb2 backend (no)"
98 --with-bdb2-module module type (static)"
100 --enable-ldap enable ldap backend (no)"
102 --with-ldap-module module type (static)"
104 --enable-ldbm enable ldbm backend (yes)"
106 --with-ldbm-api use LDBM API (auto)"
108 --with-ldbm-module module type (static)"
110 --with-ldbm-type use LDBM type (auto)"
112 --enable-passwd enable passwd backend (no)"
114 --with-passwd-module module type (static)"
116 --enable-perl enable perl backend (no)"
118 --with-perl-module module type (static)"
120 --enable-shell enable shell backend (no)"
122 --with-shell-module module type (static)"
124 --enable-tcl enable tcl backend (no)"
126 --with-tcl-module module type (static)"
128 --enable-sql enable sql backend (no)"
130 --with-sql-module module type (static)"
132 SLURPD (Replication Daemon) Options:"
134 --enable-slurpd enable building slurpd (auto)"
136 Library Generation & Linking Options"
138 --enable-static[=PKGS] build static libraries [default=yes]"
140 --enable-shared[=PKGS] build shared libraries [default=yes]"
142 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
144 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
146 --disable-libtool-lock avoid locking (might break parallel builds)"
148 # Initialize some variables set by options.
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
152 cache_file=./config.cache
161 program_transform_name=s,x,x,
169 bindir='${exec_prefix}/bin'
170 sbindir='${exec_prefix}/sbin'
171 libexecdir='${exec_prefix}/libexec'
172 datadir='${prefix}/share'
173 sysconfdir='${prefix}/etc'
174 sharedstatedir='${prefix}/com'
175 localstatedir='${prefix}/var'
176 libdir='${exec_prefix}/lib'
177 includedir='${prefix}/include'
178 oldincludedir='/usr/include'
179 infodir='${prefix}/info'
180 mandir='${prefix}/man'
182 # Initialize some other variables.
185 SHELL=${CONFIG_SHELL-/bin/sh}
186 # Maximum number of lines to put in a shell here document.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
201 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 bindir="$ac_optarg" ;;
214 -build | --build | --buil | --bui | --bu)
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build="$ac_optarg" ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file="$ac_optarg" ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir="$ac_optarg" ;;
232 -disable-* | --disable-*)
233 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
234 # Reject names that are not valid shell variable names.
235 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
236 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
238 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
239 eval "enable_${ac_feature}=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
245 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
252 eval "enable_${ac_feature}='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix="$ac_optarg" ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he)
268 # Omit some internal or obsolete options to make the list less imposing.
269 # This message is too long to be a string in the A/UX 3.1 sh.
271 Usage: configure [options] [host]
272 Options: [defaults in brackets after descriptions]
274 --cache-file=FILE cache test results in FILE
275 --help print this message
276 --no-create do not create output files
277 --quiet, --silent do not print \`checking...' messages
278 --version print the version of autoconf that created configure
279 Directory and file names:
280 --prefix=PREFIX install architecture-independent files in PREFIX
282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
284 --bindir=DIR user executables in DIR [EPREFIX/bin]
285 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
286 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
287 --datadir=DIR read-only architecture-independent data in DIR
289 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
290 --sharedstatedir=DIR modifiable architecture-independent data in DIR
292 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
293 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
294 --includedir=DIR C header files in DIR [PREFIX/include]
295 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
296 --infodir=DIR info documentation in DIR [PREFIX/info]
297 --mandir=DIR man documentation in DIR [PREFIX/man]
298 --srcdir=DIR find the sources in DIR [configure dir or ..]
299 --program-prefix=PREFIX prepend PREFIX to installed program names
300 --program-suffix=SUFFIX append SUFFIX to installed program names
301 --program-transform-name=PROGRAM
302 run sed PROGRAM on installed program names
306 --build=BUILD configure for building on BUILD [BUILD=HOST]
307 --host=HOST configure for HOST [guessed]
308 --target=TARGET configure for TARGET [TARGET=HOST]
309 Features and packages:
310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
312 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
313 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
314 --x-includes=DIR X include files are in DIR
315 --x-libraries=DIR X library files are in DIR
317 if test -n "$ac_help"; then
318 echo "--enable and --with options recognized:$ac_help"
322 -host | --host | --hos | --ho)
324 -host=* | --host=* | --hos=* | --ho=*)
327 -includedir | --includedir | --includedi | --included | --include \
328 | --includ | --inclu | --incl | --inc)
329 ac_prev=includedir ;;
330 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
331 | --includ=* | --inclu=* | --incl=* | --inc=*)
332 includedir="$ac_optarg" ;;
334 -infodir | --infodir | --infodi | --infod | --info | --inf)
336 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
337 infodir="$ac_optarg" ;;
339 -libdir | --libdir | --libdi | --libd)
341 -libdir=* | --libdir=* | --libdi=* | --libd=*)
342 libdir="$ac_optarg" ;;
344 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
345 | --libexe | --libex | --libe)
346 ac_prev=libexecdir ;;
347 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
348 | --libexe=* | --libex=* | --libe=*)
349 libexecdir="$ac_optarg" ;;
351 -localstatedir | --localstatedir | --localstatedi | --localstated \
352 | --localstate | --localstat | --localsta | --localst \
353 | --locals | --local | --loca | --loc | --lo)
354 ac_prev=localstatedir ;;
355 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
356 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
357 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
358 localstatedir="$ac_optarg" ;;
360 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
362 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
363 mandir="$ac_optarg" ;;
366 # Obsolete; use --without-fp.
369 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
373 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
374 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
377 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
378 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
379 | --oldin | --oldi | --old | --ol | --o)
380 ac_prev=oldincludedir ;;
381 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
382 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
383 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
384 oldincludedir="$ac_optarg" ;;
386 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
388 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
389 prefix="$ac_optarg" ;;
391 -program-prefix | --program-prefix | --program-prefi | --program-pref \
392 | --program-pre | --program-pr | --program-p)
393 ac_prev=program_prefix ;;
394 -program-prefix=* | --program-prefix=* | --program-prefi=* \
395 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
396 program_prefix="$ac_optarg" ;;
398 -program-suffix | --program-suffix | --program-suffi | --program-suff \
399 | --program-suf | --program-su | --program-s)
400 ac_prev=program_suffix ;;
401 -program-suffix=* | --program-suffix=* | --program-suffi=* \
402 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
403 program_suffix="$ac_optarg" ;;
405 -program-transform-name | --program-transform-name \
406 | --program-transform-nam | --program-transform-na \
407 | --program-transform-n | --program-transform- \
408 | --program-transform | --program-transfor \
409 | --program-transfo | --program-transf \
410 | --program-trans | --program-tran \
411 | --progr-tra | --program-tr | --program-t)
412 ac_prev=program_transform_name ;;
413 -program-transform-name=* | --program-transform-name=* \
414 | --program-transform-nam=* | --program-transform-na=* \
415 | --program-transform-n=* | --program-transform-=* \
416 | --program-transform=* | --program-transfor=* \
417 | --program-transfo=* | --program-transf=* \
418 | --program-trans=* | --program-tran=* \
419 | --progr-tra=* | --program-tr=* | --program-t=*)
420 program_transform_name="$ac_optarg" ;;
422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
423 | -silent | --silent | --silen | --sile | --sil)
426 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
428 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
430 sbindir="$ac_optarg" ;;
432 -sharedstatedir | --sharedstatedir | --sharedstatedi \
433 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
434 | --sharedst | --shareds | --shared | --share | --shar \
436 ac_prev=sharedstatedir ;;
437 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
438 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
439 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
441 sharedstatedir="$ac_optarg" ;;
443 -site | --site | --sit)
445 -site=* | --site=* | --sit=*)
448 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
450 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
451 srcdir="$ac_optarg" ;;
453 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
454 | --syscon | --sysco | --sysc | --sys | --sy)
455 ac_prev=sysconfdir ;;
456 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
457 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
458 sysconfdir="$ac_optarg" ;;
460 -target | --target | --targe | --targ | --tar | --ta | --t)
462 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
463 target="$ac_optarg" ;;
465 -v | -verbose | --verbose | --verbos | --verbo | --verb)
468 -version | --version | --versio | --versi | --vers)
469 echo "configure generated by autoconf version 2.13.1"
473 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
474 # Reject names that are not valid shell variable names.
475 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
476 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
478 ac_package=`echo $ac_package| sed 's/-/_/g'`
483 eval "with_${ac_package}='$ac_optarg'" ;;
485 -without-* | --without-*)
486 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
487 # Reject names that are not valid shell variable names.
488 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
489 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
491 ac_package=`echo $ac_package| sed 's/-/_/g'`
492 eval "with_${ac_package}=no" ;;
495 # Obsolete; use --with-x.
498 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
499 | --x-incl | --x-inc | --x-in | --x-i)
500 ac_prev=x_includes ;;
501 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
502 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
503 x_includes="$ac_optarg" ;;
505 -x-libraries | --x-libraries | --x-librarie | --x-librari \
506 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
507 ac_prev=x_libraries ;;
508 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
509 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
510 x_libraries="$ac_optarg" ;;
512 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
516 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
517 echo "configure: warning: $ac_option: invalid host type" 1>&2
519 if test "x$nonopt" != xNONE; then
520 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
528 if test -n "$ac_prev"; then
529 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
532 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
534 # File descriptor usage:
537 # 2 errors and warnings
538 # 3 some systems may open it to /dev/tty
539 # 4 used on the Kubota Titan
540 # 6 checking for... messages and results
541 # 5 compiler messages saved in config.log
542 if test "$silent" = yes; then
550 This file contains any messages produced by compilers while
551 running configure, to aid debugging if configure makes a mistake.
554 # Strip out --no-create and --no-recursion so they do not pile up.
555 # Also quote any args containing shell metacharacters.
560 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
561 | --no-cr | --no-c) ;;
562 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
563 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
564 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
565 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
566 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
571 # Only set these to C if already set. These must not be set unconditionally
572 # because not all systems understand e.g. LANG=C (notably SCO).
573 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
574 # Non-C LC_CTYPE values break the ctype check.
575 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
576 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
577 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
578 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
580 # confdefs.h avoids OS command line length limits that DEFS can exceed.
581 rm -rf conftest* confdefs.h
582 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
585 # A filename unique to this package, relative to the directory that
586 # configure is in, which we can look for to find out if srcdir is correct.
587 ac_unique_file=build/version
589 # Find the source files, if location was not specified.
590 if test -z "$srcdir"; then
591 ac_srcdir_defaulted=yes
592 # Try the directory containing this script, then its parent.
594 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
595 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
597 if test ! -r $srcdir/$ac_unique_file; then
601 ac_srcdir_defaulted=no
603 if test ! -r $srcdir/$ac_unique_file; then
604 if test "$ac_srcdir_defaulted" = yes; then
605 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
607 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
610 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
612 # Prefer explicitly selected file to automatically selected ones.
613 if test -z "$CONFIG_SITE"; then
614 if test "x$prefix" != xNONE; then
615 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
617 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
620 for ac_site_file in $CONFIG_SITE; do
621 if test -r "$ac_site_file"; then
622 echo "loading site script $ac_site_file"
629 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
630 ac_cpp='$CPP $CPPFLAGS'
631 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
632 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
633 cross_compiling=$ac_cv_prog_cc_cross
637 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
638 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
639 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
646 ac_n= ac_c='\c' ac_t=
650 for ac_dir in build $srcdir/build; do
651 if test -f $ac_dir/install-sh; then
653 ac_install_sh="$ac_aux_dir/install-sh -c"
655 elif test -f $ac_dir/install.sh; then
657 ac_install_sh="$ac_aux_dir/install.sh -c"
659 elif test -f $ac_dir/shtool; then
661 ac_install_sh="$ac_aux_dir/shtool install -c"
665 if test -z "$ac_aux_dir"; then
666 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
668 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
669 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
670 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
672 OL_VERSION=`cat $ac_aux_dir/version`
673 if test -z "$OL_VERSION"; then
674 { echo "configure: error: could not determine version" 1>&2; exit 1; }
677 echo "Configuring OpenLDAP $OL_VERSION ..."
680 echo $ac_n "checking host system type""... $ac_c" 1>&6
681 echo "configure:682: checking host system type" >&5
682 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
684 # Make sure we can run config.sub.
685 if $ac_config_sub sun4 >/dev/null 2>&1; then :
686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
689 ac_cv_host_alias=$host
690 case "$ac_cv_host_alias" in
694 if ac_cv_host_alias=`$ac_config_guess`; then :
695 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
697 *) ac_cv_host_alias=$nonopt ;;
701 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
702 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
703 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
704 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo $ac_n "(cached) $ac_c" 1>&6
709 echo "$ac_t""$ac_cv_host" 1>&6
712 host_alias=$ac_cv_host_alias
713 host_cpu=$ac_cv_host_cpu
714 host_vendor=$ac_cv_host_vendor
715 host_os=$ac_cv_host_os
721 echo $ac_n "checking target system type""... $ac_c" 1>&6
722 echo "configure:723: checking target system type" >&5
723 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
725 # Make sure we can run config.sub.
726 if $ac_config_sub sun4 >/dev/null 2>&1; then :
727 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
730 ac_cv_target_alias=$target
731 case "$ac_cv_target_alias" in
735 ac_cv_target_alias=$host_alias ;;
737 *) ac_cv_target_alias=$nonopt ;;
741 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
742 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo $ac_n "(cached) $ac_c" 1>&6
749 echo "$ac_t""$ac_cv_target" 1>&6
752 target_alias=$ac_cv_target_alias
753 target_cpu=$ac_cv_target_cpu
754 target_vendor=$ac_cv_target_vendor
755 target_os=$ac_cv_target_os
761 echo $ac_n "checking build system type""... $ac_c" 1>&6
762 echo "configure:763: checking build system type" >&5
763 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
765 # Make sure we can run config.sub.
766 if $ac_config_sub sun4 >/dev/null 2>&1; then :
767 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
770 ac_cv_build_alias=$build
771 case "$ac_cv_build_alias" in
775 ac_cv_build_alias=$host_alias ;;
777 *) ac_cv_build_alias=$nonopt ;;
781 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
782 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
786 echo $ac_n "(cached) $ac_c" 1>&6
789 echo "$ac_t""$ac_cv_build" 1>&6
792 build_alias=$ac_cv_build_alias
793 build_cpu=$ac_cv_build_cpu
794 build_vendor=$ac_cv_build_vendor
795 build_os=$ac_cv_build_os
801 # Do some error checking and defaulting for the host and target type.
803 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
806 # 1. You are not allowed to specify --host, --target, and nonopt at the
808 # 2. Host defaults to nonopt.
809 # 3. If nonopt is not specified, then host defaults to the current host,
810 # as determined by config.guess.
811 # 4. Target and build default to nonopt.
812 # 5. If nonopt is not specified, then target and build default to host.
814 # The aliases save the names the user supplied, while $host etc.
815 # will get canonicalized.
816 case $host---$target---$nonopt in
817 NONE---*---* | *---NONE---* | *---*---NONE) ;;
818 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
821 test "$host_alias" != "$target_alias" &&
822 test "$program_prefix$program_suffix$program_transform_name" = \
824 program_prefix=${target_alias}-
827 # Find a good install program. We prefer a C program (faster),
828 # so one script is as good as another. But avoid the broken or
829 # incompatible versions:
830 # SysV /etc/install, /usr/sbin/install
831 # SunOS /usr/etc/install
834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
837 # ./install, which can be erroneously created by make from ./install.sh.
838 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
839 echo "configure:840: checking for a BSD compatible install" >&5
840 if test -z "$INSTALL"; then
841 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
845 for ac_dir in $PATH; do
846 # Account for people who put trailing slashes in PATH elements.
848 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
850 # OSF1 and SCO ODT 3.0 have their own names for install.
851 # Don't use installbsd from OSF since it installs stuff as root
853 for ac_prog in ginstall scoinst install; do
854 if test -f $ac_dir/$ac_prog; then
855 if test $ac_prog = install &&
856 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
857 # AIX install. It has an incompatible calling convention.
859 elif test $ac_prog = install &&
860 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
861 # program-specific install script used by HP pwplus--don't use.
864 ac_cv_path_install="$ac_dir/$ac_prog -c"
875 if test "${ac_cv_path_install+set}" = set; then
876 INSTALL="$ac_cv_path_install"
878 # As a last resort, use the slow shell script. We don't cache a
879 # path for INSTALL within a source directory, because that will
880 # break other packages using the cache if that directory is
881 # removed, or if the path is relative.
882 INSTALL="$ac_install_sh"
885 echo "$ac_t""$INSTALL" 1>&6
887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
888 # It thinks the first close brace ends the variable substitution.
889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
895 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
896 echo "configure:897: checking whether build environment is sane" >&5
899 echo timestamp > conftestfile
900 # Do `set' in a subshell so we don't clobber the current shell's
901 # arguments. Must try -L first in case configure is actually a
902 # symlink; some systems play weird games with the mod time of symlinks
903 # (eg FreeBSD returns the mod time of the symlink's containing
906 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
907 if test "$*" = "X"; then
909 set X `ls -t $srcdir/configure conftestfile`
911 if test "$*" != "X $srcdir/configure conftestfile" \
912 && test "$*" != "X conftestfile $srcdir/configure"; then
914 # If neither matched, then we have a broken ls. This can happen
915 # if, for instance, CONFIG_SHELL is bash and it inherits a
916 # broken ls alias from the environment. This has actually
917 # happened. Such a system could not be considered "sane".
918 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
919 alias in your environment" 1>&2; exit 1; }
922 test "$2" = conftestfile
928 { echo "configure: error: newly created file is older than distributed files!
929 Check your system clock" 1>&2; exit 1; }
932 echo "$ac_t""yes" 1>&6
933 if test "$program_transform_name" = s,x,x,; then
934 program_transform_name=
936 # Double any \ or $. echo might interpret backslashes.
937 cat <<\EOF_SED > conftestsed
938 s,\\,\\\\,g; s,\$,$$,g
940 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
943 test "$program_prefix" != NONE &&
944 program_transform_name="s,^,${program_prefix},;$program_transform_name"
945 # Use a double $ so make ignores it.
946 test "$program_suffix" != NONE &&
947 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
949 # sed with no file args requires a program.
950 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
952 for ac_prog in mawk gawk nawk awk
954 # Extract the first word of "$ac_prog", so it can be a program name with args.
955 set dummy $ac_prog; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$AWK"; then
962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_AWK="$ac_prog"
976 AWK="$ac_cv_prog_AWK"
977 if test -n "$AWK"; then
978 echo "$ac_t""$AWK" 1>&6
980 echo "$ac_t""no" 1>&6
983 test -n "$AWK" && break
986 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
987 echo "configure:988: checking whether ${MAKE-make} sets \${MAKE}" >&5
988 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
989 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 cat > conftestmake <<\EOF
994 @echo 'ac_maketemp="${MAKE}"'
996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
997 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
998 if test -n "$ac_maketemp"; then
999 eval ac_cv_prog_make_${ac_make}_set=yes
1001 eval ac_cv_prog_make_${ac_make}_set=no
1005 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1006 echo "$ac_t""yes" 1>&6
1009 echo "$ac_t""no" 1>&6
1010 SET_MAKE="MAKE=${MAKE-make}"
1019 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1020 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1025 missing_dir=`cd $ac_aux_dir && pwd`
1026 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working aclocal" >&5
1028 # Run test in a subshell; some versions of sh will print an error if
1029 # an executable is not found, even if stderr is redirected.
1030 # Redirect stdin to placate older versions of autoconf. Sigh.
1031 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1033 echo "$ac_t""found" 1>&6
1035 ACLOCAL="$missing_dir/missing aclocal"
1036 echo "$ac_t""missing" 1>&6
1039 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working autoconf" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf. Sigh.
1044 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1046 echo "$ac_t""found" 1>&6
1048 AUTOCONF="$missing_dir/missing autoconf"
1049 echo "$ac_t""missing" 1>&6
1052 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1053 echo "configure:1054: checking for working automake" >&5
1054 # Run test in a subshell; some versions of sh will print an error if
1055 # an executable is not found, even if stderr is redirected.
1056 # Redirect stdin to placate older versions of autoconf. Sigh.
1057 if (automake --version) < /dev/null > /dev/null 2>&1; then
1059 echo "$ac_t""found" 1>&6
1061 AUTOMAKE="$missing_dir/missing automake"
1062 echo "$ac_t""missing" 1>&6
1065 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1066 echo "configure:1067: checking for working autoheader" >&5
1067 # Run test in a subshell; some versions of sh will print an error if
1068 # an executable is not found, even if stderr is redirected.
1069 # Redirect stdin to placate older versions of autoconf. Sigh.
1070 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1071 AUTOHEADER=autoheader
1072 echo "$ac_t""found" 1>&6
1074 AUTOHEADER="$missing_dir/missing autoheader"
1075 echo "$ac_t""missing" 1>&6
1078 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1079 echo "configure:1080: checking for working makeinfo" >&5
1080 # Run test in a subshell; some versions of sh will print an error if
1081 # an executable is not found, even if stderr is redirected.
1082 # Redirect stdin to placate older versions of autoconf. Sigh.
1083 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1085 echo "$ac_t""found" 1>&6
1087 MAKEINFO="$missing_dir/missing makeinfo"
1088 echo "$ac_t""missing" 1>&6
1091 install_sh="$missing_dir/install-sh"
1092 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1094 for ac_prog in gnutar gtar tar
1096 # Extract the first word of "$ac_prog", so it can be a program name with args.
1097 set dummy $ac_prog; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 if test -n "$AMTAR"; then
1104 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 ac_cv_prog_AMTAR="$ac_prog"
1118 AMTAR="$ac_cv_prog_AMTAR"
1119 if test -n "$AMTAR"; then
1120 echo "$ac_t""$AMTAR" 1>&6
1122 echo "$ac_t""no" 1>&6
1125 test -n "$AMTAR" && break
1130 if test -n "$AMTAR"; then
1131 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1138 cat >> confdefs.h <<EOF
1139 #define OPENLDAP_PACKAGE "$PACKAGE"
1142 cat >> confdefs.h <<EOF
1143 #define OPENLDAP_VERSION "$VERSION"
1149 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1150 echo "configure:1151: checking configure arguments" >&5
1155 ldap_subdir="/openldap"
1157 # Check whether --with-subdir or --without-subdir was given.
1158 if test "${with_subdir+set}" = set; then
1159 withval="$with_subdir"
1166 ldap_subdir="$withval"
1169 ldap_subdir="/$withval"
1176 # OpenLDAP --enable-debug
1177 # Check whether --enable-debug or --disable-debug was given.
1178 if test "${enable_debug+set}" = set; then
1179 enableval="$enable_debug"
1182 for ol_val in auto yes no ; do
1183 if test "$enableval" = "$ol_val" ; then
1187 if test "$ol_arg" = "invalid" ; then
1188 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1190 ol_enable_debug="$ol_arg"
1193 ol_enable_debug="yes"
1195 # end --enable-debug
1196 # OpenLDAP --enable-syslog
1197 # Check whether --enable-syslog or --disable-syslog was given.
1198 if test "${enable_syslog+set}" = set; then
1199 enableval="$enable_syslog"
1202 for ol_val in auto yes no ; do
1203 if test "$enableval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1210 ol_enable_syslog="$ol_arg"
1213 ol_enable_syslog="auto"
1215 # end --enable-syslog
1216 # OpenLDAP --enable-proctitle
1217 # Check whether --enable-proctitle or --disable-proctitle was given.
1218 if test "${enable_proctitle+set}" = set; then
1219 enableval="$enable_proctitle"
1222 for ol_val in auto yes no ; do
1223 if test "$enableval" = "$ol_val" ; then
1227 if test "$ol_arg" = "invalid" ; then
1228 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1230 ol_enable_proctitle="$ol_arg"
1233 ol_enable_proctitle="yes"
1235 # end --enable-proctitle
1236 # OpenLDAP --enable-cache
1237 # Check whether --enable-cache or --disable-cache was given.
1238 if test "${enable_cache+set}" = set; then
1239 enableval="$enable_cache"
1242 for ol_val in auto yes no ; do
1243 if test "$enableval" = "$ol_val" ; then
1247 if test "$ol_arg" = "invalid" ; then
1248 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1250 ol_enable_cache="$ol_arg"
1253 ol_enable_cache="yes"
1255 # end --enable-cache
1256 # OpenLDAP --enable-dns
1257 # Check whether --enable-dns or --disable-dns was given.
1258 if test "${enable_dns+set}" = set; then
1259 enableval="$enable_dns"
1262 for ol_val in auto yes no ; do
1263 if test "$enableval" = "$ol_val" ; then
1267 if test "$ol_arg" = "invalid" ; then
1268 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1270 ol_enable_dns="$ol_arg"
1276 # OpenLDAP --enable-referrals
1277 # Check whether --enable-referrals or --disable-referrals was given.
1278 if test "${enable_referrals+set}" = set; then
1279 enableval="$enable_referrals"
1282 for ol_val in auto yes no ; do
1283 if test "$enableval" = "$ol_val" ; then
1287 if test "$ol_arg" = "invalid" ; then
1288 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1290 ol_enable_referrals="$ol_arg"
1293 ol_enable_referrals="yes"
1295 # end --enable-referrals
1296 # OpenLDAP --enable-kbind
1297 # Check whether --enable-kbind or --disable-kbind was given.
1298 if test "${enable_kbind+set}" = set; then
1299 enableval="$enable_kbind"
1302 for ol_val in auto yes no ; do
1303 if test "$enableval" = "$ol_val" ; then
1307 if test "$ol_arg" = "invalid" ; then
1308 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1310 ol_enable_kbind="$ol_arg"
1313 ol_enable_kbind="auto"
1315 # end --enable-kbind
1316 # OpenLDAP --enable-cldap
1317 # Check whether --enable-cldap or --disable-cldap was given.
1318 if test "${enable_cldap+set}" = set; then
1319 enableval="$enable_cldap"
1322 for ol_val in auto yes no ; do
1323 if test "$enableval" = "$ol_val" ; then
1327 if test "$ol_arg" = "invalid" ; then
1328 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1330 ol_enable_cldap="$ol_arg"
1333 ol_enable_cldap="no"
1335 # end --enable-cldap
1336 # OpenLDAP --enable-ldapi
1337 # Check whether --enable-ldapi or --disable-ldapi was given.
1338 if test "${enable_ldapi+set}" = set; then
1339 enableval="$enable_ldapi"
1342 for ol_val in auto yes no ; do
1343 if test "$enableval" = "$ol_val" ; then
1347 if test "$ol_arg" = "invalid" ; then
1348 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1350 ol_enable_ldapi="$ol_arg"
1353 ol_enable_ldapi="no"
1355 # end --enable-ldapi
1356 # OpenLDAP --enable-x_compile
1357 # Check whether --enable-x_compile or --disable-x_compile was given.
1358 if test "${enable_x_compile+set}" = set; then
1359 enableval="$enable_x_compile"
1362 for ol_val in yes no ; do
1363 if test "$enableval" = "$ol_val" ; then
1367 if test "$ol_arg" = "invalid" ; then
1368 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1370 ol_enable_x_compile="$ol_arg"
1373 ol_enable_x_compile="no"
1375 # end --enable-x_compile
1377 # OpenLDAP --enable-dmalloc
1378 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1379 if test "${enable_dmalloc+set}" = set; then
1380 enableval="$enable_dmalloc"
1383 for ol_val in auto yes no ; do
1384 if test "$enableval" = "$ol_val" ; then
1388 if test "$ol_arg" = "invalid" ; then
1389 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1391 ol_enable_dmalloc="$ol_arg"
1394 ol_enable_dmalloc="no"
1396 # end --enable-dmalloc
1398 # OpenLDAP --with-cyrus_sasl
1399 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1400 if test "${with_cyrus_sasl+set}" = set; then
1401 withval="$with_cyrus_sasl"
1404 for ol_val in auto yes no ; do
1405 if test "$withval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1412 ol_with_cyrus_sasl="$ol_arg"
1415 ol_with_cyrus_sasl="auto"
1417 # end --with-cyrus_sasl
1419 # OpenLDAP --with-fetch
1420 # Check whether --with-fetch or --without-fetch was given.
1421 if test "${with_fetch+set}" = set; then
1422 withval="$with_fetch"
1425 for ol_val in auto yes no ; do
1426 if test "$withval" = "$ol_val" ; then
1430 if test "$ol_arg" = "invalid" ; then
1431 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1433 ol_with_fetch="$ol_arg"
1436 ol_with_fetch="auto"
1440 # OpenLDAP --with-kerberos
1441 # Check whether --with-kerberos or --without-kerberos was given.
1442 if test "${with_kerberos+set}" = set; then
1443 withval="$with_kerberos"
1446 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1447 if test "$withval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1454 ol_with_kerberos="$ol_arg"
1457 ol_with_kerberos="auto"
1459 # end --with-kerberos
1461 # OpenLDAP --with-readline
1462 # Check whether --with-readline or --without-readline was given.
1463 if test "${with_readline+set}" = set; then
1464 withval="$with_readline"
1467 for ol_val in auto yes no ; do
1468 if test "$withval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1475 ol_with_readline="$ol_arg"
1478 ol_with_readline="auto"
1480 # end --with-readline
1482 # OpenLDAP --with-threads
1483 # Check whether --with-threads or --without-threads was given.
1484 if test "${with_threads+set}" = set; then
1485 withval="$with_threads"
1488 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1489 if test "$withval" = "$ol_val" ; then
1493 if test "$ol_arg" = "invalid" ; then
1494 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1496 ol_with_threads="$ol_arg"
1499 ol_with_threads="auto"
1501 # end --with-threads
1503 # OpenLDAP --with-tls
1504 # Check whether --with-tls or --without-tls was given.
1505 if test "${with_tls+set}" = set; then
1509 for ol_val in auto ssleay openssl yes no ; do
1510 if test "$withval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1517 ol_with_tls="$ol_arg"
1524 # OpenLDAP --with-yielding_select
1525 # Check whether --with-yielding_select or --without-yielding_select was given.
1526 if test "${with_yielding_select+set}" = set; then
1527 withval="$with_yielding_select"
1530 for ol_val in auto yes no manual ; do
1531 if test "$withval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1538 ol_with_yielding_select="$ol_arg"
1541 ol_with_yielding_select="auto"
1543 # end --with-yielding_select
1546 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1547 if test "${with_xxldapdoptions+set}" = set; then
1548 withval="$with_xxldapdoptions"
1552 # OpenLDAP --enable-ldapd
1553 # Check whether --enable-ldapd or --disable-ldapd was given.
1554 if test "${enable_ldapd+set}" = set; then
1555 enableval="$enable_ldapd"
1558 for ol_val in auto yes no ; do
1559 if test "$enableval" = "$ol_val" ; then
1563 if test "$ol_arg" = "invalid" ; then
1564 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1566 ol_enable_ldapd="$ol_arg"
1569 ol_enable_ldapd="no"
1571 # end --enable-ldapd
1573 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1574 if test "${with_xxslapdoptions+set}" = set; then
1575 withval="$with_xxslapdoptions"
1579 # OpenLDAP --enable-slapd
1580 # Check whether --enable-slapd or --disable-slapd was given.
1581 if test "${enable_slapd+set}" = set; then
1582 enableval="$enable_slapd"
1585 for ol_val in auto yes no ; do
1586 if test "$enableval" = "$ol_val" ; then
1590 if test "$ol_arg" = "invalid" ; then
1591 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1593 ol_enable_slapd="$ol_arg"
1596 ol_enable_slapd="yes"
1598 # end --enable-slapd
1599 # OpenLDAP --enable-cleartext
1600 # Check whether --enable-cleartext or --disable-cleartext was given.
1601 if test "${enable_cleartext+set}" = set; then
1602 enableval="$enable_cleartext"
1605 for ol_val in auto yes no ; do
1606 if test "$enableval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1613 ol_enable_cleartext="$ol_arg"
1616 ol_enable_cleartext="yes"
1618 # end --enable-cleartext
1619 # OpenLDAP --enable-crypt
1620 # Check whether --enable-crypt or --disable-crypt was given.
1621 if test "${enable_crypt+set}" = set; then
1622 enableval="$enable_crypt"
1625 for ol_val in auto yes no ; do
1626 if test "$enableval" = "$ol_val" ; then
1630 if test "$ol_arg" = "invalid" ; then
1631 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1633 ol_enable_crypt="$ol_arg"
1636 ol_enable_crypt="auto"
1638 # end --enable-crypt
1639 # OpenLDAP --enable-kpasswd
1640 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1641 if test "${enable_kpasswd+set}" = set; then
1642 enableval="$enable_kpasswd"
1645 for ol_val in auto yes no ; do
1646 if test "$enableval" = "$ol_val" ; then
1650 if test "$ol_arg" = "invalid" ; then
1651 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1653 ol_enable_kpasswd="$ol_arg"
1656 ol_enable_kpasswd="no"
1658 # end --enable-kpasswd
1659 # OpenLDAP --enable-modules
1660 # Check whether --enable-modules or --disable-modules was given.
1661 if test "${enable_modules+set}" = set; then
1662 enableval="$enable_modules"
1665 for ol_val in auto yes no ; do
1666 if test "$enableval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1673 ol_enable_modules="$ol_arg"
1676 ol_enable_modules="no"
1678 # end --enable-modules
1679 # OpenLDAP --enable-multimaster
1680 # Check whether --enable-multimaster or --disable-multimaster was given.
1681 if test "${enable_multimaster+set}" = set; then
1682 enableval="$enable_multimaster"
1685 for ol_val in auto yes no ; do
1686 if test "$enableval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1693 ol_enable_multimaster="$ol_arg"
1696 ol_enable_multimaster="no"
1698 # end --enable-multimaster
1699 # OpenLDAP --enable-phonetic
1700 # Check whether --enable-phonetic or --disable-phonetic was given.
1701 if test "${enable_phonetic+set}" = set; then
1702 enableval="$enable_phonetic"
1705 for ol_val in auto yes no ; do
1706 if test "$enableval" = "$ol_val" ; then
1710 if test "$ol_arg" = "invalid" ; then
1711 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1713 ol_enable_phonetic="$ol_arg"
1716 ol_enable_phonetic="no"
1718 # end --enable-phonetic
1719 # OpenLDAP --enable-quipu
1720 # Check whether --enable-quipu or --disable-quipu was given.
1721 if test "${enable_quipu+set}" = set; then
1722 enableval="$enable_quipu"
1725 for ol_val in auto yes no ; do
1726 if test "$enableval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1733 ol_enable_quipu="$ol_arg"
1736 ol_enable_quipu="no"
1738 # end --enable-quipu
1739 # OpenLDAP --enable-rlookups
1740 # Check whether --enable-rlookups or --disable-rlookups was given.
1741 if test "${enable_rlookups+set}" = set; then
1742 enableval="$enable_rlookups"
1745 for ol_val in auto yes no ; do
1746 if test "$enableval" = "$ol_val" ; then
1750 if test "$ol_arg" = "invalid" ; then
1751 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1753 ol_enable_rlookups="$ol_arg"
1756 ol_enable_rlookups="auto"
1758 # end --enable-rlookups
1759 # OpenLDAP --enable-aci
1760 # Check whether --enable-aci or --disable-aci was given.
1761 if test "${enable_aci+set}" = set; then
1762 enableval="$enable_aci"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1773 ol_enable_aci="$ol_arg"
1779 # OpenLDAP --enable-wrappers
1780 # Check whether --enable-wrappers or --disable-wrappers was given.
1781 if test "${enable_wrappers+set}" = set; then
1782 enableval="$enable_wrappers"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1793 ol_enable_wrappers="$ol_arg"
1796 ol_enable_wrappers="no"
1798 # end --enable-wrappers
1799 # OpenLDAP --enable-dynamic
1800 # Check whether --enable-dynamic or --disable-dynamic was given.
1801 if test "${enable_dynamic+set}" = set; then
1802 enableval="$enable_dynamic"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1813 ol_enable_dynamic="$ol_arg"
1816 ol_enable_dynamic="no"
1818 # end --enable-dynamic
1820 # OpenLDAP --enable-bdb2
1821 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1822 if test "${enable_bdb2+set}" = set; then
1823 enableval="$enable_bdb2"
1826 for ol_val in auto yes no ; do
1827 if test "$enableval" = "$ol_val" ; then
1831 if test "$ol_arg" = "invalid" ; then
1832 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1834 ol_enable_bdb2="$ol_arg"
1840 # OpenLDAP --with-bdb2_module
1841 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1842 if test "${with_bdb2_module+set}" = set; then
1843 withval="$with_bdb2_module"
1846 for ol_val in static dynamic ; do
1847 if test "$withval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1854 ol_with_bdb2_module="$ol_arg"
1857 ol_with_bdb2_module="static"
1859 # end --with-bdb2_module
1861 # OpenLDAP --enable-ldap
1862 # Check whether --enable-ldap or --disable-ldap was given.
1863 if test "${enable_ldap+set}" = set; then
1864 enableval="$enable_ldap"
1867 for ol_val in auto yes no ; do
1868 if test "$enableval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1875 ol_enable_ldap="$ol_arg"
1881 # OpenLDAP --with-ldap_module
1882 # Check whether --with-ldap_module or --without-ldap_module was given.
1883 if test "${with_ldap_module+set}" = set; then
1884 withval="$with_ldap_module"
1887 for ol_val in static dynamic ; do
1888 if test "$withval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1895 ol_with_ldap_module="$ol_arg"
1898 ol_with_ldap_module="static"
1900 # end --with-ldap_module
1902 # OpenLDAP --enable-ldbm
1903 # Check whether --enable-ldbm or --disable-ldbm was given.
1904 if test "${enable_ldbm+set}" = set; then
1905 enableval="$enable_ldbm"
1908 for ol_val in auto yes no ; do
1909 if test "$enableval" = "$ol_val" ; then
1913 if test "$ol_arg" = "invalid" ; then
1914 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1916 ol_enable_ldbm="$ol_arg"
1919 ol_enable_ldbm="yes"
1922 # OpenLDAP --with-ldbm_api
1923 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1924 if test "${with_ldbm_api+set}" = set; then
1925 withval="$with_ldbm_api"
1928 for ol_val in auto db2 db mdbm gdbm manual ; do
1929 if test "$withval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1936 ol_with_ldbm_api="$ol_arg"
1939 ol_with_ldbm_api="auto"
1941 # end --with-ldbm_api
1943 # OpenLDAP --with-ldbm_module
1944 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1945 if test "${with_ldbm_module+set}" = set; then
1946 withval="$with_ldbm_module"
1949 for ol_val in static dynamic ; do
1950 if test "$withval" = "$ol_val" ; then
1954 if test "$ol_arg" = "invalid" ; then
1955 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1957 ol_with_ldbm_module="$ol_arg"
1960 ol_with_ldbm_module="static"
1962 # end --with-ldbm_module
1964 # OpenLDAP --with-ldbm_type
1965 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1966 if test "${with_ldbm_type+set}" = set; then
1967 withval="$with_ldbm_type"
1970 for ol_val in auto btree hash ; do
1971 if test "$withval" = "$ol_val" ; then
1975 if test "$ol_arg" = "invalid" ; then
1976 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1978 ol_with_ldbm_type="$ol_arg"
1981 ol_with_ldbm_type="auto"
1983 # end --with-ldbm_type
1986 # OpenLDAP --enable-passwd
1987 # Check whether --enable-passwd or --disable-passwd was given.
1988 if test "${enable_passwd+set}" = set; then
1989 enableval="$enable_passwd"
1992 for ol_val in auto yes no ; do
1993 if test "$enableval" = "$ol_val" ; then
1997 if test "$ol_arg" = "invalid" ; then
1998 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2000 ol_enable_passwd="$ol_arg"
2003 ol_enable_passwd="no"
2005 # end --enable-passwd
2006 # OpenLDAP --with-passwd_module
2007 # Check whether --with-passwd_module or --without-passwd_module was given.
2008 if test "${with_passwd_module+set}" = set; then
2009 withval="$with_passwd_module"
2012 for ol_val in static dynamic ; do
2013 if test "$withval" = "$ol_val" ; then
2017 if test "$ol_arg" = "invalid" ; then
2018 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2020 ol_with_passwd_module="$ol_arg"
2023 ol_with_passwd_module="static"
2025 # end --with-passwd_module
2027 # OpenLDAP --enable-perl
2028 # Check whether --enable-perl or --disable-perl was given.
2029 if test "${enable_perl+set}" = set; then
2030 enableval="$enable_perl"
2033 for ol_val in auto yes no ; do
2034 if test "$enableval" = "$ol_val" ; then
2038 if test "$ol_arg" = "invalid" ; then
2039 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2041 ol_enable_perl="$ol_arg"
2047 # OpenLDAP --with-perl_module
2048 # Check whether --with-perl_module or --without-perl_module was given.
2049 if test "${with_perl_module+set}" = set; then
2050 withval="$with_perl_module"
2053 for ol_val in static dynamic ; do
2054 if test "$withval" = "$ol_val" ; then
2058 if test "$ol_arg" = "invalid" ; then
2059 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2061 ol_with_perl_module="$ol_arg"
2064 ol_with_perl_module="static"
2066 # end --with-perl_module
2068 # OpenLDAP --enable-shell
2069 # Check whether --enable-shell or --disable-shell was given.
2070 if test "${enable_shell+set}" = set; then
2071 enableval="$enable_shell"
2074 for ol_val in auto yes no ; do
2075 if test "$enableval" = "$ol_val" ; then
2079 if test "$ol_arg" = "invalid" ; then
2080 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2082 ol_enable_shell="$ol_arg"
2085 ol_enable_shell="no"
2087 # end --enable-shell
2088 # OpenLDAP --with-shell_module
2089 # Check whether --with-shell_module or --without-shell_module was given.
2090 if test "${with_shell_module+set}" = set; then
2091 withval="$with_shell_module"
2094 for ol_val in static dynamic ; do
2095 if test "$withval" = "$ol_val" ; then
2099 if test "$ol_arg" = "invalid" ; then
2100 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2102 ol_with_shell_module="$ol_arg"
2105 ol_with_shell_module="static"
2107 # end --with-shell_module
2109 # OpenLDAP --enable-tcl
2110 # Check whether --enable-tcl or --disable-tcl was given.
2111 if test "${enable_tcl+set}" = set; then
2112 enableval="$enable_tcl"
2115 for ol_val in auto yes no ; do
2116 if test "$enableval" = "$ol_val" ; then
2120 if test "$ol_arg" = "invalid" ; then
2121 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2123 ol_enable_tcl="$ol_arg"
2129 # OpenLDAP --with-tcl_module
2130 # Check whether --with-tcl_module or --without-tcl_module was given.
2131 if test "${with_tcl_module+set}" = set; then
2132 withval="$with_tcl_module"
2135 for ol_val in static dynamic ; do
2136 if test "$withval" = "$ol_val" ; then
2140 if test "$ol_arg" = "invalid" ; then
2141 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2143 ol_with_tcl_module="$ol_arg"
2146 ol_with_tcl_module="static"
2148 # end --with-tcl_module
2150 # OpenLDAP --enable-sql
2151 # Check whether --enable-sql or --disable-sql was given.
2152 if test "${enable_sql+set}" = set; then
2153 enableval="$enable_sql"
2156 for ol_val in auto yes no ; do
2157 if test "$enableval" = "$ol_val" ; then
2161 if test "$ol_arg" = "invalid" ; then
2162 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2164 ol_enable_sql="$ol_arg"
2170 # OpenLDAP --with-sql_module
2171 # Check whether --with-sql_module or --without-sql_module was given.
2172 if test "${with_sql_module+set}" = set; then
2173 withval="$with_sql_module"
2176 for ol_val in static dynamic ; do
2177 if test "$withval" = "$ol_val" ; then
2181 if test "$ol_arg" = "invalid" ; then
2182 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2184 ol_with_sql_module="$ol_arg"
2187 ol_with_sql_module="static"
2189 # end --with-sql_module
2192 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2193 if test "${with_xxslurpdoptions+set}" = set; then
2194 withval="$with_xxslurpdoptions"
2198 # OpenLDAP --enable-slurpd
2199 # Check whether --enable-slurpd or --disable-slurpd was given.
2200 if test "${enable_slurpd+set}" = set; then
2201 enableval="$enable_slurpd"
2204 for ol_val in auto yes no ; do
2205 if test "$enableval" = "$ol_val" ; then
2209 if test "$ol_arg" = "invalid" ; then
2210 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2212 ol_enable_slurpd="$ol_arg"
2215 ol_enable_slurpd="auto"
2217 # end --enable-slurpd
2219 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2220 if test "${with_xxliboptions+set}" = set; then
2221 withval="$with_xxliboptions"
2225 # Check whether --enable-static or --disable-static was given.
2226 if test "${enable_static+set}" = set; then
2227 enableval="$enable_static"
2228 p=${PACKAGE-default}
2229 case "$enableval" in
2230 yes) enable_static=yes ;;
2231 no) enable_static=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
2248 # Check whether --enable-shared or --disable-shared was given.
2249 if test "${enable_shared+set}" = set; then
2250 enableval="$enable_shared"
2251 p=${PACKAGE-default}
2252 case "$enableval" in
2253 yes) enable_shared=yes ;;
2254 no) enable_shared=no ;;
2257 # Look at the argument we got. We use all the common list separators.
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2259 for pkg in $enableval; do
2260 if test "X$pkg" = "X$p"; then
2274 if test $ol_enable_dns = yes ; then
2275 if test $ol_enable_referrals = no ; then
2276 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2278 if test $ol_enable_referrals = auto ; then
2279 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2280 ol_enable_referrals=yes
2284 if test $ol_enable_slapd = no ; then
2285 if test $ol_enable_bdb2 = yes ; then
2286 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2288 if test $ol_enable_ldap = yes ; then
2289 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2291 if test $ol_enable_ldbm = yes ; then
2292 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2294 if test $ol_enable_passwd = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2297 if test $ol_enable_perl = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2300 if test $ol_enable_shell = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2303 if test $ol_enable_tcl = yes ; then
2304 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2306 if test $ol_enable_sql = yes ; then
2307 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2309 if test $ol_enable_modules = yes ; then
2310 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2312 if test $ol_enable_multimaster = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2315 if test $ol_enable_wrappers = yes ; then
2316 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2318 if test $ol_enable_phonetic = yes ; then
2319 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2321 if test $ol_enable_quipu = yes ; then
2322 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2324 if test $ol_enable_rlookups = yes ; then
2325 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2327 if test $ol_enable_aci = yes ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2330 if test $ol_with_ldbm_api != auto ; then
2331 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2333 if test $ol_with_ldbm_type != auto ; then
2334 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2336 if test $ol_with_bdb2_module != static ; then
2337 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2339 if test $ol_with_ldap_module != static ; then
2340 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2342 if test $ol_with_ldbm_module != static ; then
2343 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2345 if test $ol_with_passwd_module != static ; then
2346 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2348 if test $ol_with_perl_module != static ; then
2349 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2351 if test $ol_with_shell_module != static ; then
2352 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2354 if test $ol_with_tcl_module != static ; then
2355 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2357 if test $ol_with_sql_module != static ; then
2358 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2360 if test $ol_enable_slurpd = yes ; then
2361 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2364 # force settings to no
2374 ol_enable_modules=no
2375 ol_enable_multimaster=no
2376 ol_enable_phonetic=no
2378 ol_enable_rlookups=no
2380 ol_enable_wrappers=no
2381 ol_enable_dynamic=no
2384 ol_with_ldbm_type=no
2386 ol_with_bdb2_module=static
2387 ol_with_ldap_module=static
2388 ol_with_ldbm_module=static
2389 ol_with_passwd_module=static
2390 ol_with_perl_module=static
2391 ol_with_shell_module=static
2392 ol_with_tcl_module=static
2393 ol_with_sql_module=static
2397 elif test $ol_enable_ldbm = no ; then
2399 if test $ol_with_ldbm_api != auto ; then
2400 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2403 if test $ol_with_ldbm_type != auto ; then
2404 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2407 if test $ol_with_ldbm_module != static ; then
2408 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2411 if test $ol_enable_bdb2 = yes ; then
2412 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2415 if test $ol_enable_modules != yes -a \
2416 $ol_enable_ldap = no -a \
2417 $ol_enable_passwd = no -a \
2418 $ol_enable_perl = no -a \
2419 $ol_enable_shell = no -a \
2420 $ol_enable_tcl = no -a \
2421 $ol_enable_sql = no ; then
2422 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2426 ol_with_ldbm_type=no
2427 ol_with_ldbm_module=static
2429 elif test $ol_enable_bdb2 = yes ; then
2431 if test $ol_with_ldbm_api != auto -a \
2432 $ol_with_ldbm_api != db2 ; then
2433 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2436 ol_with_ldbm_api=db2
2440 if test $ol_enable_bdb2 != no ; then
2441 if test $ol_with_ldbm_api != auto -a \
2442 $ol_with_ldbm_api != db2 ; then
2443 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2448 if test $ol_with_ldbm_api = gdbm -a \
2449 $ol_with_ldbm_type = btree ; then
2450 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2452 if test $ol_with_ldbm_api = mdbm -a \
2453 $ol_with_ldbm_type = btree ; then
2454 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2456 if test $ol_with_ldbm_api = ndbm -a \
2457 $ol_with_ldbm_type = btree ; then
2458 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2462 if test $ol_enable_slurpd = yes ; then
2463 if test $ol_with_threads = no ; then
2464 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2468 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2469 if test $ol_with_kerberos = no ; then
2470 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2472 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2473 if test $ol_with_kerberos != auto ; then
2474 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2480 echo "$ac_t""done" 1>&6
2507 BUILD_BDB2_DYNAMIC=static
2508 BUILD_LDAP_DYNAMIC=static
2509 BUILD_LDBM_DYNAMIC=static
2510 BUILD_PASSWD_DYNAMIC=static
2511 BUILD_PERL_DYNAMIC=static
2512 BUILD_SHELL_DYNAMIC=static
2513 BUILD_TCL_DYNAMIC=static
2514 BUILD_SQL_DYNAMIC=static
2516 SLAPD_MODULES_LDFLAGS=
2517 SLAPD_MODULES_CPPFLAGS=
2539 cat >> confdefs.h <<\EOF
2540 #define HAVE_MKVERSION 1
2548 *-*-aix*) if test -z "$CC" ; then
2549 case "$ol_with_threads" in
2550 auto | yes | posix) ol_aix_threads=yes ;;
2556 if test $ol_aix_threads = yes ; then
2557 if test -z "${CC}" ; then
2558 for ac_prog in cc_r xlc_r cc
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_word" >&5
2564 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2572 for ac_dir in $ac_dummy; do
2573 test -z "$ac_dir" && ac_dir=.
2574 if test -f $ac_dir/$ac_word; then
2575 ac_cv_prog_CC="$ac_prog"
2583 if test -n "$CC"; then
2584 echo "$ac_t""$CC" 1>&6
2586 echo "$ac_t""no" 1>&6
2589 test -n "$CC" && break
2593 if test "$CC" = cc ; then
2594 if test $ol_with_threads != auto ; then
2595 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2597 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2603 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2604 ol_with_threads=posix
2605 ol_cv_pthread_create=yes
2609 if test -z "${CC}"; then
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_word" >&5
2616 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2624 for ac_dir in $ac_dummy; do
2625 test -z "$ac_dir" && ac_dir=.
2626 if test -f $ac_dir/$ac_word; then
2627 ac_cv_prog_CC="$ac_prog"
2635 if test -n "$CC"; then
2636 echo "$ac_t""$CC" 1>&6
2638 echo "$ac_t""no" 1>&6
2641 test -n "$CC" && break
2649 # Check whether --enable-fast-install or --disable-fast-install was given.
2650 if test "${enable_fast_install+set}" = set; then
2651 enableval="$enable_fast_install"
2652 p=${PACKAGE-default}
2653 case "$enableval" in
2654 yes) enable_fast_install=yes ;;
2655 no) enable_fast_install=no ;;
2657 enable_fast_install=no
2658 # Look at the argument we got. We use all the common list separators.
2659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2660 for pkg in $enableval; do
2661 if test "X$pkg" = "X$p"; then
2662 enable_fast_install=yes
2669 enable_fast_install=yes
2672 # Extract the first word of "ranlib", so it can be a program name with args.
2673 set dummy ranlib; ac_word=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 if test -n "$RANLIB"; then
2680 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2684 for ac_dir in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir=.
2686 if test -f $ac_dir/$ac_word; then
2687 ac_cv_prog_RANLIB="ranlib"
2692 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2695 RANLIB="$ac_cv_prog_RANLIB"
2696 if test -n "$RANLIB"; then
2697 echo "$ac_t""$RANLIB" 1>&6
2699 echo "$ac_t""no" 1>&6
2702 # Extract the first word of "gcc", so it can be a program name with args.
2703 set dummy gcc; ac_word=$2
2704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_word" >&5
2706 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2714 for ac_dir in $ac_dummy; do
2715 test -z "$ac_dir" && ac_dir=.
2716 if test -f $ac_dir/$ac_word; then
2725 if test -n "$CC"; then
2726 echo "$ac_t""$CC" 1>&6
2728 echo "$ac_t""no" 1>&6
2731 if test -z "$CC"; then
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc; ac_word=$2
2734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_word" >&5
2736 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2745 for ac_dir in $ac_dummy; do
2746 test -z "$ac_dir" && ac_dir=.
2747 if test -f $ac_dir/$ac_word; then
2748 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2749 ac_prog_rejected=yes
2757 if test $ac_prog_rejected = yes; then
2758 # We found a bogon in the path, so make sure we never use it.
2759 set dummy $ac_cv_prog_CC
2761 if test $# -gt 0; then
2762 # We chose a different compiler from the bogus one.
2763 # However, it has the same basename, so the bogon will be chosen
2764 # first if we set CC to just the basename; use the full file name.
2766 set dummy "$ac_dir/$ac_word" "$@"
2774 if test -n "$CC"; then
2775 echo "$ac_t""$CC" 1>&6
2777 echo "$ac_t""no" 1>&6
2780 if test -z "$CC"; then
2781 case "`uname -s`" in
2782 *win32* | *WIN32* | *CYGWIN*)
2783 # Extract the first word of "cl", so it can be a program name with args.
2784 set dummy cl; ac_word=$2
2785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2786 echo "configure:2787: checking for $ac_word" >&5
2787 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2795 for ac_dir in $ac_dummy; do
2796 test -z "$ac_dir" && ac_dir=.
2797 if test -f $ac_dir/$ac_word; then
2806 if test -n "$CC"; then
2807 echo "$ac_t""$CC" 1>&6
2809 echo "$ac_t""no" 1>&6
2814 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2818 echo "configure:2819: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2825 cross_compiling=$ac_cv_prog_cc_cross
2827 cat > conftest.$ac_ext << EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2835 ac_cv_prog_cc_works=yes
2836 # If we can't run a trivial program, we are probably using a cross compiler.
2837 if (./conftest; exit) 2>/dev/null; then
2838 ac_cv_prog_cc_cross=no
2840 ac_cv_prog_cc_cross=yes
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845 ac_cv_prog_cc_works=no
2849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2853 cross_compiling=$ac_cv_prog_cc_cross
2855 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2856 if test $ac_cv_prog_cc_works = no; then
2857 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2860 echo "configure:2861: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2861 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2862 cross_compiling=$ac_cv_prog_cc_cross
2864 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2865 echo "configure:2866: checking whether we are using GNU C" >&5
2866 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.c <<EOF
2874 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2881 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2883 if test $ac_cv_prog_gcc = yes; then
2889 ac_test_CFLAGS="${CFLAGS+set}"
2890 ac_save_CFLAGS="$CFLAGS"
2892 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2893 echo "configure:2894: checking whether ${CC-cc} accepts -g" >&5
2894 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 echo 'void f(){}' > conftest.c
2898 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2907 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2908 if test "$ac_test_CFLAGS" = set; then
2909 CFLAGS="$ac_save_CFLAGS"
2910 elif test $ac_cv_prog_cc_g = yes; then
2911 if test "$GCC" = yes; then
2917 if test "$GCC" = yes; then
2924 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2925 if test "${with_gnu_ld+set}" = set; then
2926 withval="$with_gnu_ld"
2927 test "$withval" = no || with_gnu_ld=yes
2933 if test "$ac_cv_prog_gcc" = yes; then
2934 # Check if gcc -print-prog-name=ld gives a path.
2935 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2936 echo "configure:2937: checking for ld used by GCC" >&5
2937 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2939 # Accept absolute paths.
2940 [\\/]* | [A-Za-z]:[\\/]*)
2941 re_direlt='/[^/][^/]*/\.\./'
2942 # Canonicalize the path of ld
2943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2947 test -z "$LD" && LD="$ac_prog"
2950 # If it fails, then pretend we aren't using GCC.
2954 # If it is relative, then search for the first ld in PATH.
2958 elif test "$with_gnu_ld" = yes; then
2959 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2960 echo "configure:2961: checking for GNU ld" >&5
2962 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2963 echo "configure:2964: checking for non-GNU ld" >&5
2965 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 if test -z "$LD"; then
2969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2970 for ac_dir in $PATH; do
2971 test -z "$ac_dir" && ac_dir=.
2972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2973 ac_cv_path_LD="$ac_dir/$ac_prog"
2974 # Check to see if the program is GNU ld. I'd rather use --version,
2975 # but apparently some GNU ld's only accept -v.
2976 # Break only if it was the GNU/non-GNU ld that we prefer.
2977 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2978 test "$with_gnu_ld" != no && break
2980 test "$with_gnu_ld" != yes && break
2986 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2991 if test -n "$LD"; then
2992 echo "$ac_t""$LD" 1>&6
2994 echo "$ac_t""no" 1>&6
2996 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2998 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2999 echo "configure:3000: checking if the linker ($LD) is GNU ld" >&5
3000 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3004 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3005 ac_cv_prog_gnu_ld=yes
3007 ac_cv_prog_gnu_ld=no
3011 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3014 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3015 echo "configure:3016: checking for BSD-compatible nm" >&5
3016 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -n "$NM"; then
3020 # Let the user override the test.
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3024 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3027 # Check to see if the nm accepts a BSD-compat flag.
3028 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3029 # nm: unknown option "B" ignored
3030 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3031 ac_cv_path_NM="$ac_dir/nm -B"
3033 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3034 ac_cv_path_NM="$ac_dir/nm -p"
3037 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3038 continue # so that we can try to find one that supports BSD flags
3043 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3048 echo "$ac_t""$NM" 1>&6
3051 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3052 echo "configure:3053: checking whether ln -s works" >&5
3053 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3057 if ln -s X conftestdata 2>/dev/null
3060 ac_cv_prog_LN_S="ln -s"
3065 LN_S="$ac_cv_prog_LN_S"
3066 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3067 echo "$ac_t""yes" 1>&6
3069 echo "$ac_t""no" 1>&6
3072 if test $host != $build; then
3073 ac_tool_prefix=${host_alias}-
3079 # Check for any special flags to pass to ltconfig.
3080 libtool_flags="--cache-file=$cache_file"
3081 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3082 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3083 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3084 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3085 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3086 libtool_flags="$libtool_flags --enable-dlopen"
3087 libtool_flags="$libtool_flags --enable-win32-dll"
3088 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3089 if test "${enable_libtool_lock+set}" = set; then
3090 enableval="$enable_libtool_lock"
3094 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3095 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3097 # Some flags need to be propagated to the compiler or linker for good
3101 # Find out which ABI we are using.
3102 echo '#line 3103 "configure"' > conftest.$ac_ext
3103 if { (eval echo configure:3104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 case "`/usr/bin/file conftest.o`" in
3120 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3121 SAVE_CFLAGS="$CFLAGS"
3122 CFLAGS="$CFLAGS -belf"
3123 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3124 echo "configure:3125: checking whether the C compiler needs -belf" >&5
3125 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3138 lt_cv_cc_needs_belf=yes
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3143 lt_cv_cc_needs_belf=no
3148 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3149 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3150 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3151 CFLAGS="$SAVE_CFLAGS"
3155 *-*-cygwin* | *-*-mingw*)
3156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3159 echo "configure:3160: checking for $ac_word" >&5
3160 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 if test -n "$DLLTOOL"; then
3164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3168 for ac_dir in $ac_dummy; do
3169 test -z "$ac_dir" && ac_dir=.
3170 if test -f $ac_dir/$ac_word; then
3171 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3178 DLLTOOL="$ac_cv_prog_DLLTOOL"
3179 if test -n "$DLLTOOL"; then
3180 echo "$ac_t""$DLLTOOL" 1>&6
3182 echo "$ac_t""no" 1>&6
3186 if test -z "$ac_cv_prog_DLLTOOL"; then
3187 if test -n "$ac_tool_prefix"; then
3188 # Extract the first word of "dlltool", so it can be a program name with args.
3189 set dummy dlltool; ac_word=$2
3190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3191 echo "configure:3192: checking for $ac_word" >&5
3192 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 if test -n "$DLLTOOL"; then
3196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3200 for ac_dir in $ac_dummy; do
3201 test -z "$ac_dir" && ac_dir=.
3202 if test -f $ac_dir/$ac_word; then
3203 ac_cv_prog_DLLTOOL="dlltool"
3208 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3211 DLLTOOL="$ac_cv_prog_DLLTOOL"
3212 if test -n "$DLLTOOL"; then
3213 echo "$ac_t""$DLLTOOL" 1>&6
3215 echo "$ac_t""no" 1>&6
3223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}as; ac_word=$2
3225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3226 echo "configure:3227: checking for $ac_word" >&5
3227 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 if test -n "$AS"; then
3231 ac_cv_prog_AS="$AS" # Let the user override the test.
3233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 for ac_dir in $ac_dummy; do
3236 test -z "$ac_dir" && ac_dir=.
3237 if test -f $ac_dir/$ac_word; then
3238 ac_cv_prog_AS="${ac_tool_prefix}as"
3246 if test -n "$AS"; then
3247 echo "$ac_t""$AS" 1>&6
3249 echo "$ac_t""no" 1>&6
3253 if test -z "$ac_cv_prog_AS"; then
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "as", so it can be a program name with args.
3256 set dummy as; ac_word=$2
3257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_word" >&5
3259 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 if test -n "$AS"; then
3263 ac_cv_prog_AS="$AS" # Let the user override the test.
3265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3267 for ac_dir in $ac_dummy; do
3268 test -z "$ac_dir" && ac_dir=.
3269 if test -f $ac_dir/$ac_word; then
3275 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3279 if test -n "$AS"; then
3280 echo "$ac_t""$AS" 1>&6
3282 echo "$ac_t""no" 1>&6
3290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3293 echo "configure:3294: checking for $ac_word" >&5
3294 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 if test -n "$OBJDUMP"; then
3298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3302 for ac_dir in $ac_dummy; do
3303 test -z "$ac_dir" && ac_dir=.
3304 if test -f $ac_dir/$ac_word; then
3305 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3312 OBJDUMP="$ac_cv_prog_OBJDUMP"
3313 if test -n "$OBJDUMP"; then
3314 echo "$ac_t""$OBJDUMP" 1>&6
3316 echo "$ac_t""no" 1>&6
3320 if test -z "$ac_cv_prog_OBJDUMP"; then
3321 if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "objdump", so it can be a program name with args.
3323 set dummy objdump; ac_word=$2
3324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_word" >&5
3326 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 if test -n "$OBJDUMP"; then
3330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3334 for ac_dir in $ac_dummy; do
3335 test -z "$ac_dir" && ac_dir=.
3336 if test -f $ac_dir/$ac_word; then
3337 ac_cv_prog_OBJDUMP="objdump"
3342 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3345 OBJDUMP="$ac_cv_prog_OBJDUMP"
3346 if test -n "$OBJDUMP"; then
3347 echo "$ac_t""$OBJDUMP" 1>&6
3349 echo "$ac_t""no" 1>&6
3362 # Save cache, so that ltconfig can load it
3365 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3366 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3367 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3368 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3369 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3370 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3371 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3372 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3374 # Reload cache, that may have been modified by ltconfig
3377 # This can be used to rebuild libtool when needed
3378 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3380 # Always use our own libtool.
3381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3383 # Redirect the config.log output again, so that the ltconfig log is not
3384 # clobbered by the next message.
3385 exec 5>>./config.log
3388 for ac_prog in mawk gawk nawk awk
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3393 echo "configure:3394: checking for $ac_word" >&5
3394 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 if test -n "$AWK"; then
3398 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3402 for ac_dir in $ac_dummy; do
3403 test -z "$ac_dir" && ac_dir=.
3404 if test -f $ac_dir/$ac_word; then
3405 ac_cv_prog_AWK="$ac_prog"
3412 AWK="$ac_cv_prog_AWK"
3413 if test -n "$AWK"; then
3414 echo "$ac_t""$AWK" 1>&6
3416 echo "$ac_t""no" 1>&6
3419 test -n "$AWK" && break
3422 # test for ln hardlink support
3423 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3424 echo "configure:3425: checking whether ln works" >&5
3425 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 rm -f conftest.src conftest.dst
3429 echo "conftest" > conftest.src
3430 if ln conftest.src conftest.dst 2>/dev/null
3432 ol_cv_prog_LN_H="ln"
3434 ol_cv_prog_LN_H="cp"
3436 rm -f conftest.src conftest.dst
3439 LN_H="$ol_cv_prog_LN_H"
3440 if test "$ol_cv_prog_LN_H" = "ln"; then
3441 echo "$ac_t""yes" 1>&6
3443 echo "$ac_t""no" 1>&6
3446 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3447 echo "configure:3448: checking whether ln -s works" >&5
3448 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3452 if ln -s X conftestdata 2>/dev/null
3455 ac_cv_prog_LN_S="ln -s"
3460 LN_S="$ac_cv_prog_LN_S"
3461 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3462 echo "$ac_t""yes" 1>&6
3464 echo "$ac_t""no" 1>&6
3468 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3472 # Extract the first word of "sendmail", so it can be a program name with args.
3473 set dummy sendmail; ac_word=$2
3474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3475 echo "configure:3476: checking for $ac_word" >&5
3476 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3481 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3484 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3489 for ac_dir in $ac_dummy; do
3490 test -z "$ac_dir" && ac_dir=.
3491 if test -f $ac_dir/$ac_word; then
3492 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3497 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3501 SENDMAIL="$ac_cv_path_SENDMAIL"
3502 if test -n "$SENDMAIL"; then
3503 echo "$ac_t""$SENDMAIL" 1>&6
3505 echo "$ac_t""no" 1>&6
3508 # Extract the first word of "vi", so it can be a program name with args.
3509 set dummy vi; ac_word=$2
3510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_word" >&5
3512 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3517 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3520 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3524 ac_dummy="$PATH:/usr/ucb"
3525 for ac_dir in $ac_dummy; do
3526 test -z "$ac_dir" && ac_dir=.
3527 if test -f $ac_dir/$ac_word; then
3528 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3533 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3537 EDITOR="$ac_cv_path_EDITOR"
3538 if test -n "$EDITOR"; then
3539 echo "$ac_t""$EDITOR" 1>&6
3541 echo "$ac_t""no" 1>&6
3544 # Extract the first word of "finger", so it can be a program name with args.
3545 set dummy finger; ac_word=$2
3546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3547 echo "configure:3548: checking for $ac_word" >&5
3548 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3556 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3560 ac_dummy="$PATH:/usr/ucb"
3561 for ac_dir in $ac_dummy; do
3562 test -z "$ac_dir" && ac_dir=.
3563 if test -f $ac_dir/$ac_word; then
3564 ac_cv_path_FINGER="$ac_dir/$ac_word"
3569 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3573 FINGER="$ac_cv_path_FINGER"
3574 if test -n "$FINGER"; then
3575 echo "$ac_t""$FINGER" 1>&6
3577 echo "$ac_t""no" 1>&6
3582 if test $ol_enable_perl != no ; then
3583 # Extract the first word of "perl", so it can be a program name with args.
3584 set dummy perl; ac_word=$2
3585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3586 echo "configure:3587: checking for $ac_word" >&5
3587 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3592 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3595 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3600 for ac_dir in $ac_dummy; do
3601 test -z "$ac_dir" && ac_dir=.
3602 if test -f $ac_dir/$ac_word; then
3603 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3608 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3612 PERLBIN="$ac_cv_path_PERLBIN"
3613 if test -n "$PERLBIN"; then
3614 echo "$ac_t""$PERLBIN" 1>&6
3616 echo "$ac_t""no" 1>&6
3620 if test "no$PERLBIN" = "no" ; then
3621 if test $ol_enable_perl = yes ; then
3622 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3626 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3627 if test x"$ol_with_perl_module" = "xstatic" ; then
3628 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3630 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3636 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3637 echo "configure:3638: checking how to run the C preprocessor" >&5
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3642 if test -z "$CPP"; then
3643 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 # This must be in double quotes, not single quotes, because CPP may get
3647 # substituted into the Makefile and "${CC-cc}" will confuse make.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp.
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
3667 CPP="${CC-cc} -E -traditional-cpp"
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3675 { (eval echo configure:3676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3677 if test -z "$ac_err"; then
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 CPP="${CC-cc} -nologo -E"
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3692 { (eval echo configure:3693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3694 if test -z "$ac_err"; then
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3708 ac_cv_prog_CPP="$CPP"
3710 CPP="$ac_cv_prog_CPP"
3712 ac_cv_prog_CPP="$CPP"
3714 echo "$ac_t""$CPP" 1>&6
3717 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3718 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3720 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3721 echo "configure: warning: programs compiled here do run here..." 1>&2
3722 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3724 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3725 echo "configure: warning: programs compiled here do not run here..." 1>&2
3726 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3729 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3730 echo "configure:3731: checking for AIX" >&5
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3740 egrep "yes" >/dev/null 2>&1; then
3742 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3743 #define _ALL_SOURCE 1
3748 echo "$ac_t""no" 1>&6
3753 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3754 echo "configure:3755: checking for POSIXized ISC" >&5
3755 if test -d /etc/conf/kconfig.d &&
3756 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3758 echo "$ac_t""yes" 1>&6
3759 ISC=yes # If later tests want to check for ISC.
3760 cat >> confdefs.h <<\EOF
3761 #define _POSIX_SOURCE 1
3764 if test "$GCC" = yes; then
3770 echo "$ac_t""no" 1>&6
3774 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3775 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3776 echo "configure:3777: checking for minix/config.h" >&5
3777 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 #include <minix/config.h>
3785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3786 { (eval echo configure:3787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3788 if test -z "$ac_err"; then
3790 eval "ac_cv_header_$ac_safe=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3796 eval "ac_cv_header_$ac_safe=no"
3800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3804 echo "$ac_t""no" 1>&6
3808 if test "$MINIX" = yes; then
3809 cat >> confdefs.h <<\EOF
3810 #define _POSIX_SOURCE 1
3813 cat >> confdefs.h <<\EOF
3814 #define _POSIX_1_SOURCE 2
3817 cat >> confdefs.h <<\EOF
3824 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3825 echo "configure:3826: checking for Cygwin environment" >&5
3826 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3836 #define __CYGWIN__ __CYGWIN32__
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3853 echo "$ac_t""$ac_cv_cygwin" 1>&6
3855 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3856 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3857 echo "configure:3858: checking for mingw32 environment" >&5
3858 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3869 if { (eval echo configure:3870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3881 echo "$ac_t""$ac_cv_mingw32" 1>&6
3883 test "$ac_cv_mingw32" = yes && MINGW32=yes
3884 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3885 echo "configure:3886: checking for EMX OS/2 environment" >&5
3886 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3897 if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3909 echo "$ac_t""$ac_cv_emxos2" 1>&6
3911 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3915 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3916 echo "configure:3917: checking for executable suffix" >&5
3917 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3924 echo 'int main () { return 0; }' > conftest.$ac_ext
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3927 for file in conftest.*; do
3929 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3930 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3934 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3937 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3942 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3943 echo "$ac_t""${ac_cv_exeext}" 1>&6
3946 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3947 echo "configure:3948: checking for object suffix" >&5
3948 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 echo 'int i = 1;' > conftest.$ac_ext
3953 if { (eval echo configure:3954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 for ac_file in conftest.*; do
3957 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3961 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3966 echo "$ac_t""$ac_cv_objext" 1>&6
3967 OBJEXT=$ac_cv_objext
3968 ac_objext=$ac_cv_objext
3971 cat >> confdefs.h <<EOF
3972 #define EXEEXT "${EXEEXT}"
3976 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3977 echo "configure:3978: checking for be_app in -lbe" >&5
3978 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3979 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 ac_save_LIBS="$LIBS"
3983 LIBS="-lbe -lroot -lnet $LIBS"
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998 eval "ac_cv_lib_$ac_lib_var=yes"
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 eval "ac_cv_lib_$ac_lib_var=no"
4006 LIBS="$ac_save_LIBS"
4009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 LIBS="$LIBS -lbe -lroot -lnet"
4013 echo "$ac_t""no" 1>&6
4021 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4022 echo "configure:4023: checking for ${CC-cc} option to accept ANSI C" >&5
4023 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 am_cv_prog_cc_stdc=no
4028 # Don't try gcc -ansi; that turns off useful extensions and
4029 # breaks some systems' header files.
4030 # AIX -qlanglvl=ansi
4031 # Ultrix and OSF/1 -std1
4032 # HP-UX 10.20 and later -Ae
4033 # HP-UX older versions -Aa -D_HPUX_SOURCE
4034 # SVR4 -Xc -D__EXTENSIONS__
4035 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4037 CC="$ac_save_CC $ac_arg"
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4043 #include <sys/types.h>
4044 #include <sys/stat.h>
4045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4046 struct buf { int x; };
4047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4048 static char *e (p, i)
4054 static char *f (char * (*g) (char **, int), char **p, ...)
4059 s = g (p, va_arg (v,int));
4063 int test (int i, double x);
4064 struct s1 {int (*f) (int a);};
4065 struct s2 {int (*f) (double a);};
4066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4076 if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 am_cv_prog_cc_stdc="$ac_arg"; break
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4089 if test -z "$am_cv_prog_cc_stdc"; then
4090 echo "$ac_t""none needed" 1>&6
4092 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4094 case "x$am_cv_prog_cc_stdc" in
4096 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4099 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4100 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4103 # test for make depend flag
4106 if test -z "${MKDEP}"; then
4108 if test -z "${MKDEP_FLAGS}"; then
4109 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4110 echo "configure:4111: checking for ${OL_MKDEP} depend flag" >&5
4111 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4116 for flag in "-M" "-xM"; do
4117 cat > conftest.c <<EOF
4120 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4121 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4123 if test ! -f conftest."${ac_object}" ; then
4125 OL_MKDEP_FLAGS="$flag"
4134 echo "$ac_t""$ol_cv_mkdep" 1>&6
4137 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4142 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4147 if test "${ol_cv_mkdep}" = no ; then
4148 # this will soon become an error
4149 echo "configure: warning: do not know how to generate dependencies" 1>&2
4153 if test $ol_enable_modules != no ; then
4154 for ac_hdr in ltdl.h
4156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_hdr" >&5
4159 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4168 { (eval echo configure:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4170 if test -z "$ac_err"; then
4172 eval "ac_cv_header_$ac_safe=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 eval "ac_cv_header_$ac_safe=no"
4182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4183 echo "$ac_t""yes" 1>&6
4184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4185 cat >> confdefs.h <<EOF
4186 #define $ac_tr_hdr 1
4190 echo "$ac_t""no" 1>&6
4195 if test $ac_cv_header_ltdl_h = no ; then
4196 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4199 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4200 echo "configure:4201: checking for lt_dlinit in -lltdl" >&5
4201 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 ac_save_LIBS="$LIBS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 eval "ac_cv_lib_$ac_lib_var=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_lib_$ac_lib_var=no"
4229 LIBS="$ac_save_LIBS"
4232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4236 cat >> confdefs.h <<\EOF
4237 #define HAVE_LIBLTDL 1
4242 echo "$ac_t""no" 1>&6
4246 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4247 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4251 ol_with_bdb2_module=static
4252 ol_with_ldap_module=static
4253 ol_with_ldbm_module=static
4254 ol_with_passwd_module=static
4255 ol_with_perl_module=static
4256 ol_with_shell_module=static
4257 ol_with_tcl_module=static
4258 ol_with_sql_module=static
4262 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4263 echo "configure:4264: checking for EBCDIC" >&5
4264 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4273 #include <__ASCII__/generate_error.h>
4277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4278 { (eval echo configure:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4280 if test -z "$ac_err"; then
4282 ol_cv_cpp_ebcdic=yes
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4293 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4294 if test $ol_cv_cpp_ebcdic = yes ; then
4295 cat >> confdefs.h <<\EOF
4296 #define HAVE_EBCDIC 1
4301 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4302 echo "configure:4303: checking for ANSI C header files" >&5
4303 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4315 { (eval echo configure:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4317 if test -z "$ac_err"; then
4319 ol_cv_header_stdc=yes
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4325 ol_cv_header_stdc=no
4329 if test $ol_cv_header_stdc = yes; then
4330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 egrep "memchr" >/dev/null 2>&1; then
4341 ol_cv_header_stdc=no
4347 if test $ol_cv_header_stdc = yes; then
4348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4355 egrep "free" >/dev/null 2>&1; then
4359 ol_cv_header_stdc=no
4365 if test $ol_cv_header_stdc = yes; then
4366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4367 if test "$cross_compiling" = yes; then
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4378 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4379 || ('j' <= (c) && (c) <= 'r') \
4380 || ('s' <= (c) && (c) <= 'z'))
4381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384 int main () { int i; for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 ol_cv_header_stdc=no
4404 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4405 if test $ol_cv_header_stdc = yes; then
4406 cat >> confdefs.h <<\EOF
4407 #define STDC_HEADERS 1
4411 ac_cv_header_stdc=disable
4414 if test $ol_cv_header_stdc != yes; then
4415 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4419 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4422 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_hdr that defines DIR" >&5
4424 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 #include <sys/types.h>
4436 if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4438 eval "ac_cv_header_dirent_$ac_safe=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_header_dirent_$ac_safe=no"
4447 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_hdr 1
4453 ac_header_dirent=$ac_hdr; break
4455 echo "$ac_t""no" 1>&6
4458 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4459 if test $ac_header_dirent = dirent.h; then
4460 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4461 echo "configure:4462: checking for opendir in -ldir" >&5
4462 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 ac_save_LIBS="$LIBS"
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 eval "ac_cv_lib_$ac_lib_var=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 eval "ac_cv_lib_$ac_lib_var=no"
4490 LIBS="$ac_save_LIBS"
4493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4497 echo "$ac_t""no" 1>&6
4501 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4502 echo "configure:4503: checking for opendir in -lx" >&5
4503 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4504 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 ac_save_LIBS="$LIBS"
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523 eval "ac_cv_lib_$ac_lib_var=yes"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 eval "ac_cv_lib_$ac_lib_var=no"
4531 LIBS="$ac_save_LIBS"
4534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4538 echo "$ac_t""no" 1>&6
4543 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4544 echo "configure:4545: checking for sys/wait.h that is POSIX.1 compatible" >&5
4545 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 #include <sys/types.h>
4552 #include <sys/wait.h>
4554 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4557 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4562 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4565 if { (eval echo configure:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4567 ac_cv_header_sys_wait_h=yes
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4572 ac_cv_header_sys_wait_h=no
4577 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4578 if test $ac_cv_header_sys_wait_h = yes; then
4579 cat >> confdefs.h <<\EOF
4580 #define HAVE_SYS_WAIT_H 1
4585 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4586 echo "configure:4587: checking POSIX termios" >&5
4587 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4595 #include <termios.h>
4597 /* SunOS 4.0.3 has termios.h but not the library calls. */
4601 if { (eval echo configure:4602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4603 am_cv_sys_posix_termios=yes
4605 echo "configure: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4608 am_cv_sys_posix_termios=no
4613 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4616 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4617 echo "configure:4618: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4618 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4623 gwinsz_in_termios_h=no
4624 if test $am_cv_sys_posix_termios = yes; then
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 #include <sys/types.h>
4629 # include <termios.h>
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636 egrep "yes" >/dev/null 2>&1; then
4638 gwinsz_in_termios_h=yes
4644 if test $gwinsz_in_termios_h = no; then
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 #include <sys/types.h>
4649 # include <sys/ioctl.h>
4655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4656 egrep "yes" >/dev/null 2>&1; then
4658 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4666 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4667 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4668 cat >> confdefs.h <<\EOF
4669 #define GWINSZ_IN_SYS_IOCTL 1
4674 if test $am_cv_sys_posix_termios = yes ; then
4675 cat >> confdefs.h <<\EOF
4676 #define HAVE_POSIX_TERMIOS 1
4727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_hdr" >&5
4730 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4743 eval "ac_cv_header_$ac_safe=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 eval "ac_cv_header_$ac_safe=no"
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4756 cat >> confdefs.h <<EOF
4757 #define $ac_tr_hdr 1
4761 echo "$ac_t""no" 1>&6
4768 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4769 echo "configure:4770: checking for sigset in -lV3" >&5
4770 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4771 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 ac_save_LIBS="$LIBS"
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 eval "ac_cv_lib_$ac_lib_var=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_lib_$ac_lib_var=no"
4798 LIBS="$ac_save_LIBS"
4801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_lib 1
4812 echo "$ac_t""no" 1>&6
4816 if test $ac_cv_header_winsock_h = yes; then
4817 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4818 echo "configure:4819: checking for winsock" >&5
4819 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #include <winsock.h>
4829 select(0,NULL,NULL,NULL,NULL);
4831 gethostname(NULL,0);
4835 if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4839 echo "configure: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4847 echo "$ac_t""$ol_cv_winsock" 1>&6
4849 if test $ol_cv_winsock = yes ; then
4850 cat >> confdefs.h <<\EOF
4851 #define HAVE_WINSOCK 1
4854 ac_cv_func_socket=yes
4855 ac_cv_func_select=yes
4856 ac_cv_func_closesocket=yes
4857 ac_cv_func_gethostname=yes
4862 echo $ac_n "checking for socket""... $ac_c" 1>&6
4863 echo "configure:4864: checking for socket" >&5
4864 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char socket(); below. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4881 /* The GNU C library defines this for functions which it implements
4882 to always fail with ENOSYS. Some functions are actually named
4883 something starting with __ and the normal name is an alias. */
4884 #if defined (__stub_socket) || defined (__stub___socket)
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 eval "ac_cv_func_socket=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 eval "ac_cv_func_socket=no"
4904 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4908 echo "$ac_t""no" 1>&6
4910 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4911 echo "configure:4912: checking for main in -lsocket" >&5
4912 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4913 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4916 ac_save_LIBS="$LIBS"
4917 LIBS="-lsocket $LIBS"
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 eval "ac_cv_lib_$ac_lib_var=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 eval "ac_cv_lib_$ac_lib_var=no"
4936 LIBS="$ac_save_LIBS"
4939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4943 cat >> confdefs.h <<EOF
4944 #define $ac_tr_lib 1
4947 LIBS="-lsocket $LIBS"
4950 echo "$ac_t""no" 1>&6
4953 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4954 echo "configure:4955: checking for main in -lnet" >&5
4955 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 ac_save_LIBS="$LIBS"
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971 eval "ac_cv_lib_$ac_lib_var=yes"
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4976 eval "ac_cv_lib_$ac_lib_var=no"
4979 LIBS="$ac_save_LIBS"
4982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4986 cat >> confdefs.h <<EOF
4987 #define $ac_tr_lib 1
4993 echo "$ac_t""no" 1>&6
4996 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4997 echo "configure:4998: checking for main in -lnsl_s" >&5
4998 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 ac_save_LIBS="$LIBS"
5003 LIBS="-lnsl_s $LIBS"
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 eval "ac_cv_lib_$ac_lib_var=yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 eval "ac_cv_lib_$ac_lib_var=no"
5022 LIBS="$ac_save_LIBS"
5025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5029 cat >> confdefs.h <<EOF
5030 #define $ac_tr_lib 1
5033 LIBS="-lnsl_s $LIBS"
5036 echo "$ac_t""no" 1>&6
5039 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5040 echo "configure:5041: checking for main in -lnsl" >&5
5041 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 ac_save_LIBS="$LIBS"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_lib_$ac_lib_var=yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_lib_$ac_lib_var=no"
5065 LIBS="$ac_save_LIBS"
5068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5070 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5072 cat >> confdefs.h <<EOF
5073 #define $ac_tr_lib 1
5079 echo "$ac_t""no" 1>&6
5082 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5083 echo "configure:5084: checking for socket in -linet" >&5
5084 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 ac_save_LIBS="$LIBS"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5093 /* Override any gcc2 internal prototype to avoid an error. */
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 eval "ac_cv_lib_$ac_lib_var=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 eval "ac_cv_lib_$ac_lib_var=no"
5112 LIBS="$ac_save_LIBS"
5115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5119 cat >> confdefs.h <<EOF
5120 #define $ac_tr_lib 1
5126 echo "$ac_t""no" 1>&6
5129 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5130 echo "configure:5131: checking for main in -lgen" >&5
5131 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 ac_save_LIBS="$LIBS"
5137 cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 eval "ac_cv_lib_$ac_lib_var=yes"
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5152 eval "ac_cv_lib_$ac_lib_var=no"
5155 LIBS="$ac_save_LIBS"
5158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5162 cat >> confdefs.h <<EOF
5163 #define $ac_tr_lib 1
5169 echo "$ac_t""no" 1>&6
5176 echo $ac_n "checking for select""... $ac_c" 1>&6
5177 echo "configure:5178: checking for select" >&5
5178 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 /* System header to define __stub macros and hopefully few prototypes,
5185 which can conflict with char select(); below. */
5187 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5195 /* The GNU C library defines this for functions which it implements
5196 to always fail with ENOSYS. Some functions are actually named
5197 something starting with __ and the normal name is an alias. */
5198 #if defined (__stub_select) || defined (__stub___select)
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5208 eval "ac_cv_func_select=yes"
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 eval "ac_cv_func_select=no"
5218 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5219 echo "$ac_t""yes" 1>&6
5222 echo "$ac_t""no" 1>&6
5223 { echo "configure: error: select() required." 1>&2; exit 1; }
5227 if test "${ac_cv_header_winsock_h}" != yes; then
5228 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5229 echo "configure:5230: checking types of arguments for select()" >&5
5230 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5239 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5240 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5241 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 #ifdef HAVE_SYS_TYPES_H
5246 #include <sys/types.h>
5248 #ifdef HAVE_SYS_TIME_H
5249 #include <sys/time.h>
5251 #ifdef HAVE_SYS_SELECT_H
5252 #include <sys/select.h>
5254 #ifdef HAVE_SYS_SOCKET_H
5255 #include <sys/socket.h>
5257 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);
5262 if { (eval echo configure:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5264 ac_not_found=no ; break 3
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5281 if test "$ac_not_found" = yes; then
5282 ac_cv_func_select_arg1=int
5283 ac_cv_func_select_arg234='int *'
5284 ac_cv_func_select_arg5='struct timeval *'
5286 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5287 cat >> confdefs.h <<EOF
5288 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5291 cat >> confdefs.h <<EOF
5292 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5295 cat >> confdefs.h <<EOF
5296 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5303 for ac_hdr in regex.h
5305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_hdr" >&5
5308 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5317 { (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5319 if test -z "$ac_err"; then
5321 eval "ac_cv_header_$ac_safe=yes"
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 eval "ac_cv_header_$ac_safe=no"
5331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5332 echo "$ac_t""yes" 1>&6
5333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5334 cat >> confdefs.h <<EOF
5335 #define $ac_tr_hdr 1
5339 echo "$ac_t""no" 1>&6
5343 if test "$ac_cv_header_regex_h" != yes ; then
5344 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5346 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5347 echo "configure:5348: checking for regfree" >&5
5348 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char regfree(); below. */
5357 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5365 /* The GNU C library defines this for functions which it implements
5366 to always fail with ENOSYS. Some functions are actually named
5367 something starting with __ and the normal name is an alias. */
5368 #if defined (__stub_regfree) || defined (__stub___regfree)
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 eval "ac_cv_func_regfree=yes"
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 eval "ac_cv_func_regfree=no"
5388 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5392 echo "$ac_t""no" 1>&6
5393 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5398 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5399 echo "configure:5400: checking for compatible POSIX regex" >&5
5400 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5404 if test "$cross_compiling" = yes; then
5405 ol_cv_c_posix_regex=cross
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5411 #include <sys/types.h>
5413 static char *pattern, *string;
5421 if(regcomp(&re, pattern, 0)) {
5425 string = "ALL MATCH";
5427 rc = regexec(&re, string, 0, (void*)0, 0);
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5436 ol_cv_c_posix_regex=yes
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 ol_cv_c_posix_regex=no
5448 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5450 if test "$ol_cv_c_posix_regex" = no ; then
5451 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5454 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5455 echo "configure:5456: checking for res_search" >&5
5456 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 /* System header to define __stub macros and hopefully few prototypes,
5463 which can conflict with char res_search(); below. */
5465 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5473 /* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476 #if defined (__stub_res_search) || defined (__stub___res_search)
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 eval "ac_cv_func_res_search=yes"
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 eval "ac_cv_func_res_search=no"
5496 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5497 echo "$ac_t""yes" 1>&6
5500 echo "$ac_t""no" 1>&6
5503 if test $ac_cv_func_res_search = no ; then
5504 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5505 echo "configure:5506: checking for res_search in -lbind" >&5
5506 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5507 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 ac_save_LIBS="$LIBS"
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5526 eval "ac_cv_lib_$ac_lib_var=yes"
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5531 eval "ac_cv_lib_$ac_lib_var=no"
5534 LIBS="$ac_save_LIBS"
5537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5540 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5541 cat >> confdefs.h <<EOF
5542 #define $ac_tr_lib 1
5548 echo "$ac_t""no" 1>&6
5551 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5554 if test $ac_cv_func_res_search = no ; then
5555 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5556 echo "configure:5557: checking for __res_search in -lbind" >&5
5557 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5558 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 ac_save_LIBS="$LIBS"
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5569 char __res_search();
5575 if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5577 eval "ac_cv_lib_$ac_lib_var=yes"
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 eval "ac_cv_lib_$ac_lib_var=no"
5585 LIBS="$ac_save_LIBS"
5588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5589 echo "$ac_t""yes" 1>&6
5590 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5592 cat >> confdefs.h <<EOF
5593 #define $ac_tr_lib 1
5599 echo "$ac_t""no" 1>&6
5602 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5605 if test $ac_cv_func_res_search = no ; then
5606 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5607 echo "configure:5608: checking for res_search in -lresolv" >&5
5608 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5609 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 ac_save_LIBS="$LIBS"
5613 LIBS="-lresolv $LIBS"
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 /* We use char because int might match the return type of a gcc2
5619 builtin and then its argument prototype would still apply. */
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 eval "ac_cv_lib_$ac_lib_var=yes"
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 eval "ac_cv_lib_$ac_lib_var=no"
5636 LIBS="$ac_save_LIBS"
5639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5641 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5643 cat >> confdefs.h <<EOF
5644 #define $ac_tr_lib 1
5647 LIBS="-lresolv $LIBS"
5650 echo "$ac_t""no" 1>&6
5653 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5656 if test "$ac_cv_func_res_search" = yes ; then
5657 cat >> confdefs.h <<\EOF
5658 #define HAVE_RES_SEARCH 1
5661 elif test $ol_enable_dns = yes ; then
5662 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5663 elif test $ol_enable_dns != no ; then
5664 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5669 if test $ol_enable_ldapd != no ; then
5670 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5672 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5673 echo "configure:5674: checking for main in -lxtpp" >&5
5674 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 ac_save_LIBS="$LIBS"
5679 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5688 if { (eval echo configure:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5690 eval "ac_cv_lib_$ac_lib_var=yes"
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5695 eval "ac_cv_lib_$ac_lib_var=no"
5698 LIBS="$ac_save_LIBS"
5701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5705 cat >> confdefs.h <<\EOF
5709 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5712 echo "$ac_t""no" 1>&6
5716 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5717 echo "configure:5718: checking for main in -ldsap" >&5
5718 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 ac_save_LIBS="$LIBS"
5723 LIBS="-ldsap -lisode $LIBS"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5732 if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5734 eval "ac_cv_lib_$ac_lib_var=yes"
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_lib_$ac_lib_var=no"
5742 LIBS="$ac_save_LIBS"
5745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5749 cat >> confdefs.h <<\EOF
5753 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5756 echo "$ac_t""no" 1>&6
5760 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5761 echo "configure:5762: checking for main in -lisode" >&5
5762 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 ac_save_LIBS="$LIBS"
5767 LIBS="-lisode $LIBS"
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5778 eval "ac_cv_lib_$ac_lib_var=yes"
5780 echo "configure: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5783 eval "ac_cv_lib_$ac_lib_var=no"
5786 LIBS="$ac_save_LIBS"
5789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5790 echo "$ac_t""yes" 1>&6
5793 cat >> confdefs.h <<\EOF
5794 #define HAVE_ISODE 1
5797 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5800 echo "$ac_t""no" 1>&6
5806 if test $ol_link_isode != no; then
5807 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5808 echo "configure:5809: checking for main in -lpp" >&5
5809 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5810 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 ac_save_LIBS="$LIBS"
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5823 if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5825 eval "ac_cv_lib_$ac_lib_var=yes"
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5830 eval "ac_cv_lib_$ac_lib_var=no"
5833 LIBS="$ac_save_LIBS"
5836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5839 cat >> confdefs.h <<\EOF
5843 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5846 echo "$ac_t""no" 1>&6
5851 # Extract the first word of "pepsy", so it can be a program name with args.
5852 set dummy pepsy; ac_word=$2
5853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5854 echo "configure:5855: checking for $ac_word" >&5
5855 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5856 echo $ac_n "(cached) $ac_c" 1>&6
5860 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5863 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5868 for ac_dir in $ac_dummy; do
5869 test -z "$ac_dir" && ac_dir=.
5870 if test -f $ac_dir/$ac_word; then
5871 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5879 PEPSY="$ac_cv_path_PEPSY"
5880 if test -n "$PEPSY"; then
5881 echo "$ac_t""$PEPSY" 1>&6
5883 echo "$ac_t""no" 1>&6
5888 if test $ol_enable_quipu != no ; then
5889 for ac_hdr in quipu/commonarg.h
5891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5893 echo "configure:5894: checking for $ac_hdr" >&5
5894 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5903 { (eval echo configure:5904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5905 if test -z "$ac_err"; then
5907 eval "ac_cv_header_$ac_safe=yes"
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5913 eval "ac_cv_header_$ac_safe=no"
5917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
5919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5920 cat >> confdefs.h <<EOF
5921 #define $ac_tr_hdr 1
5925 echo "$ac_t""no" 1>&6
5930 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5932 elif test $ol_enable_quipu = auto ; then
5933 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5935 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5944 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5945 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5947 for ac_hdr in krb5.h
5949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5951 echo "configure:5952: checking for $ac_hdr" >&5
5952 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5953 echo $ac_n "(cached) $ac_c" 1>&6
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5961 { (eval echo configure:5962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5963 if test -z "$ac_err"; then
5965 eval "ac_cv_header_$ac_safe=yes"
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5971 eval "ac_cv_header_$ac_safe=no"
5975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5978 cat >> confdefs.h <<EOF
5979 #define $ac_tr_hdr 1
5983 echo "$ac_t""no" 1>&6
5988 if test $ac_cv_header_krb5_h = yes ; then
5989 for ac_hdr in heim_err.h
5991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5993 echo "configure:5994: checking for $ac_hdr" >&5
5994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5997 cat > conftest.$ac_ext <<EOF
5998 #line 5999 "configure"
5999 #include "confdefs.h"
6002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6003 { (eval echo configure:6004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6005 if test -z "$ac_err"; then
6007 eval "ac_cv_header_$ac_safe=yes"
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 eval "ac_cv_header_$ac_safe=no"
6017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6018 echo "$ac_t""yes" 1>&6
6019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6020 cat >> confdefs.h <<EOF
6021 #define $ac_tr_hdr 1
6025 echo "$ac_t""no" 1>&6
6029 if test $ac_cv_header_heim_err_h = yes ; then
6035 if test $krb5_impl = mit; then
6036 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6037 echo "configure:6038: checking for main in -lkrb5" >&5
6038 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6039 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 ac_save_LIBS="$LIBS"
6043 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6054 eval "ac_cv_lib_$ac_lib_var=yes"
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 eval "ac_cv_lib_$ac_lib_var=no"
6062 LIBS="$ac_save_LIBS"
6065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6068 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6070 echo "$ac_t""no" 1>&6
6075 elif test $krb5_impl = heimdal; then
6076 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6077 echo "configure:6078: checking for main in -lkrb5" >&5
6078 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6079 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 ac_save_LIBS="$LIBS"
6083 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6084 cat > conftest.$ac_ext <<EOF
6085 #line 6086 "configure"
6086 #include "confdefs.h"
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 eval "ac_cv_lib_$ac_lib_var=yes"
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 eval "ac_cv_lib_$ac_lib_var=no"
6102 LIBS="$ac_save_LIBS"
6105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6108 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6110 echo "$ac_t""no" 1>&6
6115 cat >> confdefs.h <<\EOF
6116 #define HAVE_HEIMDAL_KERBEROS 1
6121 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6124 if test $have_krb5 = yes ; then
6127 cat >> confdefs.h <<\EOF
6132 if test $ol_enable_kpasswd != no ; then
6133 ol_link_kpasswd=yes;
6136 if test $ol_with_kerberos = k5only ; then
6137 ol_with_kerberos=found
6140 elif test $ol_with_kerberos != auto ; then
6141 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6147 if test $ol_link_krb5 = yes -a \
6148 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6150 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_hdr" >&5
6155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6164 { (eval echo configure:6165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6166 if test -z "$ac_err"; then
6168 eval "ac_cv_header_$ac_safe=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_header_$ac_safe=no"
6178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_hdr 1
6186 echo "$ac_t""no" 1>&6
6191 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6192 if test $krb5_impl = mit; then
6193 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6194 echo "configure:6195: checking for main in -lkrb4" >&5
6195 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6199 ac_save_LIBS="$LIBS"
6200 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 eval "ac_cv_lib_$ac_lib_var=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 eval "ac_cv_lib_$ac_lib_var=no"
6219 LIBS="$ac_save_LIBS"
6222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6225 KRB4_LIBS="-lkrb4 -ldes425"
6227 echo "$ac_t""no" 1>&6
6232 elif test $krb5_impl = heimdal; then
6233 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6234 echo "configure:6235: checking for main in -lkrb4" >&5
6235 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6236 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6239 ac_save_LIBS="$LIBS"
6240 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6241 cat > conftest.$ac_ext <<EOF
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6251 eval "ac_cv_lib_$ac_lib_var=yes"
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 eval "ac_cv_lib_$ac_lib_var=no"
6259 LIBS="$ac_save_LIBS"
6262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6263 echo "$ac_t""yes" 1>&6
6267 echo "$ac_t""no" 1>&6
6274 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6277 if test $have_k425 = yes ; then
6278 ol_with_kerberos=found
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_KRB425 1
6285 cat >> confdefs.h <<\EOF
6290 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6291 echo "configure:6292: checking for des_debug in Kerberos libraries" >&5
6292 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6297 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6302 #include <kerberosIV/krb.h>
6303 #include <kerberosIV/des.h>
6304 extern int des_debug;
6312 if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6314 ol_cv_var_des_debug=yes
6316 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6319 ol_cv_var_des_debug=no
6326 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6328 if test $ol_cv_var_des_debug = yes ; then
6329 cat >> confdefs.h <<\EOF
6330 #define HAVE_DES_DEBUG 1
6340 if test $ol_link_krb5 = yes ; then
6341 ol_with_kerberos=found
6344 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6345 -o $ol_with_kerberos = kth ; then
6347 for ac_hdr in krb.h des.h krb-archaeology.h
6349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6351 echo "configure:6352: checking for $ac_hdr" >&5
6352 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6361 { (eval echo configure:6362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6363 if test -z "$ac_err"; then
6365 eval "ac_cv_header_$ac_safe=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_header_$ac_safe=no"
6375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6378 cat >> confdefs.h <<EOF
6379 #define $ac_tr_hdr 1
6383 echo "$ac_t""no" 1>&6
6388 if test $ac_cv_header_krb_h = yes ; then
6389 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6390 echo "configure:6391: checking for main in -lkrb" >&5
6391 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6392 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6395 ac_save_LIBS="$LIBS"
6396 LIBS="-lkrb -ldes $LIBS"
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 eval "ac_cv_lib_$ac_lib_var=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6412 eval "ac_cv_lib_$ac_lib_var=no"
6415 LIBS="$ac_save_LIBS"
6418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6422 echo "$ac_t""no" 1>&6
6427 if test $have_k4 = yes ; then
6428 ol_with_kerberos=found
6431 cat >> confdefs.h <<\EOF
6436 KRB4_LIBS="-lkrb -ldes"
6438 if test $ac_cv_header_krb_archaeology_h = yes ; then
6439 cat >> confdefs.h <<\EOF
6440 #define HAVE_KTH_KERBEROS 1
6448 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6449 ol_link_kpasswd=yes;
6452 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6453 cat >> confdefs.h <<\EOF
6454 #define HAVE_KERBEROS 1
6458 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6459 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6463 if test $ol_with_tls != no ; then
6465 for ac_hdr in openssl/ssl.h ssl.h
6467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_hdr" >&5
6470 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6479 { (eval echo configure:6480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6481 if test -z "$ac_err"; then
6483 eval "ac_cv_header_$ac_safe=yes"
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 eval "ac_cv_header_$ac_safe=no"
6493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6494 echo "$ac_t""yes" 1>&6
6495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6496 cat >> confdefs.h <<EOF
6497 #define $ac_tr_hdr 1
6501 echo "$ac_t""no" 1>&6
6506 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6507 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6508 echo "configure:6509: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6509 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6510 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6511 echo $ac_n "(cached) $ac_c" 1>&6
6513 ac_save_LIBS="$LIBS"
6514 LIBS="-lssl -lcrypto $LIBS"
6515 cat > conftest.$ac_ext <<EOF
6516 #line 6517 "configure"
6517 #include "confdefs.h"
6518 /* Override any gcc2 internal prototype to avoid an error. */
6519 /* We use char because int might match the return type of a gcc2
6520 builtin and then its argument prototype would still apply. */
6521 char SSLeay_add_ssl_algorithms();
6524 SSLeay_add_ssl_algorithms()
6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6529 eval "ac_cv_lib_$ac_lib_var=yes"
6531 echo "configure: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6534 eval "ac_cv_lib_$ac_lib_var=no"
6537 LIBS="$ac_save_LIBS"
6540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6541 echo "$ac_t""yes" 1>&6
6545 echo "$ac_t""no" 1>&6
6550 if test $have_ssleay = no ; then
6551 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6552 echo "configure:6553: checking for SSL_library_init in -lssl" >&5
6553 ac_lib_var=`echo ssl'_'SSL_library_init | 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 $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. */
6565 char SSL_library_init();
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 = no ; then
6596 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6597 echo "configure:6598: checking for ssl3_accept in -lssl" >&5
6598 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6599 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6602 ac_save_LIBS="$LIBS"
6603 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 eval "ac_cv_lib_$ac_lib_var=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_lib_$ac_lib_var=no"
6626 LIBS="$ac_save_LIBS"
6629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6634 echo "$ac_t""no" 1>&6
6640 if test $have_ssleay = yes ; then
6644 cat >> confdefs.h <<\EOF
6645 #define HAVE_SSLEAY 1
6649 if test $need_rsaref = yes; then
6650 cat >> confdefs.h <<\EOF
6651 #define HAVE_RSAREF 1
6655 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6657 TLS_LIBS="-lssl -lcrypto"
6663 if test $ol_link_tls = yes ; then
6664 cat >> confdefs.h <<\EOF
6672 gethostbyname_r gethostbyaddr_r \
6675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6676 echo "configure:6677: checking for $ac_func" >&5
6677 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6683 /* System header to define __stub macros and hopefully few prototypes,
6684 which can conflict with char $ac_func(); below. */
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6694 /* The GNU C library defines this for functions which it implements
6695 to always fail with ENOSYS. Some functions are actually named
6696 something starting with __ and the normal name is an alias. */
6697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 eval "ac_cv_func_$ac_func=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_func_$ac_func=no"
6717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6718 echo "$ac_t""yes" 1>&6
6719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6720 cat >> confdefs.h <<EOF
6721 #define $ac_tr_func 1
6725 echo "$ac_t""no" 1>&6
6730 if test "$ac_cv_func_ctime_r" = no ; then
6731 ol_cv_func_ctime_r_nargs=0
6733 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6734 echo "configure:6735: checking number of arguments of ctime_r" >&5
6735 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6743 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6746 if { (eval echo configure:6747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6748 ol_cv_func_ctime_r_nargs3=yes
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 ol_cv_func_ctime_r_nargs3=no
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6762 time_t ti; char *buffer; ctime_r(&ti,buffer);
6765 if { (eval echo configure:6766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6767 ol_cv_func_ctime_r_nargs2=yes
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 ol_cv_func_ctime_r_nargs2=no
6776 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6777 $ol_cv_func_ctime_r_nargs2 = no ; then
6779 ol_cv_func_ctime_r_nargs=3
6781 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6782 $ol_cv_func_ctime_r_nargs2 = yes ; then
6784 ol_cv_func_ctime_r_nargs=2
6787 ol_cv_func_ctime_r_nargs=0
6792 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6794 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6795 cat >> confdefs.h <<EOF
6796 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6803 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6804 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6805 echo "configure:6806: checking number of arguments of gethostbyname_r" >&5
6806 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 #include <sys/types.h>
6813 #include <sys/socket.h>
6814 #include <netinet/in.h>
6816 #define BUFSIZE (sizeof(struct hostent)+10)
6818 struct hostent hent; char buffer[BUFSIZE];
6819 int bufsize=BUFSIZE;int h_errno;
6820 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6821 buffer, bufsize, &h_errno);
6824 if { (eval echo configure:6825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6826 ol_cv_func_gethostbyname_r_nargs5=yes
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 ol_cv_func_gethostbyname_r_nargs5=no
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 #include <sys/types.h>
6839 #include <sys/socket.h>
6840 #include <netinet/in.h>
6842 #define BUFSIZE (sizeof(struct hostent)+10)
6844 struct hostent hent;struct hostent *rhent;
6845 char buffer[BUFSIZE];
6846 int bufsize=BUFSIZE;int h_errno;
6847 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6851 if { (eval echo configure:6852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6853 ol_cv_func_gethostbyname_r_nargs6=yes
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6858 ol_cv_func_gethostbyname_r_nargs6=no
6862 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6863 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6865 ol_cv_func_gethostbyname_r_nargs=5
6867 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6868 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6870 ol_cv_func_gethostbyname_r_nargs=6
6873 ol_cv_func_gethostbyname_r_nargs=0
6878 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6879 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6880 cat >> confdefs.h <<EOF
6881 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6887 ol_cv_func_gethostbyname_r_nargs=0
6890 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6891 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6892 echo "configure:6893: checking number of arguments of gethostbyaddr_r" >&5
6893 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6896 cat > conftest.$ac_ext <<EOF
6897 #line 6898 "configure"
6898 #include "confdefs.h"
6899 #include <sys/types.h>
6900 #include <sys/socket.h>
6901 #include <netinet/in.h>
6903 #define BUFSIZE (sizeof(struct hostent)+10)
6905 struct hostent hent; char buffer[BUFSIZE];
6907 size_t alen=sizeof(struct in_addr);
6908 int bufsize=BUFSIZE;int h_errno;
6909 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6910 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6913 if { (eval echo configure:6914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6915 ol_cv_func_gethostbyaddr_r_nargs7=yes
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 ol_cv_func_gethostbyaddr_r_nargs7=no
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6927 #include <sys/types.h>
6928 #include <sys/socket.h>
6929 #include <netinet/in.h>
6931 #define BUFSIZE (sizeof(struct hostent)+10)
6933 struct hostent hent;
6934 struct hostent *rhent; char buffer[BUFSIZE];
6936 size_t alen=sizeof(struct in_addr);
6937 int bufsize=BUFSIZE;int h_errno;
6938 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6939 alen, AF_INET, &hent, buffer, bufsize,
6943 if { (eval echo configure:6944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6945 ol_cv_func_gethostbyaddr_r_nargs8=yes
6947 echo "configure: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6950 ol_cv_func_gethostbyaddr_r_nargs8=no
6954 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6955 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6957 ol_cv_func_gethostbyaddr_r_nargs=7
6959 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6960 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6962 ol_cv_func_gethostbyaddr_r_nargs=8
6965 ol_cv_func_gethostbyaddr_r_nargs=0
6970 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6971 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6972 cat >> confdefs.h <<EOF
6973 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6979 ol_cv_func_gethostbyaddr_r_nargs=0
6982 if test "$ac_cv_func_ctime_r" = yes \
6983 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6984 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6985 -a "$ac_cv_func_gethostbyname_r" = yes \
6986 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6987 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6988 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6989 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6990 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6993 cat >> confdefs.h <<\EOF
6994 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7001 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7002 -o $ol_with_threads = nt ; then
7005 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7006 echo "configure:7007: checking for NT Threads" >&5
7007 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7011 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7012 echo "configure:7013: checking for _beginthread" >&5
7013 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char _beginthread(); below. */
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7025 char _beginthread();
7030 /* The GNU C library defines this for functions which it implements
7031 to always fail with ENOSYS. Some functions are actually named
7032 something starting with __ and the normal name is an alias. */
7033 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7043 eval "ac_cv_func__beginthread=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7048 eval "ac_cv_func__beginthread=no"
7053 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7054 echo "$ac_t""yes" 1>&6
7055 ol_cv_nt_threads=yes
7057 echo "$ac_t""no" 1>&6
7064 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7066 if test $ol_cv_nt_threads = yes ; then
7067 cat >> confdefs.h <<\EOF
7068 #define HAVE_NT_THREADS 1
7074 if test "$ol_cv_nt_threads" = yes ; then
7076 ol_with_threads=found
7077 ol_with_yielding_select=yes
7079 cat >> confdefs.h <<\EOF
7080 #define HAVE_NT_SERVICE_MANAGER 1
7083 cat >> confdefs.h <<\EOF
7084 #define HAVE_NT_EVENT_LOG 1
7089 if test $ol_with_threads = nt ; then
7090 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7094 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7095 -o $ol_with_threads = posix ; then
7097 for ac_hdr in pthread.h
7099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7101 echo "configure:7102: checking for $ac_hdr" >&5
7102 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7105 cat > conftest.$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7111 { (eval echo configure:7112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7113 if test -z "$ac_err"; then
7115 eval "ac_cv_header_$ac_safe=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_header_$ac_safe=no"
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7128 cat >> confdefs.h <<EOF
7129 #define $ac_tr_hdr 1
7133 echo "$ac_t""no" 1>&6
7138 if test $ac_cv_header_pthread_h = yes ; then
7139 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7140 echo "configure:7141: checking POSIX thread version" >&5
7141 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7149 # include <pthread.h>
7150 /* this check could be improved */
7151 # ifdef PTHREAD_ONCE_INIT
7152 pthread_version_final;
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 egrep "pthread_version_final" >/dev/null 2>&1; then
7159 ol_pthread_final=yes
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7171 # include <pthread.h>
7172 /* this check could be improved */
7173 # ifdef pthread_once_init
7174 pthread_version_draft4;
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7181 ol_pthread_draft4=yes
7184 ol_pthread_draft4=no
7189 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7190 ol_cv_pthread_version=final
7191 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7192 ol_cv_pthread_version=draft4
7194 ol_cv_pthread_version=unknown
7199 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7202 if test $ol_cv_pthread_version = final ; then
7203 cat >> confdefs.h <<\EOF
7204 #define HAVE_PTHREADS_FINAL 1
7207 elif test $ol_cv_pthread_version = draft4 ; then
7208 cat >> confdefs.h <<\EOF
7209 #define HAVE_PTHREADS_D4 1
7213 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7216 # consider threads found
7217 ol_with_threads=found
7220 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7221 echo "configure:7222: checking for LinuxThreads pthread.h" >&5
7222 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7228 #include <pthread.h>
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7233 ol_cv_header_linux_threads=yes
7236 ol_cv_header_linux_threads=no
7243 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7244 if test $ol_cv_header_linux_threads = yes; then
7245 cat >> confdefs.h <<\EOF
7246 #define HAVE_LINUX_THREADS 1
7252 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7253 echo "configure:7254: checking for GNU Pth pthread.h" >&5
7254 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 #include <pthread.h>
7261 #ifdef _POSIX_THREAD_IS_GNU_PTH
7266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7267 egrep "__gnu_pth__" >/dev/null 2>&1; then
7269 ol_cv_header_gnu_pth_pthread_h=yes
7272 ol_cv_header_gnu_pth_pthread_h=no
7279 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7282 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7283 for ac_hdr in sched.h
7285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_hdr" >&5
7288 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7297 { (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7299 if test -z "$ac_err"; then
7301 eval "ac_cv_header_$ac_safe=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 eval "ac_cv_header_$ac_safe=no"
7311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7312 echo "$ac_t""yes" 1>&6
7313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_hdr 1
7319 echo "$ac_t""no" 1>&6
7326 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7327 echo "configure:7328: checking for pthread_create in default libraries" >&5
7328 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7332 if test "$cross_compiling" = yes; then
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 /* pthread test headers */
7337 #include <pthread.h>
7339 #define NULL (void*)0
7342 static void *task(p)
7345 return (void *) (p == NULL);
7350 /* pthread test function */
7354 /* make sure pthread_create() isn't just a stub */
7355 #if HAVE_PTHREADS_D4
7356 status = pthread_create(&t, pthread_attr_default, task, NULL);
7358 status = pthread_create(&t, NULL, task, NULL);
7361 if( status ) exit( status );
7363 /* make sure pthread_detach() isn't just a stub */
7364 #if HAVE_PTHREADS_D4
7365 status = pthread_detach( &t );
7367 status = pthread_detach( t );
7370 #ifdef HAVE_LINUX_THREADS
7371 pthread_kill_other_threads_np();
7378 if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7380 ol_cv_pthread_create=yes
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7385 ol_cv_pthread_create=no
7389 cat > conftest.$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7392 /* pthread test headers */
7393 #include <pthread.h>
7395 #define NULL (void*)0
7398 static void *task(p)
7401 return (void *) (p == NULL);
7405 int main(argc, argv)
7410 /* pthread test function */
7414 /* make sure pthread_create() isn't just a stub */
7415 #if HAVE_PTHREADS_D4
7416 status = pthread_create(&t, pthread_attr_default, task, NULL);
7418 status = pthread_create(&t, NULL, task, NULL);
7421 if( status ) exit( status );
7423 /* make sure pthread_detach() isn't just a stub */
7424 #if HAVE_PTHREADS_D4
7425 status = pthread_detach( &t );
7427 status = pthread_detach( t );
7430 #ifdef HAVE_LINUX_THREADS
7431 pthread_kill_other_threads_np();
7439 if { (eval echo configure:7440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7441 ol_cv_pthread_create=yes
7443 echo "configure: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7446 ol_cv_pthread_create=no
7453 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7455 if test $ol_cv_pthread_create != no ; then
7456 ol_link_threads=posix
7460 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7461 if test "$ol_link_threads" = no ; then
7463 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7464 echo "configure:7465: checking for pthread link with -kthread" >&5
7465 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7471 LIBS="-kthread $LIBS"
7473 if test "$cross_compiling" = yes; then
7474 cat > conftest.$ac_ext <<EOF
7475 #line 7476 "configure"
7476 #include "confdefs.h"
7477 /* pthread test headers */
7478 #include <pthread.h>
7480 #define NULL (void*)0
7483 static void *task(p)
7486 return (void *) (p == NULL);
7491 /* pthread test function */
7495 /* make sure pthread_create() isn't just a stub */
7496 #if HAVE_PTHREADS_D4
7497 status = pthread_create(&t, pthread_attr_default, task, NULL);
7499 status = pthread_create(&t, NULL, task, NULL);
7502 if( status ) exit( status );
7504 /* make sure pthread_detach() isn't just a stub */
7505 #if HAVE_PTHREADS_D4
7506 status = pthread_detach( &t );
7508 status = pthread_detach( t );
7511 #ifdef HAVE_LINUX_THREADS
7512 pthread_kill_other_threads_np();
7519 if { (eval echo configure:7520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7521 ol_cv_pthread_kthread=yes
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7526 ol_cv_pthread_kthread=no
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7533 /* pthread test headers */
7534 #include <pthread.h>
7536 #define NULL (void*)0
7539 static void *task(p)
7542 return (void *) (p == NULL);
7546 int main(argc, argv)
7551 /* pthread test function */
7555 /* make sure pthread_create() isn't just a stub */
7556 #if HAVE_PTHREADS_D4
7557 status = pthread_create(&t, pthread_attr_default, task, NULL);
7559 status = pthread_create(&t, NULL, task, NULL);
7562 if( status ) exit( status );
7564 /* make sure pthread_detach() isn't just a stub */
7565 #if HAVE_PTHREADS_D4
7566 status = pthread_detach( &t );
7568 status = pthread_detach( t );
7571 #ifdef HAVE_LINUX_THREADS
7572 pthread_kill_other_threads_np();
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7582 ol_cv_pthread_kthread=yes
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 ol_cv_pthread_kthread=no
7598 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7600 if test $ol_cv_pthread_kthread = yes ; then
7601 ol_link_pthreads="-kthread"
7602 ol_link_threads=posix
7606 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7607 if test "$ol_link_threads" = no ; then
7609 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7610 echo "configure:7611: checking for pthread link with -pthread" >&5
7611 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7612 echo $ac_n "(cached) $ac_c" 1>&6
7617 LIBS="-pthread $LIBS"
7619 if test "$cross_compiling" = yes; then
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623 /* pthread test headers */
7624 #include <pthread.h>
7626 #define NULL (void*)0
7629 static void *task(p)
7632 return (void *) (p == NULL);
7637 /* pthread test function */
7641 /* make sure pthread_create() isn't just a stub */
7642 #if HAVE_PTHREADS_D4
7643 status = pthread_create(&t, pthread_attr_default, task, NULL);
7645 status = pthread_create(&t, NULL, task, NULL);
7648 if( status ) exit( status );
7650 /* make sure pthread_detach() isn't just a stub */
7651 #if HAVE_PTHREADS_D4
7652 status = pthread_detach( &t );
7654 status = pthread_detach( t );
7657 #ifdef HAVE_LINUX_THREADS
7658 pthread_kill_other_threads_np();
7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7667 ol_cv_pthread_pthread=yes
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7672 ol_cv_pthread_pthread=no
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 /* pthread test headers */
7680 #include <pthread.h>
7682 #define NULL (void*)0
7685 static void *task(p)
7688 return (void *) (p == NULL);
7692 int main(argc, argv)
7697 /* pthread test function */
7701 /* make sure pthread_create() isn't just a stub */
7702 #if HAVE_PTHREADS_D4
7703 status = pthread_create(&t, pthread_attr_default, task, NULL);
7705 status = pthread_create(&t, NULL, task, NULL);
7708 if( status ) exit( status );
7710 /* make sure pthread_detach() isn't just a stub */
7711 #if HAVE_PTHREADS_D4
7712 status = pthread_detach( &t );
7714 status = pthread_detach( t );
7717 #ifdef HAVE_LINUX_THREADS
7718 pthread_kill_other_threads_np();
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7728 ol_cv_pthread_pthread=yes
7730 echo "configure: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7733 ol_cv_pthread_pthread=no
7744 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7746 if test $ol_cv_pthread_pthread = yes ; then
7747 ol_link_pthreads="-pthread"
7748 ol_link_threads=posix
7752 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7753 if test "$ol_link_threads" = no ; then
7755 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7756 echo "configure:7757: checking for pthread link with -pthreads" >&5
7757 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7763 LIBS="-pthreads $LIBS"
7765 if test "$cross_compiling" = yes; then
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* pthread test headers */
7770 #include <pthread.h>
7772 #define NULL (void*)0
7775 static void *task(p)
7778 return (void *) (p == NULL);
7783 /* pthread test function */
7787 /* make sure pthread_create() isn't just a stub */
7788 #if HAVE_PTHREADS_D4
7789 status = pthread_create(&t, pthread_attr_default, task, NULL);
7791 status = pthread_create(&t, NULL, task, NULL);
7794 if( status ) exit( status );
7796 /* make sure pthread_detach() isn't just a stub */
7797 #if HAVE_PTHREADS_D4
7798 status = pthread_detach( &t );
7800 status = pthread_detach( t );
7803 #ifdef HAVE_LINUX_THREADS
7804 pthread_kill_other_threads_np();
7811 if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 ol_cv_pthread_pthreads=yes
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 ol_cv_pthread_pthreads=no
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* pthread test headers */
7826 #include <pthread.h>
7828 #define NULL (void*)0
7831 static void *task(p)
7834 return (void *) (p == NULL);
7838 int main(argc, argv)
7843 /* pthread test function */
7847 /* make sure pthread_create() isn't just a stub */
7848 #if HAVE_PTHREADS_D4
7849 status = pthread_create(&t, pthread_attr_default, task, NULL);
7851 status = pthread_create(&t, NULL, task, NULL);
7854 if( status ) exit( status );
7856 /* make sure pthread_detach() isn't just a stub */
7857 #if HAVE_PTHREADS_D4
7858 status = pthread_detach( &t );
7860 status = pthread_detach( t );
7863 #ifdef HAVE_LINUX_THREADS
7864 pthread_kill_other_threads_np();
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7874 ol_cv_pthread_pthreads=yes
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 ol_cv_pthread_pthreads=no
7890 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7892 if test $ol_cv_pthread_pthreads = yes ; then
7893 ol_link_pthreads="-pthreads"
7894 ol_link_threads=posix
7898 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7899 if test "$ol_link_threads" = no ; then
7901 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7902 echo "configure:7903: checking for pthread link with -mthreads" >&5
7903 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7909 LIBS="-mthreads $LIBS"
7911 if test "$cross_compiling" = yes; then
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* pthread test headers */
7916 #include <pthread.h>
7918 #define NULL (void*)0
7921 static void *task(p)
7924 return (void *) (p == NULL);
7929 /* pthread test function */
7933 /* make sure pthread_create() isn't just a stub */
7934 #if HAVE_PTHREADS_D4
7935 status = pthread_create(&t, pthread_attr_default, task, NULL);
7937 status = pthread_create(&t, NULL, task, NULL);
7940 if( status ) exit( status );
7942 /* make sure pthread_detach() isn't just a stub */
7943 #if HAVE_PTHREADS_D4
7944 status = pthread_detach( &t );
7946 status = pthread_detach( t );
7949 #ifdef HAVE_LINUX_THREADS
7950 pthread_kill_other_threads_np();
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 ol_cv_pthread_mthreads=yes
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7964 ol_cv_pthread_mthreads=no
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 /* pthread test headers */
7972 #include <pthread.h>
7974 #define NULL (void*)0
7977 static void *task(p)
7980 return (void *) (p == NULL);
7984 int main(argc, argv)
7989 /* pthread test function */
7993 /* make sure pthread_create() isn't just a stub */
7994 #if HAVE_PTHREADS_D4
7995 status = pthread_create(&t, pthread_attr_default, task, NULL);
7997 status = pthread_create(&t, NULL, task, NULL);
8000 if( status ) exit( status );
8002 /* make sure pthread_detach() isn't just a stub */
8003 #if HAVE_PTHREADS_D4
8004 status = pthread_detach( &t );
8006 status = pthread_detach( t );
8009 #ifdef HAVE_LINUX_THREADS
8010 pthread_kill_other_threads_np();
8018 if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8020 ol_cv_pthread_mthreads=yes
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 ol_cv_pthread_mthreads=no
8036 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8038 if test $ol_cv_pthread_mthreads = yes ; then
8039 ol_link_pthreads="-mthreads"
8040 ol_link_threads=posix
8044 # Pthread try link: -thread (ol_cv_pthread_thread)
8045 if test "$ol_link_threads" = no ; then
8047 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8048 echo "configure:8049: checking for pthread link with -thread" >&5
8049 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8055 LIBS="-thread $LIBS"
8057 if test "$cross_compiling" = yes; then
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* pthread test headers */
8062 #include <pthread.h>
8064 #define NULL (void*)0
8067 static void *task(p)
8070 return (void *) (p == NULL);
8075 /* pthread test function */
8079 /* make sure pthread_create() isn't just a stub */
8080 #if HAVE_PTHREADS_D4
8081 status = pthread_create(&t, pthread_attr_default, task, NULL);
8083 status = pthread_create(&t, NULL, task, NULL);
8086 if( status ) exit( status );
8088 /* make sure pthread_detach() isn't just a stub */
8089 #if HAVE_PTHREADS_D4
8090 status = pthread_detach( &t );
8092 status = pthread_detach( t );
8095 #ifdef HAVE_LINUX_THREADS
8096 pthread_kill_other_threads_np();
8103 if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8105 ol_cv_pthread_thread=yes
8107 echo "configure: failed program was:" >&5
8108 cat conftest.$ac_ext >&5
8110 ol_cv_pthread_thread=no
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* pthread test headers */
8118 #include <pthread.h>
8120 #define NULL (void*)0
8123 static void *task(p)
8126 return (void *) (p == NULL);
8130 int main(argc, argv)
8135 /* pthread test function */
8139 /* make sure pthread_create() isn't just a stub */
8140 #if HAVE_PTHREADS_D4
8141 status = pthread_create(&t, pthread_attr_default, task, NULL);
8143 status = pthread_create(&t, NULL, task, NULL);
8146 if( status ) exit( status );
8148 /* make sure pthread_detach() isn't just a stub */
8149 #if HAVE_PTHREADS_D4
8150 status = pthread_detach( &t );
8152 status = pthread_detach( t );
8155 #ifdef HAVE_LINUX_THREADS
8156 pthread_kill_other_threads_np();
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8166 ol_cv_pthread_thread=yes
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8171 ol_cv_pthread_thread=no
8182 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8184 if test $ol_cv_pthread_thread = yes ; then
8185 ol_link_pthreads="-thread"
8186 ol_link_threads=posix
8191 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8192 if test "$ol_link_threads" = no ; then
8193 # try -lpthread -lmach -lexc -lc_r
8194 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8195 echo "configure:8196: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8196 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8202 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8204 if test "$cross_compiling" = yes; then
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* pthread test headers */
8209 #include <pthread.h>
8211 #define NULL (void*)0
8214 static void *task(p)
8217 return (void *) (p == NULL);
8222 /* pthread test function */
8226 /* make sure pthread_create() isn't just a stub */
8227 #if HAVE_PTHREADS_D4
8228 status = pthread_create(&t, pthread_attr_default, task, NULL);
8230 status = pthread_create(&t, NULL, task, NULL);
8233 if( status ) exit( status );
8235 /* make sure pthread_detach() isn't just a stub */
8236 #if HAVE_PTHREADS_D4
8237 status = pthread_detach( &t );
8239 status = pthread_detach( t );
8242 #ifdef HAVE_LINUX_THREADS
8243 pthread_kill_other_threads_np();
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8257 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* pthread test headers */
8265 #include <pthread.h>
8267 #define NULL (void*)0
8270 static void *task(p)
8273 return (void *) (p == NULL);
8277 int main(argc, argv)
8282 /* pthread test function */
8286 /* make sure pthread_create() isn't just a stub */
8287 #if HAVE_PTHREADS_D4
8288 status = pthread_create(&t, pthread_attr_default, task, NULL);
8290 status = pthread_create(&t, NULL, task, NULL);
8293 if( status ) exit( status );
8295 /* make sure pthread_detach() isn't just a stub */
8296 #if HAVE_PTHREADS_D4
8297 status = pthread_detach( &t );
8299 status = pthread_detach( t );
8302 #ifdef HAVE_LINUX_THREADS
8303 pthread_kill_other_threads_np();
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8313 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8329 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8331 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8332 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8333 ol_link_threads=posix
8337 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8338 if test "$ol_link_threads" = no ; then
8339 # try -lpthread -lmach -lexc
8340 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8341 echo "configure:8342: checking for pthread link with -lpthread -lmach -lexc" >&5
8342 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8348 LIBS="-lpthread -lmach -lexc $LIBS"
8350 if test "$cross_compiling" = yes; then
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 /* pthread test headers */
8355 #include <pthread.h>
8357 #define NULL (void*)0
8360 static void *task(p)
8363 return (void *) (p == NULL);
8368 /* pthread test function */
8372 /* make sure pthread_create() isn't just a stub */
8373 #if HAVE_PTHREADS_D4
8374 status = pthread_create(&t, pthread_attr_default, task, NULL);
8376 status = pthread_create(&t, NULL, task, NULL);
8379 if( status ) exit( status );
8381 /* make sure pthread_detach() isn't just a stub */
8382 #if HAVE_PTHREADS_D4
8383 status = pthread_detach( &t );
8385 status = pthread_detach( t );
8388 #ifdef HAVE_LINUX_THREADS
8389 pthread_kill_other_threads_np();
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8398 ol_cv_pthread_lpthread_lmach_lexc=yes
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8403 ol_cv_pthread_lpthread_lmach_lexc=no
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 /* pthread test headers */
8411 #include <pthread.h>
8413 #define NULL (void*)0
8416 static void *task(p)
8419 return (void *) (p == NULL);
8423 int main(argc, argv)
8428 /* pthread test function */
8432 /* make sure pthread_create() isn't just a stub */
8433 #if HAVE_PTHREADS_D4
8434 status = pthread_create(&t, pthread_attr_default, task, NULL);
8436 status = pthread_create(&t, NULL, task, NULL);
8439 if( status ) exit( status );
8441 /* make sure pthread_detach() isn't just a stub */
8442 #if HAVE_PTHREADS_D4
8443 status = pthread_detach( &t );
8445 status = pthread_detach( t );
8448 #ifdef HAVE_LINUX_THREADS
8449 pthread_kill_other_threads_np();
8457 if { (eval echo configure:8458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8459 ol_cv_pthread_lpthread_lmach_lexc=yes
8461 echo "configure: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8464 ol_cv_pthread_lpthread_lmach_lexc=no
8475 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8477 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8478 ol_link_pthreads="-lpthread -lmach -lexc"
8479 ol_link_threads=posix
8484 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8485 if test "$ol_link_threads" = no ; then
8486 # try -lpthread -Wl,-woff,85
8487 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8488 echo "configure:8489: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8489 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8490 echo $ac_n "(cached) $ac_c" 1>&6
8495 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8497 if test "$cross_compiling" = yes; then
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 /* pthread test headers */
8502 #include <pthread.h>
8504 #define NULL (void*)0
8507 static void *task(p)
8510 return (void *) (p == NULL);
8515 /* pthread test function */
8519 /* make sure pthread_create() isn't just a stub */
8520 #if HAVE_PTHREADS_D4
8521 status = pthread_create(&t, pthread_attr_default, task, NULL);
8523 status = pthread_create(&t, NULL, task, NULL);
8526 if( status ) exit( status );
8528 /* make sure pthread_detach() isn't just a stub */
8529 #if HAVE_PTHREADS_D4
8530 status = pthread_detach( &t );
8532 status = pthread_detach( t );
8535 #ifdef HAVE_LINUX_THREADS
8536 pthread_kill_other_threads_np();
8543 if { (eval echo configure:8544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8545 ol_cv_pthread_lib_lpthread_woff=yes
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 ol_cv_pthread_lib_lpthread_woff=no
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* pthread test headers */
8558 #include <pthread.h>
8560 #define NULL (void*)0
8563 static void *task(p)
8566 return (void *) (p == NULL);
8570 int main(argc, argv)
8575 /* pthread test function */
8579 /* make sure pthread_create() isn't just a stub */
8580 #if HAVE_PTHREADS_D4
8581 status = pthread_create(&t, pthread_attr_default, task, NULL);
8583 status = pthread_create(&t, NULL, task, NULL);
8586 if( status ) exit( status );
8588 /* make sure pthread_detach() isn't just a stub */
8589 #if HAVE_PTHREADS_D4
8590 status = pthread_detach( &t );
8592 status = pthread_detach( t );
8595 #ifdef HAVE_LINUX_THREADS
8596 pthread_kill_other_threads_np();
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8606 ol_cv_pthread_lib_lpthread_woff=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 ol_cv_pthread_lib_lpthread_woff=no
8622 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8624 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8625 ol_link_pthreads="-lpthread -Wl,-woff,85"
8626 ol_link_threads=posix
8631 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8632 if test "$ol_link_threads" = no ; then
8634 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8635 echo "configure:8636: checking for pthread link with -lpthread" >&5
8636 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8637 echo $ac_n "(cached) $ac_c" 1>&6
8642 LIBS="-lpthread $LIBS"
8644 if test "$cross_compiling" = yes; then
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8648 /* pthread test headers */
8649 #include <pthread.h>
8651 #define NULL (void*)0
8654 static void *task(p)
8657 return (void *) (p == NULL);
8662 /* pthread test function */
8666 /* make sure pthread_create() isn't just a stub */
8667 #if HAVE_PTHREADS_D4
8668 status = pthread_create(&t, pthread_attr_default, task, NULL);
8670 status = pthread_create(&t, NULL, task, NULL);
8673 if( status ) exit( status );
8675 /* make sure pthread_detach() isn't just a stub */
8676 #if HAVE_PTHREADS_D4
8677 status = pthread_detach( &t );
8679 status = pthread_detach( t );
8682 #ifdef HAVE_LINUX_THREADS
8683 pthread_kill_other_threads_np();
8690 if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8692 ol_cv_pthread_lpthread=yes
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8697 ol_cv_pthread_lpthread=no
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 /* pthread test headers */
8705 #include <pthread.h>
8707 #define NULL (void*)0
8710 static void *task(p)
8713 return (void *) (p == NULL);
8717 int main(argc, argv)
8722 /* pthread test function */
8726 /* make sure pthread_create() isn't just a stub */
8727 #if HAVE_PTHREADS_D4
8728 status = pthread_create(&t, pthread_attr_default, task, NULL);
8730 status = pthread_create(&t, NULL, task, NULL);
8733 if( status ) exit( status );
8735 /* make sure pthread_detach() isn't just a stub */
8736 #if HAVE_PTHREADS_D4
8737 status = pthread_detach( &t );
8739 status = pthread_detach( t );
8742 #ifdef HAVE_LINUX_THREADS
8743 pthread_kill_other_threads_np();
8751 if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8753 ol_cv_pthread_lpthread=yes
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8758 ol_cv_pthread_lpthread=no
8769 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8771 if test $ol_cv_pthread_lpthread = yes ; then
8772 ol_link_pthreads="-lpthread"
8773 ol_link_threads=posix
8777 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8778 if test "$ol_link_threads" = no ; then
8780 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8781 echo "configure:8782: checking for pthread link with -lc_r" >&5
8782 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8783 echo $ac_n "(cached) $ac_c" 1>&6
8790 if test "$cross_compiling" = yes; then
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8794 /* pthread test headers */
8795 #include <pthread.h>
8797 #define NULL (void*)0
8800 static void *task(p)
8803 return (void *) (p == NULL);
8808 /* pthread test function */
8812 /* make sure pthread_create() isn't just a stub */
8813 #if HAVE_PTHREADS_D4
8814 status = pthread_create(&t, pthread_attr_default, task, NULL);
8816 status = pthread_create(&t, NULL, task, NULL);
8819 if( status ) exit( status );
8821 /* make sure pthread_detach() isn't just a stub */
8822 #if HAVE_PTHREADS_D4
8823 status = pthread_detach( &t );
8825 status = pthread_detach( t );
8828 #ifdef HAVE_LINUX_THREADS
8829 pthread_kill_other_threads_np();
8836 if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8838 ol_cv_pthread_lc_r=yes
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8843 ol_cv_pthread_lc_r=no
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 /* pthread test headers */
8851 #include <pthread.h>
8853 #define NULL (void*)0
8856 static void *task(p)
8859 return (void *) (p == NULL);
8863 int main(argc, argv)
8868 /* pthread test function */
8872 /* make sure pthread_create() isn't just a stub */
8873 #if HAVE_PTHREADS_D4
8874 status = pthread_create(&t, pthread_attr_default, task, NULL);
8876 status = pthread_create(&t, NULL, task, NULL);
8879 if( status ) exit( status );
8881 /* make sure pthread_detach() isn't just a stub */
8882 #if HAVE_PTHREADS_D4
8883 status = pthread_detach( &t );
8885 status = pthread_detach( t );
8888 #ifdef HAVE_LINUX_THREADS
8889 pthread_kill_other_threads_np();
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8899 ol_cv_pthread_lc_r=yes
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 ol_cv_pthread_lc_r=no
8915 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8917 if test $ol_cv_pthread_lc_r = yes ; then
8918 ol_link_pthreads="-lc_r"
8919 ol_link_threads=posix
8924 # Pthread try link: -threads (ol_cv_pthread_threads)
8925 if test "$ol_link_threads" = no ; then
8927 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8928 echo "configure:8929: checking for pthread link with -threads" >&5
8929 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8935 LIBS="-threads $LIBS"
8937 if test "$cross_compiling" = yes; then
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 /* pthread test headers */
8942 #include <pthread.h>
8944 #define NULL (void*)0
8947 static void *task(p)
8950 return (void *) (p == NULL);
8955 /* pthread test function */
8959 /* make sure pthread_create() isn't just a stub */
8960 #if HAVE_PTHREADS_D4
8961 status = pthread_create(&t, pthread_attr_default, task, NULL);
8963 status = pthread_create(&t, NULL, task, NULL);
8966 if( status ) exit( status );
8968 /* make sure pthread_detach() isn't just a stub */
8969 #if HAVE_PTHREADS_D4
8970 status = pthread_detach( &t );
8972 status = pthread_detach( t );
8975 #ifdef HAVE_LINUX_THREADS
8976 pthread_kill_other_threads_np();
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8985 ol_cv_pthread_threads=yes
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8990 ol_cv_pthread_threads=no
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* pthread test headers */
8998 #include <pthread.h>
9000 #define NULL (void*)0
9003 static void *task(p)
9006 return (void *) (p == NULL);
9010 int main(argc, argv)
9015 /* pthread test function */
9019 /* make sure pthread_create() isn't just a stub */
9020 #if HAVE_PTHREADS_D4
9021 status = pthread_create(&t, pthread_attr_default, task, NULL);
9023 status = pthread_create(&t, NULL, task, NULL);
9026 if( status ) exit( status );
9028 /* make sure pthread_detach() isn't just a stub */
9029 #if HAVE_PTHREADS_D4
9030 status = pthread_detach( &t );
9032 status = pthread_detach( t );
9035 #ifdef HAVE_LINUX_THREADS
9036 pthread_kill_other_threads_np();
9044 if { (eval echo configure:9045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9046 ol_cv_pthread_threads=yes
9048 echo "configure: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9051 ol_cv_pthread_threads=no
9062 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9064 if test $ol_cv_pthread_threads = yes ; then
9065 ol_link_pthreads="-threads"
9066 ol_link_threads=posix
9071 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9072 if test "$ol_link_threads" = no ; then
9073 # try -lpthreads -lmach -lexc -lc_r
9074 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9075 echo "configure:9076: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9076 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9077 echo $ac_n "(cached) $ac_c" 1>&6
9082 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9084 if test "$cross_compiling" = yes; then
9085 cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088 /* pthread test headers */
9089 #include <pthread.h>
9091 #define NULL (void*)0
9094 static void *task(p)
9097 return (void *) (p == NULL);
9102 /* pthread test function */
9106 /* make sure pthread_create() isn't just a stub */
9107 #if HAVE_PTHREADS_D4
9108 status = pthread_create(&t, pthread_attr_default, task, NULL);
9110 status = pthread_create(&t, NULL, task, NULL);
9113 if( status ) exit( status );
9115 /* make sure pthread_detach() isn't just a stub */
9116 #if HAVE_PTHREADS_D4
9117 status = pthread_detach( &t );
9119 status = pthread_detach( t );
9122 #ifdef HAVE_LINUX_THREADS
9123 pthread_kill_other_threads_np();
9130 if { (eval echo configure:9131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9132 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9134 echo "configure: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9137 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9144 /* pthread test headers */
9145 #include <pthread.h>
9147 #define NULL (void*)0
9150 static void *task(p)
9153 return (void *) (p == NULL);
9157 int main(argc, argv)
9162 /* pthread test function */
9166 /* make sure pthread_create() isn't just a stub */
9167 #if HAVE_PTHREADS_D4
9168 status = pthread_create(&t, pthread_attr_default, task, NULL);
9170 status = pthread_create(&t, NULL, task, NULL);
9173 if( status ) exit( status );
9175 /* make sure pthread_detach() isn't just a stub */
9176 #if HAVE_PTHREADS_D4
9177 status = pthread_detach( &t );
9179 status = pthread_detach( t );
9182 #ifdef HAVE_LINUX_THREADS
9183 pthread_kill_other_threads_np();
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9193 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9209 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9211 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9212 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9213 ol_link_threads=posix
9217 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9218 if test "$ol_link_threads" = no ; then
9219 # try -lpthreads -lmach -lexc
9220 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9221 echo "configure:9222: checking for pthread link with -lpthreads -lmach -lexc" >&5
9222 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9228 LIBS="-lpthreads -lmach -lexc $LIBS"
9230 if test "$cross_compiling" = yes; then
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 /* pthread test headers */
9235 #include <pthread.h>
9237 #define NULL (void*)0
9240 static void *task(p)
9243 return (void *) (p == NULL);
9248 /* pthread test function */
9252 /* make sure pthread_create() isn't just a stub */
9253 #if HAVE_PTHREADS_D4
9254 status = pthread_create(&t, pthread_attr_default, task, NULL);
9256 status = pthread_create(&t, NULL, task, NULL);
9259 if( status ) exit( status );
9261 /* make sure pthread_detach() isn't just a stub */
9262 #if HAVE_PTHREADS_D4
9263 status = pthread_detach( &t );
9265 status = pthread_detach( t );
9268 #ifdef HAVE_LINUX_THREADS
9269 pthread_kill_other_threads_np();
9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9278 ol_cv_pthread_lpthreads_lmach_lexc=yes
9280 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9283 ol_cv_pthread_lpthreads_lmach_lexc=no
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 /* pthread test headers */
9291 #include <pthread.h>
9293 #define NULL (void*)0
9296 static void *task(p)
9299 return (void *) (p == NULL);
9303 int main(argc, argv)
9308 /* pthread test function */
9312 /* make sure pthread_create() isn't just a stub */
9313 #if HAVE_PTHREADS_D4
9314 status = pthread_create(&t, pthread_attr_default, task, NULL);
9316 status = pthread_create(&t, NULL, task, NULL);
9319 if( status ) exit( status );
9321 /* make sure pthread_detach() isn't just a stub */
9322 #if HAVE_PTHREADS_D4
9323 status = pthread_detach( &t );
9325 status = pthread_detach( t );
9328 #ifdef HAVE_LINUX_THREADS
9329 pthread_kill_other_threads_np();
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9339 ol_cv_pthread_lpthreads_lmach_lexc=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 ol_cv_pthread_lpthreads_lmach_lexc=no
9355 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9357 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9358 ol_link_pthreads="-lpthreads -lmach -lexc"
9359 ol_link_threads=posix
9363 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9364 if test "$ol_link_threads" = no ; then
9365 # try -lpthreads -lexc
9366 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9367 echo "configure:9368: checking for pthread link with -lpthreads -lexc" >&5
9368 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9374 LIBS="-lpthreads -lexc $LIBS"
9376 if test "$cross_compiling" = yes; then
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 /* pthread test headers */
9381 #include <pthread.h>
9383 #define NULL (void*)0
9386 static void *task(p)
9389 return (void *) (p == NULL);
9394 /* pthread test function */
9398 /* make sure pthread_create() isn't just a stub */
9399 #if HAVE_PTHREADS_D4
9400 status = pthread_create(&t, pthread_attr_default, task, NULL);
9402 status = pthread_create(&t, NULL, task, NULL);
9405 if( status ) exit( status );
9407 /* make sure pthread_detach() isn't just a stub */
9408 #if HAVE_PTHREADS_D4
9409 status = pthread_detach( &t );
9411 status = pthread_detach( t );
9414 #ifdef HAVE_LINUX_THREADS
9415 pthread_kill_other_threads_np();
9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9424 ol_cv_pthread_lpthreads_lexc=yes
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 ol_cv_pthread_lpthreads_lexc=no
9433 cat > conftest.$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 /* pthread test headers */
9437 #include <pthread.h>
9439 #define NULL (void*)0
9442 static void *task(p)
9445 return (void *) (p == NULL);
9449 int main(argc, argv)
9454 /* pthread test function */
9458 /* make sure pthread_create() isn't just a stub */
9459 #if HAVE_PTHREADS_D4
9460 status = pthread_create(&t, pthread_attr_default, task, NULL);
9462 status = pthread_create(&t, NULL, task, NULL);
9465 if( status ) exit( status );
9467 /* make sure pthread_detach() isn't just a stub */
9468 #if HAVE_PTHREADS_D4
9469 status = pthread_detach( &t );
9471 status = pthread_detach( t );
9474 #ifdef HAVE_LINUX_THREADS
9475 pthread_kill_other_threads_np();
9483 if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9485 ol_cv_pthread_lpthreads_lexc=yes
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9490 ol_cv_pthread_lpthreads_lexc=no
9501 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9503 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9504 ol_link_pthreads="-lpthreads -lexc"
9505 ol_link_threads=posix
9510 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9511 if test "$ol_link_threads" = no ; then
9513 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9514 echo "configure:9515: checking for pthread link with -lpthreads" >&5
9515 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9516 echo $ac_n "(cached) $ac_c" 1>&6
9521 LIBS="-lpthreads $LIBS"
9523 if test "$cross_compiling" = yes; then
9524 cat > conftest.$ac_ext <<EOF
9525 #line 9526 "configure"
9526 #include "confdefs.h"
9527 /* pthread test headers */
9528 #include <pthread.h>
9530 #define NULL (void*)0
9533 static void *task(p)
9536 return (void *) (p == NULL);
9541 /* pthread test function */
9545 /* make sure pthread_create() isn't just a stub */
9546 #if HAVE_PTHREADS_D4
9547 status = pthread_create(&t, pthread_attr_default, task, NULL);
9549 status = pthread_create(&t, NULL, task, NULL);
9552 if( status ) exit( status );
9554 /* make sure pthread_detach() isn't just a stub */
9555 #if HAVE_PTHREADS_D4
9556 status = pthread_detach( &t );
9558 status = pthread_detach( t );
9561 #ifdef HAVE_LINUX_THREADS
9562 pthread_kill_other_threads_np();
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9571 ol_cv_pthread_lib_lpthreads=yes
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9576 ol_cv_pthread_lib_lpthreads=no
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 /* pthread test headers */
9584 #include <pthread.h>
9586 #define NULL (void*)0
9589 static void *task(p)
9592 return (void *) (p == NULL);
9596 int main(argc, argv)
9601 /* pthread test function */
9605 /* make sure pthread_create() isn't just a stub */
9606 #if HAVE_PTHREADS_D4
9607 status = pthread_create(&t, pthread_attr_default, task, NULL);
9609 status = pthread_create(&t, NULL, task, NULL);
9612 if( status ) exit( status );
9614 /* make sure pthread_detach() isn't just a stub */
9615 #if HAVE_PTHREADS_D4
9616 status = pthread_detach( &t );
9618 status = pthread_detach( t );
9621 #ifdef HAVE_LINUX_THREADS
9622 pthread_kill_other_threads_np();
9630 if { (eval echo configure:9631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9632 ol_cv_pthread_lib_lpthreads=yes
9634 echo "configure: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9637 ol_cv_pthread_lib_lpthreads=no
9648 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9650 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9651 ol_link_pthreads="-lpthreads"
9652 ol_link_threads=posix
9657 if test $ol_link_threads != no ; then
9658 cat >> confdefs.h <<\EOF
9659 #define HAVE_PTHREADS 1
9663 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9665 save_CPPFLAGS="$CPPFLAGS"
9667 LIBS="$LTHREAD_LIBS $LIBS"
9669 for ac_func in sched_yield pthread_yield
9671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9672 echo "configure:9673: checking for $ac_func" >&5
9673 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9674 echo $ac_n "(cached) $ac_c" 1>&6
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 /* System header to define __stub macros and hopefully few prototypes,
9680 which can conflict with char $ac_func(); below. */
9682 /* Override any gcc2 internal prototype to avoid an error. */
9683 /* We use char because int might match the return type of a gcc2
9684 builtin and then its argument prototype would still apply. */
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9701 if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9703 eval "ac_cv_func_$ac_func=yes"
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9708 eval "ac_cv_func_$ac_func=no"
9713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9714 echo "$ac_t""yes" 1>&6
9715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9716 cat >> confdefs.h <<EOF
9717 #define $ac_tr_func 1
9721 echo "$ac_t""no" 1>&6
9726 if test $ac_cv_func_sched_yield = no -a \
9727 $ac_cv_func_pthread_yield = no ; then
9728 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9729 echo "configure:9730: checking for sched_yield in -lrt" >&5
9730 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9734 ac_save_LIBS="$LIBS"
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9748 if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750 eval "ac_cv_lib_$ac_lib_var=yes"
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9755 eval "ac_cv_lib_$ac_lib_var=no"
9758 LIBS="$ac_save_LIBS"
9761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9764 cat >> confdefs.h <<\EOF
9765 #define HAVE_SCHED_YIELD 1
9768 ac_cv_func_sched_yield=yes
9770 echo "$ac_t""no" 1>&6
9771 ac_cv_func_sched_yield=no
9775 if test $ac_cv_func_sched_yield = no -a \
9776 $ac_cv_func_pthread_yield = no ; then
9777 for ac_func in thr_yield
9779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9780 echo "configure:9781: checking for $ac_func" >&5
9781 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9787 /* System header to define __stub macros and hopefully few prototypes,
9788 which can conflict with char $ac_func(); below. */
9790 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9798 /* The GNU C library defines this for functions which it implements
9799 to always fail with ENOSYS. Some functions are actually named
9800 something starting with __ and the normal name is an alias. */
9801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9809 if { (eval echo configure:9810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9811 eval "ac_cv_func_$ac_func=yes"
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9816 eval "ac_cv_func_$ac_func=no"
9821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9822 echo "$ac_t""yes" 1>&6
9823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9824 cat >> confdefs.h <<EOF
9825 #define $ac_tr_func 1
9829 echo "$ac_t""no" 1>&6
9834 if test $ac_cv_func_sched_yield = no -a \
9835 $ac_cv_func_pthread_yield = no -a \
9836 "$ac_cv_func_thr_yield" = no ; then
9837 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9840 for ac_func in pthread_kill
9842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9843 echo "configure:9844: checking for $ac_func" >&5
9844 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 /* System header to define __stub macros and hopefully few prototypes,
9851 which can conflict with char $ac_func(); below. */
9853 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9861 /* The GNU C library defines this for functions which it implements
9862 to always fail with ENOSYS. Some functions are actually named
9863 something starting with __ and the normal name is an alias. */
9864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9872 if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9874 eval "ac_cv_func_$ac_func=yes"
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9879 eval "ac_cv_func_$ac_func=no"
9884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9885 echo "$ac_t""yes" 1>&6
9886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9887 cat >> confdefs.h <<EOF
9888 #define $ac_tr_func 1
9892 echo "$ac_t""no" 1>&6
9897 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9898 echo "configure:9899: checking for pthread_detach with <pthread.h>" >&5
9899 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9900 echo $ac_n "(cached) $ac_c" 1>&6
9903 cat > conftest.$ac_ext <<EOF
9904 #line 9905 "configure"
9905 #include "confdefs.h"
9907 #include <pthread.h>
9909 #define NULL (void*)0
9913 pthread_detach(NULL);
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9918 ol_cv_func_pthread_detach=yes
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9923 ol_cv_func_pthread_detach=no
9929 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9931 if test $ol_cv_func_pthread_detach = no ; then
9932 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9935 cat >> confdefs.h <<\EOF
9936 #define HAVE_PTHREAD_DETACH 1
9941 pthread_setconcurrency \
9942 pthread_getconcurrency \
9943 thr_setconcurrency \
9944 thr_getconcurrency \
9947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9948 echo "configure:9949: checking for $ac_func" >&5
9949 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* System header to define __stub macros and hopefully few prototypes,
9956 which can conflict with char $ac_func(); below. */
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9979 eval "ac_cv_func_$ac_func=yes"
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9984 eval "ac_cv_func_$ac_func=no"
9989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9990 echo "$ac_t""yes" 1>&6
9991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9992 cat >> confdefs.h <<EOF
9993 #define $ac_tr_func 1
9997 echo "$ac_t""no" 1>&6
10003 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10004 echo "configure:10005: checking for pthread_kill_other_threads_np" >&5
10005 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 /* System header to define __stub macros and hopefully few prototypes,
10012 which can conflict with char pthread_kill_other_threads_np(); below. */
10013 #include <assert.h>
10014 /* Override any gcc2 internal prototype to avoid an error. */
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10017 char pthread_kill_other_threads_np();
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10028 f = pthread_kill_other_threads_np;
10033 if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10035 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10045 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10046 echo "$ac_t""yes" 1>&6
10049 echo "$ac_t""no" 1>&6
10052 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10053 echo "configure:10054: checking for LinuxThreads implementation" >&5
10054 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10057 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10060 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10065 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10066 echo "configure:10067: checking for LinuxThreads consistency" >&5
10067 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10071 if test $ol_cv_header_linux_threads = yes -a \
10072 $ol_cv_sys_linux_threads = yes; then
10073 ol_cv_linux_threads=yes
10074 elif test $ol_cv_header_linux_threads = no -a \
10075 $ol_cv_sys_linux_threads = no; then
10076 ol_cv_linux_threads=no
10078 ol_cv_linux_threads=error
10083 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10086 if test $ol_cv_linux_threads = error; then
10087 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10090 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10091 echo "configure:10092: checking if pthread_create() works" >&5
10092 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10093 echo $ac_n "(cached) $ac_c" 1>&6
10096 if test "$cross_compiling" = yes; then
10097 ol_cv_pthread_create_works=yes
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 /* pthread test headers */
10103 #include <pthread.h>
10105 #define NULL (void*)0
10108 static void *task(p)
10111 return (void *) (p == NULL);
10115 int main(argc, argv)
10120 /* pthread test function */
10124 /* make sure pthread_create() isn't just a stub */
10125 #if HAVE_PTHREADS_D4
10126 status = pthread_create(&t, pthread_attr_default, task, NULL);
10128 status = pthread_create(&t, NULL, task, NULL);
10131 if( status ) exit( status );
10133 /* make sure pthread_detach() isn't just a stub */
10134 #if HAVE_PTHREADS_D4
10135 status = pthread_detach( &t );
10137 status = pthread_detach( t );
10140 #ifdef HAVE_LINUX_THREADS
10141 pthread_kill_other_threads_np();
10149 if { (eval echo configure:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10151 ol_cv_pthread_create_works=yes
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10156 ol_cv_pthread_create_works=no
10163 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10165 if test $ol_cv_pthread_create_works = no ; then
10166 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10169 if test $ol_with_yielding_select = auto ; then
10170 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10171 echo "configure:10172: checking if select yields when using pthreads" >&5
10172 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10176 if test "$cross_compiling" = yes; then
10177 ol_cv_pthread_select_yields=cross
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10183 #include <sys/types.h>
10184 #include <sys/time.h>
10185 #include <unistd.h>
10186 #include <pthread.h>
10188 #define NULL (void*) 0
10191 static int fildes[2];
10193 static void *task(p)
10205 FD_SET(fildes[0], &rfds);
10207 /* we're not interested in any fds */
10208 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10215 exit(0); /* if we exit here, the select blocked the whole process */
10218 int main(argc, argv)
10224 /* create a pipe to select */
10225 if(pipe(&fildes[0])) {
10230 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10231 (void) pthread_setconcurrency(2);
10233 #ifdef HAVE_THR_SETCONCURRENCY
10234 /* Set Solaris LWP concurrency to 2 */
10235 thr_setconcurrency(2);
10239 #if HAVE_PTHREADS_D4
10240 pthread_create(&t, pthread_attr_default, task, NULL);
10242 pthread_create(&t, NULL, task, NULL);
10245 #if HAVE_SCHED_YIELD
10246 sched_yield(); /* make sure task runs first */
10248 #ifdef HAVE_PTHREAD_YIELD
10249 pthread_yield(); /* make sure task runs first */
10256 if { (eval echo configure:10257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10258 ol_cv_pthread_select_yields=no
10260 echo "configure: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10263 ol_cv_pthread_select_yields=yes
10270 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10272 if test $ol_cv_pthread_select_yields = cross ; then
10273 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10276 if test $ol_cv_pthread_select_yields = yes ; then
10277 ol_with_yielding_select=yes
10281 CPPFLAGS="$save_CPPFLAGS"
10284 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10288 if test $ol_with_threads = posix ; then
10289 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10293 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10294 -o $ol_with_threads = mach ; then
10296 for ac_hdr in mach/cthreads.h
10298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10300 echo "configure:10301: checking for $ac_hdr" >&5
10301 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10310 { (eval echo configure:10311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10312 if test -z "$ac_err"; then
10314 eval "ac_cv_header_$ac_safe=yes"
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 eval "ac_cv_header_$ac_safe=no"
10324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10325 echo "$ac_t""yes" 1>&6
10326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10327 cat >> confdefs.h <<EOF
10328 #define $ac_tr_hdr 1
10332 echo "$ac_t""no" 1>&6
10336 if test $ac_cv_header_mach_cthreads_h = yes ; then
10337 ol_with_threads=found
10339 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10340 echo "configure:10341: checking for cthread_fork" >&5
10341 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10342 echo $ac_n "(cached) $ac_c" 1>&6
10344 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char cthread_fork(); below. */
10349 #include <assert.h>
10350 /* Override any gcc2 internal prototype to avoid an error. */
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353 char cthread_fork();
10358 /* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
10361 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10369 if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10371 eval "ac_cv_func_cthread_fork=yes"
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10376 eval "ac_cv_func_cthread_fork=no"
10381 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10382 echo "$ac_t""yes" 1>&6
10383 ol_link_threads=yes
10385 echo "$ac_t""no" 1>&6
10389 if test $ol_link_threads = no ; then
10390 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10391 echo "configure:10392: checking for cthread_fork with -all_load" >&5
10392 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10393 echo $ac_n "(cached) $ac_c" 1>&6
10397 LIBS="-all_load $LIBS"
10398 cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10401 #include <mach/cthreads.h>
10404 cthread_fork((void *)0, (void *)0);
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10410 ol_cv_cthread_all_load=yes
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 ol_cv_cthread_all_load=no
10422 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10424 if test $ol_cv_cthread_all_load = yes ; then
10425 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10426 ol_link_threads=mach
10430 if test $ol_link_threads != no ; then
10431 : check for cthread specific functionality here
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE_MACH_CTHREADS 1
10437 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10441 if test $ol_with_threads = mach ; then
10442 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10446 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10447 -o $ol_with_threads = pth ; then
10449 for ac_hdr in pth.h
10451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10453 echo "configure:10454: checking for $ac_hdr" >&5
10454 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10463 { (eval echo configure:10464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10465 if test -z "$ac_err"; then
10467 eval "ac_cv_header_$ac_safe=yes"
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10473 eval "ac_cv_header_$ac_safe=no"
10477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10478 echo "$ac_t""yes" 1>&6
10479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10480 cat >> confdefs.h <<EOF
10481 #define $ac_tr_hdr 1
10485 echo "$ac_t""no" 1>&6
10490 if test $ac_cv_header_pth_h = yes ; then
10491 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10492 echo "configure:10493: checking for pth_version in -lpth" >&5
10493 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10497 ac_save_LIBS="$LIBS"
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10505 char pth_version();
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 eval "ac_cv_lib_$ac_lib_var=no"
10521 LIBS="$ac_save_LIBS"
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10528 echo "$ac_t""no" 1>&6
10533 if test $have_pth = yes ; then
10534 cat >> confdefs.h <<\EOF
10535 #define HAVE_GNU_PTH 1
10538 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10539 ol_link_threads=pth
10541 if test $ol_with_yielding_select = auto ; then
10542 ol_with_yielding_select=yes
10548 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10549 -o $ol_with_threads = lwp ; then
10551 for ac_hdr in thread.h synch.h
10553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10555 echo "configure:10556: checking for $ac_hdr" >&5
10556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10565 { (eval echo configure:10566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10567 if test -z "$ac_err"; then
10569 eval "ac_cv_header_$ac_safe=yes"
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10575 eval "ac_cv_header_$ac_safe=no"
10579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10582 cat >> confdefs.h <<EOF
10583 #define $ac_tr_hdr 1
10587 echo "$ac_t""no" 1>&6
10591 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10592 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10593 echo "configure:10594: checking for thr_create in -lthread" >&5
10594 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10595 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10596 echo $ac_n "(cached) $ac_c" 1>&6
10598 ac_save_LIBS="$LIBS"
10599 LIBS="-lthread $LIBS"
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10603 /* Override any gcc2 internal prototype to avoid an error. */
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 eval "ac_cv_lib_$ac_lib_var=yes"
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 eval "ac_cv_lib_$ac_lib_var=no"
10622 LIBS="$ac_save_LIBS"
10625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10626 echo "$ac_t""yes" 1>&6
10629 echo "$ac_t""no" 1>&6
10634 if test $have_thr = yes ; then
10635 cat >> confdefs.h <<\EOF
10639 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10640 ol_link_threads=thr
10642 if test $ol_with_yielding_select = auto ; then
10643 ol_with_yielding_select=yes
10647 thr_setconcurrency \
10648 thr_getconcurrency \
10651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10652 echo "configure:10653: checking for $ac_func" >&5
10653 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10659 /* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char $ac_func(); below. */
10661 #include <assert.h>
10662 /* Override any gcc2 internal prototype to avoid an error. */
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10670 /* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10681 if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10683 eval "ac_cv_func_$ac_func=yes"
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 eval "ac_cv_func_$ac_func=no"
10693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10694 echo "$ac_t""yes" 1>&6
10695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10696 cat >> confdefs.h <<EOF
10697 #define $ac_tr_func 1
10701 echo "$ac_t""no" 1>&6
10708 for ac_hdr in lwp/lwp.h
10710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10712 echo "configure:10713: checking for $ac_hdr" >&5
10713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10722 { (eval echo configure:10723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10724 if test -z "$ac_err"; then
10726 eval "ac_cv_header_$ac_safe=yes"
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10732 eval "ac_cv_header_$ac_safe=no"
10736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10737 echo "$ac_t""yes" 1>&6
10738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10739 cat >> confdefs.h <<EOF
10740 #define $ac_tr_hdr 1
10744 echo "$ac_t""no" 1>&6
10748 if test $ac_cv_header_lwp_lwp_h = yes ; then
10749 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10750 echo "configure:10751: checking for lwp_create in -llwp" >&5
10751 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10752 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10753 echo $ac_n "(cached) $ac_c" 1>&6
10755 ac_save_LIBS="$LIBS"
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10760 /* Override any gcc2 internal prototype to avoid an error. */
10761 /* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10771 eval "ac_cv_lib_$ac_lib_var=yes"
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10776 eval "ac_cv_lib_$ac_lib_var=no"
10779 LIBS="$ac_save_LIBS"
10782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10783 echo "$ac_t""yes" 1>&6
10786 echo "$ac_t""no" 1>&6
10791 if test $have_lwp = yes ; then
10792 cat >> confdefs.h <<\EOF
10796 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10797 ol_link_threads=lwp
10799 if test $ol_with_yielding_select = auto ; then
10800 ol_with_yielding_select=no
10806 if test $ol_with_yielding_select = yes ; then
10807 cat >> confdefs.h <<\EOF
10808 #define HAVE_YIELDING_SELECT 1
10813 if test $ol_with_threads = manual ; then
10814 ol_link_threads=yes
10816 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10818 for ac_hdr in pthread.h sched.h
10820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10822 echo "configure:10823: checking for $ac_hdr" >&5
10823 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10824 echo $ac_n "(cached) $ac_c" 1>&6
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10832 { (eval echo configure:10833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10834 if test -z "$ac_err"; then
10836 eval "ac_cv_header_$ac_safe=yes"
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 eval "ac_cv_header_$ac_safe=no"
10846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10847 echo "$ac_t""yes" 1>&6
10848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10849 cat >> confdefs.h <<EOF
10850 #define $ac_tr_hdr 1
10854 echo "$ac_t""no" 1>&6
10858 for ac_func in sched_yield pthread_yield
10860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10861 echo "configure:10862: checking for $ac_func" >&5
10862 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10863 echo $ac_n "(cached) $ac_c" 1>&6
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func(); below. */
10870 #include <assert.h>
10871 /* Override any gcc2 internal prototype to avoid an error. */
10872 /* We use char because int might match the return type of a gcc2
10873 builtin and then its argument prototype would still apply. */
10879 /* The GNU C library defines this for functions which it implements
10880 to always fail with ENOSYS. Some functions are actually named
10881 something starting with __ and the normal name is an alias. */
10882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10890 if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10892 eval "ac_cv_func_$ac_func=yes"
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10897 eval "ac_cv_func_$ac_func=no"
10902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10903 echo "$ac_t""yes" 1>&6
10904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10905 cat >> confdefs.h <<EOF
10906 #define $ac_tr_func 1
10910 echo "$ac_t""no" 1>&6
10915 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10916 echo "configure:10917: checking for LinuxThreads pthread.h" >&5
10917 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 #include <pthread.h>
10925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10926 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10928 ol_cv_header_linux_threads=yes
10931 ol_cv_header_linux_threads=no
10938 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10939 if test $ol_cv_header_linux_threads = yes; then
10940 cat >> confdefs.h <<\EOF
10941 #define HAVE_LINUX_THREADS 1
10947 for ac_hdr in mach/cthreads.h
10949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10951 echo "configure:10952: checking for $ac_hdr" >&5
10952 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10953 echo $ac_n "(cached) $ac_c" 1>&6
10955 cat > conftest.$ac_ext <<EOF
10956 #line 10957 "configure"
10957 #include "confdefs.h"
10960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10961 { (eval echo configure:10962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10963 if test -z "$ac_err"; then
10965 eval "ac_cv_header_$ac_safe=yes"
10968 echo "configure: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10971 eval "ac_cv_header_$ac_safe=no"
10975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10976 echo "$ac_t""yes" 1>&6
10977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10978 cat >> confdefs.h <<EOF
10979 #define $ac_tr_hdr 1
10983 echo "$ac_t""no" 1>&6
10987 for ac_hdr in lwp/lwp.h
10989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10991 echo "configure:10992: checking for $ac_hdr" >&5
10992 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10995 cat > conftest.$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
11000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11001 { (eval echo configure:11002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11003 if test -z "$ac_err"; then
11005 eval "ac_cv_header_$ac_safe=yes"
11008 echo "configure: failed program was:" >&5
11009 cat conftest.$ac_ext >&5
11011 eval "ac_cv_header_$ac_safe=no"
11015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11016 echo "$ac_t""yes" 1>&6
11017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11018 cat >> confdefs.h <<EOF
11019 #define $ac_tr_hdr 1
11023 echo "$ac_t""no" 1>&6
11027 for ac_hdr in thread.h synch.h
11029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11031 echo "configure:11032: checking for $ac_hdr" >&5
11032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11033 echo $ac_n "(cached) $ac_c" 1>&6
11035 cat > conftest.$ac_ext <<EOF
11036 #line 11037 "configure"
11037 #include "confdefs.h"
11040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11041 { (eval echo configure:11042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11043 if test -z "$ac_err"; then
11045 eval "ac_cv_header_$ac_safe=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_header_$ac_safe=no"
11055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11056 echo "$ac_t""yes" 1>&6
11057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11058 cat >> confdefs.h <<EOF
11059 #define $ac_tr_hdr 1
11063 echo "$ac_t""no" 1>&6
11069 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11070 cat >> confdefs.h <<\EOF
11071 #define REENTRANT 1
11074 cat >> confdefs.h <<\EOF
11075 #define _REENTRANT 1
11078 cat >> confdefs.h <<\EOF
11079 #define THREAD_SAFE 1
11082 cat >> confdefs.h <<\EOF
11083 #define _THREAD_SAFE 1
11086 cat >> confdefs.h <<\EOF
11087 #define THREADSAFE 1
11090 cat >> confdefs.h <<\EOF
11091 #define _THREADSAFE 1
11094 cat >> confdefs.h <<\EOF
11095 #define _SGI_MP_SOURCE 1
11099 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11100 echo "configure:11101: checking for thread specific errno" >&5
11101 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
11105 cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11113 if { (eval echo configure:11114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11115 ol_cv_errno_thread_specific=yes
11117 echo "configure: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11120 ol_cv_errno_thread_specific=no
11126 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11128 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11129 echo "configure:11130: checking for thread specific h_errno" >&5
11130 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11134 cat > conftest.$ac_ext <<EOF
11135 #line 11136 "configure"
11136 #include "confdefs.h"
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11144 ol_cv_h_errno_thread_specific=yes
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 ol_cv_h_errno_thread_specific=no
11155 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11157 if test $ol_cv_errno_thread_specific != yes \
11158 -o $ol_cv_h_errno_thread_specific != yes ; then
11159 LIBS="$LTHREAD_LIBS $LIBS"
11165 if test $ol_link_threads = no ; then
11166 if test $ol_with_threads = yes ; then
11167 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11170 if test $ol_with_threads = auto ; then
11171 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11175 cat >> confdefs.h <<\EOF
11176 #define NO_THREADS 1
11182 if test $ol_link_threads != no ; then
11183 cat >> confdefs.h <<\EOF
11184 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11191 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11192 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11193 echo "configure:11194: checking for DB2 library" >&5
11194 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11198 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11199 echo "configure:11200: checking for db_appexit in -ldb" >&5
11200 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11204 ac_save_LIBS="$LIBS"
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209 /* Override any gcc2 internal prototype to avoid an error. */
11210 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11218 if { (eval echo configure:11219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11220 eval "ac_cv_lib_$ac_lib_var=yes"
11222 echo "configure: failed program was:" >&5
11223 cat conftest.$ac_ext >&5
11225 eval "ac_cv_lib_$ac_lib_var=no"
11228 LIBS="$ac_save_LIBS"
11231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11232 echo "$ac_t""yes" 1>&6
11235 echo "$ac_t""no" 1>&6
11243 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11249 echo "configure:11250: checking for $ac_hdr" >&5
11250 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11259 { (eval echo configure:11260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11261 if test -z "$ac_err"; then
11263 eval "ac_cv_header_$ac_safe=yes"
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11269 eval "ac_cv_header_$ac_safe=no"
11273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11274 echo "$ac_t""yes" 1>&6
11275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11276 cat >> confdefs.h <<EOF
11277 #define $ac_tr_hdr 1
11281 echo "$ac_t""no" 1>&6
11285 if test $ac_cv_header_db_h = yes ; then
11286 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11287 echo "configure:11288: checking if db.h is DB2" >&5
11288 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11297 /* this check could be improved */
11298 # ifdef DB_VERSION_MAJOR
11299 # if DB_VERSION_MAJOR == 2
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306 egrep "__db_version_2" >/dev/null 2>&1; then
11308 ol_cv_header_db2=yes
11311 ol_cv_header_db2=no
11317 echo "$ac_t""$ol_cv_header_db2" 1>&6
11319 ol_cv_header_db2=no
11324 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11325 echo "configure:11326: checking for Berkeley DB2" >&5
11326 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11330 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11331 ol_cv_berkeley_db2=no
11333 ol_cv_berkeley_db2=yes
11338 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11339 if test $ol_cv_berkeley_db2 = yes ; then
11340 cat >> confdefs.h <<\EOF
11341 #define HAVE_BERKELEY_DB2 1
11347 if test $ol_cv_berkeley_db2 = yes ; then
11349 ol_with_ldbm_api=db2
11351 if test $ol_with_ldbm_type = hash ; then
11352 cat >> confdefs.h <<\EOF
11353 #define LDBM_USE_DBHASH 1
11357 cat >> confdefs.h <<\EOF
11358 #define LDBM_USE_DBBTREE 1
11363 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11364 echo "configure:11365: checking for DB_THREAD support" >&5
11365 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11370 if test $ol_cv_lib_db2 != yes ; then
11371 LIBS="$ol_cv_lib_db2"
11374 if test "$cross_compiling" = yes; then
11375 ol_cv_berkeley_db2_db_thread=cross
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11383 #define NULL ((void *)0)
11389 u_int32_t flags = DB_CREATE | DB_THREAD;
11391 memset( &env, '\0', sizeof(env) );
11393 rc = db_appinit( NULL, NULL, &env, flags );
11396 db_appexit( &env );
11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11404 ol_cv_berkeley_db2_db_thread=yes
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11409 ol_cv_berkeley_db2_db_thread=no
11417 if test $ol_cv_berkeley_db2_db_thread != no ; then
11418 cat >> confdefs.h <<\EOF
11419 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11426 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11428 if test $ol_cv_lib_db2 != yes ; then
11429 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11435 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11436 if test $ol_cv_berkeley_db2_db_thread != no ; then
11439 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11443 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11444 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11445 echo "configure:11446: checking for Berkeley DB library" >&5
11446 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11450 for ac_hdr in db1/db.h
11452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11454 echo "configure:11455: checking for $ac_hdr" >&5
11455 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11464 { (eval echo configure:11465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11466 if test -z "$ac_err"; then
11468 eval "ac_cv_header_$ac_safe=yes"
11471 echo "configure: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11474 eval "ac_cv_header_$ac_safe=no"
11478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11479 echo "$ac_t""yes" 1>&6
11480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11481 cat >> confdefs.h <<EOF
11482 #define $ac_tr_hdr 1
11486 echo "$ac_t""no" 1>&6
11491 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11492 echo "configure:11493: checking for dbopen" >&5
11493 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char dbopen(); below. */
11501 #include <assert.h>
11502 /* Override any gcc2 internal prototype to avoid an error. */
11503 /* We use char because int might match the return type of a gcc2
11504 builtin and then its argument prototype would still apply. */
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 eval "ac_cv_func_dbopen=yes"
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 eval "ac_cv_func_dbopen=no"
11533 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11537 echo "$ac_t""no" 1>&6
11539 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11540 echo "configure:11541: checking for dbopen in -ldb1" >&5
11541 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11545 ac_save_LIBS="$LIBS"
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11561 eval "ac_cv_lib_$ac_lib_var=yes"
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11566 eval "ac_cv_lib_$ac_lib_var=no"
11569 LIBS="$ac_save_LIBS"
11572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11573 echo "$ac_t""yes" 1>&6
11576 echo "$ac_t""no" 1>&6
11578 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11579 echo "configure:11580: checking for dbopen in -ldb" >&5
11580 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11581 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11582 echo $ac_n "(cached) $ac_c" 1>&6
11584 ac_save_LIBS="$LIBS"
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11589 /* Override any gcc2 internal prototype to avoid an error. */
11590 /* We use char because int might match the return type of a gcc2
11591 builtin and then its argument prototype would still apply. */
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11600 eval "ac_cv_lib_$ac_lib_var=yes"
11602 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11605 eval "ac_cv_lib_$ac_lib_var=no"
11608 LIBS="$ac_save_LIBS"
11611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11612 echo "$ac_t""yes" 1>&6
11615 echo "$ac_t""no" 1>&6
11629 echo "$ac_t""$ol_cv_lib_db" 1>&6
11632 for ac_hdr in db_185.h
11634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11636 echo "configure:11637: checking for $ac_hdr" >&5
11637 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11646 { (eval echo configure:11647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11648 if test -z "$ac_err"; then
11650 eval "ac_cv_header_$ac_safe=yes"
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 eval "ac_cv_header_$ac_safe=no"
11660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11661 echo "$ac_t""yes" 1>&6
11662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11663 cat >> confdefs.h <<EOF
11664 #define $ac_tr_hdr 1
11668 echo "$ac_t""no" 1>&6
11672 if test "$ol_cv_header_db2" = yes ; then
11674 ol_cv_header_db=$ac_cv_header_db_185_h
11676 ol_cv_header_db=$ac_cv_header_db_h
11681 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11682 echo "configure:11683: checking for Berkeley DB" >&5
11683 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11687 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11688 ol_cv_berkeley_db=no
11690 ol_cv_berkeley_db=yes
11695 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11696 if test $ol_cv_berkeley_db = yes ; then
11697 cat >> confdefs.h <<\EOF
11698 #define HAVE_BERKELEY_DB 1
11704 if test $ol_cv_berkeley_db = yes ; then
11706 ol_with_ldbm_api=db
11708 if test $ol_with_ldbm_type = hash ; then
11709 cat >> confdefs.h <<\EOF
11710 #define LDBM_USE_DBHASH 1
11714 cat >> confdefs.h <<\EOF
11715 #define LDBM_USE_DBBTREE 1
11720 if test $ol_cv_lib_db != yes ; then
11721 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11726 if test $ol_with_ldbm_api = manual ; then
11729 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11731 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11735 echo "configure:11736: checking for $ac_hdr" >&5
11736 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11745 { (eval echo configure:11746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11747 if test -z "$ac_err"; then
11749 eval "ac_cv_header_$ac_safe=yes"
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11755 eval "ac_cv_header_$ac_safe=no"
11759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11760 echo "$ac_t""yes" 1>&6
11761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11762 cat >> confdefs.h <<EOF
11763 #define $ac_tr_hdr 1
11767 echo "$ac_t""no" 1>&6
11773 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11774 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11775 ol_with_ldbm_api=none
11778 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11779 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11780 echo "configure:11781: checking for MDBM library" >&5
11781 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
11785 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11786 echo "configure:11787: checking for mdbm_set_chain" >&5
11787 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11788 echo $ac_n "(cached) $ac_c" 1>&6
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11793 /* System header to define __stub macros and hopefully few prototypes,
11794 which can conflict with char mdbm_set_chain(); below. */
11795 #include <assert.h>
11796 /* Override any gcc2 internal prototype to avoid an error. */
11797 /* We use char because int might match the return type of a gcc2
11798 builtin and then its argument prototype would still apply. */
11799 char mdbm_set_chain();
11804 /* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11810 f = mdbm_set_chain;
11815 if { (eval echo configure:11816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817 eval "ac_cv_func_mdbm_set_chain=yes"
11819 echo "configure: failed program was:" >&5
11820 cat conftest.$ac_ext >&5
11822 eval "ac_cv_func_mdbm_set_chain=no"
11827 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11828 echo "$ac_t""yes" 1>&6
11831 echo "$ac_t""no" 1>&6
11833 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11834 echo "configure:11835: checking for mdbm_set_chain in -lmdbm" >&5
11835 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11836 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11837 echo $ac_n "(cached) $ac_c" 1>&6
11839 ac_save_LIBS="$LIBS"
11840 LIBS="-lmdbm $LIBS"
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 /* Override any gcc2 internal prototype to avoid an error. */
11845 /* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11847 char mdbm_set_chain();
11853 if { (eval echo configure:11854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11855 eval "ac_cv_lib_$ac_lib_var=yes"
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11860 eval "ac_cv_lib_$ac_lib_var=no"
11863 LIBS="$ac_save_LIBS"
11866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11867 echo "$ac_t""yes" 1>&6
11868 ol_cv_lib_mdbm=-lmdbm
11870 echo "$ac_t""no" 1>&6
11881 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11884 for ac_hdr in mdbm.h
11886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11888 echo "configure:11889: checking for $ac_hdr" >&5
11889 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11892 cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11898 { (eval echo configure:11899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11900 if test -z "$ac_err"; then
11902 eval "ac_cv_header_$ac_safe=yes"
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11908 eval "ac_cv_header_$ac_safe=no"
11912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11913 echo "$ac_t""yes" 1>&6
11914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11915 cat >> confdefs.h <<EOF
11916 #define $ac_tr_hdr 1
11920 echo "$ac_t""no" 1>&6
11924 echo $ac_n "checking for db""... $ac_c" 1>&6
11925 echo "configure:11926: checking for db" >&5
11926 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11927 echo $ac_n "(cached) $ac_c" 1>&6
11930 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11938 echo "$ac_t""$ol_cv_mdbm" 1>&6
11939 if test $ol_cv_mdbm = yes ; then
11940 cat >> confdefs.h <<\EOF
11941 #define HAVE_MDBM 1
11947 if test $ol_cv_mdbm = yes ; then
11949 ol_with_ldbm_api=mdbm
11950 if test $ol_cv_lib_mdbm != yes ; then
11951 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11956 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11957 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11958 echo "configure:11959: checking for GDBM library" >&5
11959 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11960 echo $ac_n "(cached) $ac_c" 1>&6
11963 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11964 echo "configure:11965: checking for gdbm_open" >&5
11965 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11966 echo $ac_n "(cached) $ac_c" 1>&6
11968 cat > conftest.$ac_ext <<EOF
11969 #line 11970 "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char gdbm_open(); below. */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11982 /* The GNU C library defines this for functions which it implements
11983 to always fail with ENOSYS. Some functions are actually named
11984 something starting with __ and the normal name is an alias. */
11985 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11995 eval "ac_cv_func_gdbm_open=yes"
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
12000 eval "ac_cv_func_gdbm_open=no"
12005 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12006 echo "$ac_t""yes" 1>&6
12009 echo "$ac_t""no" 1>&6
12011 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12012 echo "configure:12013: checking for gdbm_open in -lgdbm" >&5
12013 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12015 echo $ac_n "(cached) $ac_c" 1>&6
12017 ac_save_LIBS="$LIBS"
12018 LIBS="-lgdbm $LIBS"
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 /* Override any gcc2 internal prototype to avoid an error. */
12023 /* We use char because int might match the return type of a gcc2
12024 builtin and then its argument prototype would still apply. */
12031 if { (eval echo configure:12032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12033 eval "ac_cv_lib_$ac_lib_var=yes"
12035 echo "configure: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12038 eval "ac_cv_lib_$ac_lib_var=no"
12041 LIBS="$ac_save_LIBS"
12044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12045 echo "$ac_t""yes" 1>&6
12046 ol_cv_lib_gdbm=-lgdbm
12048 echo "$ac_t""no" 1>&6
12059 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12062 for ac_hdr in gdbm.h
12064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12066 echo "configure:12067: checking for $ac_hdr" >&5
12067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12068 echo $ac_n "(cached) $ac_c" 1>&6
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12076 { (eval echo configure:12077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12078 if test -z "$ac_err"; then
12080 eval "ac_cv_header_$ac_safe=yes"
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12086 eval "ac_cv_header_$ac_safe=no"
12090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12091 echo "$ac_t""yes" 1>&6
12092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12093 cat >> confdefs.h <<EOF
12094 #define $ac_tr_hdr 1
12098 echo "$ac_t""no" 1>&6
12102 echo $ac_n "checking for db""... $ac_c" 1>&6
12103 echo "configure:12104: checking for db" >&5
12104 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12105 echo $ac_n "(cached) $ac_c" 1>&6
12108 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12116 echo "$ac_t""$ol_cv_gdbm" 1>&6
12117 if test $ol_cv_gdbm = yes ; then
12118 cat >> confdefs.h <<\EOF
12119 #define HAVE_GDBM 1
12125 if test $ol_cv_gdbm = yes ; then
12127 ol_with_ldbm_api=gdbm
12129 if test $ol_cv_lib_gdbm != yes ; then
12130 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12135 if test $ol_with_ldbm_api = ndbm ; then
12136 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12137 echo "configure:12138: checking for NDBM library" >&5
12138 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12142 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12143 echo "configure:12144: checking for dbm_open" >&5
12144 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12145 echo $ac_n "(cached) $ac_c" 1>&6
12147 cat > conftest.$ac_ext <<EOF
12148 #line 12149 "configure"
12149 #include "confdefs.h"
12150 /* System header to define __stub macros and hopefully few prototypes,
12151 which can conflict with char dbm_open(); below. */
12152 #include <assert.h>
12153 /* Override any gcc2 internal prototype to avoid an error. */
12154 /* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12161 /* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12172 if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12174 eval "ac_cv_func_dbm_open=yes"
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12179 eval "ac_cv_func_dbm_open=no"
12184 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
12188 echo "$ac_t""no" 1>&6
12190 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12191 echo "configure:12192: checking for dbm_open in -lndbm" >&5
12192 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12194 echo $ac_n "(cached) $ac_c" 1>&6
12196 ac_save_LIBS="$LIBS"
12197 LIBS="-lndbm $LIBS"
12198 cat > conftest.$ac_ext <<EOF
12199 #line 12200 "configure"
12200 #include "confdefs.h"
12201 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12210 if { (eval echo configure:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12212 eval "ac_cv_lib_$ac_lib_var=yes"
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12217 eval "ac_cv_lib_$ac_lib_var=no"
12220 LIBS="$ac_save_LIBS"
12223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 ol_cv_lib_ndbm=-lndbm
12227 echo "$ac_t""no" 1>&6
12229 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12230 echo "configure:12231: checking for dbm_open in -ldbm" >&5
12231 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12233 echo $ac_n "(cached) $ac_c" 1>&6
12235 ac_save_LIBS="$LIBS"
12237 cat > conftest.$ac_ext <<EOF
12238 #line 12239 "configure"
12239 #include "confdefs.h"
12240 /* Override any gcc2 internal prototype to avoid an error. */
12241 /* We use char because int might match the return type of a gcc2
12242 builtin and then its argument prototype would still apply. */
12249 if { (eval echo configure:12250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12251 eval "ac_cv_lib_$ac_lib_var=yes"
12253 echo "configure: failed program was:" >&5
12254 cat conftest.$ac_ext >&5
12256 eval "ac_cv_lib_$ac_lib_var=no"
12259 LIBS="$ac_save_LIBS"
12262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12263 echo "$ac_t""yes" 1>&6
12264 ol_cv_lib_ndbm=-ldbm
12266 echo "$ac_t""no" 1>&6
12279 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12282 for ac_hdr in ndbm.h
12284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12286 echo "configure:12287: checking for $ac_hdr" >&5
12287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12296 { (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12298 if test -z "$ac_err"; then
12300 eval "ac_cv_header_$ac_safe=yes"
12303 echo "configure: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12306 eval "ac_cv_header_$ac_safe=no"
12310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12313 cat >> confdefs.h <<EOF
12314 #define $ac_tr_hdr 1
12318 echo "$ac_t""no" 1>&6
12322 echo $ac_n "checking for db""... $ac_c" 1>&6
12323 echo "configure:12324: checking for db" >&5
12324 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12325 echo $ac_n "(cached) $ac_c" 1>&6
12328 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12336 echo "$ac_t""$ol_cv_ndbm" 1>&6
12337 if test $ol_cv_ndbm = yes ; then
12338 cat >> confdefs.h <<\EOF
12339 #define HAVE_NDBM 1
12345 if test $ol_cv_ndbm = yes ; then
12347 ol_with_ldbm_api=ndbm
12349 if test $ol_cv_lib_ndbm != yes ; then
12350 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12355 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12356 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12357 if test $ol_enable_ldbm = yes ; then
12358 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12361 echo "configure: warning: disabling LDBM" 1>&2
12365 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12366 LINK_BINS_DYNAMIC="yes"
12368 LINK_BINS_DYNAMIC="no"
12371 if test $ol_enable_wrappers != no ; then
12372 for ac_hdr in tcpd.h
12374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12376 echo "configure:12377: checking for $ac_hdr" >&5
12377 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12378 echo $ac_n "(cached) $ac_c" 1>&6
12380 cat > conftest.$ac_ext <<EOF
12381 #line 12382 "configure"
12382 #include "confdefs.h"
12385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12386 { (eval echo configure:12387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12388 if test -z "$ac_err"; then
12390 eval "ac_cv_header_$ac_safe=yes"
12393 echo "configure: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12396 eval "ac_cv_header_$ac_safe=no"
12400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12401 echo "$ac_t""yes" 1>&6
12402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12403 cat >> confdefs.h <<EOF
12404 #define $ac_tr_hdr 1
12408 echo "$ac_t""no" 1>&6
12413 if test $ac_cv_header_tcpd_h != yes ; then
12416 cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12420 int allow_severity = 0;
12421 int deny_severity = 0;
12427 if { (eval echo configure:12428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12431 echo "configure: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12439 if test $have_wrappers = yes ; then
12440 cat >> confdefs.h <<\EOF
12441 #define HAVE_TCPD 1
12446 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12447 echo "configure:12448: checking for main in -lnsl" >&5
12448 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12452 ac_save_LIBS="$LIBS"
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12462 if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12464 eval "ac_cv_lib_$ac_lib_var=yes"
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12469 eval "ac_cv_lib_$ac_lib_var=no"
12472 LIBS="$ac_save_LIBS"
12475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12479 cat >> confdefs.h <<EOF
12480 #define $ac_tr_lib 1
12486 echo "$ac_t""no" 1>&6
12490 echo "configure: warning: could not find -lwrap" 1>&2
12491 if test $ol_enable_wrappers = yes ; then
12492 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12495 echo "configure: warning: disabling wrappers support" 1>&2
12496 ol_enable_wrappers=no
12501 if test $ol_enable_syslog != no ; then
12502 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12503 echo "configure:12504: checking for openlog" >&5
12504 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12505 echo $ac_n "(cached) $ac_c" 1>&6
12507 cat > conftest.$ac_ext <<EOF
12508 #line 12509 "configure"
12509 #include "confdefs.h"
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char openlog(); below. */
12512 #include <assert.h>
12513 /* Override any gcc2 internal prototype to avoid an error. */
12514 /* We use char because int might match the return type of a gcc2
12515 builtin and then its argument prototype would still apply. */
12521 /* The GNU C library defines this for functions which it implements
12522 to always fail with ENOSYS. Some functions are actually named
12523 something starting with __ and the normal name is an alias. */
12524 #if defined (__stub_openlog) || defined (__stub___openlog)
12532 if { (eval echo configure:12533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12534 eval "ac_cv_func_openlog=yes"
12536 echo "configure: failed program was:" >&5
12537 cat conftest.$ac_ext >&5
12539 eval "ac_cv_func_openlog=no"
12544 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12545 echo "$ac_t""yes" 1>&6
12548 echo "$ac_t""no" 1>&6
12551 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12552 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12554 ol_enable_syslog=$ac_cv_func_openlog
12557 if test $ol_enable_dmalloc != no ; then
12558 for ac_hdr in dmalloc.h
12560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12562 echo "configure:12563: checking for $ac_hdr" >&5
12563 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12572 { (eval echo configure:12573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12574 if test -z "$ac_err"; then
12576 eval "ac_cv_header_$ac_safe=yes"
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12582 eval "ac_cv_header_$ac_safe=no"
12586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12587 echo "$ac_t""yes" 1>&6
12588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12589 cat >> confdefs.h <<EOF
12590 #define $ac_tr_hdr 1
12594 echo "$ac_t""no" 1>&6
12598 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12599 echo "configure:12600: checking for dmalloc_shutdown in -ldmalloc" >&5
12600 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12601 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12604 ac_save_LIBS="$LIBS"
12605 LIBS="-ldmalloc $LIBS"
12606 cat > conftest.$ac_ext <<EOF
12607 #line 12608 "configure"
12608 #include "confdefs.h"
12609 /* Override any gcc2 internal prototype to avoid an error. */
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612 char dmalloc_shutdown();
12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620 eval "ac_cv_lib_$ac_lib_var=yes"
12622 echo "configure: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12625 eval "ac_cv_lib_$ac_lib_var=no"
12628 LIBS="$ac_save_LIBS"
12631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12632 echo "$ac_t""yes" 1>&6
12633 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12635 cat >> confdefs.h <<EOF
12636 #define $ac_tr_lib 1
12639 LIBS="-ldmalloc $LIBS"
12642 echo "$ac_t""no" 1>&6
12647 if test $ol_enable_tcl != no ; then
12648 for ac_hdr in tcl.h
12650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12652 echo "configure:12653: checking for $ac_hdr" >&5
12653 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12662 { (eval echo configure:12663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12664 if test -z "$ac_err"; then
12666 eval "ac_cv_header_$ac_safe=yes"
12669 echo "configure: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12672 eval "ac_cv_header_$ac_safe=no"
12676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12677 echo "$ac_t""yes" 1>&6
12678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12679 cat >> confdefs.h <<EOF
12680 #define $ac_tr_hdr 1
12684 echo "$ac_t""no" 1>&6
12689 if test $ac_cv_header_tcl_h != yes ; then
12692 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12693 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12694 echo "configure:12695: checking for main in -l$lib" >&5
12695 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12697 echo $ac_n "(cached) $ac_c" 1>&6
12699 ac_save_LIBS="$LIBS"
12700 LIBS="-l$lib $LIBS"
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12709 if { (eval echo configure:12710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12711 eval "ac_cv_lib_$ac_lib_var=yes"
12713 echo "configure: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12716 eval "ac_cv_lib_$ac_lib_var=no"
12719 LIBS="$ac_save_LIBS"
12722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12723 echo "$ac_t""yes" 1>&6
12725 if test x"$ol_with_tcl_module" = "xstatic" ; then
12726 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12728 MOD_TCL_LIB="-l${lib}"
12731 echo "$ac_t""no" 1>&6
12738 if test $have_tcl != yes ; then
12739 echo "configure: warning: could not find -ltcl" 1>&2
12740 if test $ol_enable_tcl = yes ; then
12741 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12749 for ac_hdr in termcap.h ncurses.h
12751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12753 echo "configure:12754: checking for $ac_hdr" >&5
12754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12763 { (eval echo configure:12764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12765 if test -z "$ac_err"; then
12767 eval "ac_cv_header_$ac_safe=yes"
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12773 eval "ac_cv_header_$ac_safe=no"
12777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12778 echo "$ac_t""yes" 1>&6
12779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12780 cat >> confdefs.h <<EOF
12781 #define $ac_tr_hdr 1
12785 echo "$ac_t""no" 1>&6
12790 if test $ol_link_termcap = no ; then
12791 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12792 echo "configure:12793: checking for tputs in -ltermcap" >&5
12793 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12797 ac_save_LIBS="$LIBS"
12798 LIBS="-ltermcap $LIBS"
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802 /* Override any gcc2 internal prototype to avoid an error. */
12803 /* We use char because int might match the return type of a gcc2
12804 builtin and then its argument prototype would still apply. */
12811 if { (eval echo configure:12812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12813 eval "ac_cv_lib_$ac_lib_var=yes"
12815 echo "configure: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12818 eval "ac_cv_lib_$ac_lib_var=no"
12821 LIBS="$ac_save_LIBS"
12824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12825 echo "$ac_t""yes" 1>&6
12828 echo "$ac_t""no" 1>&6
12832 if test $have_termcap = yes ; then
12833 cat >> confdefs.h <<\EOF
12834 #define HAVE_TERMCAP 1
12837 ol_link_termcap=yes
12838 TERMCAP_LIBS=-ltermcap
12842 if test $ol_link_termcap = no ; then
12843 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12844 echo "configure:12845: checking for initscr in -lncurses" >&5
12845 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12846 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12847 echo $ac_n "(cached) $ac_c" 1>&6
12849 ac_save_LIBS="$LIBS"
12850 LIBS="-lncurses $LIBS"
12851 cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 /* Override any gcc2 internal prototype to avoid an error. */
12855 /* We use char because int might match the return type of a gcc2
12856 builtin and then its argument prototype would still apply. */
12863 if { (eval echo configure:12864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12865 eval "ac_cv_lib_$ac_lib_var=yes"
12867 echo "configure: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12870 eval "ac_cv_lib_$ac_lib_var=no"
12873 LIBS="$ac_save_LIBS"
12876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12877 echo "$ac_t""yes" 1>&6
12880 echo "$ac_t""no" 1>&6
12884 if test $have_ncurses = yes ; then
12885 cat >> confdefs.h <<\EOF
12886 #define HAVE_NCURSES 1
12889 ol_link_termcap=yes
12890 TERMCAP_LIBS=-lncurses
12894 if test $ol_link_termcap = no ; then
12895 cat >> confdefs.h <<\EOF
12896 #define NO_TERMCAP 1
12903 if test $ol_with_cyrus_sasl != no ; then
12904 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12905 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12906 echo "configure:12907: checking for sasl.h" >&5
12907 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12908 echo $ac_n "(cached) $ac_c" 1>&6
12910 cat > conftest.$ac_ext <<EOF
12911 #line 12912 "configure"
12912 #include "confdefs.h"
12915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12916 { (eval echo configure:12917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12918 if test -z "$ac_err"; then
12920 eval "ac_cv_header_$ac_safe=yes"
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12926 eval "ac_cv_header_$ac_safe=no"
12930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12931 echo "$ac_t""yes" 1>&6
12934 echo "$ac_t""no" 1>&6
12938 if test $ac_cv_header_sasl_h = yes ; then
12939 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12940 echo "configure:12941: checking for sasl_client_init in -lsasl" >&5
12941 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12943 echo $ac_n "(cached) $ac_c" 1>&6
12945 ac_save_LIBS="$LIBS"
12946 LIBS="-lsasl $LIBS"
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* Override any gcc2 internal prototype to avoid an error. */
12951 /* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953 char sasl_client_init();
12959 if { (eval echo configure:12960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12961 eval "ac_cv_lib_$ac_lib_var=yes"
12963 echo "configure: failed program was:" >&5
12964 cat conftest.$ac_ext >&5
12966 eval "ac_cv_lib_$ac_lib_var=no"
12969 LIBS="$ac_save_LIBS"
12972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12973 echo "$ac_t""yes" 1>&6
12974 have_cyrus_sasl=yes
12976 echo "$ac_t""no" 1>&6
12981 if test $have_cyrus_sasl != no ; then
12983 cat >> confdefs.h <<\EOF
12984 #define HAVE_CYRUS_SASL 1
12991 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12992 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12996 if test $cross_compiling != yes ; then
12998 if test -r /dev/urandom ; then
12999 dev="/dev/urandom";
13000 elif test -r /idev/urandom ; then
13001 dev="/idev/urandom";
13002 elif test -r /dev/srandom ; then
13003 dev="/dev/srandom";
13004 elif test -r /dev/random ; then
13006 elif test -r /idev/random ; then
13007 dev="/idev/random";
13010 if test $dev != no ; then
13011 cat >> confdefs.h <<EOF
13012 #define URANDOM_DEVICE "$dev"
13019 if test $ol_with_fetch != no ; then
13021 LIBS="-lfetch -lcom_err $LIBS"
13022 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13023 echo "configure:13024: checking fetch(3) library" >&5
13024 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13025 echo $ac_n "(cached) $ac_c" 1>&6
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13032 #include <sys/param.h>
13036 struct url *u = fetchParseURL("file:///");
13039 if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13041 ol_cv_lib_fetch=yes
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13051 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13053 if test $ol_cv_lib_fetch != no ; then
13054 ol_link_fetch="-lfetch -lcom_err"
13055 cat >> confdefs.h <<\EOF
13056 #define HAVE_FETCH 1
13062 if test $ol_cv_lib_fetch != no ; then
13063 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13064 ol_link_fetch=freebsd
13066 elif test $ol_with_fetch != auto ; then
13067 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13071 ol_link_readline=no
13072 if test $ol_with_readline != no ; then
13073 for ac_hdr in readline/readline.h readline/history.h
13075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13077 echo "configure:13078: checking for $ac_hdr" >&5
13078 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13079 echo $ac_n "(cached) $ac_c" 1>&6
13081 cat > conftest.$ac_ext <<EOF
13082 #line 13083 "configure"
13083 #include "confdefs.h"
13086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13087 { (eval echo configure:13088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13089 if test -z "$ac_err"; then
13091 eval "ac_cv_header_$ac_safe=yes"
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13097 eval "ac_cv_header_$ac_safe=no"
13101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13102 echo "$ac_t""yes" 1>&6
13103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13104 cat >> confdefs.h <<EOF
13105 #define $ac_tr_hdr 1
13109 echo "$ac_t""no" 1>&6
13114 if test $ac_cv_header_readline_readline_h = yes ; then
13116 LIBS="$TERMCAP_LIBS $LIBS"
13117 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13118 echo "configure:13119: checking for readline in -lreadline" >&5
13119 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13120 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13121 echo $ac_n "(cached) $ac_c" 1>&6
13123 ac_save_LIBS="$LIBS"
13124 LIBS="-lreadline $LIBS"
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 /* Override any gcc2 internal prototype to avoid an error. */
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13137 if { (eval echo configure:13138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13139 eval "ac_cv_lib_$ac_lib_var=yes"
13141 echo "configure: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13144 eval "ac_cv_lib_$ac_lib_var=no"
13147 LIBS="$ac_save_LIBS"
13150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13151 echo "$ac_t""yes" 1>&6
13154 echo "$ac_t""no" 1>&6
13160 if test $have_readline = yes ; then
13161 ol_with_readline=found
13162 ol_link_readline=yes
13164 READLINE_LIBS="-lreadline"
13169 if test $ol_link_readline = yes ; then
13170 cat >> confdefs.h <<\EOF
13171 #define HAVE_READLINE 1
13177 if test $ol_enable_crypt != no ; then
13178 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13179 echo "configure:13180: checking for crypt" >&5
13180 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13181 echo $ac_n "(cached) $ac_c" 1>&6
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 /* System header to define __stub macros and hopefully few prototypes,
13187 which can conflict with char crypt(); below. */
13188 #include <assert.h>
13189 /* Override any gcc2 internal prototype to avoid an error. */
13190 /* We use char because int might match the return type of a gcc2
13191 builtin and then its argument prototype would still apply. */
13197 /* The GNU C library defines this for functions which it implements
13198 to always fail with ENOSYS. Some functions are actually named
13199 something starting with __ and the normal name is an alias. */
13200 #if defined (__stub_crypt) || defined (__stub___crypt)
13208 if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13210 eval "ac_cv_func_crypt=yes"
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13215 eval "ac_cv_func_crypt=no"
13220 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13221 echo "$ac_t""yes" 1>&6
13224 echo "$ac_t""no" 1>&6
13226 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13227 echo "configure:13228: checking for crypt in -lcrypt" >&5
13228 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13230 echo $ac_n "(cached) $ac_c" 1>&6
13232 ac_save_LIBS="$LIBS"
13233 LIBS="-lcrypt $LIBS"
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 /* Override any gcc2 internal prototype to avoid an error. */
13238 /* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
13246 if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13248 eval "ac_cv_lib_$ac_lib_var=yes"
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13253 eval "ac_cv_lib_$ac_lib_var=no"
13256 LIBS="$ac_save_LIBS"
13259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13264 echo "$ac_t""no" 1>&6
13271 if test $have_crypt = yes ; then
13272 cat >> confdefs.h <<\EOF
13273 #define HAVE_CRYPT 1
13277 echo "configure: warning: could not find crypt" 1>&2
13278 if test $ol_enable_crypt = yes ; then
13279 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13282 echo "configure: warning: disabling crypt support" 1>&2
13287 if test $ol_enable_proctitle != no ; then
13288 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13289 echo "configure:13290: checking for setproctitle" >&5
13290 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 /* System header to define __stub macros and hopefully few prototypes,
13297 which can conflict with char setproctitle(); below. */
13298 #include <assert.h>
13299 /* Override any gcc2 internal prototype to avoid an error. */
13300 /* We use char because int might match the return type of a gcc2
13301 builtin and then its argument prototype would still apply. */
13302 char setproctitle();
13307 /* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13318 if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320 eval "ac_cv_func_setproctitle=yes"
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13325 eval "ac_cv_func_setproctitle=no"
13330 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13332 have_setproctitle=yes
13334 echo "$ac_t""no" 1>&6
13336 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13337 echo "configure:13338: checking for setproctitle in -lutil" >&5
13338 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13339 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13340 echo $ac_n "(cached) $ac_c" 1>&6
13342 ac_save_LIBS="$LIBS"
13343 LIBS="-lutil $LIBS"
13344 cat > conftest.$ac_ext <<EOF
13345 #line 13346 "configure"
13346 #include "confdefs.h"
13347 /* Override any gcc2 internal prototype to avoid an error. */
13348 /* We use char because int might match the return type of a gcc2
13349 builtin and then its argument prototype would still apply. */
13350 char setproctitle();
13356 if { (eval echo configure:13357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13358 eval "ac_cv_lib_$ac_lib_var=yes"
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13363 eval "ac_cv_lib_$ac_lib_var=no"
13366 LIBS="$ac_save_LIBS"
13369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13370 echo "$ac_t""yes" 1>&6
13371 have_setproctitle=yes
13372 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13374 echo "$ac_t""no" 1>&6
13375 have_setproctitle=no
13376 LIBOBJS="$LIBOBJS setproctitle.o"
13377 LIBSRCS="$LIBSRCS setproctitle.c"
13383 if test $have_setproctitle = yes ; then
13384 cat >> confdefs.h <<\EOF
13385 #define HAVE_SETPROCTITLE 1
13391 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13392 echo "configure:13393: checking for ANSI C header files" >&5
13393 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
13396 cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 #include <stdlib.h>
13400 #include <stdarg.h>
13401 #include <string.h>
13404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13405 { (eval echo configure:13406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13407 if test -z "$ac_err"; then
13409 ac_cv_header_stdc=yes
13412 echo "configure: failed program was:" >&5
13413 cat conftest.$ac_ext >&5
13415 ac_cv_header_stdc=no
13419 if test $ac_cv_header_stdc = yes; then
13420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13421 cat > conftest.$ac_ext <<EOF
13422 #line 13423 "configure"
13423 #include "confdefs.h"
13424 #include <string.h>
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 egrep "memchr" >/dev/null 2>&1; then
13431 ac_cv_header_stdc=no
13437 if test $ac_cv_header_stdc = yes; then
13438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13439 cat > conftest.$ac_ext <<EOF
13440 #line 13441 "configure"
13441 #include "confdefs.h"
13442 #include <stdlib.h>
13444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445 egrep "free" >/dev/null 2>&1; then
13449 ac_cv_header_stdc=no
13455 if test $ac_cv_header_stdc = yes; then
13456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13457 if test "$cross_compiling" = yes; then
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13464 #if ((' ' & 0x0FF) == 0x020)
13465 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13466 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13468 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13469 || ('j' <= (c) && (c) <= 'r') \
13470 || ('s' <= (c) && (c) <= 'z'))
13471 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13474 int main () { int i; for (i = 0; i < 256; i++)
13475 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13479 if { (eval echo configure:13480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13483 echo "configure: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13486 ac_cv_header_stdc=no
13494 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13495 if test $ac_cv_header_stdc = yes; then
13496 cat >> confdefs.h <<\EOF
13497 #define STDC_HEADERS 1
13502 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13503 echo "configure:13504: checking for mode_t" >&5
13504 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13505 echo $ac_n "(cached) $ac_c" 1>&6
13507 cat > conftest.$ac_ext <<EOF
13508 #line 13509 "configure"
13509 #include "confdefs.h"
13510 #include <sys/types.h>
13512 #include <stdlib.h>
13513 #include <stddef.h>
13517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13520 eval "ac_cv_type_mode_t=yes"
13523 eval "ac_cv_type_mode_t=no"
13528 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13529 echo "$ac_t""yes" 1>&6
13531 echo "$ac_t""no" 1>&6
13532 cat >> confdefs.h <<EOF
13538 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13539 echo "configure:13540: checking for off_t" >&5
13540 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13543 cat > conftest.$ac_ext <<EOF
13544 #line 13545 "configure"
13545 #include "confdefs.h"
13546 #include <sys/types.h>
13548 #include <stdlib.h>
13549 #include <stddef.h>
13553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13554 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13556 eval "ac_cv_type_off_t=yes"
13559 eval "ac_cv_type_off_t=no"
13564 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13565 echo "$ac_t""yes" 1>&6
13567 echo "$ac_t""no" 1>&6
13568 cat >> confdefs.h <<EOF
13574 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13575 echo "configure:13576: checking for pid_t" >&5
13576 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13577 echo $ac_n "(cached) $ac_c" 1>&6
13579 cat > conftest.$ac_ext <<EOF
13580 #line 13581 "configure"
13581 #include "confdefs.h"
13582 #include <sys/types.h>
13584 #include <stdlib.h>
13585 #include <stddef.h>
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13592 eval "ac_cv_type_pid_t=yes"
13595 eval "ac_cv_type_pid_t=no"
13600 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13601 echo "$ac_t""yes" 1>&6
13603 echo "$ac_t""no" 1>&6
13604 cat >> confdefs.h <<EOF
13610 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13611 echo "configure:13612: checking for ptrdiff_t" >&5
13612 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13615 cat > conftest.$ac_ext <<EOF
13616 #line 13617 "configure"
13617 #include "confdefs.h"
13618 #include <stddef.h>
13623 if { (eval echo configure:13624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13625 am_cv_type_ptrdiff_t=yes
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13630 am_cv_type_ptrdiff_t=no
13635 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13636 if test $am_cv_type_ptrdiff_t = yes; then
13637 cat >> confdefs.h <<\EOF
13638 #define HAVE_PTRDIFF_T 1
13643 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13644 echo "configure:13645: checking return type of signal handlers" >&5
13645 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13648 cat > conftest.$ac_ext <<EOF
13649 #line 13650 "configure"
13650 #include "confdefs.h"
13651 #include <sys/types.h>
13652 #include <signal.h>
13657 extern "C" void (*signal (int, void (*)(int)))(int);
13659 void (*signal ()) ();
13666 if { (eval echo configure:13667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13668 ac_cv_type_signal=void
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13673 ac_cv_type_signal=int
13678 echo "$ac_t""$ac_cv_type_signal" 1>&6
13679 cat >> confdefs.h <<EOF
13680 #define RETSIGTYPE $ac_cv_type_signal
13684 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13685 echo "configure:13686: checking for size_t" >&5
13686 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 #include <sys/types.h>
13694 #include <stdlib.h>
13695 #include <stddef.h>
13699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13700 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13702 eval "ac_cv_type_size_t=yes"
13705 eval "ac_cv_type_size_t=no"
13710 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13711 echo "$ac_t""yes" 1>&6
13713 echo "$ac_t""no" 1>&6
13714 cat >> confdefs.h <<EOF
13715 #define size_t unsigned
13721 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13722 echo "configure:13723: checking for ssize_t" >&5
13723 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13726 cat > conftest.$ac_ext <<EOF
13727 #line 13728 "configure"
13728 #include "confdefs.h"
13729 #include <sys/types.h>
13731 #include <stdlib.h>
13732 #include <stddef.h>
13736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13737 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13739 eval "ac_cv_type_ssize_t=yes"
13742 eval "ac_cv_type_ssize_t=no"
13747 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13750 echo "$ac_t""no" 1>&6
13751 cat >> confdefs.h <<EOF
13752 #define ssize_t signed int
13757 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13758 echo "configure:13759: checking for caddr_t" >&5
13759 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
13762 cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13765 #include <sys/types.h>
13767 #include <stdlib.h>
13768 #include <stddef.h>
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13775 eval "ac_cv_type_caddr_t=yes"
13778 eval "ac_cv_type_caddr_t=no"
13783 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13784 echo "$ac_t""yes" 1>&6
13786 echo "$ac_t""no" 1>&6
13787 cat >> confdefs.h <<EOF
13788 #define caddr_t char *
13794 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13795 echo "configure:13796: checking for socklen_t" >&5
13796 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13797 echo $ac_n "(cached) $ac_c" 1>&6
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13803 #ifdef HAVE_SYS_TYPES_H
13804 #include <sys/types.h>
13806 #ifdef HAVE_SYS_SOCKET_H
13807 #include <sys/socket.h>
13814 if { (eval echo configure:13815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13816 ol_cv_type_socklen_t=yes
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13821 ol_cv_type_socklen_t=no
13826 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13827 if test $ol_cv_type_socklen_t = no; then
13828 cat >> confdefs.h <<\EOF
13829 #define socklen_t int
13834 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13835 echo "configure:13836: checking for member st_blksize in aggregate type struct stat" >&5
13836 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13837 echo $ac_n "(cached) $ac_c" 1>&6
13839 cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 #include <sys/types.h>
13843 #include <sys/stat.h>
13845 struct stat foo; foo.st_blksize;
13848 if { (eval echo configure:13849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13850 ac_cv_c_struct_member_st_blksize=yes
13852 echo "configure: failed program was:" >&5
13853 cat conftest.$ac_ext >&5
13855 ac_cv_c_struct_member_st_blksize=no
13860 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13861 st_blksize="$ac_cv_c_struct_member_st_blksize"
13862 if test $ac_cv_c_struct_member_st_blksize = yes; then
13863 cat >> confdefs.h <<\EOF
13864 #define HAVE_ST_BLKSIZE 1
13869 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13870 echo "configure:13871: checking whether time.h and sys/time.h may both be included" >&5
13871 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13872 echo $ac_n "(cached) $ac_c" 1>&6
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13877 #include <sys/types.h>
13878 #include <sys/time.h>
13884 if { (eval echo configure:13885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13886 ac_cv_header_time=yes
13888 echo "configure: failed program was:" >&5
13889 cat conftest.$ac_ext >&5
13891 ac_cv_header_time=no
13896 echo "$ac_t""$ac_cv_header_time" 1>&6
13897 if test $ac_cv_header_time = yes; then
13898 cat >> confdefs.h <<\EOF
13899 #define TIME_WITH_SYS_TIME 1
13904 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13905 echo "configure:13906: checking whether struct tm is in sys/time.h or time.h" >&5
13906 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13907 echo $ac_n "(cached) $ac_c" 1>&6
13909 cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13912 #include <sys/types.h>
13915 struct tm *tp; tp->tm_sec;
13918 if { (eval echo configure:13919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13920 ac_cv_struct_tm=time.h
13922 echo "configure: failed program was:" >&5
13923 cat conftest.$ac_ext >&5
13925 ac_cv_struct_tm=sys/time.h
13930 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13931 if test $ac_cv_struct_tm = sys/time.h; then
13932 cat >> confdefs.h <<\EOF
13933 #define TM_IN_SYS_TIME 1
13938 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13939 echo "configure:13940: checking for uid_t in sys/types.h" >&5
13940 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13941 echo $ac_n "(cached) $ac_c" 1>&6
13943 cat > conftest.$ac_ext <<EOF
13944 #line 13945 "configure"
13945 #include "confdefs.h"
13946 #include <sys/types.h>
13948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13949 egrep "uid_t" >/dev/null 2>&1; then
13951 ac_cv_type_uid_t=yes
13954 ac_cv_type_uid_t=no
13960 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13961 if test $ac_cv_type_uid_t = no; then
13962 cat >> confdefs.h <<\EOF
13966 cat >> confdefs.h <<\EOF
13972 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13973 echo "configure:13974: checking for sig_atomic_t" >&5
13974 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
13975 echo $ac_n "(cached) $ac_c" 1>&6
13977 cat > conftest.$ac_ext <<EOF
13978 #line 13979 "configure"
13979 #include "confdefs.h"
13980 #include <signal.h>
13982 sig_atomic_t atomic;
13985 if { (eval echo configure:13986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13987 ol_cv_type_sig_atomic_t=yes
13989 echo "configure: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13992 ol_cv_type_sig_atomic_t=no
13997 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13998 if test $ol_cv_type_sig_atomic_t = no; then
13999 cat >> confdefs.h <<\EOF
14000 #define sig_atomic_t int
14007 # test for pw_gecos in struct passwd
14008 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14009 echo "configure:14010: checking struct passwd for pw_gecos" >&5
14010 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14011 echo $ac_n "(cached) $ac_c" 1>&6
14014 cat > conftest.$ac_ext <<EOF
14015 #line 14016 "configure"
14016 #include "confdefs.h"
14021 pwd.pw_gecos = pwd.pw_name;
14025 if { (eval echo configure:14026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14027 ol_cv_struct_passwd_pw_gecos=yes
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14032 ol_cv_struct_passwd_pw_gecos=no
14037 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14038 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14039 cat >> confdefs.h <<\EOF
14040 #define HAVE_PW_GECOS 1
14045 # test for pw_passwd in struct passwd
14046 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14047 echo "configure:14048: checking struct passwd for pw_passwd" >&5
14048 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14049 echo $ac_n "(cached) $ac_c" 1>&6
14052 cat > conftest.$ac_ext <<EOF
14053 #line 14054 "configure"
14054 #include "confdefs.h"
14059 pwd.pw_passwd = pwd.pw_name;
14063 if { (eval echo configure:14064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14065 ol_cv_struct_passwd_pw_passwd=yes
14067 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14070 ol_cv_struct_passwd_pw_passwd=no
14075 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14076 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14077 cat >> confdefs.h <<\EOF
14078 #define HAVE_PW_PASSWD 1
14084 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14085 echo "configure:14086: checking if toupper() requires islower()" >&5
14086 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14087 echo $ac_n "(cached) $ac_c" 1>&6
14090 if test "$cross_compiling" = yes; then
14091 ol_cv_c_upper_lower=safe
14093 cat > conftest.$ac_ext <<EOF
14094 #line 14095 "configure"
14095 #include "confdefs.h"
14100 if ('C' == toupper('C'))
14106 if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14108 ol_cv_c_upper_lower=no
14110 echo "configure: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14113 ol_cv_c_upper_lower=yes
14120 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14121 if test $ol_cv_c_upper_lower != no ; then
14122 cat >> confdefs.h <<\EOF
14123 #define C_UPPER_LOWER 1
14128 echo $ac_n "checking for working const""... $ac_c" 1>&6
14129 echo "configure:14130: checking for working const" >&5
14130 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14131 echo $ac_n "(cached) $ac_c" 1>&6
14133 cat > conftest.$ac_ext <<EOF
14134 #line 14135 "configure"
14135 #include "confdefs.h"
14139 /* Ultrix mips cc rejects this. */
14140 typedef int charset[2]; const charset x;
14141 /* SunOS 4.1.1 cc rejects this. */
14142 char const *const *ccp;
14144 /* NEC SVR4.0.2 mips cc rejects this. */
14145 struct point {int x, y;};
14146 static struct point const zero = {0,0};
14147 /* AIX XL C 1.02.0.0 rejects this.
14148 It does not let you subtract one const X* pointer from another in an arm
14149 of an if-expression whose if-part is not a constant expression */
14150 const char *g = "string";
14151 ccp = &g + (g ? g-g : 0);
14152 /* HPUX 7.0 cc rejects these. */
14155 ccp = (char const *const *) p;
14156 { /* SCO 3.2v4 cc rejects this. */
14158 char const *s = 0 ? (char *) 0 : (char const *) 0;
14162 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14163 int x[] = {25, 17};
14164 const int *foo = &x[0];
14167 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14168 typedef const int *iptr;
14172 { /* AIX XL C 1.02.0.0 rejects this saying
14173 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14174 struct s { int j; const int *ap[3]; };
14175 struct s *b; b->j = 5;
14177 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14178 const int foo = 10;
14183 if { (eval echo configure:14184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14187 echo "configure: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14195 echo "$ac_t""$ac_cv_c_const" 1>&6
14196 if test $ac_cv_c_const = no; then
14197 cat >> confdefs.h <<\EOF
14203 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14204 echo "configure:14205: checking if compiler understands volatile" >&5
14205 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14206 echo $ac_n "(cached) $ac_c" 1>&6
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14213 volatile int a; int * volatile b = x ? &y : &z;
14214 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14218 if { (eval echo configure:14219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14220 ol_cv_c_volatile=yes
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14225 ol_cv_c_volatile=no
14230 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14231 if test $ol_cv_c_volatile = yes; then
14234 cat >> confdefs.h <<\EOF
14241 if test $cross_compiling = yes ; then
14242 cat >> confdefs.h <<\EOF
14243 #define CROSS_COMPILING 1
14247 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14248 echo "configure:14249: checking whether byte ordering is bigendian" >&5
14249 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14250 echo $ac_n "(cached) $ac_c" 1>&6
14252 ac_cv_c_bigendian=unknown
14253 # See if sys/param.h defines the BYTE_ORDER macro.
14254 cat > conftest.$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14257 #include <sys/types.h>
14258 #include <sys/param.h>
14261 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14262 bogus endian macros
14266 if { (eval echo configure:14267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14268 # It does; now see whether it defined to BIG_ENDIAN or not.
14269 cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 #include <sys/types.h>
14273 #include <sys/param.h>
14276 #if BYTE_ORDER != BIG_ENDIAN
14281 if { (eval echo configure:14282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14283 ac_cv_c_bigendian=yes
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14288 ac_cv_c_bigendian=no
14292 echo "configure: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14296 if test $ac_cv_c_bigendian = unknown; then
14297 if test "$cross_compiling" = yes; then
14298 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14300 cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14304 /* Are we little or big endian? From Harbison&Steele. */
14308 char c[sizeof (long)];
14311 exit (u.c[sizeof (long) - 1] == 1);
14314 if { (eval echo configure:14315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14316 ac_cv_c_bigendian=no
14318 echo "configure: failed program was:" >&5
14319 cat conftest.$ac_ext >&5
14321 ac_cv_c_bigendian=yes
14329 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14330 if test $ac_cv_c_bigendian = yes; then
14331 cat >> confdefs.h <<\EOF
14332 #define WORDS_BIGENDIAN 1
14339 echo $ac_n "checking size of short""... $ac_c" 1>&6
14340 echo "configure:14341: checking size of short" >&5
14341 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14342 echo $ac_n "(cached) $ac_c" 1>&6
14344 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14345 cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 #include "confdefs.h"
14349 #include <sys/types.h>
14353 switch (0) case 0: case (sizeof (short) == $ac_size):;
14356 if { (eval echo configure:14357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14358 ac_cv_sizeof_short=$ac_size
14360 echo "configure: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14364 if test x$ac_cv_sizeof_short != x ; then break; fi
14369 if test x$ac_cv_sizeof_short = x ; then
14370 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14372 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14373 cat >> confdefs.h <<EOF
14374 #define SIZEOF_SHORT $ac_cv_sizeof_short
14378 echo $ac_n "checking size of int""... $ac_c" 1>&6
14379 echo "configure:14380: checking size of int" >&5
14380 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14381 echo $ac_n "(cached) $ac_c" 1>&6
14383 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14384 cat > conftest.$ac_ext <<EOF
14385 #line 14386 "configure"
14386 #include "confdefs.h"
14387 #include "confdefs.h"
14388 #include <sys/types.h>
14392 switch (0) case 0: case (sizeof (int) == $ac_size):;
14395 if { (eval echo configure:14396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14397 ac_cv_sizeof_int=$ac_size
14399 echo "configure: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14403 if test x$ac_cv_sizeof_int != x ; then break; fi
14408 if test x$ac_cv_sizeof_int = x ; then
14409 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14411 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14412 cat >> confdefs.h <<EOF
14413 #define SIZEOF_INT $ac_cv_sizeof_int
14417 echo $ac_n "checking size of long""... $ac_c" 1>&6
14418 echo "configure:14419: checking size of long" >&5
14419 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14420 echo $ac_n "(cached) $ac_c" 1>&6
14422 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14426 #include "confdefs.h"
14427 #include <sys/types.h>
14431 switch (0) case 0: case (sizeof (long) == $ac_size):;
14434 if { (eval echo configure:14435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14436 ac_cv_sizeof_long=$ac_size
14438 echo "configure: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14442 if test x$ac_cv_sizeof_long != x ; then break; fi
14447 if test x$ac_cv_sizeof_long = x ; then
14448 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14450 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14451 cat >> confdefs.h <<EOF
14452 #define SIZEOF_LONG $ac_cv_sizeof_long
14457 if test "$ac_cv_sizeof_int" -lt 4 ; then
14458 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14460 cat >> confdefs.h <<\EOF
14461 #define LBER_INT_T long
14465 cat >> confdefs.h <<\EOF
14466 #define LBER_INT_T int
14471 cat >> confdefs.h <<\EOF
14472 #define LBER_LEN_T long
14475 cat >> confdefs.h <<\EOF
14476 #define LBER_SOCKET_T int
14479 cat >> confdefs.h <<\EOF
14480 #define LBER_TAG_T long
14484 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14485 echo "configure:14486: checking for 8-bit clean memcmp" >&5
14486 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14487 echo $ac_n "(cached) $ac_c" 1>&6
14489 if test "$cross_compiling" = yes; then
14490 ac_cv_func_memcmp_clean=no
14492 cat > conftest.$ac_ext <<EOF
14493 #line 14494 "configure"
14494 #include "confdefs.h"
14498 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14499 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14503 if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14505 ac_cv_func_memcmp_clean=yes
14507 echo "configure: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14510 ac_cv_func_memcmp_clean=no
14517 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14518 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14520 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14521 echo "configure:14522: checking for strftime" >&5
14522 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14523 echo $ac_n "(cached) $ac_c" 1>&6
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 /* System header to define __stub macros and hopefully few prototypes,
14529 which can conflict with char strftime(); below. */
14530 #include <assert.h>
14531 /* Override any gcc2 internal prototype to avoid an error. */
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14539 /* The GNU C library defines this for functions which it implements
14540 to always fail with ENOSYS. Some functions are actually named
14541 something starting with __ and the normal name is an alias. */
14542 #if defined (__stub_strftime) || defined (__stub___strftime)
14550 if { (eval echo configure:14551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14552 eval "ac_cv_func_strftime=yes"
14554 echo "configure: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14557 eval "ac_cv_func_strftime=no"
14562 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14563 echo "$ac_t""yes" 1>&6
14564 cat >> confdefs.h <<\EOF
14565 #define HAVE_STRFTIME 1
14569 echo "$ac_t""no" 1>&6
14570 # strftime is in -lintl on SCO UNIX.
14571 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14572 echo "configure:14573: checking for strftime in -lintl" >&5
14573 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14575 echo $ac_n "(cached) $ac_c" 1>&6
14577 ac_save_LIBS="$LIBS"
14578 LIBS="-lintl $LIBS"
14579 cat > conftest.$ac_ext <<EOF
14580 #line 14581 "configure"
14581 #include "confdefs.h"
14582 /* Override any gcc2 internal prototype to avoid an error. */
14583 /* We use char because int might match the return type of a gcc2
14584 builtin and then its argument prototype would still apply. */
14591 if { (eval echo configure:14592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14593 eval "ac_cv_lib_$ac_lib_var=yes"
14595 echo "configure: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14598 eval "ac_cv_lib_$ac_lib_var=no"
14601 LIBS="$ac_save_LIBS"
14604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14605 echo "$ac_t""yes" 1>&6
14606 cat >> confdefs.h <<\EOF
14607 #define HAVE_STRFTIME 1
14610 LIBS="-lintl $LIBS"
14612 echo "$ac_t""no" 1>&6
14618 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14619 echo "configure:14620: checking for inet_aton()" >&5
14620 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14621 echo $ac_n "(cached) $ac_c" 1>&6
14623 cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14627 #ifdef HAVE_SYS_TYPES_H
14628 # include <sys/types.h>
14630 #ifdef HAVE_SYS_SOCKET_H
14631 # include <sys/socket.h>
14632 # ifdef HAVE_SYS_SELECT_H
14633 # include <sys/select.h>
14635 # include <netinet/in.h>
14636 # ifdef HAVE_ARPA_INET_H
14637 # include <arpa/inet.h>
14643 int rc = inet_aton( "255.255.255.255", &in );
14646 if { (eval echo configure:14647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14648 ol_cv_func_inet_aton=yes
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14653 ol_cv_func_inet_aton=no
14658 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14659 if test $ol_cv_func_inet_aton != no; then
14660 cat >> confdefs.h <<\EOF
14661 #define HAVE_INET_ATON 1
14667 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14668 echo "configure:14669: checking for _spawnlp" >&5
14669 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14670 echo $ac_n "(cached) $ac_c" 1>&6
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 /* System header to define __stub macros and hopefully few prototypes,
14676 which can conflict with char _spawnlp(); below. */
14677 #include <assert.h>
14678 /* Override any gcc2 internal prototype to avoid an error. */
14679 /* We use char because int might match the return type of a gcc2
14680 builtin and then its argument prototype would still apply. */
14686 /* The GNU C library defines this for functions which it implements
14687 to always fail with ENOSYS. Some functions are actually named
14688 something starting with __ and the normal name is an alias. */
14689 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14697 if { (eval echo configure:14698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699 eval "ac_cv_func__spawnlp=yes"
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14704 eval "ac_cv_func__spawnlp=no"
14709 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14710 echo "$ac_t""yes" 1>&6
14711 cat >> confdefs.h <<\EOF
14712 #define HAVE_SPAWNLP 1
14716 echo "$ac_t""no" 1>&6
14720 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14721 echo "configure:14722: checking for _snprintf" >&5
14722 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14725 cat > conftest.$ac_ext <<EOF
14726 #line 14727 "configure"
14727 #include "confdefs.h"
14728 /* System header to define __stub macros and hopefully few prototypes,
14729 which can conflict with char _snprintf(); below. */
14730 #include <assert.h>
14731 /* Override any gcc2 internal prototype to avoid an error. */
14732 /* We use char because int might match the return type of a gcc2
14733 builtin and then its argument prototype would still apply. */
14739 /* The GNU C library defines this for functions which it implements
14740 to always fail with ENOSYS. Some functions are actually named
14741 something starting with __ and the normal name is an alias. */
14742 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14750 if { (eval echo configure:14751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14752 eval "ac_cv_func__snprintf=yes"
14754 echo "configure: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14757 eval "ac_cv_func__snprintf=no"
14762 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14763 echo "$ac_t""yes" 1>&6
14764 ac_cv_func_snprintf=yes
14765 cat >> confdefs.h <<\EOF
14766 #define snprintf _snprintf
14771 echo "$ac_t""no" 1>&6
14775 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14776 echo "configure:14777: checking for _vsnprintf" >&5
14777 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14778 echo $ac_n "(cached) $ac_c" 1>&6
14780 cat > conftest.$ac_ext <<EOF
14781 #line 14782 "configure"
14782 #include "confdefs.h"
14783 /* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char _vsnprintf(); below. */
14785 #include <assert.h>
14786 /* Override any gcc2 internal prototype to avoid an error. */
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14794 /* The GNU C library defines this for functions which it implements
14795 to always fail with ENOSYS. Some functions are actually named
14796 something starting with __ and the normal name is an alias. */
14797 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14805 if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14807 eval "ac_cv_func__vsnprintf=yes"
14809 echo "configure: failed program was:" >&5
14810 cat conftest.$ac_ext >&5
14812 eval "ac_cv_func__vsnprintf=no"
14817 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14818 echo "$ac_t""yes" 1>&6
14819 ac_cv_func_vsnprintf=yes
14820 cat >> confdefs.h <<\EOF
14821 #define vsnprintf _vsnprintf
14826 echo "$ac_t""no" 1>&6
14830 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14831 echo "configure:14832: checking for vprintf" >&5
14832 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14833 echo $ac_n "(cached) $ac_c" 1>&6
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14838 /* System header to define __stub macros and hopefully few prototypes,
14839 which can conflict with char vprintf(); below. */
14840 #include <assert.h>
14841 /* Override any gcc2 internal prototype to avoid an error. */
14842 /* We use char because int might match the return type of a gcc2
14843 builtin and then its argument prototype would still apply. */
14849 /* The GNU C library defines this for functions which it implements
14850 to always fail with ENOSYS. Some functions are actually named
14851 something starting with __ and the normal name is an alias. */
14852 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14860 if { (eval echo configure:14861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14862 eval "ac_cv_func_vprintf=yes"
14864 echo "configure: failed program was:" >&5
14865 cat conftest.$ac_ext >&5
14867 eval "ac_cv_func_vprintf=no"
14872 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14873 echo "$ac_t""yes" 1>&6
14874 cat >> confdefs.h <<\EOF
14875 #define HAVE_VPRINTF 1
14879 echo "$ac_t""no" 1>&6
14882 if test "$ac_cv_func_vprintf" != yes; then
14883 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14884 echo "configure:14885: checking for _doprnt" >&5
14885 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14886 echo $ac_n "(cached) $ac_c" 1>&6
14888 cat > conftest.$ac_ext <<EOF
14889 #line 14890 "configure"
14890 #include "confdefs.h"
14891 /* System header to define __stub macros and hopefully few prototypes,
14892 which can conflict with char _doprnt(); below. */
14893 #include <assert.h>
14894 /* Override any gcc2 internal prototype to avoid an error. */
14895 /* We use char because int might match the return type of a gcc2
14896 builtin and then its argument prototype would still apply. */
14902 /* The GNU C library defines this for functions which it implements
14903 to always fail with ENOSYS. Some functions are actually named
14904 something starting with __ and the normal name is an alias. */
14905 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14913 if { (eval echo configure:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14915 eval "ac_cv_func__doprnt=yes"
14917 echo "configure: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14920 eval "ac_cv_func__doprnt=no"
14925 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14926 echo "$ac_t""yes" 1>&6
14927 cat >> confdefs.h <<\EOF
14928 #define HAVE_DOPRNT 1
14932 echo "$ac_t""no" 1>&6
14938 if test $ac_cv_func_vprintf = yes ; then
14939 for ac_func in vsnprintf vsprintf
14941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14942 echo "configure:14943: checking for $ac_func" >&5
14943 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14944 echo $ac_n "(cached) $ac_c" 1>&6
14946 cat > conftest.$ac_ext <<EOF
14947 #line 14948 "configure"
14948 #include "confdefs.h"
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func(); below. */
14951 #include <assert.h>
14952 /* Override any gcc2 internal prototype to avoid an error. */
14953 /* We use char because int might match the return type of a gcc2
14954 builtin and then its argument prototype would still apply. */
14960 /* The GNU C library defines this for functions which it implements
14961 to always fail with ENOSYS. Some functions are actually named
14962 something starting with __ and the normal name is an alias. */
14963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14971 if { (eval echo configure:14972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14973 eval "ac_cv_func_$ac_func=yes"
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14978 eval "ac_cv_func_$ac_func=no"
14983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14986 cat >> confdefs.h <<EOF
14987 #define $ac_tr_func 1
14991 echo "$ac_t""no" 1>&6
15047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15048 echo "configure:15049: checking for $ac_func" >&5
15049 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15050 echo $ac_n "(cached) $ac_c" 1>&6
15052 cat > conftest.$ac_ext <<EOF
15053 #line 15054 "configure"
15054 #include "confdefs.h"
15055 /* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char $ac_func(); below. */
15057 #include <assert.h>
15058 /* Override any gcc2 internal prototype to avoid an error. */
15059 /* We use char because int might match the return type of a gcc2
15060 builtin and then its argument prototype would still apply. */
15066 /* The GNU C library defines this for functions which it implements
15067 to always fail with ENOSYS. Some functions are actually named
15068 something starting with __ and the normal name is an alias. */
15069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15077 if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15079 eval "ac_cv_func_$ac_func=yes"
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15084 eval "ac_cv_func_$ac_func=no"
15089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15090 echo "$ac_t""yes" 1>&6
15091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15092 cat >> confdefs.h <<EOF
15093 #define $ac_tr_func 1
15097 echo "$ac_t""no" 1>&6
15102 for ac_func in getopt tempnam
15104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15105 echo "configure:15106: checking for $ac_func" >&5
15106 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15107 echo $ac_n "(cached) $ac_c" 1>&6
15109 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 /* System header to define __stub macros and hopefully few prototypes,
15113 which can conflict with char $ac_func(); below. */
15114 #include <assert.h>
15115 /* Override any gcc2 internal prototype to avoid an error. */
15116 /* We use char because int might match the return type of a gcc2
15117 builtin and then its argument prototype would still apply. */
15123 /* The GNU C library defines this for functions which it implements
15124 to always fail with ENOSYS. Some functions are actually named
15125 something starting with __ and the normal name is an alias. */
15126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15134 if { (eval echo configure:15135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15136 eval "ac_cv_func_$ac_func=yes"
15138 echo "configure: failed program was:" >&5
15139 cat conftest.$ac_ext >&5
15141 eval "ac_cv_func_$ac_func=no"
15146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15147 echo "$ac_t""yes" 1>&6
15148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15149 cat >> confdefs.h <<EOF
15150 #define $ac_tr_func 1
15154 echo "$ac_t""no" 1>&6
15155 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15161 if test "$ac_cv_func_getopt" != yes; then
15162 LIBSRCS="$LIBSRCS getopt.c"
15165 if test "$ac_cv_func_tempnam" != yes; then
15166 LIBSRCS="$LIBSRCS tempnam.c"
15169 # Check Configuration
15170 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15171 echo "configure:15172: checking declaration of sys_errlist" >&5
15172 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15173 echo $ac_n "(cached) $ac_c" 1>&6
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15181 #include <sys/types.h>
15184 #include <stdlib.h>
15187 char *c = (char *) *sys_errlist
15190 if { (eval echo configure:15191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15192 ol_cv_dcl_sys_errlist=yes
15193 ol_cv_have_sys_errlist=yes
15195 echo "configure: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15198 ol_cv_dcl_sys_errlist=no
15203 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15205 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15206 if test $ol_cv_dcl_sys_errlist = no ; then
15207 cat >> confdefs.h <<\EOF
15208 #define DECL_SYS_ERRLIST 1
15212 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15213 echo "configure:15214: checking existence of sys_errlist" >&5
15214 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15215 echo $ac_n "(cached) $ac_c" 1>&6
15218 cat > conftest.$ac_ext <<EOF
15219 #line 15220 "configure"
15220 #include "confdefs.h"
15223 char *c = (char *) *sys_errlist
15226 if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15228 ol_cv_have_sys_errlist=yes
15230 echo "configure: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15233 ol_cv_have_sys_errlist=no
15238 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15240 if test $ol_cv_have_sys_errlist = yes ; then
15241 cat >> confdefs.h <<\EOF
15242 #define HAVE_SYS_ERRLIST 1
15249 if test "$ol_enable_debug" != no ; then
15250 cat >> confdefs.h <<\EOF
15251 #define LDAP_DEBUG 1
15255 if test "$ol_enable_syslog" = yes ; then
15256 cat >> confdefs.h <<\EOF
15257 #define LDAP_SYSLOG 1
15261 if test "$ol_enable_libui" = yes ; then
15262 cat >> confdefs.h <<\EOF
15263 #define LDAP_LIBUI 1
15267 if test "$ol_enable_cache" = no ; then
15268 cat >> confdefs.h <<\EOF
15269 #define LDAP_NOCACHE 1
15273 if test "$ol_link_kbind" != no ; then
15274 cat >> confdefs.h <<\EOF
15275 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15279 if test "$ol_enable_dns" != no ; then
15280 cat >> confdefs.h <<\EOF
15281 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15285 if test "$ol_enable_proctitle" != no ; then
15286 cat >> confdefs.h <<\EOF
15287 #define LDAP_PROCTITLE 1
15291 if test "$ol_enable_referrals" != no ; then
15292 cat >> confdefs.h <<\EOF
15293 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15297 if test "$ol_enable_cldap" != no ; then
15298 cat >> confdefs.h <<\EOF
15299 #define LDAP_CONNECTIONLESS 1
15303 if test "$ol_enable_ldapi" != no; then
15304 cat >> confdefs.h <<\EOF
15305 #define USE_PF_LOCAL 1
15310 if test "$ol_enable_cleartext" != no ; then
15311 cat >> confdefs.h <<\EOF
15312 #define SLAPD_CLEARTEXT 1
15316 if test "$ol_enable_crypt" != no ; then
15317 cat >> confdefs.h <<\EOF
15318 #define SLAPD_CRYPT 1
15322 if test "$ol_link_kpasswd" != no ; then
15323 cat >> confdefs.h <<\EOF
15324 #define SLAPD_KPASSWD 1
15328 if test "$ol_enable_multimaster" != no ; then
15329 cat >> confdefs.h <<\EOF
15330 #define SLAPD_MULTIMASTER 1
15334 if test "$ol_enable_phonetic" != no ; then
15335 cat >> confdefs.h <<\EOF
15336 #define SLAPD_PHONETIC 1
15340 if test "$ol_enable_rlookups" != no ; then
15341 cat >> confdefs.h <<\EOF
15342 #define SLAPD_RLOOKUPS 1
15346 if test "$ol_enable_aci" != no ; then
15347 cat >> confdefs.h <<\EOF
15348 #define SLAPD_ACI_ENABLED 1
15353 if test "$ol_link_modules" != no ; then
15354 cat >> confdefs.h <<\EOF
15355 #define SLAPD_MODULES 1
15359 SLAPD_MODULES_LDFLAGS="-dlopen self"
15362 if test "$ol_link_bdb2" != no ; then
15363 cat >> confdefs.h <<\EOF
15364 #define SLAPD_BDB2 1
15369 if test "$ol_with_bdb2_module" != static ; then
15370 cat >> confdefs.h <<\EOF
15371 #define SLAPD_BDB2_DYNAMIC 1
15375 BUILD_BDB2_DYNAMIC=shared
15376 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15380 if test "$ol_enable_ldap" != no ; then
15381 cat >> confdefs.h <<\EOF
15382 #define SLAPD_LDAP 1
15387 if test "$ol_with_ldap_module" != static ; then
15388 cat >> confdefs.h <<\EOF
15389 #define SLAPD_LDAP_DYNAMIC 1
15393 BUILD_LDAP_DYNAMIC=shared
15394 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15398 if test "$ol_link_ldbm" != no ; then
15399 cat >> confdefs.h <<\EOF
15400 #define SLAPD_LDBM 1
15405 if test "$ol_with_ldbm_module" != static ; then
15406 cat >> confdefs.h <<\EOF
15407 #define SLAPD_LDBM_DYNAMIC 1
15411 BUILD_LDBM_DYNAMIC=shared
15412 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15416 if test "$ol_enable_passwd" != no ; then
15417 cat >> confdefs.h <<\EOF
15418 #define SLAPD_PASSWD 1
15423 if test "$ol_with_passwd_module" != static ; then
15424 cat >> confdefs.h <<\EOF
15425 #define SLAPD_PASSWD_DYNAMIC 1
15429 BUILD_PASSWD_DYNAMIC=shared
15430 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15434 if test "$ol_link_perl" != no ; then
15435 cat >> confdefs.h <<\EOF
15436 #define SLAPD_PERL 1
15441 if test "$ol_with_perl_module" != static ; then
15442 cat >> confdefs.h <<\EOF
15443 #define SLAPD_PERL_DYNAMIC 1
15447 BUILD_PERL_DYNAMIC=shared
15448 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15452 if test "$ol_enable_shell" != no ; then
15453 cat >> confdefs.h <<\EOF
15454 #define SLAPD_SHELL 1
15459 if test "$ol_with_shell_module" != static ; then
15460 cat >> confdefs.h <<\EOF
15461 #define SLAPD_SHELL_DYNAMIC 1
15465 BUILD_SHELL_DYNAMIC=shared
15466 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15470 if test "$ol_enable_tcl" != no ; then
15471 cat >> confdefs.h <<\EOF
15472 #define SLAPD_TCL 1
15477 if test "$ol_with_tcl_module" != static; then
15478 cat >> confdefs.h <<\EOF
15479 #define SLAPD_TCL_DYNAMIC 1
15483 BUILD_TCL_DYNAMIC=shared
15484 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15488 if test "$ol_enable_sql" != no ; then
15489 cat >> confdefs.h <<\EOF
15490 #define SLAPD_SQL 1
15495 SLAPD_SQL_LIBS=-liodbc
15496 if test "$ol_with_sql_module" != static; then
15497 cat >> confdefs.h <<\EOF
15498 #define SLAPD_SQL_DYNAMIC 1
15502 BUILD_SQL_DYNAMIC=shared
15503 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15507 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15508 $BUILD_SLAPD = yes ; then
15512 if test "$ol_link_isode" != no ; then
15517 if test "$LINK_BINS_DYNAMIC" = yes; then
15519 LT_LIB_LINKAGE=shared
15522 LT_LIB_LINKAGE=static
15525 if test "$ac_cv_mingw32" = yes ; then
15596 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15599 # Let make expand exec_prefix.
15600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15602 # Any assignment to VPATH causes Sun make to only execute
15603 # the first set of double-colon rules, so remove it if not needed.
15604 # If there is a colon in the path, we need to keep it.
15605 if test "x$srcdir" = x.; then
15606 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15609 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15611 DEFS=-DHAVE_CONFIG_H
15613 # Without the "./", some shells look in PATH for config.status.
15614 : ${CONFIG_STATUS=./config.status}
15616 echo creating $CONFIG_STATUS
15617 rm -f $CONFIG_STATUS
15618 cat > $CONFIG_STATUS <<EOF
15620 # Generated automatically by configure.
15621 # Run this file to recreate the current configuration.
15622 # This directory was configured as follows,
15623 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15625 # $0 $ac_configure_args
15627 # Compiler output produced by configure, useful for debugging
15628 # configure, is in ./config.log if it exists.
15630 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15633 case "\$ac_option" in
15634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15635 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15636 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15637 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15638 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15640 -help | --help | --hel | --he | --h)
15641 echo "\$ac_cs_usage"; exit 0 ;;
15642 *) echo "\$ac_cs_usage"; exit 1 ;;
15646 ac_given_srcdir=$srcdir
15647 ac_given_INSTALL="$INSTALL"
15649 trap 'rm -fr `echo "\
15650 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15651 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15652 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15653 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15654 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15655 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15656 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15657 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15658 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15659 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15660 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15661 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15662 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15663 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15664 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15665 include/Makefile:build/top.mk:include/Makefile.in \
15666 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15667 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15668 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15669 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15670 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15671 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15672 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15673 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15674 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15675 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15676 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15677 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15678 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15679 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15680 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15681 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15682 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15683 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15684 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15685 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15686 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15687 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15688 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15689 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15690 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15691 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15692 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15693 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15694 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15696 cat >> $CONFIG_STATUS <<EOF
15698 # Protect against being on the right side of a sed subst in config.status.
15699 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15700 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15704 s%@CFLAGS@%$CFLAGS%g
15705 s%@CPPFLAGS@%$CPPFLAGS%g
15706 s%@CXXFLAGS@%$CXXFLAGS%g
15707 s%@FFLAGS@%$FFLAGS%g
15709 s%@LDFLAGS@%$LDFLAGS%g
15711 s%@exec_prefix@%$exec_prefix%g
15712 s%@prefix@%$prefix%g
15713 s%@program_transform_name@%$program_transform_name%g
15714 s%@bindir@%$bindir%g
15715 s%@sbindir@%$sbindir%g
15716 s%@libexecdir@%$libexecdir%g
15717 s%@datadir@%$datadir%g
15718 s%@sysconfdir@%$sysconfdir%g
15719 s%@sharedstatedir@%$sharedstatedir%g
15720 s%@localstatedir@%$localstatedir%g
15721 s%@libdir@%$libdir%g
15722 s%@includedir@%$includedir%g
15723 s%@oldincludedir@%$oldincludedir%g
15724 s%@infodir@%$infodir%g
15725 s%@mandir@%$mandir%g
15727 s%@host_alias@%$host_alias%g
15728 s%@host_cpu@%$host_cpu%g
15729 s%@host_vendor@%$host_vendor%g
15730 s%@host_os@%$host_os%g
15731 s%@target@%$target%g
15732 s%@target_alias@%$target_alias%g
15733 s%@target_cpu@%$target_cpu%g
15734 s%@target_vendor@%$target_vendor%g
15735 s%@target_os@%$target_os%g
15737 s%@build_alias@%$build_alias%g
15738 s%@build_cpu@%$build_cpu%g
15739 s%@build_vendor@%$build_vendor%g
15740 s%@build_os@%$build_os%g
15741 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15742 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15743 s%@INSTALL_DATA@%$INSTALL_DATA%g
15744 s%@PACKAGE@%$PACKAGE%g
15745 s%@VERSION@%$VERSION%g
15746 s%@ACLOCAL@%$ACLOCAL%g
15747 s%@AUTOCONF@%$AUTOCONF%g
15748 s%@AUTOMAKE@%$AUTOMAKE%g
15749 s%@AUTOHEADER@%$AUTOHEADER%g
15750 s%@MAKEINFO@%$MAKEINFO%g
15751 s%@install_sh@%$install_sh%g
15754 s%@AMTARFLAGS@%$AMTARFLAGS%g
15755 s%@SET_MAKE@%$SET_MAKE%g
15756 s%@top_builddir@%$top_builddir%g
15757 s%@ldap_subdir@%$ldap_subdir%g
15759 s%@RANLIB@%$RANLIB%g
15763 s%@DLLTOOL@%$DLLTOOL%g
15765 s%@OBJDUMP@%$OBJDUMP%g
15766 s%@LIBTOOL@%$LIBTOOL%g
15768 s%@SENDMAIL@%$SENDMAIL%g
15769 s%@EDITOR@%$EDITOR%g
15770 s%@FINGER@%$FINGER%g
15771 s%@PERLBIN@%$PERLBIN%g
15773 s%@EXEEXT@%$EXEEXT%g
15774 s%@OBJEXT@%$OBJEXT%g
15775 s%@OL_MKDEP@%$OL_MKDEP%g
15776 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15778 s%@LIBOBJS@%$LIBOBJS%g
15779 s%@LIBSRCS@%$LIBSRCS%g
15781 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15782 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15783 s%@DYN_EXT@%$DYN_EXT%g
15784 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15785 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15786 s%@BUILD_BDB2@%$BUILD_BDB2%g
15787 s%@BUILD_LDAP@%$BUILD_LDAP%g
15788 s%@BUILD_LDBM@%$BUILD_LDBM%g
15789 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15790 s%@BUILD_PERL@%$BUILD_PERL%g
15791 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15792 s%@BUILD_SHELL@%$BUILD_SHELL%g
15793 s%@BUILD_TCL@%$BUILD_TCL%g
15794 s%@BUILD_SQL@%$BUILD_SQL%g
15795 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15796 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15797 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15798 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15799 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15800 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15801 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15802 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
15803 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15804 s%@LDAP_LIBS@%$LDAP_LIBS%g
15805 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15806 s%@LDIF_LIBS@%$LDIF_LIBS%g
15807 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15808 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15809 s%@LDBM_LIBS@%$LDBM_LIBS%g
15810 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15811 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15812 s%@WRAP_LIBS@%$WRAP_LIBS%g
15813 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15814 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15815 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15816 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15817 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15818 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15819 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15820 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15821 s%@KRB4_LIBS@%$KRB4_LIBS%g
15822 s%@KRB5_LIBS@%$KRB5_LIBS%g
15823 s%@READLINE_LIBS@%$READLINE_LIBS%g
15824 s%@SASL_LIBS@%$SASL_LIBS%g
15825 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15826 s%@TLS_LIBS@%$TLS_LIBS%g
15827 s%@MODULES_LIBS@%$MODULES_LIBS%g
15828 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
15829 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
15830 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
15835 cat >> $CONFIG_STATUS <<\EOF
15837 # Split the substitutions into bite-sized pieces for seds with
15838 # small command number limits, like on Digital OSF/1 and HP-UX.
15839 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15840 ac_file=1 # Number of current file.
15841 ac_beg=1 # First line for current file.
15842 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15845 while $ac_more_lines; do
15846 if test $ac_beg -gt 1; then
15847 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15849 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15851 if test ! -s conftest.s$ac_file; then
15852 ac_more_lines=false
15853 rm -f conftest.s$ac_file
15855 if test -z "$ac_sed_cmds"; then
15856 ac_sed_cmds="sed -f conftest.s$ac_file"
15858 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15860 ac_file=`expr $ac_file + 1`
15862 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15865 if test -z "$ac_sed_cmds"; then
15870 cat >> $CONFIG_STATUS <<EOF
15872 CONFIG_FILES=\${CONFIG_FILES-"\
15873 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15874 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15875 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15876 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15877 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15878 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15879 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15880 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15881 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15882 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15883 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15884 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15885 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15886 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15887 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15888 include/Makefile:build/top.mk:include/Makefile.in \
15889 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15890 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15891 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15892 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15893 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15894 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15895 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15896 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15897 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15898 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15899 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15900 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15901 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15902 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15903 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15904 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15905 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15906 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15907 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15908 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15909 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15910 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15911 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15912 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15913 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15914 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15915 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15916 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15919 cat >> $CONFIG_STATUS <<\EOF
15920 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15923 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15924 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15925 *) ac_file_in="${ac_file}.in" ;;
15928 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15930 # Remove last slash and all that follows it. Not all systems have dirname.
15931 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15933 # The file is in a subdirectory.
15934 test ! -d "$ac_dir" && mkdir "$ac_dir"
15935 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15936 # A "../" for each directory in $ac_dir_suffix.
15937 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15939 ac_dir_suffix= ac_dots=
15942 case "$ac_given_srcdir" in
15944 if test -z "$ac_dots"; then top_srcdir=.
15945 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15946 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15947 *) # Relative path.
15948 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15949 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15952 case "$ac_given_INSTALL" in
15953 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15954 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15957 echo creating "$ac_file"
15959 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15961 *[Mm]akefile*) ac_comsub="1i\\
15962 # $configure_input" ;;
15966 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15968 s%@configure_input@%$configure_input%g
15969 s%@srcdir@%$srcdir%g
15970 s%@top_srcdir@%$top_srcdir%g
15971 s%@INSTALL@%$INSTALL%g
15972 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15976 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15977 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15979 # ac_d sets the value in "#define NAME VALUE" lines.
15980 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15981 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15984 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15985 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15986 ac_uB='\([ ]\)%\1#\2define\3'
15989 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15990 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15991 ac_eB='$%\1#\2define\3'
15995 if test "${CONFIG_HEADERS+set}" != set; then
15997 cat >> $CONFIG_STATUS <<EOF
15998 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16000 cat >> $CONFIG_STATUS <<\EOF
16002 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16005 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16006 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16007 *) ac_file_in="${ac_file}.in" ;;
16010 echo creating $ac_file
16012 rm -f conftest.frag conftest.in conftest.out
16013 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16014 cat $ac_file_inputs > conftest.in
16018 # Transform confdefs.h into a sed script conftest.vals that substitutes
16019 # the proper values into config.h.in to produce config.h. And first:
16020 # Protect against being on the right side of a sed subst in config.status.
16021 # Protect against being in an unquoted here document in config.status.
16022 rm -f conftest.vals
16023 cat > conftest.hdr <<\EOF
16026 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16030 sed -n -f conftest.hdr confdefs.h > conftest.vals
16033 # This sed command replaces #undef with comments. This is necessary, for
16034 # example, in the case of _POSIX_SOURCE, which is predefined and required
16035 # on some systems where configure will not decide to define it.
16036 cat >> conftest.vals <<\EOF
16037 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16040 # Break up conftest.vals because some shells have a limit on
16041 # the size of here documents, and old seds have small limits too.
16043 rm -f conftest.tail
16046 ac_lines=`grep -c . conftest.vals`
16047 # grep -c gives empty output for an empty file on some AIX systems.
16048 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16049 # Write a limited-size here document to conftest.frag.
16050 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16051 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16053 sed -f conftest.frag conftest.in > conftest.out
16055 mv conftest.out conftest.in
16056 ' >> $CONFIG_STATUS
16057 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16058 rm -f conftest.vals
16059 mv conftest.tail conftest.vals
16061 rm -f conftest.vals
16063 cat >> $CONFIG_STATUS <<\EOF
16064 rm -f conftest.frag conftest.h
16065 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16066 cat conftest.in >> conftest.h
16068 if cmp -s $ac_file conftest.h 2>/dev/null; then
16069 echo "$ac_file is unchanged"
16072 # Remove last slash and all that follows it. Not all systems have dirname.
16073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16075 # The file is in a subdirectory.
16076 test ! -d "$ac_dir" && mkdir "$ac_dir"
16079 mv conftest.h $ac_file
16084 cat >> $CONFIG_STATUS <<EOF
16087 cat >> $CONFIG_STATUS <<\EOF
16090 echo Please \"make depend\" to build dependencies
16094 chmod +x $CONFIG_STATUS
16095 rm -fr confdefs* $ac_clean_files
16096 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1