3 # from OpenLDAP: pkg/ldap/configure.in,v 1.294 2000/05/10 02:29:53 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-kbind enable V2 Kerberos IV bind (auto)"
44 --enable-cldap enable connectionless ldap (no)"
46 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
48 --enable-x-compile enable cross compiling (no)"
50 --enable-dmalloc enable debug malloc support (no)"
52 --with-cyrus-sasl with Cyrus SASL support (auto)"
54 --with-fetch with fetch URL support (auto)"
56 --with-kerberos with support (auto)"
58 --with-readline with readline support (auto)"
60 --with-threads use threads (auto)"
62 --with-tls with TLS/SSL support (auto)"
64 --with-yielding-select with implicitly yielding select (auto)"
66 LDAPD (X.500-to-LDAP Gateway) Options:"
68 --enable-ldapd enable building ldapd (no)"
70 SLAPD (Standalone LDAP Daemon) Options:"
72 --enable-slapd enable building slapd (yes)"
74 --enable-cleartext enable cleartext passwords (yes)"
76 --enable-crypt enable crypt(3) passwords (auto)"
78 --enable-kpasswd enable kerberos password verification (no)"
80 --enable-spasswd enable (Cyrus) SASL password verification (no)"
82 --enable-modules enable dynamic module support (no)"
84 --enable-multimaster enable multimaster replication (no)"
86 --enable-phonetic enable phonetic/soundex (no)"
88 --enable-quipu build quipu migration tools (no)"
90 --enable-rlookups enable reverse lookups (auto)"
92 --enable-aci enable per-object ACIs (no)"
94 --enable-wrappers enable tcp wrapper support (no)"
96 --enable-dynamic enable linking built binaries with dynamic libs (no)"
98 --enable-bdb2 enable bdb2 backend (no)"
100 --with-bdb2-module module type (static)"
102 --enable-ldap enable ldap backend (no)"
104 --with-ldap-module module type (static)"
106 --enable-ldbm enable ldbm backend (yes)"
108 --with-ldbm-api use LDBM API (auto)"
110 --with-ldbm-module module type (static)"
112 --with-ldbm-type use LDBM type (auto)"
114 --enable-passwd enable passwd backend (no)"
116 --with-passwd-module module type (static)"
118 --enable-perl enable perl backend (no)"
120 --with-perl-module module type (static)"
122 --enable-shell enable shell backend (no)"
124 --with-shell-module module type (static)"
126 --enable-tcl enable tcl backend (no)"
128 --with-tcl-module module type (static)"
130 --enable-sql enable sql backend (no)"
132 --with-sql-module module type (static)"
134 SLURPD (Replication Daemon) Options:"
136 --enable-slurpd enable building slurpd (auto)"
138 Library Generation & Linking Options"
140 --enable-static[=PKGS] build static libraries [default=yes]"
142 --enable-shared[=PKGS] build shared libraries [default=yes]"
144 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
146 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
148 --disable-libtool-lock avoid locking (might break parallel builds)"
150 # Initialize some variables set by options.
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
154 cache_file=./config.cache
163 program_transform_name=s,x,x,
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Initialize some other variables.
187 SHELL=${CONFIG_SHELL-/bin/sh}
188 # Maximum number of lines to put in a shell here document.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
203 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 bindir="$ac_optarg" ;;
216 -build | --build | --buil | --bui | --bu)
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build="$ac_optarg" ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file="$ac_optarg" ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir="$ac_optarg" ;;
234 -disable-* | --disable-*)
235 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
236 # Reject names that are not valid shell variable names.
237 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
238 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
240 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
241 eval "enable_${ac_feature}=no" ;;
243 -enable-* | --enable-*)
244 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
245 # Reject names that are not valid shell variable names.
246 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
247 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
249 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
254 eval "enable_${ac_feature}='$ac_optarg'" ;;
256 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
257 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
258 | --exec | --exe | --ex)
259 ac_prev=exec_prefix ;;
260 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
261 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
262 | --exec=* | --exe=* | --ex=*)
263 exec_prefix="$ac_optarg" ;;
265 -gas | --gas | --ga | --g)
266 # Obsolete; use --with-gas.
269 -help | --help | --hel | --he)
270 # Omit some internal or obsolete options to make the list less imposing.
271 # This message is too long to be a string in the A/UX 3.1 sh.
273 Usage: configure [options] [host]
274 Options: [defaults in brackets after descriptions]
276 --cache-file=FILE cache test results in FILE
277 --help print this message
278 --no-create do not create output files
279 --quiet, --silent do not print \`checking...' messages
280 --version print the version of autoconf that created configure
281 Directory and file names:
282 --prefix=PREFIX install architecture-independent files in PREFIX
284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
286 --bindir=DIR user executables in DIR [EPREFIX/bin]
287 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
288 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
289 --datadir=DIR read-only architecture-independent data in DIR
291 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
292 --sharedstatedir=DIR modifiable architecture-independent data in DIR
294 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
295 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
296 --includedir=DIR C header files in DIR [PREFIX/include]
297 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
298 --infodir=DIR info documentation in DIR [PREFIX/info]
299 --mandir=DIR man documentation in DIR [PREFIX/man]
300 --srcdir=DIR find the sources in DIR [configure dir or ..]
301 --program-prefix=PREFIX prepend PREFIX to installed program names
302 --program-suffix=SUFFIX append SUFFIX to installed program names
303 --program-transform-name=PROGRAM
304 run sed PROGRAM on installed program names
308 --build=BUILD configure for building on BUILD [BUILD=HOST]
309 --host=HOST configure for HOST [guessed]
310 --target=TARGET configure for TARGET [TARGET=HOST]
311 Features and packages:
312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
316 --x-includes=DIR X include files are in DIR
317 --x-libraries=DIR X library files are in DIR
319 if test -n "$ac_help"; then
320 echo "--enable and --with options recognized:$ac_help"
324 -host | --host | --hos | --ho)
326 -host=* | --host=* | --hos=* | --ho=*)
329 -includedir | --includedir | --includedi | --included | --include \
330 | --includ | --inclu | --incl | --inc)
331 ac_prev=includedir ;;
332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
333 | --includ=* | --inclu=* | --incl=* | --inc=*)
334 includedir="$ac_optarg" ;;
336 -infodir | --infodir | --infodi | --infod | --info | --inf)
338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
339 infodir="$ac_optarg" ;;
341 -libdir | --libdir | --libdi | --libd)
343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
344 libdir="$ac_optarg" ;;
346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
347 | --libexe | --libex | --libe)
348 ac_prev=libexecdir ;;
349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
350 | --libexe=* | --libex=* | --libe=*)
351 libexecdir="$ac_optarg" ;;
353 -localstatedir | --localstatedir | --localstatedi | --localstated \
354 | --localstate | --localstat | --localsta | --localst \
355 | --locals | --local | --loca | --loc | --lo)
356 ac_prev=localstatedir ;;
357 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
358 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
359 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
360 localstatedir="$ac_optarg" ;;
362 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
364 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
365 mandir="$ac_optarg" ;;
368 # Obsolete; use --without-fp.
371 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
375 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
376 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
379 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
380 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
381 | --oldin | --oldi | --old | --ol | --o)
382 ac_prev=oldincludedir ;;
383 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
384 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
385 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
386 oldincludedir="$ac_optarg" ;;
388 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
390 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
391 prefix="$ac_optarg" ;;
393 -program-prefix | --program-prefix | --program-prefi | --program-pref \
394 | --program-pre | --program-pr | --program-p)
395 ac_prev=program_prefix ;;
396 -program-prefix=* | --program-prefix=* | --program-prefi=* \
397 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
398 program_prefix="$ac_optarg" ;;
400 -program-suffix | --program-suffix | --program-suffi | --program-suff \
401 | --program-suf | --program-su | --program-s)
402 ac_prev=program_suffix ;;
403 -program-suffix=* | --program-suffix=* | --program-suffi=* \
404 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
405 program_suffix="$ac_optarg" ;;
407 -program-transform-name | --program-transform-name \
408 | --program-transform-nam | --program-transform-na \
409 | --program-transform-n | --program-transform- \
410 | --program-transform | --program-transfor \
411 | --program-transfo | --program-transf \
412 | --program-trans | --program-tran \
413 | --progr-tra | --program-tr | --program-t)
414 ac_prev=program_transform_name ;;
415 -program-transform-name=* | --program-transform-name=* \
416 | --program-transform-nam=* | --program-transform-na=* \
417 | --program-transform-n=* | --program-transform-=* \
418 | --program-transform=* | --program-transfor=* \
419 | --program-transfo=* | --program-transf=* \
420 | --program-trans=* | --program-tran=* \
421 | --progr-tra=* | --program-tr=* | --program-t=*)
422 program_transform_name="$ac_optarg" ;;
424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
425 | -silent | --silent | --silen | --sile | --sil)
428 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
430 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
432 sbindir="$ac_optarg" ;;
434 -sharedstatedir | --sharedstatedir | --sharedstatedi \
435 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
436 | --sharedst | --shareds | --shared | --share | --shar \
438 ac_prev=sharedstatedir ;;
439 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
440 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
441 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
443 sharedstatedir="$ac_optarg" ;;
445 -site | --site | --sit)
447 -site=* | --site=* | --sit=*)
450 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
452 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
453 srcdir="$ac_optarg" ;;
455 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
456 | --syscon | --sysco | --sysc | --sys | --sy)
457 ac_prev=sysconfdir ;;
458 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
459 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
460 sysconfdir="$ac_optarg" ;;
462 -target | --target | --targe | --targ | --tar | --ta | --t)
464 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
465 target="$ac_optarg" ;;
467 -v | -verbose | --verbose | --verbos | --verbo | --verb)
470 -version | --version | --versio | --versi | --vers)
471 echo "configure generated by autoconf version 2.13.1"
475 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
480 ac_package=`echo $ac_package| sed 's/-/_/g'`
485 eval "with_${ac_package}='$ac_optarg'" ;;
487 -without-* | --without-*)
488 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
489 # Reject names that are not valid shell variable names.
490 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
491 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
493 ac_package=`echo $ac_package| sed 's/-/_/g'`
494 eval "with_${ac_package}=no" ;;
497 # Obsolete; use --with-x.
500 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
501 | --x-incl | --x-inc | --x-in | --x-i)
502 ac_prev=x_includes ;;
503 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
504 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
505 x_includes="$ac_optarg" ;;
507 -x-libraries | --x-libraries | --x-librarie | --x-librari \
508 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
509 ac_prev=x_libraries ;;
510 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
511 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
512 x_libraries="$ac_optarg" ;;
514 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
518 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
519 echo "configure: warning: $ac_option: invalid host type" 1>&2
521 if test "x$nonopt" != xNONE; then
522 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
530 if test -n "$ac_prev"; then
531 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
536 # File descriptor usage:
539 # 2 errors and warnings
540 # 3 some systems may open it to /dev/tty
541 # 4 used on the Kubota Titan
542 # 6 checking for... messages and results
543 # 5 compiler messages saved in config.log
544 if test "$silent" = yes; then
552 This file contains any messages produced by compilers while
553 running configure, to aid debugging if configure makes a mistake.
556 # Strip out --no-create and --no-recursion so they do not pile up.
557 # Also quote any args containing shell metacharacters.
562 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
563 | --no-cr | --no-c) ;;
564 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
565 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
566 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
567 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
568 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
573 # Only set these to C if already set. These must not be set unconditionally
574 # because not all systems understand e.g. LANG=C (notably SCO).
575 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
576 # Non-C LC_CTYPE values break the ctype check.
577 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
578 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
579 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
580 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
583 rm -rf conftest* confdefs.h
584 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
587 # A filename unique to this package, relative to the directory that
588 # configure is in, which we can look for to find out if srcdir is correct.
589 ac_unique_file=build/version
591 # Find the source files, if location was not specified.
592 if test -z "$srcdir"; then
593 ac_srcdir_defaulted=yes
594 # Try the directory containing this script, then its parent.
596 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
597 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
599 if test ! -r $srcdir/$ac_unique_file; then
603 ac_srcdir_defaulted=no
605 if test ! -r $srcdir/$ac_unique_file; then
606 if test "$ac_srcdir_defaulted" = yes; then
607 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
609 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
612 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
614 # Prefer explicitly selected file to automatically selected ones.
615 if test -z "$CONFIG_SITE"; then
616 if test "x$prefix" != xNONE; then
617 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
619 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
622 for ac_site_file in $CONFIG_SITE; do
623 if test -r "$ac_site_file"; then
624 echo "loading site script $ac_site_file"
631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
632 ac_cpp='$CPP $CPPFLAGS'
633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
635 cross_compiling=$ac_cv_prog_cc_cross
639 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
640 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
641 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
648 ac_n= ac_c='\c' ac_t=
652 for ac_dir in build $srcdir/build; do
653 if test -f $ac_dir/install-sh; then
655 ac_install_sh="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh; then
659 ac_install_sh="$ac_aux_dir/install.sh -c"
661 elif test -f $ac_dir/shtool; then
663 ac_install_sh="$ac_aux_dir/shtool install -c"
667 if test -z "$ac_aux_dir"; then
668 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
670 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
671 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
672 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
674 OL_VERSION=`cat $ac_aux_dir/version`
675 if test -z "$OL_VERSION"; then
676 { echo "configure: error: could not determine version" 1>&2; exit 1; }
679 echo "Configuring OpenLDAP $OL_VERSION ..."
682 echo $ac_n "checking host system type""... $ac_c" 1>&6
683 echo "configure:684: checking host system type" >&5
684 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
686 # Make sure we can run config.sub.
687 if $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 ac_cv_host_alias=$host
692 case "$ac_cv_host_alias" in
696 if ac_cv_host_alias=`$ac_config_guess`; then :
697 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
699 *) ac_cv_host_alias=$nonopt ;;
703 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
704 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo $ac_n "(cached) $ac_c" 1>&6
711 echo "$ac_t""$ac_cv_host" 1>&6
714 host_alias=$ac_cv_host_alias
715 host_cpu=$ac_cv_host_cpu
716 host_vendor=$ac_cv_host_vendor
717 host_os=$ac_cv_host_os
723 echo $ac_n "checking target system type""... $ac_c" 1>&6
724 echo "configure:725: checking target system type" >&5
725 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
727 # Make sure we can run config.sub.
728 if $ac_config_sub sun4 >/dev/null 2>&1; then :
729 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
732 ac_cv_target_alias=$target
733 case "$ac_cv_target_alias" in
737 ac_cv_target_alias=$host_alias ;;
739 *) ac_cv_target_alias=$nonopt ;;
743 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
744 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo $ac_n "(cached) $ac_c" 1>&6
751 echo "$ac_t""$ac_cv_target" 1>&6
754 target_alias=$ac_cv_target_alias
755 target_cpu=$ac_cv_target_cpu
756 target_vendor=$ac_cv_target_vendor
757 target_os=$ac_cv_target_os
763 echo $ac_n "checking build system type""... $ac_c" 1>&6
764 echo "configure:765: checking build system type" >&5
765 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
767 # Make sure we can run config.sub.
768 if $ac_config_sub sun4 >/dev/null 2>&1; then :
769 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
772 ac_cv_build_alias=$build
773 case "$ac_cv_build_alias" in
777 ac_cv_build_alias=$host_alias ;;
779 *) ac_cv_build_alias=$nonopt ;;
783 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
784 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
785 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
786 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788 echo $ac_n "(cached) $ac_c" 1>&6
791 echo "$ac_t""$ac_cv_build" 1>&6
794 build_alias=$ac_cv_build_alias
795 build_cpu=$ac_cv_build_cpu
796 build_vendor=$ac_cv_build_vendor
797 build_os=$ac_cv_build_os
803 # Do some error checking and defaulting for the host and target type.
805 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
808 # 1. You are not allowed to specify --host, --target, and nonopt at the
810 # 2. Host defaults to nonopt.
811 # 3. If nonopt is not specified, then host defaults to the current host,
812 # as determined by config.guess.
813 # 4. Target and build default to nonopt.
814 # 5. If nonopt is not specified, then target and build default to host.
816 # The aliases save the names the user supplied, while $host etc.
817 # will get canonicalized.
818 case $host---$target---$nonopt in
819 NONE---*---* | *---NONE---* | *---*---NONE) ;;
820 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
823 test "$host_alias" != "$target_alias" &&
824 test "$program_prefix$program_suffix$program_transform_name" = \
826 program_prefix=${target_alias}-
829 # Find a good install program. We prefer a C program (faster),
830 # so one script is as good as another. But avoid the broken or
831 # incompatible versions:
832 # SysV /etc/install, /usr/sbin/install
833 # SunOS /usr/etc/install
836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
837 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
838 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
839 # ./install, which can be erroneously created by make from ./install.sh.
840 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
841 echo "configure:842: checking for a BSD compatible install" >&5
842 if test -z "$INSTALL"; then
843 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
847 for ac_dir in $PATH; do
848 # Account for people who put trailing slashes in PATH elements.
850 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
852 # OSF1 and SCO ODT 3.0 have their own names for install.
853 # Don't use installbsd from OSF since it installs stuff as root
855 for ac_prog in ginstall scoinst install; do
856 if test -f $ac_dir/$ac_prog; then
857 if test $ac_prog = install &&
858 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
859 # AIX install. It has an incompatible calling convention.
861 elif test $ac_prog = install &&
862 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # program-specific install script used by HP pwplus--don't use.
866 ac_cv_path_install="$ac_dir/$ac_prog -c"
877 if test "${ac_cv_path_install+set}" = set; then
878 INSTALL="$ac_cv_path_install"
880 # As a last resort, use the slow shell script. We don't cache a
881 # path for INSTALL within a source directory, because that will
882 # break other packages using the cache if that directory is
883 # removed, or if the path is relative.
884 INSTALL="$ac_install_sh"
887 echo "$ac_t""$INSTALL" 1>&6
889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
890 # It thinks the first close brace ends the variable substitution.
891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
897 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
898 echo "configure:899: checking whether build environment is sane" >&5
901 echo timestamp > conftestfile
902 # Do `set' in a subshell so we don't clobber the current shell's
903 # arguments. Must try -L first in case configure is actually a
904 # symlink; some systems play weird games with the mod time of symlinks
905 # (eg FreeBSD returns the mod time of the symlink's containing
908 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
909 if test "$*" = "X"; then
911 set X `ls -t $srcdir/configure conftestfile`
913 if test "$*" != "X $srcdir/configure conftestfile" \
914 && test "$*" != "X conftestfile $srcdir/configure"; then
916 # If neither matched, then we have a broken ls. This can happen
917 # if, for instance, CONFIG_SHELL is bash and it inherits a
918 # broken ls alias from the environment. This has actually
919 # happened. Such a system could not be considered "sane".
920 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
921 alias in your environment" 1>&2; exit 1; }
924 test "$2" = conftestfile
930 { echo "configure: error: newly created file is older than distributed files!
931 Check your system clock" 1>&2; exit 1; }
934 echo "$ac_t""yes" 1>&6
935 if test "$program_transform_name" = s,x,x,; then
936 program_transform_name=
938 # Double any \ or $. echo might interpret backslashes.
939 cat <<\EOF_SED > conftestsed
940 s,\\,\\\\,g; s,\$,$$,g
942 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
945 test "$program_prefix" != NONE &&
946 program_transform_name="s,^,${program_prefix},;$program_transform_name"
947 # Use a double $ so make ignores it.
948 test "$program_suffix" != NONE &&
949 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
951 # sed with no file args requires a program.
952 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
954 for ac_prog in mawk gawk nawk awk
956 # Extract the first word of "$ac_prog", so it can be a program name with args.
957 set dummy $ac_prog; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 if test -n "$AWK"; then
964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 for ac_dir in $ac_dummy; do
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
971 ac_cv_prog_AWK="$ac_prog"
978 AWK="$ac_cv_prog_AWK"
979 if test -n "$AWK"; then
980 echo "$ac_t""$AWK" 1>&6
982 echo "$ac_t""no" 1>&6
985 test -n "$AWK" && break
988 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
989 echo "configure:990: checking whether ${MAKE-make} sets \${MAKE}" >&5
990 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
991 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 cat > conftestmake <<\EOF
996 @echo 'ac_maketemp="${MAKE}"'
998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
999 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1000 if test -n "$ac_maketemp"; then
1001 eval ac_cv_prog_make_${ac_make}_set=yes
1003 eval ac_cv_prog_make_${ac_make}_set=no
1007 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1008 echo "$ac_t""yes" 1>&6
1011 echo "$ac_t""no" 1>&6
1012 SET_MAKE="MAKE=${MAKE-make}"
1021 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1022 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1027 missing_dir=`cd $ac_aux_dir && pwd`
1028 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working aclocal" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1035 echo "$ac_t""found" 1>&6
1037 ACLOCAL="$missing_dir/missing aclocal"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working autoconf" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 AUTOCONF="$missing_dir/missing autoconf"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working automake" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (automake --version) < /dev/null > /dev/null 2>&1; then
1061 echo "$ac_t""found" 1>&6
1063 AUTOMAKE="$missing_dir/missing automake"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working autoheader" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1073 AUTOHEADER=autoheader
1074 echo "$ac_t""found" 1>&6
1076 AUTOHEADER="$missing_dir/missing autoheader"
1077 echo "$ac_t""missing" 1>&6
1080 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working makeinfo" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf. Sigh.
1085 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1087 echo "$ac_t""found" 1>&6
1089 MAKEINFO="$missing_dir/missing makeinfo"
1090 echo "$ac_t""missing" 1>&6
1093 install_sh="$missing_dir/install-sh"
1094 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1096 for ac_prog in gnutar gtar tar
1098 # Extract the first word of "$ac_prog", so it can be a program name with args.
1099 set dummy $ac_prog; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$AMTAR"; then
1106 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_AMTAR="$ac_prog"
1120 AMTAR="$ac_cv_prog_AMTAR"
1121 if test -n "$AMTAR"; then
1122 echo "$ac_t""$AMTAR" 1>&6
1124 echo "$ac_t""no" 1>&6
1127 test -n "$AMTAR" && break
1132 if test -n "$AMTAR"; then
1133 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1140 cat >> confdefs.h <<EOF
1141 #define OPENLDAP_PACKAGE "$PACKAGE"
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_VERSION "$VERSION"
1151 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1152 echo "configure:1153: checking configure arguments" >&5
1157 ldap_subdir="/openldap"
1159 # Check whether --with-subdir or --without-subdir was given.
1160 if test "${with_subdir+set}" = set; then
1161 withval="$with_subdir"
1168 ldap_subdir="$withval"
1171 ldap_subdir="/$withval"
1178 # OpenLDAP --enable-debug
1179 # Check whether --enable-debug or --disable-debug was given.
1180 if test "${enable_debug+set}" = set; then
1181 enableval="$enable_debug"
1184 for ol_val in auto yes no ; do
1185 if test "$enableval" = "$ol_val" ; then
1189 if test "$ol_arg" = "invalid" ; then
1190 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1192 ol_enable_debug="$ol_arg"
1195 ol_enable_debug="yes"
1197 # end --enable-debug
1198 # OpenLDAP --enable-syslog
1199 # Check whether --enable-syslog or --disable-syslog was given.
1200 if test "${enable_syslog+set}" = set; then
1201 enableval="$enable_syslog"
1204 for ol_val in auto yes no ; do
1205 if test "$enableval" = "$ol_val" ; then
1209 if test "$ol_arg" = "invalid" ; then
1210 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1212 ol_enable_syslog="$ol_arg"
1215 ol_enable_syslog="auto"
1217 # end --enable-syslog
1218 # OpenLDAP --enable-proctitle
1219 # Check whether --enable-proctitle or --disable-proctitle was given.
1220 if test "${enable_proctitle+set}" = set; then
1221 enableval="$enable_proctitle"
1224 for ol_val in auto yes no ; do
1225 if test "$enableval" = "$ol_val" ; then
1229 if test "$ol_arg" = "invalid" ; then
1230 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1232 ol_enable_proctitle="$ol_arg"
1235 ol_enable_proctitle="yes"
1237 # end --enable-proctitle
1238 # OpenLDAP --enable-cache
1239 # Check whether --enable-cache or --disable-cache was given.
1240 if test "${enable_cache+set}" = set; then
1241 enableval="$enable_cache"
1244 for ol_val in auto yes no ; do
1245 if test "$enableval" = "$ol_val" ; then
1249 if test "$ol_arg" = "invalid" ; then
1250 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1252 ol_enable_cache="$ol_arg"
1255 ol_enable_cache="yes"
1257 # end --enable-cache
1258 # OpenLDAP --enable-dns
1259 # Check whether --enable-dns or --disable-dns was given.
1260 if test "${enable_dns+set}" = set; then
1261 enableval="$enable_dns"
1264 for ol_val in auto yes no ; do
1265 if test "$enableval" = "$ol_val" ; then
1269 if test "$ol_arg" = "invalid" ; then
1270 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1272 ol_enable_dns="$ol_arg"
1278 # OpenLDAP --enable-referrals
1279 # Check whether --enable-referrals or --disable-referrals was given.
1280 if test "${enable_referrals+set}" = set; then
1281 enableval="$enable_referrals"
1284 for ol_val in auto yes no ; do
1285 if test "$enableval" = "$ol_val" ; then
1289 if test "$ol_arg" = "invalid" ; then
1290 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1292 ol_enable_referrals="$ol_arg"
1295 ol_enable_referrals="yes"
1297 # end --enable-referrals
1298 # OpenLDAP --enable-kbind
1299 # Check whether --enable-kbind or --disable-kbind was given.
1300 if test "${enable_kbind+set}" = set; then
1301 enableval="$enable_kbind"
1304 for ol_val in auto yes no ; do
1305 if test "$enableval" = "$ol_val" ; then
1309 if test "$ol_arg" = "invalid" ; then
1310 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1312 ol_enable_kbind="$ol_arg"
1315 ol_enable_kbind="auto"
1317 # end --enable-kbind
1318 # OpenLDAP --enable-cldap
1319 # Check whether --enable-cldap or --disable-cldap was given.
1320 if test "${enable_cldap+set}" = set; then
1321 enableval="$enable_cldap"
1324 for ol_val in auto yes no ; do
1325 if test "$enableval" = "$ol_val" ; then
1329 if test "$ol_arg" = "invalid" ; then
1330 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1332 ol_enable_cldap="$ol_arg"
1335 ol_enable_cldap="no"
1337 # end --enable-cldap
1338 # OpenLDAP --enable-ldapi
1339 # Check whether --enable-ldapi or --disable-ldapi was given.
1340 if test "${enable_ldapi+set}" = set; then
1341 enableval="$enable_ldapi"
1344 for ol_val in auto yes no ; do
1345 if test "$enableval" = "$ol_val" ; then
1349 if test "$ol_arg" = "invalid" ; then
1350 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1352 ol_enable_ldapi="$ol_arg"
1355 ol_enable_ldapi="no"
1357 # end --enable-ldapi
1358 # OpenLDAP --enable-x_compile
1359 # Check whether --enable-x_compile or --disable-x_compile was given.
1360 if test "${enable_x_compile+set}" = set; then
1361 enableval="$enable_x_compile"
1364 for ol_val in yes no ; do
1365 if test "$enableval" = "$ol_val" ; then
1369 if test "$ol_arg" = "invalid" ; then
1370 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1372 ol_enable_x_compile="$ol_arg"
1375 ol_enable_x_compile="no"
1377 # end --enable-x_compile
1379 # OpenLDAP --enable-dmalloc
1380 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1381 if test "${enable_dmalloc+set}" = set; then
1382 enableval="$enable_dmalloc"
1385 for ol_val in auto yes no ; do
1386 if test "$enableval" = "$ol_val" ; then
1390 if test "$ol_arg" = "invalid" ; then
1391 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1393 ol_enable_dmalloc="$ol_arg"
1396 ol_enable_dmalloc="no"
1398 # end --enable-dmalloc
1400 # OpenLDAP --with-cyrus_sasl
1401 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1402 if test "${with_cyrus_sasl+set}" = set; then
1403 withval="$with_cyrus_sasl"
1406 for ol_val in auto yes no ; do
1407 if test "$withval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1414 ol_with_cyrus_sasl="$ol_arg"
1417 ol_with_cyrus_sasl="auto"
1419 # end --with-cyrus_sasl
1421 # OpenLDAP --with-fetch
1422 # Check whether --with-fetch or --without-fetch was given.
1423 if test "${with_fetch+set}" = set; then
1424 withval="$with_fetch"
1427 for ol_val in auto yes no ; do
1428 if test "$withval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1435 ol_with_fetch="$ol_arg"
1438 ol_with_fetch="auto"
1442 # OpenLDAP --with-kerberos
1443 # Check whether --with-kerberos or --without-kerberos was given.
1444 if test "${with_kerberos+set}" = set; then
1445 withval="$with_kerberos"
1448 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1449 if test "$withval" = "$ol_val" ; then
1453 if test "$ol_arg" = "invalid" ; then
1454 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1456 ol_with_kerberos="$ol_arg"
1459 ol_with_kerberos="auto"
1461 # end --with-kerberos
1463 # OpenLDAP --with-readline
1464 # Check whether --with-readline or --without-readline was given.
1465 if test "${with_readline+set}" = set; then
1466 withval="$with_readline"
1469 for ol_val in auto yes no ; do
1470 if test "$withval" = "$ol_val" ; then
1474 if test "$ol_arg" = "invalid" ; then
1475 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1477 ol_with_readline="$ol_arg"
1480 ol_with_readline="auto"
1482 # end --with-readline
1484 # OpenLDAP --with-threads
1485 # Check whether --with-threads or --without-threads was given.
1486 if test "${with_threads+set}" = set; then
1487 withval="$with_threads"
1490 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1491 if test "$withval" = "$ol_val" ; then
1495 if test "$ol_arg" = "invalid" ; then
1496 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1498 ol_with_threads="$ol_arg"
1501 ol_with_threads="auto"
1503 # end --with-threads
1505 # OpenLDAP --with-tls
1506 # Check whether --with-tls or --without-tls was given.
1507 if test "${with_tls+set}" = set; then
1511 for ol_val in auto ssleay openssl yes no ; do
1512 if test "$withval" = "$ol_val" ; then
1516 if test "$ol_arg" = "invalid" ; then
1517 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1519 ol_with_tls="$ol_arg"
1526 # OpenLDAP --with-yielding_select
1527 # Check whether --with-yielding_select or --without-yielding_select was given.
1528 if test "${with_yielding_select+set}" = set; then
1529 withval="$with_yielding_select"
1532 for ol_val in auto yes no manual ; do
1533 if test "$withval" = "$ol_val" ; then
1537 if test "$ol_arg" = "invalid" ; then
1538 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1540 ol_with_yielding_select="$ol_arg"
1543 ol_with_yielding_select="auto"
1545 # end --with-yielding_select
1548 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1549 if test "${with_xxldapdoptions+set}" = set; then
1550 withval="$with_xxldapdoptions"
1554 # OpenLDAP --enable-ldapd
1555 # Check whether --enable-ldapd or --disable-ldapd was given.
1556 if test "${enable_ldapd+set}" = set; then
1557 enableval="$enable_ldapd"
1560 for ol_val in auto yes no ; do
1561 if test "$enableval" = "$ol_val" ; then
1565 if test "$ol_arg" = "invalid" ; then
1566 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1568 ol_enable_ldapd="$ol_arg"
1571 ol_enable_ldapd="no"
1573 # end --enable-ldapd
1575 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1576 if test "${with_xxslapdoptions+set}" = set; then
1577 withval="$with_xxslapdoptions"
1581 # OpenLDAP --enable-slapd
1582 # Check whether --enable-slapd or --disable-slapd was given.
1583 if test "${enable_slapd+set}" = set; then
1584 enableval="$enable_slapd"
1587 for ol_val in auto yes no ; do
1588 if test "$enableval" = "$ol_val" ; then
1592 if test "$ol_arg" = "invalid" ; then
1593 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1595 ol_enable_slapd="$ol_arg"
1598 ol_enable_slapd="yes"
1600 # end --enable-slapd
1601 # OpenLDAP --enable-cleartext
1602 # Check whether --enable-cleartext or --disable-cleartext was given.
1603 if test "${enable_cleartext+set}" = set; then
1604 enableval="$enable_cleartext"
1607 for ol_val in auto yes no ; do
1608 if test "$enableval" = "$ol_val" ; then
1612 if test "$ol_arg" = "invalid" ; then
1613 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1615 ol_enable_cleartext="$ol_arg"
1618 ol_enable_cleartext="yes"
1620 # end --enable-cleartext
1621 # OpenLDAP --enable-crypt
1622 # Check whether --enable-crypt or --disable-crypt was given.
1623 if test "${enable_crypt+set}" = set; then
1624 enableval="$enable_crypt"
1627 for ol_val in auto yes no ; do
1628 if test "$enableval" = "$ol_val" ; then
1632 if test "$ol_arg" = "invalid" ; then
1633 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1635 ol_enable_crypt="$ol_arg"
1638 ol_enable_crypt="auto"
1640 # end --enable-crypt
1641 # OpenLDAP --enable-kpasswd
1642 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1643 if test "${enable_kpasswd+set}" = set; then
1644 enableval="$enable_kpasswd"
1647 for ol_val in auto yes no ; do
1648 if test "$enableval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1655 ol_enable_kpasswd="$ol_arg"
1658 ol_enable_kpasswd="no"
1660 # end --enable-kpasswd
1661 # OpenLDAP --enable-spasswd
1662 # Check whether --enable-spasswd or --disable-spasswd was given.
1663 if test "${enable_spasswd+set}" = set; then
1664 enableval="$enable_spasswd"
1667 for ol_val in auto yes no ; do
1668 if test "$enableval" = "$ol_val" ; then
1672 if test "$ol_arg" = "invalid" ; then
1673 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1675 ol_enable_spasswd="$ol_arg"
1678 ol_enable_spasswd="no"
1680 # end --enable-spasswd
1681 # OpenLDAP --enable-modules
1682 # Check whether --enable-modules or --disable-modules was given.
1683 if test "${enable_modules+set}" = set; then
1684 enableval="$enable_modules"
1687 for ol_val in auto yes no ; do
1688 if test "$enableval" = "$ol_val" ; then
1692 if test "$ol_arg" = "invalid" ; then
1693 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1695 ol_enable_modules="$ol_arg"
1698 ol_enable_modules="no"
1700 # end --enable-modules
1701 # OpenLDAP --enable-multimaster
1702 # Check whether --enable-multimaster or --disable-multimaster was given.
1703 if test "${enable_multimaster+set}" = set; then
1704 enableval="$enable_multimaster"
1707 for ol_val in auto yes no ; do
1708 if test "$enableval" = "$ol_val" ; then
1712 if test "$ol_arg" = "invalid" ; then
1713 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1715 ol_enable_multimaster="$ol_arg"
1718 ol_enable_multimaster="no"
1720 # end --enable-multimaster
1721 # OpenLDAP --enable-phonetic
1722 # Check whether --enable-phonetic or --disable-phonetic was given.
1723 if test "${enable_phonetic+set}" = set; then
1724 enableval="$enable_phonetic"
1727 for ol_val in auto yes no ; do
1728 if test "$enableval" = "$ol_val" ; then
1732 if test "$ol_arg" = "invalid" ; then
1733 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1735 ol_enable_phonetic="$ol_arg"
1738 ol_enable_phonetic="no"
1740 # end --enable-phonetic
1741 # OpenLDAP --enable-quipu
1742 # Check whether --enable-quipu or --disable-quipu was given.
1743 if test "${enable_quipu+set}" = set; then
1744 enableval="$enable_quipu"
1747 for ol_val in auto yes no ; do
1748 if test "$enableval" = "$ol_val" ; then
1752 if test "$ol_arg" = "invalid" ; then
1753 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1755 ol_enable_quipu="$ol_arg"
1758 ol_enable_quipu="no"
1760 # end --enable-quipu
1761 # OpenLDAP --enable-rlookups
1762 # Check whether --enable-rlookups or --disable-rlookups was given.
1763 if test "${enable_rlookups+set}" = set; then
1764 enableval="$enable_rlookups"
1767 for ol_val in auto yes no ; do
1768 if test "$enableval" = "$ol_val" ; then
1772 if test "$ol_arg" = "invalid" ; then
1773 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1775 ol_enable_rlookups="$ol_arg"
1778 ol_enable_rlookups="auto"
1780 # end --enable-rlookups
1781 # OpenLDAP --enable-aci
1782 # Check whether --enable-aci or --disable-aci was given.
1783 if test "${enable_aci+set}" = set; then
1784 enableval="$enable_aci"
1787 for ol_val in auto yes no ; do
1788 if test "$enableval" = "$ol_val" ; then
1792 if test "$ol_arg" = "invalid" ; then
1793 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1795 ol_enable_aci="$ol_arg"
1801 # OpenLDAP --enable-wrappers
1802 # Check whether --enable-wrappers or --disable-wrappers was given.
1803 if test "${enable_wrappers+set}" = set; then
1804 enableval="$enable_wrappers"
1807 for ol_val in auto yes no ; do
1808 if test "$enableval" = "$ol_val" ; then
1812 if test "$ol_arg" = "invalid" ; then
1813 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1815 ol_enable_wrappers="$ol_arg"
1818 ol_enable_wrappers="no"
1820 # end --enable-wrappers
1821 # OpenLDAP --enable-dynamic
1822 # Check whether --enable-dynamic or --disable-dynamic was given.
1823 if test "${enable_dynamic+set}" = set; then
1824 enableval="$enable_dynamic"
1827 for ol_val in auto yes no ; do
1828 if test "$enableval" = "$ol_val" ; then
1832 if test "$ol_arg" = "invalid" ; then
1833 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1835 ol_enable_dynamic="$ol_arg"
1838 ol_enable_dynamic="no"
1840 # end --enable-dynamic
1842 # OpenLDAP --enable-bdb2
1843 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1844 if test "${enable_bdb2+set}" = set; then
1845 enableval="$enable_bdb2"
1848 for ol_val in auto yes no ; do
1849 if test "$enableval" = "$ol_val" ; then
1853 if test "$ol_arg" = "invalid" ; then
1854 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1856 ol_enable_bdb2="$ol_arg"
1862 # OpenLDAP --with-bdb2_module
1863 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1864 if test "${with_bdb2_module+set}" = set; then
1865 withval="$with_bdb2_module"
1868 for ol_val in static dynamic ; do
1869 if test "$withval" = "$ol_val" ; then
1873 if test "$ol_arg" = "invalid" ; then
1874 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1876 ol_with_bdb2_module="$ol_arg"
1879 ol_with_bdb2_module="static"
1881 # end --with-bdb2_module
1883 # OpenLDAP --enable-ldap
1884 # Check whether --enable-ldap or --disable-ldap was given.
1885 if test "${enable_ldap+set}" = set; then
1886 enableval="$enable_ldap"
1889 for ol_val in auto yes no ; do
1890 if test "$enableval" = "$ol_val" ; then
1894 if test "$ol_arg" = "invalid" ; then
1895 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1897 ol_enable_ldap="$ol_arg"
1903 # OpenLDAP --with-ldap_module
1904 # Check whether --with-ldap_module or --without-ldap_module was given.
1905 if test "${with_ldap_module+set}" = set; then
1906 withval="$with_ldap_module"
1909 for ol_val in static dynamic ; do
1910 if test "$withval" = "$ol_val" ; then
1914 if test "$ol_arg" = "invalid" ; then
1915 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1917 ol_with_ldap_module="$ol_arg"
1920 ol_with_ldap_module="static"
1922 # end --with-ldap_module
1924 # OpenLDAP --enable-ldbm
1925 # Check whether --enable-ldbm or --disable-ldbm was given.
1926 if test "${enable_ldbm+set}" = set; then
1927 enableval="$enable_ldbm"
1930 for ol_val in auto yes no ; do
1931 if test "$enableval" = "$ol_val" ; then
1935 if test "$ol_arg" = "invalid" ; then
1936 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1938 ol_enable_ldbm="$ol_arg"
1941 ol_enable_ldbm="yes"
1944 # OpenLDAP --with-ldbm_api
1945 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1946 if test "${with_ldbm_api+set}" = set; then
1947 withval="$with_ldbm_api"
1950 for ol_val in auto db2 db mdbm gdbm manual ; do
1951 if test "$withval" = "$ol_val" ; then
1955 if test "$ol_arg" = "invalid" ; then
1956 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1958 ol_with_ldbm_api="$ol_arg"
1961 ol_with_ldbm_api="auto"
1963 # end --with-ldbm_api
1965 # OpenLDAP --with-ldbm_module
1966 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1967 if test "${with_ldbm_module+set}" = set; then
1968 withval="$with_ldbm_module"
1971 for ol_val in static dynamic ; do
1972 if test "$withval" = "$ol_val" ; then
1976 if test "$ol_arg" = "invalid" ; then
1977 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1979 ol_with_ldbm_module="$ol_arg"
1982 ol_with_ldbm_module="static"
1984 # end --with-ldbm_module
1986 # OpenLDAP --with-ldbm_type
1987 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1988 if test "${with_ldbm_type+set}" = set; then
1989 withval="$with_ldbm_type"
1992 for ol_val in auto btree hash ; do
1993 if test "$withval" = "$ol_val" ; then
1997 if test "$ol_arg" = "invalid" ; then
1998 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2000 ol_with_ldbm_type="$ol_arg"
2003 ol_with_ldbm_type="auto"
2005 # end --with-ldbm_type
2008 # OpenLDAP --enable-passwd
2009 # Check whether --enable-passwd or --disable-passwd was given.
2010 if test "${enable_passwd+set}" = set; then
2011 enableval="$enable_passwd"
2014 for ol_val in auto yes no ; do
2015 if test "$enableval" = "$ol_val" ; then
2019 if test "$ol_arg" = "invalid" ; then
2020 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2022 ol_enable_passwd="$ol_arg"
2025 ol_enable_passwd="no"
2027 # end --enable-passwd
2028 # OpenLDAP --with-passwd_module
2029 # Check whether --with-passwd_module or --without-passwd_module was given.
2030 if test "${with_passwd_module+set}" = set; then
2031 withval="$with_passwd_module"
2034 for ol_val in static dynamic ; do
2035 if test "$withval" = "$ol_val" ; then
2039 if test "$ol_arg" = "invalid" ; then
2040 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2042 ol_with_passwd_module="$ol_arg"
2045 ol_with_passwd_module="static"
2047 # end --with-passwd_module
2049 # OpenLDAP --enable-perl
2050 # Check whether --enable-perl or --disable-perl was given.
2051 if test "${enable_perl+set}" = set; then
2052 enableval="$enable_perl"
2055 for ol_val in auto yes no ; do
2056 if test "$enableval" = "$ol_val" ; then
2060 if test "$ol_arg" = "invalid" ; then
2061 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2063 ol_enable_perl="$ol_arg"
2069 # OpenLDAP --with-perl_module
2070 # Check whether --with-perl_module or --without-perl_module was given.
2071 if test "${with_perl_module+set}" = set; then
2072 withval="$with_perl_module"
2075 for ol_val in static dynamic ; do
2076 if test "$withval" = "$ol_val" ; then
2080 if test "$ol_arg" = "invalid" ; then
2081 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2083 ol_with_perl_module="$ol_arg"
2086 ol_with_perl_module="static"
2088 # end --with-perl_module
2090 # OpenLDAP --enable-shell
2091 # Check whether --enable-shell or --disable-shell was given.
2092 if test "${enable_shell+set}" = set; then
2093 enableval="$enable_shell"
2096 for ol_val in auto yes no ; do
2097 if test "$enableval" = "$ol_val" ; then
2101 if test "$ol_arg" = "invalid" ; then
2102 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2104 ol_enable_shell="$ol_arg"
2107 ol_enable_shell="no"
2109 # end --enable-shell
2110 # OpenLDAP --with-shell_module
2111 # Check whether --with-shell_module or --without-shell_module was given.
2112 if test "${with_shell_module+set}" = set; then
2113 withval="$with_shell_module"
2116 for ol_val in static dynamic ; do
2117 if test "$withval" = "$ol_val" ; then
2121 if test "$ol_arg" = "invalid" ; then
2122 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2124 ol_with_shell_module="$ol_arg"
2127 ol_with_shell_module="static"
2129 # end --with-shell_module
2131 # OpenLDAP --enable-tcl
2132 # Check whether --enable-tcl or --disable-tcl was given.
2133 if test "${enable_tcl+set}" = set; then
2134 enableval="$enable_tcl"
2137 for ol_val in auto yes no ; do
2138 if test "$enableval" = "$ol_val" ; then
2142 if test "$ol_arg" = "invalid" ; then
2143 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2145 ol_enable_tcl="$ol_arg"
2151 # OpenLDAP --with-tcl_module
2152 # Check whether --with-tcl_module or --without-tcl_module was given.
2153 if test "${with_tcl_module+set}" = set; then
2154 withval="$with_tcl_module"
2157 for ol_val in static dynamic ; do
2158 if test "$withval" = "$ol_val" ; then
2162 if test "$ol_arg" = "invalid" ; then
2163 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2165 ol_with_tcl_module="$ol_arg"
2168 ol_with_tcl_module="static"
2170 # end --with-tcl_module
2172 # OpenLDAP --enable-sql
2173 # Check whether --enable-sql or --disable-sql was given.
2174 if test "${enable_sql+set}" = set; then
2175 enableval="$enable_sql"
2178 for ol_val in auto yes no ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2186 ol_enable_sql="$ol_arg"
2192 # OpenLDAP --with-sql_module
2193 # Check whether --with-sql_module or --without-sql_module was given.
2194 if test "${with_sql_module+set}" = set; then
2195 withval="$with_sql_module"
2198 for ol_val in static dynamic ; do
2199 if test "$withval" = "$ol_val" ; then
2203 if test "$ol_arg" = "invalid" ; then
2204 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2206 ol_with_sql_module="$ol_arg"
2209 ol_with_sql_module="static"
2211 # end --with-sql_module
2214 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2215 if test "${with_xxslurpdoptions+set}" = set; then
2216 withval="$with_xxslurpdoptions"
2220 # OpenLDAP --enable-slurpd
2221 # Check whether --enable-slurpd or --disable-slurpd was given.
2222 if test "${enable_slurpd+set}" = set; then
2223 enableval="$enable_slurpd"
2226 for ol_val in auto yes no ; do
2227 if test "$enableval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2234 ol_enable_slurpd="$ol_arg"
2237 ol_enable_slurpd="auto"
2239 # end --enable-slurpd
2241 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2242 if test "${with_xxliboptions+set}" = set; then
2243 withval="$with_xxliboptions"
2247 # Check whether --enable-static or --disable-static was given.
2248 if test "${enable_static+set}" = set; then
2249 enableval="$enable_static"
2250 p=${PACKAGE-default}
2251 case "$enableval" in
2252 yes) enable_static=yes ;;
2253 no) enable_static=no ;;
2256 # Look at the argument we got. We use all the common list separators.
2257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2258 for pkg in $enableval; do
2259 if test "X$pkg" = "X$p"; then
2270 # Check whether --enable-shared or --disable-shared was given.
2271 if test "${enable_shared+set}" = set; then
2272 enableval="$enable_shared"
2273 p=${PACKAGE-default}
2274 case "$enableval" in
2275 yes) enable_shared=yes ;;
2276 no) enable_shared=no ;;
2279 # Look at the argument we got. We use all the common list separators.
2280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2281 for pkg in $enableval; do
2282 if test "X$pkg" = "X$p"; then
2296 if test $ol_enable_dns = yes ; then
2297 if test $ol_enable_referrals = no ; then
2298 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2300 if test $ol_enable_referrals = auto ; then
2301 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2302 ol_enable_referrals=yes
2306 if test $ol_enable_slapd = no ; then
2307 if test $ol_enable_bdb2 = yes ; then
2308 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2310 if test $ol_enable_ldap = yes ; then
2311 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2313 if test $ol_enable_ldbm = yes ; then
2314 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2316 if test $ol_enable_passwd = yes ; then
2317 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2319 if test $ol_enable_perl = yes ; then
2320 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2322 if test $ol_enable_shell = yes ; then
2323 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2325 if test $ol_enable_tcl = yes ; then
2326 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2328 if test $ol_enable_sql = yes ; then
2329 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2331 if test $ol_enable_modules = yes ; then
2332 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2334 if test $ol_enable_multimaster = yes ; then
2335 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2337 if test $ol_enable_wrappers = yes ; then
2338 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2340 if test $ol_enable_phonetic = yes ; then
2341 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2343 if test $ol_enable_quipu = yes ; then
2344 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2346 if test $ol_enable_rlookups = yes ; then
2347 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2349 if test $ol_enable_aci = yes ; then
2350 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2352 if test $ol_with_ldbm_api != auto ; then
2353 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2355 if test $ol_with_ldbm_type != auto ; then
2356 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2358 if test $ol_with_bdb2_module != static ; then
2359 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2361 if test $ol_with_ldap_module != static ; then
2362 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2364 if test $ol_with_ldbm_module != static ; then
2365 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2367 if test $ol_with_passwd_module != static ; then
2368 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2370 if test $ol_with_perl_module != static ; then
2371 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2373 if test $ol_with_shell_module != static ; then
2374 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2376 if test $ol_with_tcl_module != static ; then
2377 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2379 if test $ol_with_sql_module != static ; then
2380 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2382 if test $ol_enable_slurpd = yes ; then
2383 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2386 # force settings to no
2396 ol_enable_modules=no
2397 ol_enable_multimaster=no
2398 ol_enable_phonetic=no
2400 ol_enable_rlookups=no
2402 ol_enable_wrappers=no
2403 ol_enable_dynamic=no
2406 ol_with_ldbm_type=no
2408 ol_with_bdb2_module=static
2409 ol_with_ldap_module=static
2410 ol_with_ldbm_module=static
2411 ol_with_passwd_module=static
2412 ol_with_perl_module=static
2413 ol_with_shell_module=static
2414 ol_with_tcl_module=static
2415 ol_with_sql_module=static
2419 elif test $ol_enable_ldbm = no ; then
2421 if test $ol_with_ldbm_api != auto ; then
2422 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2425 if test $ol_with_ldbm_type != auto ; then
2426 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2429 if test $ol_with_ldbm_module != static ; then
2430 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2433 if test $ol_enable_bdb2 = yes ; then
2434 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2437 if test $ol_enable_modules != yes -a \
2438 $ol_enable_ldap = no -a \
2439 $ol_enable_passwd = no -a \
2440 $ol_enable_perl = no -a \
2441 $ol_enable_shell = no -a \
2442 $ol_enable_tcl = no -a \
2443 $ol_enable_sql = no ; then
2444 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2448 ol_with_ldbm_type=no
2449 ol_with_ldbm_module=static
2451 elif test $ol_enable_bdb2 = yes ; then
2453 if test $ol_with_ldbm_api != auto -a \
2454 $ol_with_ldbm_api != db2 ; then
2455 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2458 ol_with_ldbm_api=db2
2462 if test $ol_enable_bdb2 != no ; then
2463 if test $ol_with_ldbm_api != auto -a \
2464 $ol_with_ldbm_api != db2 ; then
2465 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2470 if test $ol_with_ldbm_api = gdbm -a \
2471 $ol_with_ldbm_type = btree ; then
2472 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2474 if test $ol_with_ldbm_api = mdbm -a \
2475 $ol_with_ldbm_type = btree ; then
2476 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2478 if test $ol_with_ldbm_api = ndbm -a \
2479 $ol_with_ldbm_type = btree ; then
2480 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2484 if test $ol_enable_slurpd = yes ; then
2485 if test $ol_with_threads = no ; then
2486 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2490 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2491 if test $ol_with_kerberos = no ; then
2492 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2494 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2495 if test $ol_with_kerberos != auto ; then
2496 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2502 if test $ol_enable_spasswd = yes ; then
2503 if test $ol_with_cyrus_sasl = no ; then
2504 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2506 ol_with_cyrus_sasl=yes
2509 echo "$ac_t""done" 1>&6
2536 BUILD_BDB2_DYNAMIC=static
2537 BUILD_LDAP_DYNAMIC=static
2538 BUILD_LDBM_DYNAMIC=static
2539 BUILD_PASSWD_DYNAMIC=static
2540 BUILD_PERL_DYNAMIC=static
2541 BUILD_SHELL_DYNAMIC=static
2542 BUILD_TCL_DYNAMIC=static
2543 BUILD_SQL_DYNAMIC=static
2545 SLAPD_MODULES_LDFLAGS=
2546 SLAPD_MODULES_CPPFLAGS=
2568 cat >> confdefs.h <<\EOF
2569 #define HAVE_MKVERSION 1
2577 *-*-aix*) if test -z "$CC" ; then
2578 case "$ol_with_threads" in
2579 auto | yes | posix) ol_aix_threads=yes ;;
2585 if test $ol_aix_threads = yes ; then
2586 if test -z "${CC}" ; then
2587 for ac_prog in cc_r xlc_r cc
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2601 for ac_dir in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_prog_CC="$ac_prog"
2612 if test -n "$CC"; then
2613 echo "$ac_t""$CC" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 test -n "$CC" && break
2622 if test "$CC" = cc ; then
2623 if test $ol_with_threads != auto ; then
2624 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2626 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2632 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2633 ol_with_threads=posix
2634 ol_cv_pthread_create=yes
2638 if test -z "${CC}"; then
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_word" >&5
2645 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2653 for ac_dir in $ac_dummy; do
2654 test -z "$ac_dir" && ac_dir=.
2655 if test -f $ac_dir/$ac_word; then
2656 ac_cv_prog_CC="$ac_prog"
2664 if test -n "$CC"; then
2665 echo "$ac_t""$CC" 1>&6
2667 echo "$ac_t""no" 1>&6
2670 test -n "$CC" && break
2678 # Check whether --enable-fast-install or --disable-fast-install was given.
2679 if test "${enable_fast_install+set}" = set; then
2680 enableval="$enable_fast_install"
2681 p=${PACKAGE-default}
2682 case "$enableval" in
2683 yes) enable_fast_install=yes ;;
2684 no) enable_fast_install=no ;;
2686 enable_fast_install=no
2687 # Look at the argument we got. We use all the common list separators.
2688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2689 for pkg in $enableval; do
2690 if test "X$pkg" = "X$p"; then
2691 enable_fast_install=yes
2698 enable_fast_install=yes
2701 # Extract the first word of "ranlib", so it can be a program name with args.
2702 set dummy ranlib; ac_word=$2
2703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_word" >&5
2705 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 if test -n "$RANLIB"; then
2709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2713 for ac_dir in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir=.
2715 if test -f $ac_dir/$ac_word; then
2716 ac_cv_prog_RANLIB="ranlib"
2721 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2724 RANLIB="$ac_cv_prog_RANLIB"
2725 if test -n "$RANLIB"; then
2726 echo "$ac_t""$RANLIB" 1>&6
2728 echo "$ac_t""no" 1>&6
2731 # Extract the first word of "gcc", so it can be a program name with args.
2732 set dummy gcc; ac_word=$2
2733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_word" >&5
2735 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2743 for ac_dir in $ac_dummy; do
2744 test -z "$ac_dir" && ac_dir=.
2745 if test -f $ac_dir/$ac_word; then
2754 if test -n "$CC"; then
2755 echo "$ac_t""$CC" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 if test -z "$CC"; then
2761 # Extract the first word of "cc", so it can be a program name with args.
2762 set dummy cc; ac_word=$2
2763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2764 echo "configure:2765: checking for $ac_word" >&5
2765 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2774 for ac_dir in $ac_dummy; do
2775 test -z "$ac_dir" && ac_dir=.
2776 if test -f $ac_dir/$ac_word; then
2777 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2778 ac_prog_rejected=yes
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2790 if test $# -gt 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2795 set dummy "$ac_dir/$ac_word" "$@"
2803 if test -n "$CC"; then
2804 echo "$ac_t""$CC" 1>&6
2806 echo "$ac_t""no" 1>&6
2809 if test -z "$CC"; then
2810 case "`uname -s`" in
2811 *win32* | *WIN32* | *CYGWIN*)
2812 # Extract the first word of "cl", so it can be a program name with args.
2813 set dummy cl; ac_word=$2
2814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_word" >&5
2816 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2824 for ac_dir in $ac_dummy; do
2825 test -z "$ac_dir" && ac_dir=.
2826 if test -f $ac_dir/$ac_word; then
2835 if test -n "$CC"; then
2836 echo "$ac_t""$CC" 1>&6
2838 echo "$ac_t""no" 1>&6
2843 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2846 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2847 echo "configure:2848: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2854 cross_compiling=$ac_cv_prog_cc_cross
2856 cat > conftest.$ac_ext << EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2863 if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2864 ac_cv_prog_cc_works=yes
2865 # If we can't run a trivial program, we are probably using a cross compiler.
2866 if (./conftest; exit) 2>/dev/null; then
2867 ac_cv_prog_cc_cross=no
2869 ac_cv_prog_cc_cross=yes
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 ac_cv_prog_cc_works=no
2878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2882 cross_compiling=$ac_cv_prog_cc_cross
2884 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2885 if test $ac_cv_prog_cc_works = no; then
2886 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2889 echo "configure:2890: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2890 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2891 cross_compiling=$ac_cv_prog_cc_cross
2893 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2894 echo "configure:2895: checking whether we are using GNU C" >&5
2895 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.c <<EOF
2903 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2910 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2912 if test $ac_cv_prog_gcc = yes; then
2918 ac_test_CFLAGS="${CFLAGS+set}"
2919 ac_save_CFLAGS="$CFLAGS"
2921 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2922 echo "configure:2923: checking whether ${CC-cc} accepts -g" >&5
2923 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 echo 'void f(){}' > conftest.c
2927 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2936 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2937 if test "$ac_test_CFLAGS" = set; then
2938 CFLAGS="$ac_save_CFLAGS"
2939 elif test $ac_cv_prog_cc_g = yes; then
2940 if test "$GCC" = yes; then
2946 if test "$GCC" = yes; then
2953 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2954 if test "${with_gnu_ld+set}" = set; then
2955 withval="$with_gnu_ld"
2956 test "$withval" = no || with_gnu_ld=yes
2962 if test "$ac_cv_prog_gcc" = yes; then
2963 # Check if gcc -print-prog-name=ld gives a path.
2964 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2965 echo "configure:2966: checking for ld used by GCC" >&5
2966 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2968 # Accept absolute paths.
2969 [\\/]* | [A-Za-z]:[\\/]*)
2970 re_direlt='/[^/][^/]*/\.\./'
2971 # Canonicalize the path of ld
2972 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2973 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2974 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2976 test -z "$LD" && LD="$ac_prog"
2979 # If it fails, then pretend we aren't using GCC.
2983 # If it is relative, then search for the first ld in PATH.
2987 elif test "$with_gnu_ld" = yes; then
2988 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2989 echo "configure:2990: checking for GNU ld" >&5
2991 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2992 echo "configure:2993: checking for non-GNU ld" >&5
2994 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -z "$LD"; then
2998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2999 for ac_dir in $PATH; do
3000 test -z "$ac_dir" && ac_dir=.
3001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3002 ac_cv_path_LD="$ac_dir/$ac_prog"
3003 # Check to see if the program is GNU ld. I'd rather use --version,
3004 # but apparently some GNU ld's only accept -v.
3005 # Break only if it was the GNU/non-GNU ld that we prefer.
3006 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3007 test "$with_gnu_ld" != no && break
3009 test "$with_gnu_ld" != yes && break
3015 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3020 if test -n "$LD"; then
3021 echo "$ac_t""$LD" 1>&6
3023 echo "$ac_t""no" 1>&6
3025 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3027 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3028 echo "configure:3029: checking if the linker ($LD) is GNU ld" >&5
3029 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3033 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3034 ac_cv_prog_gnu_ld=yes
3036 ac_cv_prog_gnu_ld=no
3040 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3043 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3044 echo "configure:3045: checking for BSD-compatible nm" >&5
3045 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 if test -n "$NM"; then
3049 # Let the user override the test.
3052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3053 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3054 test -z "$ac_dir" && ac_dir=.
3055 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3056 # Check to see if the nm accepts a BSD-compat flag.
3057 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3058 # nm: unknown option "B" ignored
3059 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3060 ac_cv_path_NM="$ac_dir/nm -B"
3062 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3063 ac_cv_path_NM="$ac_dir/nm -p"
3066 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3067 continue # so that we can try to find one that supports BSD flags
3072 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3077 echo "$ac_t""$NM" 1>&6
3080 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3081 echo "configure:3082: checking whether ln -s works" >&5
3082 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3086 if ln -s X conftestdata 2>/dev/null
3089 ac_cv_prog_LN_S="ln -s"
3094 LN_S="$ac_cv_prog_LN_S"
3095 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3096 echo "$ac_t""yes" 1>&6
3098 echo "$ac_t""no" 1>&6
3101 if test $host != $build; then
3102 ac_tool_prefix=${host_alias}-
3108 # Check for any special flags to pass to ltconfig.
3109 libtool_flags="--cache-file=$cache_file"
3110 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3111 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3112 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3113 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3114 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3115 libtool_flags="$libtool_flags --enable-dlopen"
3116 libtool_flags="$libtool_flags --enable-win32-dll"
3117 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3118 if test "${enable_libtool_lock+set}" = set; then
3119 enableval="$enable_libtool_lock"
3123 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3124 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3126 # Some flags need to be propagated to the compiler or linker for good
3130 # Find out which ABI we are using.
3131 echo '#line 3132 "configure"' > conftest.$ac_ext
3132 if { (eval echo configure:3133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3133 case "`/usr/bin/file conftest.o`" in
3149 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3150 SAVE_CFLAGS="$CFLAGS"
3151 CFLAGS="$CFLAGS -belf"
3152 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3153 echo "configure:3154: checking whether the C compiler needs -belf" >&5
3154 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3167 lt_cv_cc_needs_belf=yes
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 lt_cv_cc_needs_belf=no
3177 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3178 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3179 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3180 CFLAGS="$SAVE_CFLAGS"
3184 *-*-cygwin* | *-*-mingw*)
3185 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_word" >&5
3189 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 if test -n "$DLLTOOL"; then
3193 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3197 for ac_dir in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3207 DLLTOOL="$ac_cv_prog_DLLTOOL"
3208 if test -n "$DLLTOOL"; then
3209 echo "$ac_t""$DLLTOOL" 1>&6
3211 echo "$ac_t""no" 1>&6
3215 if test -z "$ac_cv_prog_DLLTOOL"; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "dlltool", so it can be a program name with args.
3218 set dummy dlltool; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 if test -n "$DLLTOOL"; then
3225 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3229 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 if test -f $ac_dir/$ac_word; then
3232 ac_cv_prog_DLLTOOL="dlltool"
3237 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3240 DLLTOOL="$ac_cv_prog_DLLTOOL"
3241 if test -n "$DLLTOOL"; then
3242 echo "$ac_t""$DLLTOOL" 1>&6
3244 echo "$ac_t""no" 1>&6
3252 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}as; ac_word=$2
3254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_word" >&5
3256 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 if test -n "$AS"; then
3260 ac_cv_prog_AS="$AS" # Let the user override the test.
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3264 for ac_dir in $ac_dummy; do
3265 test -z "$ac_dir" && ac_dir=.
3266 if test -f $ac_dir/$ac_word; then
3267 ac_cv_prog_AS="${ac_tool_prefix}as"
3275 if test -n "$AS"; then
3276 echo "$ac_t""$AS" 1>&6
3278 echo "$ac_t""no" 1>&6
3282 if test -z "$ac_cv_prog_AS"; then
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "as", so it can be a program name with args.
3285 set dummy as; ac_word=$2
3286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3287 echo "configure:3288: checking for $ac_word" >&5
3288 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 if test -n "$AS"; then
3292 ac_cv_prog_AS="$AS" # Let the user override the test.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3296 for ac_dir in $ac_dummy; do
3297 test -z "$ac_dir" && ac_dir=.
3298 if test -f $ac_dir/$ac_word; then
3304 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3308 if test -n "$AS"; then
3309 echo "$ac_t""$AS" 1>&6
3311 echo "$ac_t""no" 1>&6
3319 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3322 echo "configure:3323: checking for $ac_word" >&5
3323 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 if test -n "$OBJDUMP"; then
3327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3331 for ac_dir in $ac_dummy; do
3332 test -z "$ac_dir" && ac_dir=.
3333 if test -f $ac_dir/$ac_word; then
3334 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3341 OBJDUMP="$ac_cv_prog_OBJDUMP"
3342 if test -n "$OBJDUMP"; then
3343 echo "$ac_t""$OBJDUMP" 1>&6
3345 echo "$ac_t""no" 1>&6
3349 if test -z "$ac_cv_prog_OBJDUMP"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "objdump", so it can be a program name with args.
3352 set dummy objdump; ac_word=$2
3353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3354 echo "configure:3355: checking for $ac_word" >&5
3355 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 if test -n "$OBJDUMP"; then
3359 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3363 for ac_dir in $ac_dummy; do
3364 test -z "$ac_dir" && ac_dir=.
3365 if test -f $ac_dir/$ac_word; then
3366 ac_cv_prog_OBJDUMP="objdump"
3371 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3374 OBJDUMP="$ac_cv_prog_OBJDUMP"
3375 if test -n "$OBJDUMP"; then
3376 echo "$ac_t""$OBJDUMP" 1>&6
3378 echo "$ac_t""no" 1>&6
3391 # Save cache, so that ltconfig can load it
3394 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3395 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3396 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3397 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3398 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3399 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3400 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3401 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3403 # Reload cache, that may have been modified by ltconfig
3406 # This can be used to rebuild libtool when needed
3407 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3409 # Always use our own libtool.
3410 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3412 # Redirect the config.log output again, so that the ltconfig log is not
3413 # clobbered by the next message.
3414 exec 5>>./config.log
3417 for ac_prog in mawk gawk nawk awk
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_word" >&5
3423 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 if test -n "$AWK"; then
3427 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3431 for ac_dir in $ac_dummy; do
3432 test -z "$ac_dir" && ac_dir=.
3433 if test -f $ac_dir/$ac_word; then
3434 ac_cv_prog_AWK="$ac_prog"
3441 AWK="$ac_cv_prog_AWK"
3442 if test -n "$AWK"; then
3443 echo "$ac_t""$AWK" 1>&6
3445 echo "$ac_t""no" 1>&6
3448 test -n "$AWK" && break
3451 # test for ln hardlink support
3452 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3453 echo "configure:3454: checking whether ln works" >&5
3454 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 rm -f conftest.src conftest.dst
3458 echo "conftest" > conftest.src
3459 if ln conftest.src conftest.dst 2>/dev/null
3461 ol_cv_prog_LN_H="ln"
3463 ol_cv_prog_LN_H="cp"
3465 rm -f conftest.src conftest.dst
3468 LN_H="$ol_cv_prog_LN_H"
3469 if test "$ol_cv_prog_LN_H" = "ln"; then
3470 echo "$ac_t""yes" 1>&6
3472 echo "$ac_t""no" 1>&6
3475 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3476 echo "configure:3477: checking whether ln -s works" >&5
3477 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3481 if ln -s X conftestdata 2>/dev/null
3484 ac_cv_prog_LN_S="ln -s"
3489 LN_S="$ac_cv_prog_LN_S"
3490 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3491 echo "$ac_t""yes" 1>&6
3493 echo "$ac_t""no" 1>&6
3497 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3501 # Extract the first word of "sendmail", so it can be a program name with args.
3502 set dummy sendmail; ac_word=$2
3503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3504 echo "configure:3505: checking for $ac_word" >&5
3505 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3510 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3513 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3517 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3518 for ac_dir in $ac_dummy; do
3519 test -z "$ac_dir" && ac_dir=.
3520 if test -f $ac_dir/$ac_word; then
3521 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3526 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3530 SENDMAIL="$ac_cv_path_SENDMAIL"
3531 if test -n "$SENDMAIL"; then
3532 echo "$ac_t""$SENDMAIL" 1>&6
3534 echo "$ac_t""no" 1>&6
3537 # Extract the first word of "vi", so it can be a program name with args.
3538 set dummy vi; ac_word=$2
3539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3540 echo "configure:3541: checking for $ac_word" >&5
3541 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3546 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3549 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3553 ac_dummy="$PATH:/usr/ucb"
3554 for ac_dir in $ac_dummy; do
3555 test -z "$ac_dir" && ac_dir=.
3556 if test -f $ac_dir/$ac_word; then
3557 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3562 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3566 EDITOR="$ac_cv_path_EDITOR"
3567 if test -n "$EDITOR"; then
3568 echo "$ac_t""$EDITOR" 1>&6
3570 echo "$ac_t""no" 1>&6
3573 # Extract the first word of "finger", so it can be a program name with args.
3574 set dummy finger; ac_word=$2
3575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3576 echo "configure:3577: checking for $ac_word" >&5
3577 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3582 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3585 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3589 ac_dummy="$PATH:/usr/ucb"
3590 for ac_dir in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir=.
3592 if test -f $ac_dir/$ac_word; then
3593 ac_cv_path_FINGER="$ac_dir/$ac_word"
3598 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3602 FINGER="$ac_cv_path_FINGER"
3603 if test -n "$FINGER"; then
3604 echo "$ac_t""$FINGER" 1>&6
3606 echo "$ac_t""no" 1>&6
3611 if test $ol_enable_perl != no ; then
3612 # Extract the first word of "perl", so it can be a program name with args.
3613 set dummy perl; ac_word=$2
3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_word" >&5
3616 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3621 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3624 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3637 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3641 PERLBIN="$ac_cv_path_PERLBIN"
3642 if test -n "$PERLBIN"; then
3643 echo "$ac_t""$PERLBIN" 1>&6
3645 echo "$ac_t""no" 1>&6
3649 if test "no$PERLBIN" = "no" ; then
3650 if test $ol_enable_perl = yes ; then
3651 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3655 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3656 if test x"$ol_with_perl_module" = "xstatic" ; then
3657 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3659 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3665 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3666 echo "configure:3667: checking how to run the C preprocessor" >&5
3667 # On Suns, sometimes $CPP names a directory.
3668 if test -n "$CPP" && test -d "$CPP"; then
3671 if test -z "$CPP"; then
3672 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 # This must be in double quotes, not single quotes, because CPP may get
3676 # substituted into the Makefile and "${CC-cc}" will confuse make.
3678 # On the NeXT, cc -E runs the code through the compiler's parser,
3679 # not just through cpp.
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3687 { (eval echo configure:3688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3689 if test -z "$ac_err"; then
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 CPP="${CC-cc} -E -traditional-cpp"
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3704 { (eval echo configure:3705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3706 if test -z "$ac_err"; then
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 CPP="${CC-cc} -nologo -E"
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3721 { (eval echo configure:3722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3723 if test -z "$ac_err"; then
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3737 ac_cv_prog_CPP="$CPP"
3739 CPP="$ac_cv_prog_CPP"
3741 ac_cv_prog_CPP="$CPP"
3743 echo "$ac_t""$CPP" 1>&6
3746 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3747 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3749 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3750 echo "configure: warning: programs compiled here do run here..." 1>&2
3751 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3753 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3754 echo "configure: warning: programs compiled here do not run here..." 1>&2
3755 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3758 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3759 echo "configure:3760: checking for AIX" >&5
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 egrep "yes" >/dev/null 2>&1; then
3771 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3772 #define _ALL_SOURCE 1
3777 echo "$ac_t""no" 1>&6
3782 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3783 echo "configure:3784: checking for POSIXized ISC" >&5
3784 if test -d /etc/conf/kconfig.d &&
3785 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3787 echo "$ac_t""yes" 1>&6
3788 ISC=yes # If later tests want to check for ISC.
3789 cat >> confdefs.h <<\EOF
3790 #define _POSIX_SOURCE 1
3793 if test "$GCC" = yes; then
3799 echo "$ac_t""no" 1>&6
3803 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3804 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3805 echo "configure:3806: checking for minix/config.h" >&5
3806 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 #include <minix/config.h>
3814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3815 { (eval echo configure:3816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3817 if test -z "$ac_err"; then
3819 eval "ac_cv_header_$ac_safe=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 eval "ac_cv_header_$ac_safe=no"
3829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3833 echo "$ac_t""no" 1>&6
3837 if test "$MINIX" = yes; then
3838 cat >> confdefs.h <<\EOF
3839 #define _POSIX_SOURCE 1
3842 cat >> confdefs.h <<\EOF
3843 #define _POSIX_1_SOURCE 2
3846 cat >> confdefs.h <<\EOF
3853 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3854 echo "configure:3855: checking for Cygwin environment" >&5
3855 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3865 #define __CYGWIN__ __CYGWIN32__
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3882 echo "$ac_t""$ac_cv_cygwin" 1>&6
3884 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3885 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3886 echo "configure:3887: checking for mingw32 environment" >&5
3887 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3898 if { (eval echo configure:3899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3910 echo "$ac_t""$ac_cv_mingw32" 1>&6
3912 test "$ac_cv_mingw32" = yes && MINGW32=yes
3913 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3914 echo "configure:3915: checking for EMX OS/2 environment" >&5
3915 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3938 echo "$ac_t""$ac_cv_emxos2" 1>&6
3940 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3944 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3945 echo "configure:3946: checking for executable suffix" >&5
3946 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3949 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3953 echo 'int main () { return 0; }' > conftest.$ac_ext
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3956 for file in conftest.*; do
3958 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3959 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3963 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3966 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3971 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3972 echo "$ac_t""${ac_cv_exeext}" 1>&6
3975 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3976 echo "configure:3977: checking for object suffix" >&5
3977 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3981 echo 'int i = 1;' > conftest.$ac_ext
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 for ac_file in conftest.*; do
3986 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3990 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3995 echo "$ac_t""$ac_cv_objext" 1>&6
3996 OBJEXT=$ac_cv_objext
3997 ac_objext=$ac_cv_objext
4000 cat >> confdefs.h <<EOF
4001 #define EXEEXT "${EXEEXT}"
4005 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4006 echo "configure:4007: checking for be_app in -lbe" >&5
4007 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4008 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 ac_save_LIBS="$LIBS"
4012 LIBS="-lbe -lroot -lnet $LIBS"
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4027 eval "ac_cv_lib_$ac_lib_var=yes"
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4032 eval "ac_cv_lib_$ac_lib_var=no"
4035 LIBS="$ac_save_LIBS"
4038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4039 echo "$ac_t""yes" 1>&6
4040 LIBS="$LIBS -lbe -lroot -lnet"
4042 echo "$ac_t""no" 1>&6
4050 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4051 echo "configure:4052: checking for ${CC-cc} option to accept ANSI C" >&5
4052 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 am_cv_prog_cc_stdc=no
4057 # Don't try gcc -ansi; that turns off useful extensions and
4058 # breaks some systems' header files.
4059 # AIX -qlanglvl=ansi
4060 # Ultrix and OSF/1 -std1
4061 # HP-UX 10.20 and later -Ae
4062 # HP-UX older versions -Aa -D_HPUX_SOURCE
4063 # SVR4 -Xc -D__EXTENSIONS__
4064 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4066 CC="$ac_save_CC $ac_arg"
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4072 #include <sys/types.h>
4073 #include <sys/stat.h>
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4088 s = g (p, va_arg (v,int));
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 if { (eval echo configure:4106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4107 am_cv_prog_cc_stdc="$ac_arg"; break
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4118 if test -z "$am_cv_prog_cc_stdc"; then
4119 echo "$ac_t""none needed" 1>&6
4121 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4123 case "x$am_cv_prog_cc_stdc" in
4125 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4128 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4129 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4132 # test for make depend flag
4135 if test -z "${MKDEP}"; then
4137 if test -z "${MKDEP_FLAGS}"; then
4138 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4139 echo "configure:4140: checking for ${OL_MKDEP} depend flag" >&5
4140 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4145 for flag in "-M" "-xM"; do
4146 cat > conftest.c <<EOF
4149 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4150 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4152 if test ! -f conftest."${ac_object}" ; then
4154 OL_MKDEP_FLAGS="$flag"
4163 echo "$ac_t""$ol_cv_mkdep" 1>&6
4166 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4171 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4176 if test "${ol_cv_mkdep}" = no ; then
4177 # this will soon become an error
4178 echo "configure: warning: do not know how to generate dependencies" 1>&2
4182 if test $ol_enable_modules != no ; then
4183 for ac_hdr in ltdl.h
4185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4187 echo "configure:4188: checking for $ac_hdr" >&5
4188 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4197 { (eval echo configure:4198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4199 if test -z "$ac_err"; then
4201 eval "ac_cv_header_$ac_safe=yes"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 eval "ac_cv_header_$ac_safe=no"
4211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4212 echo "$ac_t""yes" 1>&6
4213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4214 cat >> confdefs.h <<EOF
4215 #define $ac_tr_hdr 1
4219 echo "$ac_t""no" 1>&6
4224 if test $ac_cv_header_ltdl_h = no ; then
4225 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4228 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4229 echo "configure:4230: checking for lt_dlinit in -lltdl" >&5
4230 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4231 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 ac_save_LIBS="$LIBS"
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 /* Override any gcc2 internal prototype to avoid an error. */
4240 /* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 eval "ac_cv_lib_$ac_lib_var=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 eval "ac_cv_lib_$ac_lib_var=no"
4258 LIBS="$ac_save_LIBS"
4261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4265 cat >> confdefs.h <<\EOF
4266 #define HAVE_LIBLTDL 1
4271 echo "$ac_t""no" 1>&6
4275 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4276 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4280 ol_with_bdb2_module=static
4281 ol_with_ldap_module=static
4282 ol_with_ldbm_module=static
4283 ol_with_passwd_module=static
4284 ol_with_perl_module=static
4285 ol_with_shell_module=static
4286 ol_with_tcl_module=static
4287 ol_with_sql_module=static
4291 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4292 echo "configure:4293: checking for EBCDIC" >&5
4293 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4302 #include <__ASCII__/generate_error.h>
4306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4307 { (eval echo configure:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309 if test -z "$ac_err"; then
4311 ol_cv_cpp_ebcdic=yes
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4322 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4323 if test $ol_cv_cpp_ebcdic = yes ; then
4324 cat >> confdefs.h <<\EOF
4325 #define HAVE_EBCDIC 1
4330 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4331 echo "configure:4332: checking for ANSI C header files" >&5
4332 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4348 ol_cv_header_stdc=yes
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 ol_cv_header_stdc=no
4358 if test $ol_cv_header_stdc = yes; then
4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 egrep "memchr" >/dev/null 2>&1; then
4370 ol_cv_header_stdc=no
4376 if test $ol_cv_header_stdc = yes; then
4377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384 egrep "free" >/dev/null 2>&1; then
4388 ol_cv_header_stdc=no
4394 if test $ol_cv_header_stdc = yes; then
4395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4396 if test "$cross_compiling" = yes; then
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4408 || ('j' <= (c) && (c) <= 'r') \
4409 || ('s' <= (c) && (c) <= 'z'))
4410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4413 int main () { int i; for (i = 0; i < 256; i++)
4414 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 ol_cv_header_stdc=no
4433 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4434 if test $ol_cv_header_stdc = yes; then
4435 cat >> confdefs.h <<\EOF
4436 #define STDC_HEADERS 1
4440 ac_cv_header_stdc=disable
4443 if test $ol_cv_header_stdc != yes; then
4444 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4448 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4451 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_hdr that defines DIR" >&5
4453 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 #include <sys/types.h>
4465 if { (eval echo configure:4466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4467 eval "ac_cv_header_dirent_$ac_safe=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 eval "ac_cv_header_dirent_$ac_safe=no"
4476 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4479 cat >> confdefs.h <<EOF
4480 #define $ac_tr_hdr 1
4482 ac_header_dirent=$ac_hdr; break
4484 echo "$ac_t""no" 1>&6
4487 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4488 if test $ac_header_dirent = dirent.h; then
4489 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4490 echo "configure:4491: checking for opendir in -ldir" >&5
4491 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4492 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 ac_save_LIBS="$LIBS"
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_lib_$ac_lib_var=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_lib_$ac_lib_var=no"
4519 LIBS="$ac_save_LIBS"
4522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4526 echo "$ac_t""no" 1>&6
4530 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4531 echo "configure:4532: checking for opendir in -lx" >&5
4532 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS="$LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4567 echo "$ac_t""no" 1>&6
4572 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4573 echo "configure:4574: checking for sys/wait.h that is POSIX.1 compatible" >&5
4574 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 #include <sys/types.h>
4581 #include <sys/wait.h>
4583 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4586 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4591 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4594 if { (eval echo configure:4595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4596 ac_cv_header_sys_wait_h=yes
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4601 ac_cv_header_sys_wait_h=no
4606 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4607 if test $ac_cv_header_sys_wait_h = yes; then
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE_SYS_WAIT_H 1
4614 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4615 echo "configure:4616: checking POSIX termios" >&5
4616 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 #include <sys/types.h>
4624 #include <termios.h>
4626 /* SunOS 4.0.3 has termios.h but not the library calls. */
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632 am_cv_sys_posix_termios=yes
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 am_cv_sys_posix_termios=no
4642 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4645 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4646 echo "configure:4647: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4647 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4652 gwinsz_in_termios_h=no
4653 if test $am_cv_sys_posix_termios = yes; then
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 #include <sys/types.h>
4658 # include <termios.h>
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 egrep "yes" >/dev/null 2>&1; then
4667 gwinsz_in_termios_h=yes
4673 if test $gwinsz_in_termios_h = no; then
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <sys/types.h>
4678 # include <sys/ioctl.h>
4684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4685 egrep "yes" >/dev/null 2>&1; then
4687 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4695 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4696 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4697 cat >> confdefs.h <<\EOF
4698 #define GWINSZ_IN_SYS_IOCTL 1
4703 if test $am_cv_sys_posix_termios = yes ; then
4704 cat >> confdefs.h <<\EOF
4705 #define HAVE_POSIX_TERMIOS 1
4756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4758 echo "configure:4759: checking for $ac_hdr" >&5
4759 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4768 { (eval echo configure:4769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4770 if test -z "$ac_err"; then
4772 eval "ac_cv_header_$ac_safe=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 eval "ac_cv_header_$ac_safe=no"
4782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4785 cat >> confdefs.h <<EOF
4786 #define $ac_tr_hdr 1
4790 echo "$ac_t""no" 1>&6
4797 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4798 echo "configure:4799: checking for sigset in -lV3" >&5
4799 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4800 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4803 ac_save_LIBS="$LIBS"
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4819 eval "ac_cv_lib_$ac_lib_var=yes"
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4824 eval "ac_cv_lib_$ac_lib_var=no"
4827 LIBS="$ac_save_LIBS"
4830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4831 echo "$ac_t""yes" 1>&6
4832 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4833 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4834 cat >> confdefs.h <<EOF
4835 #define $ac_tr_lib 1
4841 echo "$ac_t""no" 1>&6
4845 if test $ac_cv_header_winsock_h = yes; then
4846 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4847 echo "configure:4848: checking for winsock" >&5
4848 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 #include <winsock.h>
4858 select(0,NULL,NULL,NULL,NULL);
4860 gethostname(NULL,0);
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4876 echo "$ac_t""$ol_cv_winsock" 1>&6
4878 if test $ol_cv_winsock = yes ; then
4879 cat >> confdefs.h <<\EOF
4880 #define HAVE_WINSOCK 1
4883 ac_cv_func_socket=yes
4884 ac_cv_func_select=yes
4885 ac_cv_func_closesocket=yes
4886 ac_cv_func_gethostname=yes
4891 echo $ac_n "checking for socket""... $ac_c" 1>&6
4892 echo "configure:4893: checking for socket" >&5
4893 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char socket(); below. */
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4910 /* The GNU C library defines this for functions which it implements
4911 to always fail with ENOSYS. Some functions are actually named
4912 something starting with __ and the normal name is an alias. */
4913 #if defined (__stub_socket) || defined (__stub___socket)
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 eval "ac_cv_func_socket=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4928 eval "ac_cv_func_socket=no"
4933 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4937 echo "$ac_t""no" 1>&6
4939 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4940 echo "configure:4941: checking for main in -lsocket" >&5
4941 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 ac_save_LIBS="$LIBS"
4946 LIBS="-lsocket $LIBS"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_lib_$ac_lib_var=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_lib_$ac_lib_var=no"
4965 LIBS="$ac_save_LIBS"
4968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4969 echo "$ac_t""yes" 1>&6
4970 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_lib 1
4976 LIBS="-lsocket $LIBS"
4979 echo "$ac_t""no" 1>&6
4982 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4983 echo "configure:4984: checking for main in -lnet" >&5
4984 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 ac_save_LIBS="$LIBS"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 eval "ac_cv_lib_$ac_lib_var=no"
5008 LIBS="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5015 cat >> confdefs.h <<EOF
5016 #define $ac_tr_lib 1
5022 echo "$ac_t""no" 1>&6
5025 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5026 echo "configure:5027: checking for main in -lnsl_s" >&5
5027 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5031 ac_save_LIBS="$LIBS"
5032 LIBS="-lnsl_s $LIBS"
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 eval "ac_cv_lib_$ac_lib_var=no"
5051 LIBS="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5058 cat >> confdefs.h <<EOF
5059 #define $ac_tr_lib 1
5062 LIBS="-lnsl_s $LIBS"
5065 echo "$ac_t""no" 1>&6
5068 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5069 echo "configure:5070: checking for main in -lnsl" >&5
5070 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 ac_save_LIBS="$LIBS"
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5084 if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5086 eval "ac_cv_lib_$ac_lib_var=yes"
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 eval "ac_cv_lib_$ac_lib_var=no"
5094 LIBS="$ac_save_LIBS"
5097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5101 cat >> confdefs.h <<EOF
5102 #define $ac_tr_lib 1
5108 echo "$ac_t""no" 1>&6
5111 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5112 echo "configure:5113: checking for socket in -linet" >&5
5113 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 ac_save_LIBS="$LIBS"
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5133 eval "ac_cv_lib_$ac_lib_var=yes"
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 eval "ac_cv_lib_$ac_lib_var=no"
5141 LIBS="$ac_save_LIBS"
5144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5148 cat >> confdefs.h <<EOF
5149 #define $ac_tr_lib 1
5155 echo "$ac_t""no" 1>&6
5158 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5159 echo "configure:5160: checking for main in -lgen" >&5
5160 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5161 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 ac_save_LIBS="$LIBS"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 eval "ac_cv_lib_$ac_lib_var=yes"
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 eval "ac_cv_lib_$ac_lib_var=no"
5184 LIBS="$ac_save_LIBS"
5187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_lib 1
5198 echo "$ac_t""no" 1>&6
5205 echo $ac_n "checking for select""... $ac_c" 1>&6
5206 echo "configure:5207: checking for select" >&5
5207 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5213 /* System header to define __stub macros and hopefully few prototypes,
5214 which can conflict with char select(); below. */
5216 /* Override any gcc2 internal prototype to avoid an error. */
5217 /* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */
5224 /* The GNU C library defines this for functions which it implements
5225 to always fail with ENOSYS. Some functions are actually named
5226 something starting with __ and the normal name is an alias. */
5227 #if defined (__stub_select) || defined (__stub___select)
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 eval "ac_cv_func_select=yes"
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 eval "ac_cv_func_select=no"
5247 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5251 echo "$ac_t""no" 1>&6
5252 { echo "configure: error: select() required." 1>&2; exit 1; }
5256 if test "${ac_cv_header_winsock_h}" != yes; then
5257 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5258 echo "configure:5259: checking types of arguments for select()" >&5
5259 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5268 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5269 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5270 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 #ifdef HAVE_SYS_TYPES_H
5275 #include <sys/types.h>
5277 #ifdef HAVE_SYS_TIME_H
5278 #include <sys/time.h>
5280 #ifdef HAVE_SYS_SELECT_H
5281 #include <sys/select.h>
5283 #ifdef HAVE_SYS_SOCKET_H
5284 #include <sys/socket.h>
5286 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);
5291 if { (eval echo configure:5292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5293 ac_not_found=no ; break 3
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5310 if test "$ac_not_found" = yes; then
5311 ac_cv_func_select_arg1=int
5312 ac_cv_func_select_arg234='int *'
5313 ac_cv_func_select_arg5='struct timeval *'
5315 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5316 cat >> confdefs.h <<EOF
5317 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5320 cat >> confdefs.h <<EOF
5321 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5324 cat >> confdefs.h <<EOF
5325 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5332 for ac_hdr in regex.h
5334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_hdr" >&5
5337 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5346 { (eval echo configure:5347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5348 if test -z "$ac_err"; then
5350 eval "ac_cv_header_$ac_safe=yes"
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5356 eval "ac_cv_header_$ac_safe=no"
5360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5363 cat >> confdefs.h <<EOF
5364 #define $ac_tr_hdr 1
5368 echo "$ac_t""no" 1>&6
5372 if test "$ac_cv_header_regex_h" != yes ; then
5373 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5375 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5376 echo "configure:5377: checking for regfree" >&5
5377 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 /* System header to define __stub macros and hopefully few prototypes,
5384 which can conflict with char regfree(); below. */
5386 /* Override any gcc2 internal prototype to avoid an error. */
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5394 /* The GNU C library defines this for functions which it implements
5395 to always fail with ENOSYS. Some functions are actually named
5396 something starting with __ and the normal name is an alias. */
5397 #if defined (__stub_regfree) || defined (__stub___regfree)
5405 if { (eval echo configure:5406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5407 eval "ac_cv_func_regfree=yes"
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 eval "ac_cv_func_regfree=no"
5417 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5421 echo "$ac_t""no" 1>&6
5422 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5427 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5428 echo "configure:5429: checking for compatible POSIX regex" >&5
5429 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5433 if test "$cross_compiling" = yes; then
5434 ol_cv_c_posix_regex=cross
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5440 #include <sys/types.h>
5442 static char *pattern, *string;
5450 if(regcomp(&re, pattern, 0)) {
5454 string = "ALL MATCH";
5456 rc = regexec(&re, string, 0, (void*)0, 0);
5463 if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5465 ol_cv_c_posix_regex=yes
5467 echo "configure: failed program was:" >&5
5468 cat conftest.$ac_ext >&5
5470 ol_cv_c_posix_regex=no
5477 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5479 if test "$ol_cv_c_posix_regex" = no ; then
5480 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5483 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5484 echo "configure:5485: checking for res_search" >&5
5485 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* System header to define __stub macros and hopefully few prototypes,
5492 which can conflict with char res_search(); below. */
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_res_search) || defined (__stub___res_search)
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 eval "ac_cv_func_res_search=yes"
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 eval "ac_cv_func_res_search=no"
5525 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5529 echo "$ac_t""no" 1>&6
5532 if test $ac_cv_func_res_search = no ; then
5533 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5534 echo "configure:5535: checking for res_search in -lbind" >&5
5535 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5536 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 ac_save_LIBS="$LIBS"
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 eval "ac_cv_lib_$ac_lib_var=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_lib_$ac_lib_var=no"
5563 LIBS="$ac_save_LIBS"
5566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5567 echo "$ac_t""yes" 1>&6
5568 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5569 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5570 cat >> confdefs.h <<EOF
5571 #define $ac_tr_lib 1
5577 echo "$ac_t""no" 1>&6
5580 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5583 if test $ac_cv_func_res_search = no ; then
5584 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5585 echo "configure:5586: checking for __res_search in -lbind" >&5
5586 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5587 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 ac_save_LIBS="$LIBS"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5598 char __res_search();
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 eval "ac_cv_lib_$ac_lib_var=yes"
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5611 eval "ac_cv_lib_$ac_lib_var=no"
5614 LIBS="$ac_save_LIBS"
5617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5620 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5621 cat >> confdefs.h <<EOF
5622 #define $ac_tr_lib 1
5628 echo "$ac_t""no" 1>&6
5631 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5634 if test $ac_cv_func_res_search = no ; then
5635 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5636 echo "configure:5637: checking for res_search in -lresolv" >&5
5637 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 ac_save_LIBS="$LIBS"
5642 LIBS="-lresolv $LIBS"
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646 /* Override any gcc2 internal prototype to avoid an error. */
5647 /* We use char because int might match the return type of a gcc2
5648 builtin and then its argument prototype would still apply. */
5655 if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5657 eval "ac_cv_lib_$ac_lib_var=yes"
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5662 eval "ac_cv_lib_$ac_lib_var=no"
5665 LIBS="$ac_save_LIBS"
5668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5672 cat >> confdefs.h <<EOF
5673 #define $ac_tr_lib 1
5676 LIBS="-lresolv $LIBS"
5679 echo "$ac_t""no" 1>&6
5682 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5685 if test "$ac_cv_func_res_search" = yes ; then
5686 cat >> confdefs.h <<\EOF
5687 #define HAVE_RES_SEARCH 1
5690 elif test $ol_enable_dns = yes ; then
5691 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5692 elif test $ol_enable_dns != no ; then
5693 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5698 if test $ol_enable_ldapd != no ; then
5699 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5701 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5702 echo "configure:5703: checking for main in -lxtpp" >&5
5703 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5704 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 ac_save_LIBS="$LIBS"
5708 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5717 if { (eval echo configure:5718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5719 eval "ac_cv_lib_$ac_lib_var=yes"
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5724 eval "ac_cv_lib_$ac_lib_var=no"
5727 LIBS="$ac_save_LIBS"
5730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5731 echo "$ac_t""yes" 1>&6
5734 cat >> confdefs.h <<\EOF
5738 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5741 echo "$ac_t""no" 1>&6
5745 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5746 echo "configure:5747: checking for main in -ldsap" >&5
5747 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5748 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 ac_save_LIBS="$LIBS"
5752 LIBS="-ldsap -lisode $LIBS"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_lib_$ac_lib_var=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_lib_$ac_lib_var=no"
5771 LIBS="$ac_save_LIBS"
5774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5775 echo "$ac_t""yes" 1>&6
5778 cat >> confdefs.h <<\EOF
5782 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5785 echo "$ac_t""no" 1>&6
5789 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5790 echo "configure:5791: checking for main in -lisode" >&5
5791 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 ac_save_LIBS="$LIBS"
5796 LIBS="-lisode $LIBS"
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5807 eval "ac_cv_lib_$ac_lib_var=yes"
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 eval "ac_cv_lib_$ac_lib_var=no"
5815 LIBS="$ac_save_LIBS"
5818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5822 cat >> confdefs.h <<\EOF
5823 #define HAVE_ISODE 1
5826 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5829 echo "$ac_t""no" 1>&6
5835 if test $ol_link_isode != no; then
5836 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5837 echo "configure:5838: checking for main in -lpp" >&5
5838 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5839 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5840 echo $ac_n "(cached) $ac_c" 1>&6
5842 ac_save_LIBS="$LIBS"
5844 cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5854 eval "ac_cv_lib_$ac_lib_var=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 eval "ac_cv_lib_$ac_lib_var=no"
5862 LIBS="$ac_save_LIBS"
5865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5868 cat >> confdefs.h <<\EOF
5872 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5875 echo "$ac_t""no" 1>&6
5880 # Extract the first word of "pepsy", so it can be a program name with args.
5881 set dummy pepsy; ac_word=$2
5882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5883 echo "configure:5884: checking for $ac_word" >&5
5884 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5889 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5892 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5897 for ac_dir in $ac_dummy; do
5898 test -z "$ac_dir" && ac_dir=.
5899 if test -f $ac_dir/$ac_word; then
5900 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5908 PEPSY="$ac_cv_path_PEPSY"
5909 if test -n "$PEPSY"; then
5910 echo "$ac_t""$PEPSY" 1>&6
5912 echo "$ac_t""no" 1>&6
5917 if test $ol_enable_quipu != no ; then
5918 for ac_hdr in quipu/commonarg.h
5920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_hdr" >&5
5923 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5932 { (eval echo configure:5933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5934 if test -z "$ac_err"; then
5936 eval "ac_cv_header_$ac_safe=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 eval "ac_cv_header_$ac_safe=no"
5946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5949 cat >> confdefs.h <<EOF
5950 #define $ac_tr_hdr 1
5954 echo "$ac_t""no" 1>&6
5959 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5961 elif test $ol_enable_quipu = auto ; then
5962 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5964 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5973 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5974 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5976 for ac_hdr in krb5.h
5978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5980 echo "configure:5981: checking for $ac_hdr" >&5
5981 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5990 { (eval echo configure:5991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5992 if test -z "$ac_err"; then
5994 eval "ac_cv_header_$ac_safe=yes"
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 eval "ac_cv_header_$ac_safe=no"
6004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6005 echo "$ac_t""yes" 1>&6
6006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6007 cat >> confdefs.h <<EOF
6008 #define $ac_tr_hdr 1
6012 echo "$ac_t""no" 1>&6
6017 if test $ac_cv_header_krb5_h = yes ; then
6018 for ac_hdr in heim_err.h
6020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6022 echo "configure:6023: checking for $ac_hdr" >&5
6023 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6032 { (eval echo configure:6033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6034 if test -z "$ac_err"; then
6036 eval "ac_cv_header_$ac_safe=yes"
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 eval "ac_cv_header_$ac_safe=no"
6046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6049 cat >> confdefs.h <<EOF
6050 #define $ac_tr_hdr 1
6054 echo "$ac_t""no" 1>&6
6058 if test $ac_cv_header_heim_err_h = yes ; then
6064 if test $krb5_impl = mit; then
6065 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6066 echo "configure:6067: checking for main in -lkrb5" >&5
6067 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6071 ac_save_LIBS="$LIBS"
6072 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 eval "ac_cv_lib_$ac_lib_var=yes"
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 eval "ac_cv_lib_$ac_lib_var=no"
6091 LIBS="$ac_save_LIBS"
6094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6097 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6099 echo "$ac_t""no" 1>&6
6104 elif test $krb5_impl = heimdal; then
6105 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6106 echo "configure:6107: checking for main in -lkrb5" >&5
6107 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6108 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 ac_save_LIBS="$LIBS"
6112 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 eval "ac_cv_lib_$ac_lib_var=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_lib_$ac_lib_var=no"
6131 LIBS="$ac_save_LIBS"
6134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6137 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6139 echo "$ac_t""no" 1>&6
6144 cat >> confdefs.h <<\EOF
6145 #define HAVE_HEIMDAL_KERBEROS 1
6150 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6153 if test $have_krb5 = yes ; then
6156 cat >> confdefs.h <<\EOF
6161 if test $ol_enable_kpasswd != no ; then
6162 ol_link_kpasswd=yes;
6165 if test $ol_with_kerberos = k5only ; then
6166 ol_with_kerberos=found
6169 elif test $ol_with_kerberos != auto ; then
6170 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6176 if test $ol_link_krb5 = yes -a \
6177 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6179 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6183 echo "configure:6184: checking for $ac_hdr" >&5
6184 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6187 cat > conftest.$ac_ext <<EOF
6188 #line 6189 "configure"
6189 #include "confdefs.h"
6192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6193 { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6195 if test -z "$ac_err"; then
6197 eval "ac_cv_header_$ac_safe=yes"
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 eval "ac_cv_header_$ac_safe=no"
6207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6208 echo "$ac_t""yes" 1>&6
6209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6210 cat >> confdefs.h <<EOF
6211 #define $ac_tr_hdr 1
6215 echo "$ac_t""no" 1>&6
6220 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6221 if test $krb5_impl = mit; then
6222 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6223 echo "configure:6224: checking for main in -lkrb4" >&5
6224 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6225 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6228 ac_save_LIBS="$LIBS"
6229 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 eval "ac_cv_lib_$ac_lib_var=yes"
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 eval "ac_cv_lib_$ac_lib_var=no"
6248 LIBS="$ac_save_LIBS"
6251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6254 KRB4_LIBS="-lkrb4 -ldes425"
6256 echo "$ac_t""no" 1>&6
6261 elif test $krb5_impl = heimdal; then
6262 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6263 echo "configure:6264: checking for main in -lkrb4" >&5
6264 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6265 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 ac_save_LIBS="$LIBS"
6269 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6270 cat > conftest.$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6278 if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 eval "ac_cv_lib_$ac_lib_var=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 eval "ac_cv_lib_$ac_lib_var=no"
6288 LIBS="$ac_save_LIBS"
6291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6296 echo "$ac_t""no" 1>&6
6303 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6306 if test $have_k425 = yes ; then
6307 ol_with_kerberos=found
6310 cat >> confdefs.h <<\EOF
6311 #define HAVE_KRB425 1
6314 cat >> confdefs.h <<\EOF
6319 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6320 echo "configure:6321: checking for des_debug in Kerberos libraries" >&5
6321 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6326 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6331 #include <kerberosIV/krb.h>
6332 #include <kerberosIV/des.h>
6333 extern int des_debug;
6341 if { (eval echo configure:6342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 ol_cv_var_des_debug=yes
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6348 ol_cv_var_des_debug=no
6355 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6357 if test $ol_cv_var_des_debug = yes ; then
6358 cat >> confdefs.h <<\EOF
6359 #define HAVE_DES_DEBUG 1
6369 if test $ol_link_krb5 = yes ; then
6370 ol_with_kerberos=found
6373 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6374 -o $ol_with_kerberos = kth ; then
6376 for ac_hdr in krb.h des.h krb-archaeology.h
6378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6380 echo "configure:6381: checking for $ac_hdr" >&5
6381 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6382 echo $ac_n "(cached) $ac_c" 1>&6
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6390 { (eval echo configure:6391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6392 if test -z "$ac_err"; then
6394 eval "ac_cv_header_$ac_safe=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6400 eval "ac_cv_header_$ac_safe=no"
6404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6405 echo "$ac_t""yes" 1>&6
6406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6407 cat >> confdefs.h <<EOF
6408 #define $ac_tr_hdr 1
6412 echo "$ac_t""no" 1>&6
6417 if test $ac_cv_header_krb_h = yes ; then
6418 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6419 echo "configure:6420: checking for main in -lkrb" >&5
6420 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 ac_save_LIBS="$LIBS"
6425 LIBS="-lkrb -ldes $LIBS"
6426 cat > conftest.$ac_ext <<EOF
6427 #line 6428 "configure"
6428 #include "confdefs.h"
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6436 eval "ac_cv_lib_$ac_lib_var=yes"
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6441 eval "ac_cv_lib_$ac_lib_var=no"
6444 LIBS="$ac_save_LIBS"
6447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6448 echo "$ac_t""yes" 1>&6
6451 echo "$ac_t""no" 1>&6
6456 if test $have_k4 = yes ; then
6457 ol_with_kerberos=found
6460 cat >> confdefs.h <<\EOF
6465 KRB4_LIBS="-lkrb -ldes"
6467 if test $ac_cv_header_krb_archaeology_h = yes ; then
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_KTH_KERBEROS 1
6477 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6478 ol_link_kpasswd=yes;
6481 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6482 cat >> confdefs.h <<\EOF
6483 #define HAVE_KERBEROS 1
6487 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6488 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6492 if test $ol_with_tls != no ; then
6494 for ac_hdr in openssl/ssl.h ssl.h
6496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6498 echo "configure:6499: checking for $ac_hdr" >&5
6499 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6508 { (eval echo configure:6509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6510 if test -z "$ac_err"; then
6512 eval "ac_cv_header_$ac_safe=yes"
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 eval "ac_cv_header_$ac_safe=no"
6522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6523 echo "$ac_t""yes" 1>&6
6524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6525 cat >> confdefs.h <<EOF
6526 #define $ac_tr_hdr 1
6530 echo "$ac_t""no" 1>&6
6535 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6536 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6537 echo "configure:6538: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6538 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6539 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 ac_save_LIBS="$LIBS"
6543 LIBS="-lssl -lcrypto $LIBS"
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char SSLeay_add_ssl_algorithms();
6553 SSLeay_add_ssl_algorithms()
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 eval "ac_cv_lib_$ac_lib_var=yes"
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 eval "ac_cv_lib_$ac_lib_var=no"
6566 LIBS="$ac_save_LIBS"
6569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6574 echo "$ac_t""no" 1>&6
6579 if test $have_ssleay = no ; then
6580 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6581 echo "configure:6582: checking for SSL_library_init in -lssl" >&5
6582 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6583 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6586 ac_save_LIBS="$LIBS"
6587 LIBS="-lssl -lcrypto $LIBS"
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* Override any gcc2 internal prototype to avoid an error. */
6592 /* We use char because int might match the return type of a gcc2
6593 builtin and then its argument prototype would still apply. */
6594 char SSL_library_init();
6600 if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6602 eval "ac_cv_lib_$ac_lib_var=yes"
6604 echo "configure: failed program was:" >&5
6605 cat conftest.$ac_ext >&5
6607 eval "ac_cv_lib_$ac_lib_var=no"
6610 LIBS="$ac_save_LIBS"
6613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6614 echo "$ac_t""yes" 1>&6
6618 echo "$ac_t""no" 1>&6
6624 if test $have_ssleay = no ; then
6625 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6626 echo "configure:6627: checking for ssl3_accept in -lssl" >&5
6627 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6631 ac_save_LIBS="$LIBS"
6632 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 eval "ac_cv_lib_$ac_lib_var=yes"
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6652 eval "ac_cv_lib_$ac_lib_var=no"
6655 LIBS="$ac_save_LIBS"
6658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6663 echo "$ac_t""no" 1>&6
6669 if test $have_ssleay = yes ; then
6673 cat >> confdefs.h <<\EOF
6674 #define HAVE_SSLEAY 1
6678 if test $need_rsaref = yes; then
6679 cat >> confdefs.h <<\EOF
6680 #define HAVE_RSAREF 1
6684 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6686 TLS_LIBS="-lssl -lcrypto"
6692 if test $ol_link_tls = yes ; then
6693 cat >> confdefs.h <<\EOF
6701 gethostbyname_r gethostbyaddr_r \
6704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6705 echo "configure:6706: checking for $ac_func" >&5
6706 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* System header to define __stub macros and hopefully few prototypes,
6713 which can conflict with char $ac_func(); below. */
6715 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6723 /* The GNU C library defines this for functions which it implements
6724 to always fail with ENOSYS. Some functions are actually named
6725 something starting with __ and the normal name is an alias. */
6726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6736 eval "ac_cv_func_$ac_func=yes"
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 eval "ac_cv_func_$ac_func=no"
6746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6747 echo "$ac_t""yes" 1>&6
6748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6749 cat >> confdefs.h <<EOF
6750 #define $ac_tr_func 1
6754 echo "$ac_t""no" 1>&6
6759 if test "$ac_cv_func_ctime_r" = no ; then
6760 ol_cv_func_ctime_r_nargs=0
6762 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6763 echo "configure:6764: checking number of arguments of ctime_r" >&5
6764 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6767 cat > conftest.$ac_ext <<EOF
6768 #line 6769 "configure"
6769 #include "confdefs.h"
6772 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6775 if { (eval echo configure:6776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6777 ol_cv_func_ctime_r_nargs3=yes
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 ol_cv_func_ctime_r_nargs3=no
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6791 time_t ti; char *buffer; ctime_r(&ti,buffer);
6794 if { (eval echo configure:6795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6796 ol_cv_func_ctime_r_nargs2=yes
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 ol_cv_func_ctime_r_nargs2=no
6805 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6806 $ol_cv_func_ctime_r_nargs2 = no ; then
6808 ol_cv_func_ctime_r_nargs=3
6810 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6811 $ol_cv_func_ctime_r_nargs2 = yes ; then
6813 ol_cv_func_ctime_r_nargs=2
6816 ol_cv_func_ctime_r_nargs=0
6821 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6823 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6824 cat >> confdefs.h <<EOF
6825 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6832 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6833 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6834 echo "configure:6835: checking number of arguments of gethostbyname_r" >&5
6835 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6836 echo $ac_n "(cached) $ac_c" 1>&6
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 #include <sys/types.h>
6842 #include <sys/socket.h>
6843 #include <netinet/in.h>
6845 #define BUFSIZE (sizeof(struct hostent)+10)
6847 struct hostent hent; char buffer[BUFSIZE];
6848 int bufsize=BUFSIZE;int h_errno;
6849 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6850 buffer, bufsize, &h_errno);
6853 if { (eval echo configure:6854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6855 ol_cv_func_gethostbyname_r_nargs5=yes
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 ol_cv_func_gethostbyname_r_nargs5=no
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 #include <sys/types.h>
6868 #include <sys/socket.h>
6869 #include <netinet/in.h>
6871 #define BUFSIZE (sizeof(struct hostent)+10)
6873 struct hostent hent;struct hostent *rhent;
6874 char buffer[BUFSIZE];
6875 int bufsize=BUFSIZE;int h_errno;
6876 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6880 if { (eval echo configure:6881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6882 ol_cv_func_gethostbyname_r_nargs6=yes
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 ol_cv_func_gethostbyname_r_nargs6=no
6891 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6892 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6894 ol_cv_func_gethostbyname_r_nargs=5
6896 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6897 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6899 ol_cv_func_gethostbyname_r_nargs=6
6902 ol_cv_func_gethostbyname_r_nargs=0
6907 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6908 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6909 cat >> confdefs.h <<EOF
6910 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6916 ol_cv_func_gethostbyname_r_nargs=0
6919 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6920 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6921 echo "configure:6922: checking number of arguments of gethostbyaddr_r" >&5
6922 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6923 echo $ac_n "(cached) $ac_c" 1>&6
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 #include <sys/types.h>
6929 #include <sys/socket.h>
6930 #include <netinet/in.h>
6932 #define BUFSIZE (sizeof(struct hostent)+10)
6934 struct hostent hent; 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, &h_errno);
6942 if { (eval echo configure:6943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6944 ol_cv_func_gethostbyaddr_r_nargs7=yes
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6949 ol_cv_func_gethostbyaddr_r_nargs7=no
6953 cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure"
6955 #include "confdefs.h"
6956 #include <sys/types.h>
6957 #include <sys/socket.h>
6958 #include <netinet/in.h>
6960 #define BUFSIZE (sizeof(struct hostent)+10)
6962 struct hostent hent;
6963 struct hostent *rhent; char buffer[BUFSIZE];
6965 size_t alen=sizeof(struct in_addr);
6966 int bufsize=BUFSIZE;int h_errno;
6967 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6968 alen, AF_INET, &hent, buffer, bufsize,
6972 if { (eval echo configure:6973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6974 ol_cv_func_gethostbyaddr_r_nargs8=yes
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 ol_cv_func_gethostbyaddr_r_nargs8=no
6983 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6984 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6986 ol_cv_func_gethostbyaddr_r_nargs=7
6988 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6989 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6991 ol_cv_func_gethostbyaddr_r_nargs=8
6994 ol_cv_func_gethostbyaddr_r_nargs=0
6999 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7000 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7001 cat >> confdefs.h <<EOF
7002 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7008 ol_cv_func_gethostbyaddr_r_nargs=0
7011 if test "$ac_cv_func_ctime_r" = yes \
7012 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7013 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7014 -a "$ac_cv_func_gethostbyname_r" = yes \
7015 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7016 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7017 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7018 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7019 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7022 cat >> confdefs.h <<\EOF
7023 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7030 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7031 -o $ol_with_threads = nt ; then
7034 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7035 echo "configure:7036: checking for NT Threads" >&5
7036 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7040 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7041 echo "configure:7042: checking for _beginthread" >&5
7042 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 /* System header to define __stub macros and hopefully few prototypes,
7049 which can conflict with char _beginthread(); below. */
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7054 char _beginthread();
7059 /* The GNU C library defines this for functions which it implements
7060 to always fail with ENOSYS. Some functions are actually named
7061 something starting with __ and the normal name is an alias. */
7062 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072 eval "ac_cv_func__beginthread=yes"
7074 echo "configure: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7077 eval "ac_cv_func__beginthread=no"
7082 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 ol_cv_nt_threads=yes
7086 echo "$ac_t""no" 1>&6
7093 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7095 if test $ol_cv_nt_threads = yes ; then
7096 cat >> confdefs.h <<\EOF
7097 #define HAVE_NT_THREADS 1
7103 if test "$ol_cv_nt_threads" = yes ; then
7105 ol_with_threads=found
7106 ol_with_yielding_select=yes
7108 cat >> confdefs.h <<\EOF
7109 #define HAVE_NT_SERVICE_MANAGER 1
7112 cat >> confdefs.h <<\EOF
7113 #define HAVE_NT_EVENT_LOG 1
7118 if test $ol_with_threads = nt ; then
7119 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7123 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7124 -o $ol_with_threads = posix ; then
7126 for ac_hdr in pthread.h
7128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7130 echo "configure:7131: checking for $ac_hdr" >&5
7131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7134 cat > conftest.$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7140 { (eval echo configure:7141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7142 if test -z "$ac_err"; then
7144 eval "ac_cv_header_$ac_safe=yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 eval "ac_cv_header_$ac_safe=no"
7154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7155 echo "$ac_t""yes" 1>&6
7156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7157 cat >> confdefs.h <<EOF
7158 #define $ac_tr_hdr 1
7162 echo "$ac_t""no" 1>&6
7167 if test $ac_cv_header_pthread_h = yes ; then
7168 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7169 echo "configure:7170: checking POSIX thread version" >&5
7170 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7174 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7178 # include <pthread.h>
7179 /* this check could be improved */
7180 # ifdef PTHREAD_ONCE_INIT
7181 pthread_version_final;
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186 egrep "pthread_version_final" >/dev/null 2>&1; then
7188 ol_pthread_final=yes
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7200 # include <pthread.h>
7201 /* this check could be improved */
7202 # ifdef pthread_once_init
7203 pthread_version_draft4;
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7210 ol_pthread_draft4=yes
7213 ol_pthread_draft4=no
7218 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7219 ol_cv_pthread_version=final
7220 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7221 ol_cv_pthread_version=draft4
7223 ol_cv_pthread_version=unknown
7228 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7231 if test $ol_cv_pthread_version = final ; then
7232 cat >> confdefs.h <<\EOF
7233 #define HAVE_PTHREADS_FINAL 1
7236 elif test $ol_cv_pthread_version = draft4 ; then
7237 cat >> confdefs.h <<\EOF
7238 #define HAVE_PTHREADS_D4 1
7242 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7245 # consider threads found
7246 ol_with_threads=found
7249 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7250 echo "configure:7251: checking for LinuxThreads pthread.h" >&5
7251 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7254 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure"
7256 #include "confdefs.h"
7257 #include <pthread.h>
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7262 ol_cv_header_linux_threads=yes
7265 ol_cv_header_linux_threads=no
7272 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7273 if test $ol_cv_header_linux_threads = yes; then
7274 cat >> confdefs.h <<\EOF
7275 #define HAVE_LINUX_THREADS 1
7281 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7282 echo "configure:7283: checking for GNU Pth pthread.h" >&5
7283 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 #include <pthread.h>
7290 #ifdef _POSIX_THREAD_IS_GNU_PTH
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 egrep "__gnu_pth__" >/dev/null 2>&1; then
7298 ol_cv_header_gnu_pth_pthread_h=yes
7301 ol_cv_header_gnu_pth_pthread_h=no
7308 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7311 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7312 for ac_hdr in sched.h
7314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7316 echo "configure:7317: checking for $ac_hdr" >&5
7317 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7318 echo $ac_n "(cached) $ac_c" 1>&6
7320 cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7326 { (eval echo configure:7327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7328 if test -z "$ac_err"; then
7330 eval "ac_cv_header_$ac_safe=yes"
7333 echo "configure: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7336 eval "ac_cv_header_$ac_safe=no"
7340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7341 echo "$ac_t""yes" 1>&6
7342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7343 cat >> confdefs.h <<EOF
7344 #define $ac_tr_hdr 1
7348 echo "$ac_t""no" 1>&6
7355 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7356 echo "configure:7357: checking for pthread_create in default libraries" >&5
7357 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7361 if test "$cross_compiling" = yes; then
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 /* pthread test headers */
7366 #include <pthread.h>
7368 #define NULL (void*)0
7371 static void *task(p)
7374 return (void *) (p == NULL);
7379 /* pthread test function */
7383 /* make sure pthread_create() isn't just a stub */
7384 #if HAVE_PTHREADS_D4
7385 status = pthread_create(&t, pthread_attr_default, task, NULL);
7387 status = pthread_create(&t, NULL, task, NULL);
7390 if( status ) exit( status );
7392 /* make sure pthread_detach() isn't just a stub */
7393 #if HAVE_PTHREADS_D4
7394 status = pthread_detach( &t );
7396 status = pthread_detach( t );
7399 #ifdef HAVE_LINUX_THREADS
7400 pthread_kill_other_threads_np();
7407 if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 ol_cv_pthread_create=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7414 ol_cv_pthread_create=no
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 /* pthread test headers */
7422 #include <pthread.h>
7424 #define NULL (void*)0
7427 static void *task(p)
7430 return (void *) (p == NULL);
7434 int main(argc, argv)
7439 /* pthread test function */
7443 /* make sure pthread_create() isn't just a stub */
7444 #if HAVE_PTHREADS_D4
7445 status = pthread_create(&t, pthread_attr_default, task, NULL);
7447 status = pthread_create(&t, NULL, task, NULL);
7450 if( status ) exit( status );
7452 /* make sure pthread_detach() isn't just a stub */
7453 #if HAVE_PTHREADS_D4
7454 status = pthread_detach( &t );
7456 status = pthread_detach( t );
7459 #ifdef HAVE_LINUX_THREADS
7460 pthread_kill_other_threads_np();
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7470 ol_cv_pthread_create=yes
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7475 ol_cv_pthread_create=no
7482 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7484 if test $ol_cv_pthread_create != no ; then
7485 ol_link_threads=posix
7489 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7490 if test "$ol_link_threads" = no ; then
7492 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7493 echo "configure:7494: checking for pthread link with -kthread" >&5
7494 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7500 LIBS="-kthread $LIBS"
7502 if test "$cross_compiling" = yes; then
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 /* pthread test headers */
7507 #include <pthread.h>
7509 #define NULL (void*)0
7512 static void *task(p)
7515 return (void *) (p == NULL);
7520 /* pthread test function */
7524 /* make sure pthread_create() isn't just a stub */
7525 #if HAVE_PTHREADS_D4
7526 status = pthread_create(&t, pthread_attr_default, task, NULL);
7528 status = pthread_create(&t, NULL, task, NULL);
7531 if( status ) exit( status );
7533 /* make sure pthread_detach() isn't just a stub */
7534 #if HAVE_PTHREADS_D4
7535 status = pthread_detach( &t );
7537 status = pthread_detach( t );
7540 #ifdef HAVE_LINUX_THREADS
7541 pthread_kill_other_threads_np();
7548 if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7550 ol_cv_pthread_kthread=yes
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7555 ol_cv_pthread_kthread=no
7559 cat > conftest.$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 /* pthread test headers */
7563 #include <pthread.h>
7565 #define NULL (void*)0
7568 static void *task(p)
7571 return (void *) (p == NULL);
7575 int main(argc, argv)
7580 /* pthread test function */
7584 /* make sure pthread_create() isn't just a stub */
7585 #if HAVE_PTHREADS_D4
7586 status = pthread_create(&t, pthread_attr_default, task, NULL);
7588 status = pthread_create(&t, NULL, task, NULL);
7591 if( status ) exit( status );
7593 /* make sure pthread_detach() isn't just a stub */
7594 #if HAVE_PTHREADS_D4
7595 status = pthread_detach( &t );
7597 status = pthread_detach( t );
7600 #ifdef HAVE_LINUX_THREADS
7601 pthread_kill_other_threads_np();
7609 if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7611 ol_cv_pthread_kthread=yes
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7616 ol_cv_pthread_kthread=no
7627 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7629 if test $ol_cv_pthread_kthread = yes ; then
7630 ol_link_pthreads="-kthread"
7631 ol_link_threads=posix
7635 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7636 if test "$ol_link_threads" = no ; then
7638 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7639 echo "configure:7640: checking for pthread link with -pthread" >&5
7640 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7646 LIBS="-pthread $LIBS"
7648 if test "$cross_compiling" = yes; then
7649 cat > conftest.$ac_ext <<EOF
7650 #line 7651 "configure"
7651 #include "confdefs.h"
7652 /* pthread test headers */
7653 #include <pthread.h>
7655 #define NULL (void*)0
7658 static void *task(p)
7661 return (void *) (p == NULL);
7666 /* pthread test function */
7670 /* make sure pthread_create() isn't just a stub */
7671 #if HAVE_PTHREADS_D4
7672 status = pthread_create(&t, pthread_attr_default, task, NULL);
7674 status = pthread_create(&t, NULL, task, NULL);
7677 if( status ) exit( status );
7679 /* make sure pthread_detach() isn't just a stub */
7680 #if HAVE_PTHREADS_D4
7681 status = pthread_detach( &t );
7683 status = pthread_detach( t );
7686 #ifdef HAVE_LINUX_THREADS
7687 pthread_kill_other_threads_np();
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 ol_cv_pthread_pthread=yes
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7701 ol_cv_pthread_pthread=no
7705 cat > conftest.$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7708 /* pthread test headers */
7709 #include <pthread.h>
7711 #define NULL (void*)0
7714 static void *task(p)
7717 return (void *) (p == NULL);
7721 int main(argc, argv)
7726 /* pthread test function */
7730 /* make sure pthread_create() isn't just a stub */
7731 #if HAVE_PTHREADS_D4
7732 status = pthread_create(&t, pthread_attr_default, task, NULL);
7734 status = pthread_create(&t, NULL, task, NULL);
7737 if( status ) exit( status );
7739 /* make sure pthread_detach() isn't just a stub */
7740 #if HAVE_PTHREADS_D4
7741 status = pthread_detach( &t );
7743 status = pthread_detach( t );
7746 #ifdef HAVE_LINUX_THREADS
7747 pthread_kill_other_threads_np();
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7757 ol_cv_pthread_pthread=yes
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7762 ol_cv_pthread_pthread=no
7773 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7775 if test $ol_cv_pthread_pthread = yes ; then
7776 ol_link_pthreads="-pthread"
7777 ol_link_threads=posix
7781 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7782 if test "$ol_link_threads" = no ; then
7784 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7785 echo "configure:7786: checking for pthread link with -pthreads" >&5
7786 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7792 LIBS="-pthreads $LIBS"
7794 if test "$cross_compiling" = yes; then
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* pthread test headers */
7799 #include <pthread.h>
7801 #define NULL (void*)0
7804 static void *task(p)
7807 return (void *) (p == NULL);
7812 /* pthread test function */
7816 /* make sure pthread_create() isn't just a stub */
7817 #if HAVE_PTHREADS_D4
7818 status = pthread_create(&t, pthread_attr_default, task, NULL);
7820 status = pthread_create(&t, NULL, task, NULL);
7823 if( status ) exit( status );
7825 /* make sure pthread_detach() isn't just a stub */
7826 #if HAVE_PTHREADS_D4
7827 status = pthread_detach( &t );
7829 status = pthread_detach( t );
7832 #ifdef HAVE_LINUX_THREADS
7833 pthread_kill_other_threads_np();
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 ol_cv_pthread_pthreads=yes
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 ol_cv_pthread_pthreads=no
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* pthread test headers */
7855 #include <pthread.h>
7857 #define NULL (void*)0
7860 static void *task(p)
7863 return (void *) (p == NULL);
7867 int main(argc, argv)
7872 /* pthread test function */
7876 /* make sure pthread_create() isn't just a stub */
7877 #if HAVE_PTHREADS_D4
7878 status = pthread_create(&t, pthread_attr_default, task, NULL);
7880 status = pthread_create(&t, NULL, task, NULL);
7883 if( status ) exit( status );
7885 /* make sure pthread_detach() isn't just a stub */
7886 #if HAVE_PTHREADS_D4
7887 status = pthread_detach( &t );
7889 status = pthread_detach( t );
7892 #ifdef HAVE_LINUX_THREADS
7893 pthread_kill_other_threads_np();
7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7903 ol_cv_pthread_pthreads=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 ol_cv_pthread_pthreads=no
7919 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7921 if test $ol_cv_pthread_pthreads = yes ; then
7922 ol_link_pthreads="-pthreads"
7923 ol_link_threads=posix
7927 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7928 if test "$ol_link_threads" = no ; then
7930 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7931 echo "configure:7932: checking for pthread link with -mthreads" >&5
7932 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7938 LIBS="-mthreads $LIBS"
7940 if test "$cross_compiling" = yes; then
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 /* pthread test headers */
7945 #include <pthread.h>
7947 #define NULL (void*)0
7950 static void *task(p)
7953 return (void *) (p == NULL);
7958 /* pthread test function */
7962 /* make sure pthread_create() isn't just a stub */
7963 #if HAVE_PTHREADS_D4
7964 status = pthread_create(&t, pthread_attr_default, task, NULL);
7966 status = pthread_create(&t, NULL, task, NULL);
7969 if( status ) exit( status );
7971 /* make sure pthread_detach() isn't just a stub */
7972 #if HAVE_PTHREADS_D4
7973 status = pthread_detach( &t );
7975 status = pthread_detach( t );
7978 #ifdef HAVE_LINUX_THREADS
7979 pthread_kill_other_threads_np();
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7988 ol_cv_pthread_mthreads=yes
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 ol_cv_pthread_mthreads=no
7997 cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8000 /* pthread test headers */
8001 #include <pthread.h>
8003 #define NULL (void*)0
8006 static void *task(p)
8009 return (void *) (p == NULL);
8013 int main(argc, argv)
8018 /* pthread test function */
8022 /* make sure pthread_create() isn't just a stub */
8023 #if HAVE_PTHREADS_D4
8024 status = pthread_create(&t, pthread_attr_default, task, NULL);
8026 status = pthread_create(&t, NULL, task, NULL);
8029 if( status ) exit( status );
8031 /* make sure pthread_detach() isn't just a stub */
8032 #if HAVE_PTHREADS_D4
8033 status = pthread_detach( &t );
8035 status = pthread_detach( t );
8038 #ifdef HAVE_LINUX_THREADS
8039 pthread_kill_other_threads_np();
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8049 ol_cv_pthread_mthreads=yes
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 ol_cv_pthread_mthreads=no
8065 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8067 if test $ol_cv_pthread_mthreads = yes ; then
8068 ol_link_pthreads="-mthreads"
8069 ol_link_threads=posix
8073 # Pthread try link: -thread (ol_cv_pthread_thread)
8074 if test "$ol_link_threads" = no ; then
8076 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8077 echo "configure:8078: checking for pthread link with -thread" >&5
8078 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8084 LIBS="-thread $LIBS"
8086 if test "$cross_compiling" = yes; then
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* pthread test headers */
8091 #include <pthread.h>
8093 #define NULL (void*)0
8096 static void *task(p)
8099 return (void *) (p == NULL);
8104 /* pthread test function */
8108 /* make sure pthread_create() isn't just a stub */
8109 #if HAVE_PTHREADS_D4
8110 status = pthread_create(&t, pthread_attr_default, task, NULL);
8112 status = pthread_create(&t, NULL, task, NULL);
8115 if( status ) exit( status );
8117 /* make sure pthread_detach() isn't just a stub */
8118 #if HAVE_PTHREADS_D4
8119 status = pthread_detach( &t );
8121 status = pthread_detach( t );
8124 #ifdef HAVE_LINUX_THREADS
8125 pthread_kill_other_threads_np();
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8134 ol_cv_pthread_thread=yes
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 ol_cv_pthread_thread=no
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 /* pthread test headers */
8147 #include <pthread.h>
8149 #define NULL (void*)0
8152 static void *task(p)
8155 return (void *) (p == NULL);
8159 int main(argc, argv)
8164 /* pthread test function */
8168 /* make sure pthread_create() isn't just a stub */
8169 #if HAVE_PTHREADS_D4
8170 status = pthread_create(&t, pthread_attr_default, task, NULL);
8172 status = pthread_create(&t, NULL, task, NULL);
8175 if( status ) exit( status );
8177 /* make sure pthread_detach() isn't just a stub */
8178 #if HAVE_PTHREADS_D4
8179 status = pthread_detach( &t );
8181 status = pthread_detach( t );
8184 #ifdef HAVE_LINUX_THREADS
8185 pthread_kill_other_threads_np();
8193 if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8195 ol_cv_pthread_thread=yes
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8200 ol_cv_pthread_thread=no
8211 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8213 if test $ol_cv_pthread_thread = yes ; then
8214 ol_link_pthreads="-thread"
8215 ol_link_threads=posix
8220 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8221 if test "$ol_link_threads" = no ; then
8222 # try -lpthread -lmach -lexc -lc_r
8223 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8224 echo "configure:8225: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8225 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8231 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8233 if test "$cross_compiling" = yes; then
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* pthread test headers */
8238 #include <pthread.h>
8240 #define NULL (void*)0
8243 static void *task(p)
8246 return (void *) (p == NULL);
8251 /* pthread test function */
8255 /* make sure pthread_create() isn't just a stub */
8256 #if HAVE_PTHREADS_D4
8257 status = pthread_create(&t, pthread_attr_default, task, NULL);
8259 status = pthread_create(&t, NULL, task, NULL);
8262 if( status ) exit( status );
8264 /* make sure pthread_detach() isn't just a stub */
8265 #if HAVE_PTHREADS_D4
8266 status = pthread_detach( &t );
8268 status = pthread_detach( t );
8271 #ifdef HAVE_LINUX_THREADS
8272 pthread_kill_other_threads_np();
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8281 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8286 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* pthread test headers */
8294 #include <pthread.h>
8296 #define NULL (void*)0
8299 static void *task(p)
8302 return (void *) (p == NULL);
8306 int main(argc, argv)
8311 /* pthread test function */
8315 /* make sure pthread_create() isn't just a stub */
8316 #if HAVE_PTHREADS_D4
8317 status = pthread_create(&t, pthread_attr_default, task, NULL);
8319 status = pthread_create(&t, NULL, task, NULL);
8322 if( status ) exit( status );
8324 /* make sure pthread_detach() isn't just a stub */
8325 #if HAVE_PTHREADS_D4
8326 status = pthread_detach( &t );
8328 status = pthread_detach( t );
8331 #ifdef HAVE_LINUX_THREADS
8332 pthread_kill_other_threads_np();
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8342 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8358 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8360 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8361 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8362 ol_link_threads=posix
8366 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8367 if test "$ol_link_threads" = no ; then
8368 # try -lpthread -lmach -lexc
8369 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8370 echo "configure:8371: checking for pthread link with -lpthread -lmach -lexc" >&5
8371 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8377 LIBS="-lpthread -lmach -lexc $LIBS"
8379 if test "$cross_compiling" = yes; then
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* pthread test headers */
8384 #include <pthread.h>
8386 #define NULL (void*)0
8389 static void *task(p)
8392 return (void *) (p == NULL);
8397 /* pthread test function */
8401 /* make sure pthread_create() isn't just a stub */
8402 #if HAVE_PTHREADS_D4
8403 status = pthread_create(&t, pthread_attr_default, task, NULL);
8405 status = pthread_create(&t, NULL, task, NULL);
8408 if( status ) exit( status );
8410 /* make sure pthread_detach() isn't just a stub */
8411 #if HAVE_PTHREADS_D4
8412 status = pthread_detach( &t );
8414 status = pthread_detach( t );
8417 #ifdef HAVE_LINUX_THREADS
8418 pthread_kill_other_threads_np();
8425 if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8427 ol_cv_pthread_lpthread_lmach_lexc=yes
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8432 ol_cv_pthread_lpthread_lmach_lexc=no
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* pthread test headers */
8440 #include <pthread.h>
8442 #define NULL (void*)0
8445 static void *task(p)
8448 return (void *) (p == NULL);
8452 int main(argc, argv)
8457 /* pthread test function */
8461 /* make sure pthread_create() isn't just a stub */
8462 #if HAVE_PTHREADS_D4
8463 status = pthread_create(&t, pthread_attr_default, task, NULL);
8465 status = pthread_create(&t, NULL, task, NULL);
8468 if( status ) exit( status );
8470 /* make sure pthread_detach() isn't just a stub */
8471 #if HAVE_PTHREADS_D4
8472 status = pthread_detach( &t );
8474 status = pthread_detach( t );
8477 #ifdef HAVE_LINUX_THREADS
8478 pthread_kill_other_threads_np();
8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8488 ol_cv_pthread_lpthread_lmach_lexc=yes
8490 echo "configure: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8493 ol_cv_pthread_lpthread_lmach_lexc=no
8504 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8506 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8507 ol_link_pthreads="-lpthread -lmach -lexc"
8508 ol_link_threads=posix
8513 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8514 if test "$ol_link_threads" = no ; then
8515 # try -lpthread -Wl,-woff,85
8516 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8517 echo "configure:8518: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8518 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8519 echo $ac_n "(cached) $ac_c" 1>&6
8524 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8526 if test "$cross_compiling" = yes; then
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530 /* pthread test headers */
8531 #include <pthread.h>
8533 #define NULL (void*)0
8536 static void *task(p)
8539 return (void *) (p == NULL);
8544 /* pthread test function */
8548 /* make sure pthread_create() isn't just a stub */
8549 #if HAVE_PTHREADS_D4
8550 status = pthread_create(&t, pthread_attr_default, task, NULL);
8552 status = pthread_create(&t, NULL, task, NULL);
8555 if( status ) exit( status );
8557 /* make sure pthread_detach() isn't just a stub */
8558 #if HAVE_PTHREADS_D4
8559 status = pthread_detach( &t );
8561 status = pthread_detach( t );
8564 #ifdef HAVE_LINUX_THREADS
8565 pthread_kill_other_threads_np();
8572 if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8574 ol_cv_pthread_lib_lpthread_woff=yes
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8579 ol_cv_pthread_lib_lpthread_woff=no
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8586 /* pthread test headers */
8587 #include <pthread.h>
8589 #define NULL (void*)0
8592 static void *task(p)
8595 return (void *) (p == NULL);
8599 int main(argc, argv)
8604 /* pthread test function */
8608 /* make sure pthread_create() isn't just a stub */
8609 #if HAVE_PTHREADS_D4
8610 status = pthread_create(&t, pthread_attr_default, task, NULL);
8612 status = pthread_create(&t, NULL, task, NULL);
8615 if( status ) exit( status );
8617 /* make sure pthread_detach() isn't just a stub */
8618 #if HAVE_PTHREADS_D4
8619 status = pthread_detach( &t );
8621 status = pthread_detach( t );
8624 #ifdef HAVE_LINUX_THREADS
8625 pthread_kill_other_threads_np();
8633 if { (eval echo configure:8634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8635 ol_cv_pthread_lib_lpthread_woff=yes
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8640 ol_cv_pthread_lib_lpthread_woff=no
8651 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8653 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8654 ol_link_pthreads="-lpthread -Wl,-woff,85"
8655 ol_link_threads=posix
8660 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8661 if test "$ol_link_threads" = no ; then
8663 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8664 echo "configure:8665: checking for pthread link with -lpthread" >&5
8665 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8671 LIBS="-lpthread $LIBS"
8673 if test "$cross_compiling" = yes; then
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* pthread test headers */
8678 #include <pthread.h>
8680 #define NULL (void*)0
8683 static void *task(p)
8686 return (void *) (p == NULL);
8691 /* pthread test function */
8695 /* make sure pthread_create() isn't just a stub */
8696 #if HAVE_PTHREADS_D4
8697 status = pthread_create(&t, pthread_attr_default, task, NULL);
8699 status = pthread_create(&t, NULL, task, NULL);
8702 if( status ) exit( status );
8704 /* make sure pthread_detach() isn't just a stub */
8705 #if HAVE_PTHREADS_D4
8706 status = pthread_detach( &t );
8708 status = pthread_detach( t );
8711 #ifdef HAVE_LINUX_THREADS
8712 pthread_kill_other_threads_np();
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721 ol_cv_pthread_lpthread=yes
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 ol_cv_pthread_lpthread=no
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* pthread test headers */
8734 #include <pthread.h>
8736 #define NULL (void*)0
8739 static void *task(p)
8742 return (void *) (p == NULL);
8746 int main(argc, argv)
8751 /* pthread test function */
8755 /* make sure pthread_create() isn't just a stub */
8756 #if HAVE_PTHREADS_D4
8757 status = pthread_create(&t, pthread_attr_default, task, NULL);
8759 status = pthread_create(&t, NULL, task, NULL);
8762 if( status ) exit( status );
8764 /* make sure pthread_detach() isn't just a stub */
8765 #if HAVE_PTHREADS_D4
8766 status = pthread_detach( &t );
8768 status = pthread_detach( t );
8771 #ifdef HAVE_LINUX_THREADS
8772 pthread_kill_other_threads_np();
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8782 ol_cv_pthread_lpthread=yes
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8787 ol_cv_pthread_lpthread=no
8798 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8800 if test $ol_cv_pthread_lpthread = yes ; then
8801 ol_link_pthreads="-lpthread"
8802 ol_link_threads=posix
8806 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8807 if test "$ol_link_threads" = no ; then
8809 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8810 echo "configure:8811: checking for pthread link with -lc_r" >&5
8811 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8819 if test "$cross_compiling" = yes; then
8820 cat > conftest.$ac_ext <<EOF
8821 #line 8822 "configure"
8822 #include "confdefs.h"
8823 /* pthread test headers */
8824 #include <pthread.h>
8826 #define NULL (void*)0
8829 static void *task(p)
8832 return (void *) (p == NULL);
8837 /* pthread test function */
8841 /* make sure pthread_create() isn't just a stub */
8842 #if HAVE_PTHREADS_D4
8843 status = pthread_create(&t, pthread_attr_default, task, NULL);
8845 status = pthread_create(&t, NULL, task, NULL);
8848 if( status ) exit( status );
8850 /* make sure pthread_detach() isn't just a stub */
8851 #if HAVE_PTHREADS_D4
8852 status = pthread_detach( &t );
8854 status = pthread_detach( t );
8857 #ifdef HAVE_LINUX_THREADS
8858 pthread_kill_other_threads_np();
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8867 ol_cv_pthread_lc_r=yes
8869 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8872 ol_cv_pthread_lc_r=no
8876 cat > conftest.$ac_ext <<EOF
8877 #line 8878 "configure"
8878 #include "confdefs.h"
8879 /* pthread test headers */
8880 #include <pthread.h>
8882 #define NULL (void*)0
8885 static void *task(p)
8888 return (void *) (p == NULL);
8892 int main(argc, argv)
8897 /* pthread test function */
8901 /* make sure pthread_create() isn't just a stub */
8902 #if HAVE_PTHREADS_D4
8903 status = pthread_create(&t, pthread_attr_default, task, NULL);
8905 status = pthread_create(&t, NULL, task, NULL);
8908 if( status ) exit( status );
8910 /* make sure pthread_detach() isn't just a stub */
8911 #if HAVE_PTHREADS_D4
8912 status = pthread_detach( &t );
8914 status = pthread_detach( t );
8917 #ifdef HAVE_LINUX_THREADS
8918 pthread_kill_other_threads_np();
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8928 ol_cv_pthread_lc_r=yes
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8933 ol_cv_pthread_lc_r=no
8944 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8946 if test $ol_cv_pthread_lc_r = yes ; then
8947 ol_link_pthreads="-lc_r"
8948 ol_link_threads=posix
8953 # Pthread try link: -threads (ol_cv_pthread_threads)
8954 if test "$ol_link_threads" = no ; then
8956 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8957 echo "configure:8958: checking for pthread link with -threads" >&5
8958 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8964 LIBS="-threads $LIBS"
8966 if test "$cross_compiling" = yes; then
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8970 /* pthread test headers */
8971 #include <pthread.h>
8973 #define NULL (void*)0
8976 static void *task(p)
8979 return (void *) (p == NULL);
8984 /* pthread test function */
8988 /* make sure pthread_create() isn't just a stub */
8989 #if HAVE_PTHREADS_D4
8990 status = pthread_create(&t, pthread_attr_default, task, NULL);
8992 status = pthread_create(&t, NULL, task, NULL);
8995 if( status ) exit( status );
8997 /* make sure pthread_detach() isn't just a stub */
8998 #if HAVE_PTHREADS_D4
8999 status = pthread_detach( &t );
9001 status = pthread_detach( t );
9004 #ifdef HAVE_LINUX_THREADS
9005 pthread_kill_other_threads_np();
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9014 ol_cv_pthread_threads=yes
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9019 ol_cv_pthread_threads=no
9023 cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9026 /* pthread test headers */
9027 #include <pthread.h>
9029 #define NULL (void*)0
9032 static void *task(p)
9035 return (void *) (p == NULL);
9039 int main(argc, argv)
9044 /* pthread test function */
9048 /* make sure pthread_create() isn't just a stub */
9049 #if HAVE_PTHREADS_D4
9050 status = pthread_create(&t, pthread_attr_default, task, NULL);
9052 status = pthread_create(&t, NULL, task, NULL);
9055 if( status ) exit( status );
9057 /* make sure pthread_detach() isn't just a stub */
9058 #if HAVE_PTHREADS_D4
9059 status = pthread_detach( &t );
9061 status = pthread_detach( t );
9064 #ifdef HAVE_LINUX_THREADS
9065 pthread_kill_other_threads_np();
9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9075 ol_cv_pthread_threads=yes
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9080 ol_cv_pthread_threads=no
9091 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9093 if test $ol_cv_pthread_threads = yes ; then
9094 ol_link_pthreads="-threads"
9095 ol_link_threads=posix
9100 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9101 if test "$ol_link_threads" = no ; then
9102 # try -lpthreads -lmach -lexc -lc_r
9103 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9104 echo "configure:9105: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9105 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9106 echo $ac_n "(cached) $ac_c" 1>&6
9111 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9113 if test "$cross_compiling" = yes; then
9114 cat > conftest.$ac_ext <<EOF
9115 #line 9116 "configure"
9116 #include "confdefs.h"
9117 /* pthread test headers */
9118 #include <pthread.h>
9120 #define NULL (void*)0
9123 static void *task(p)
9126 return (void *) (p == NULL);
9131 /* pthread test function */
9135 /* make sure pthread_create() isn't just a stub */
9136 #if HAVE_PTHREADS_D4
9137 status = pthread_create(&t, pthread_attr_default, task, NULL);
9139 status = pthread_create(&t, NULL, task, NULL);
9142 if( status ) exit( status );
9144 /* make sure pthread_detach() isn't just a stub */
9145 #if HAVE_PTHREADS_D4
9146 status = pthread_detach( &t );
9148 status = pthread_detach( t );
9151 #ifdef HAVE_LINUX_THREADS
9152 pthread_kill_other_threads_np();
9159 if { (eval echo configure:9160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9161 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9163 echo "configure: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9166 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9173 /* pthread test headers */
9174 #include <pthread.h>
9176 #define NULL (void*)0
9179 static void *task(p)
9182 return (void *) (p == NULL);
9186 int main(argc, argv)
9191 /* pthread test function */
9195 /* make sure pthread_create() isn't just a stub */
9196 #if HAVE_PTHREADS_D4
9197 status = pthread_create(&t, pthread_attr_default, task, NULL);
9199 status = pthread_create(&t, NULL, task, NULL);
9202 if( status ) exit( status );
9204 /* make sure pthread_detach() isn't just a stub */
9205 #if HAVE_PTHREADS_D4
9206 status = pthread_detach( &t );
9208 status = pthread_detach( t );
9211 #ifdef HAVE_LINUX_THREADS
9212 pthread_kill_other_threads_np();
9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9222 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9224 echo "configure: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9227 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9238 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9240 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9241 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9242 ol_link_threads=posix
9246 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9247 if test "$ol_link_threads" = no ; then
9248 # try -lpthreads -lmach -lexc
9249 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9250 echo "configure:9251: checking for pthread link with -lpthreads -lmach -lexc" >&5
9251 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9257 LIBS="-lpthreads -lmach -lexc $LIBS"
9259 if test "$cross_compiling" = yes; then
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 /* pthread test headers */
9264 #include <pthread.h>
9266 #define NULL (void*)0
9269 static void *task(p)
9272 return (void *) (p == NULL);
9277 /* pthread test function */
9281 /* make sure pthread_create() isn't just a stub */
9282 #if HAVE_PTHREADS_D4
9283 status = pthread_create(&t, pthread_attr_default, task, NULL);
9285 status = pthread_create(&t, NULL, task, NULL);
9288 if( status ) exit( status );
9290 /* make sure pthread_detach() isn't just a stub */
9291 #if HAVE_PTHREADS_D4
9292 status = pthread_detach( &t );
9294 status = pthread_detach( t );
9297 #ifdef HAVE_LINUX_THREADS
9298 pthread_kill_other_threads_np();
9305 if { (eval echo configure:9306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9307 ol_cv_pthread_lpthreads_lmach_lexc=yes
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9312 ol_cv_pthread_lpthreads_lmach_lexc=no
9316 cat > conftest.$ac_ext <<EOF
9317 #line 9318 "configure"
9318 #include "confdefs.h"
9319 /* pthread test headers */
9320 #include <pthread.h>
9322 #define NULL (void*)0
9325 static void *task(p)
9328 return (void *) (p == NULL);
9332 int main(argc, argv)
9337 /* pthread test function */
9341 /* make sure pthread_create() isn't just a stub */
9342 #if HAVE_PTHREADS_D4
9343 status = pthread_create(&t, pthread_attr_default, task, NULL);
9345 status = pthread_create(&t, NULL, task, NULL);
9348 if( status ) exit( status );
9350 /* make sure pthread_detach() isn't just a stub */
9351 #if HAVE_PTHREADS_D4
9352 status = pthread_detach( &t );
9354 status = pthread_detach( t );
9357 #ifdef HAVE_LINUX_THREADS
9358 pthread_kill_other_threads_np();
9366 if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9368 ol_cv_pthread_lpthreads_lmach_lexc=yes
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9373 ol_cv_pthread_lpthreads_lmach_lexc=no
9384 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9386 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9387 ol_link_pthreads="-lpthreads -lmach -lexc"
9388 ol_link_threads=posix
9392 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9393 if test "$ol_link_threads" = no ; then
9394 # try -lpthreads -lexc
9395 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9396 echo "configure:9397: checking for pthread link with -lpthreads -lexc" >&5
9397 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9398 echo $ac_n "(cached) $ac_c" 1>&6
9403 LIBS="-lpthreads -lexc $LIBS"
9405 if test "$cross_compiling" = yes; then
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9409 /* pthread test headers */
9410 #include <pthread.h>
9412 #define NULL (void*)0
9415 static void *task(p)
9418 return (void *) (p == NULL);
9423 /* pthread test function */
9427 /* make sure pthread_create() isn't just a stub */
9428 #if HAVE_PTHREADS_D4
9429 status = pthread_create(&t, pthread_attr_default, task, NULL);
9431 status = pthread_create(&t, NULL, task, NULL);
9434 if( status ) exit( status );
9436 /* make sure pthread_detach() isn't just a stub */
9437 #if HAVE_PTHREADS_D4
9438 status = pthread_detach( &t );
9440 status = pthread_detach( t );
9443 #ifdef HAVE_LINUX_THREADS
9444 pthread_kill_other_threads_np();
9451 if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9453 ol_cv_pthread_lpthreads_lexc=yes
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9458 ol_cv_pthread_lpthreads_lexc=no
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 /* pthread test headers */
9466 #include <pthread.h>
9468 #define NULL (void*)0
9471 static void *task(p)
9474 return (void *) (p == NULL);
9478 int main(argc, argv)
9483 /* pthread test function */
9487 /* make sure pthread_create() isn't just a stub */
9488 #if HAVE_PTHREADS_D4
9489 status = pthread_create(&t, pthread_attr_default, task, NULL);
9491 status = pthread_create(&t, NULL, task, NULL);
9494 if( status ) exit( status );
9496 /* make sure pthread_detach() isn't just a stub */
9497 #if HAVE_PTHREADS_D4
9498 status = pthread_detach( &t );
9500 status = pthread_detach( t );
9503 #ifdef HAVE_LINUX_THREADS
9504 pthread_kill_other_threads_np();
9512 if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9514 ol_cv_pthread_lpthreads_lexc=yes
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 ol_cv_pthread_lpthreads_lexc=no
9530 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9532 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9533 ol_link_pthreads="-lpthreads -lexc"
9534 ol_link_threads=posix
9539 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9540 if test "$ol_link_threads" = no ; then
9542 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9543 echo "configure:9544: checking for pthread link with -lpthreads" >&5
9544 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9550 LIBS="-lpthreads $LIBS"
9552 if test "$cross_compiling" = yes; then
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 /* pthread test headers */
9557 #include <pthread.h>
9559 #define NULL (void*)0
9562 static void *task(p)
9565 return (void *) (p == NULL);
9570 /* pthread test function */
9574 /* make sure pthread_create() isn't just a stub */
9575 #if HAVE_PTHREADS_D4
9576 status = pthread_create(&t, pthread_attr_default, task, NULL);
9578 status = pthread_create(&t, NULL, task, NULL);
9581 if( status ) exit( status );
9583 /* make sure pthread_detach() isn't just a stub */
9584 #if HAVE_PTHREADS_D4
9585 status = pthread_detach( &t );
9587 status = pthread_detach( t );
9590 #ifdef HAVE_LINUX_THREADS
9591 pthread_kill_other_threads_np();
9598 if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9600 ol_cv_pthread_lib_lpthreads=yes
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9605 ol_cv_pthread_lib_lpthreads=no
9609 cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 /* pthread test headers */
9613 #include <pthread.h>
9615 #define NULL (void*)0
9618 static void *task(p)
9621 return (void *) (p == NULL);
9625 int main(argc, argv)
9630 /* pthread test function */
9634 /* make sure pthread_create() isn't just a stub */
9635 #if HAVE_PTHREADS_D4
9636 status = pthread_create(&t, pthread_attr_default, task, NULL);
9638 status = pthread_create(&t, NULL, task, NULL);
9641 if( status ) exit( status );
9643 /* make sure pthread_detach() isn't just a stub */
9644 #if HAVE_PTHREADS_D4
9645 status = pthread_detach( &t );
9647 status = pthread_detach( t );
9650 #ifdef HAVE_LINUX_THREADS
9651 pthread_kill_other_threads_np();
9659 if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9661 ol_cv_pthread_lib_lpthreads=yes
9663 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9666 ol_cv_pthread_lib_lpthreads=no
9677 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9679 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9680 ol_link_pthreads="-lpthreads"
9681 ol_link_threads=posix
9686 if test $ol_link_threads != no ; then
9687 cat >> confdefs.h <<\EOF
9688 #define HAVE_PTHREADS 1
9692 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9694 save_CPPFLAGS="$CPPFLAGS"
9696 LIBS="$LTHREAD_LIBS $LIBS"
9698 for ac_func in sched_yield pthread_yield
9700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9701 echo "configure:9702: checking for $ac_func" >&5
9702 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 /* System header to define __stub macros and hopefully few prototypes,
9709 which can conflict with char $ac_func(); below. */
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9730 if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9732 eval "ac_cv_func_$ac_func=yes"
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9737 eval "ac_cv_func_$ac_func=no"
9742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9743 echo "$ac_t""yes" 1>&6
9744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9745 cat >> confdefs.h <<EOF
9746 #define $ac_tr_func 1
9750 echo "$ac_t""no" 1>&6
9755 if test $ac_cv_func_sched_yield = no -a \
9756 $ac_cv_func_pthread_yield = no ; then
9757 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9758 echo "configure:9759: checking for sched_yield in -lrt" >&5
9759 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9760 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9763 ac_save_LIBS="$LIBS"
9765 cat > conftest.$ac_ext <<EOF
9766 #line 9767 "configure"
9767 #include "confdefs.h"
9768 /* Override any gcc2 internal prototype to avoid an error. */
9769 /* We use char because int might match the return type of a gcc2
9770 builtin and then its argument prototype would still apply. */
9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 eval "ac_cv_lib_$ac_lib_var=yes"
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9784 eval "ac_cv_lib_$ac_lib_var=no"
9787 LIBS="$ac_save_LIBS"
9790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9791 echo "$ac_t""yes" 1>&6
9792 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9793 cat >> confdefs.h <<\EOF
9794 #define HAVE_SCHED_YIELD 1
9797 ac_cv_func_sched_yield=yes
9799 echo "$ac_t""no" 1>&6
9800 ac_cv_func_sched_yield=no
9804 if test $ac_cv_func_sched_yield = no -a \
9805 $ac_cv_func_pthread_yield = no ; then
9806 for ac_func in thr_yield
9808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9809 echo "configure:9810: checking for $ac_func" >&5
9810 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char $ac_func(); below. */
9819 /* Override any gcc2 internal prototype to avoid an error. */
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 eval "ac_cv_func_$ac_func=yes"
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9845 eval "ac_cv_func_$ac_func=no"
9850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9851 echo "$ac_t""yes" 1>&6
9852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9853 cat >> confdefs.h <<EOF
9854 #define $ac_tr_func 1
9858 echo "$ac_t""no" 1>&6
9863 if test $ac_cv_func_sched_yield = no -a \
9864 $ac_cv_func_pthread_yield = no -a \
9865 "$ac_cv_func_thr_yield" = no ; then
9866 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9869 for ac_func in pthread_kill
9871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9872 echo "configure:9873: checking for $ac_func" >&5
9873 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func(); below. */
9882 /* Override any gcc2 internal prototype to avoid an error. */
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9903 eval "ac_cv_func_$ac_func=yes"
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9908 eval "ac_cv_func_$ac_func=no"
9913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9914 echo "$ac_t""yes" 1>&6
9915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9916 cat >> confdefs.h <<EOF
9917 #define $ac_tr_func 1
9921 echo "$ac_t""no" 1>&6
9926 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9927 echo "configure:9928: checking for pthread_detach with <pthread.h>" >&5
9928 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9932 cat > conftest.$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9936 #include <pthread.h>
9938 #define NULL (void*)0
9942 pthread_detach(NULL);
9945 if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9947 ol_cv_func_pthread_detach=yes
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9952 ol_cv_func_pthread_detach=no
9958 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9960 if test $ol_cv_func_pthread_detach = no ; then
9961 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9964 cat >> confdefs.h <<\EOF
9965 #define HAVE_PTHREAD_DETACH 1
9970 pthread_setconcurrency \
9971 pthread_getconcurrency \
9972 thr_setconcurrency \
9973 thr_getconcurrency \
9976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9977 echo "configure:9978: checking for $ac_func" >&5
9978 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9981 cat > conftest.$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char $ac_func(); below. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10006 if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10008 eval "ac_cv_func_$ac_func=yes"
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10013 eval "ac_cv_func_$ac_func=no"
10018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10019 echo "$ac_t""yes" 1>&6
10020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10021 cat >> confdefs.h <<EOF
10022 #define $ac_tr_func 1
10026 echo "$ac_t""no" 1>&6
10032 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10033 echo "configure:10034: checking for pthread_kill_other_threads_np" >&5
10034 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10037 cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 /* System header to define __stub macros and hopefully few prototypes,
10041 which can conflict with char pthread_kill_other_threads_np(); below. */
10042 #include <assert.h>
10043 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046 char pthread_kill_other_threads_np();
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10057 f = pthread_kill_other_threads_np;
10062 if { (eval echo configure:10063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10064 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10066 echo "configure: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10069 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10074 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10075 echo "$ac_t""yes" 1>&6
10078 echo "$ac_t""no" 1>&6
10081 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10082 echo "configure:10083: checking for LinuxThreads implementation" >&5
10083 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10086 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10089 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10094 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10095 echo "configure:10096: checking for LinuxThreads consistency" >&5
10096 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10100 if test $ol_cv_header_linux_threads = yes -a \
10101 $ol_cv_sys_linux_threads = yes; then
10102 ol_cv_linux_threads=yes
10103 elif test $ol_cv_header_linux_threads = no -a \
10104 $ol_cv_sys_linux_threads = no; then
10105 ol_cv_linux_threads=no
10107 ol_cv_linux_threads=error
10112 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10115 if test $ol_cv_linux_threads = error; then
10116 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10119 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10120 echo "configure:10121: checking if pthread_create() works" >&5
10121 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10122 echo $ac_n "(cached) $ac_c" 1>&6
10125 if test "$cross_compiling" = yes; then
10126 ol_cv_pthread_create_works=yes
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 /* pthread test headers */
10132 #include <pthread.h>
10134 #define NULL (void*)0
10137 static void *task(p)
10140 return (void *) (p == NULL);
10144 int main(argc, argv)
10149 /* pthread test function */
10153 /* make sure pthread_create() isn't just a stub */
10154 #if HAVE_PTHREADS_D4
10155 status = pthread_create(&t, pthread_attr_default, task, NULL);
10157 status = pthread_create(&t, NULL, task, NULL);
10160 if( status ) exit( status );
10162 /* make sure pthread_detach() isn't just a stub */
10163 #if HAVE_PTHREADS_D4
10164 status = pthread_detach( &t );
10166 status = pthread_detach( t );
10169 #ifdef HAVE_LINUX_THREADS
10170 pthread_kill_other_threads_np();
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10180 ol_cv_pthread_create_works=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 ol_cv_pthread_create_works=no
10192 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10194 if test $ol_cv_pthread_create_works = no ; then
10195 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10198 if test $ol_with_yielding_select = auto ; then
10199 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10200 echo "configure:10201: checking if select yields when using pthreads" >&5
10201 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10205 if test "$cross_compiling" = yes; then
10206 ol_cv_pthread_select_yields=cross
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10212 #include <sys/types.h>
10213 #include <sys/time.h>
10214 #include <unistd.h>
10215 #include <pthread.h>
10217 #define NULL (void*) 0
10220 static int fildes[2];
10222 static void *task(p)
10234 FD_SET(fildes[0], &rfds);
10236 /* we're not interested in any fds */
10237 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10244 exit(0); /* if we exit here, the select blocked the whole process */
10247 int main(argc, argv)
10253 /* create a pipe to select */
10254 if(pipe(&fildes[0])) {
10259 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10260 (void) pthread_setconcurrency(2);
10262 #ifdef HAVE_THR_SETCONCURRENCY
10263 /* Set Solaris LWP concurrency to 2 */
10264 thr_setconcurrency(2);
10268 #if HAVE_PTHREADS_D4
10269 pthread_create(&t, pthread_attr_default, task, NULL);
10271 pthread_create(&t, NULL, task, NULL);
10274 #if HAVE_SCHED_YIELD
10275 sched_yield(); /* make sure task runs first */
10277 #ifdef HAVE_PTHREAD_YIELD
10278 pthread_yield(); /* make sure task runs first */
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10287 ol_cv_pthread_select_yields=no
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 ol_cv_pthread_select_yields=yes
10299 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10301 if test $ol_cv_pthread_select_yields = cross ; then
10302 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10305 if test $ol_cv_pthread_select_yields = yes ; then
10306 ol_with_yielding_select=yes
10310 CPPFLAGS="$save_CPPFLAGS"
10313 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10317 if test $ol_with_threads = posix ; then
10318 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10322 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10323 -o $ol_with_threads = mach ; then
10325 for ac_hdr in mach/cthreads.h
10327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10329 echo "configure:10330: checking for $ac_hdr" >&5
10330 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10331 echo $ac_n "(cached) $ac_c" 1>&6
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10339 { (eval echo configure:10340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10341 if test -z "$ac_err"; then
10343 eval "ac_cv_header_$ac_safe=yes"
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10349 eval "ac_cv_header_$ac_safe=no"
10353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10354 echo "$ac_t""yes" 1>&6
10355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10356 cat >> confdefs.h <<EOF
10357 #define $ac_tr_hdr 1
10361 echo "$ac_t""no" 1>&6
10365 if test $ac_cv_header_mach_cthreads_h = yes ; then
10366 ol_with_threads=found
10368 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10369 echo "configure:10370: checking for cthread_fork" >&5
10370 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10371 echo $ac_n "(cached) $ac_c" 1>&6
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 /* System header to define __stub macros and hopefully few prototypes,
10377 which can conflict with char cthread_fork(); below. */
10378 #include <assert.h>
10379 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10382 char cthread_fork();
10387 /* The GNU C library defines this for functions which it implements
10388 to always fail with ENOSYS. Some functions are actually named
10389 something starting with __ and the normal name is an alias. */
10390 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10400 eval "ac_cv_func_cthread_fork=yes"
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 eval "ac_cv_func_cthread_fork=no"
10410 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10411 echo "$ac_t""yes" 1>&6
10412 ol_link_threads=yes
10414 echo "$ac_t""no" 1>&6
10418 if test $ol_link_threads = no ; then
10419 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10420 echo "configure:10421: checking for cthread_fork with -all_load" >&5
10421 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10426 LIBS="-all_load $LIBS"
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include <mach/cthreads.h>
10433 cthread_fork((void *)0, (void *)0);
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10439 ol_cv_cthread_all_load=yes
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10444 ol_cv_cthread_all_load=no
10451 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10453 if test $ol_cv_cthread_all_load = yes ; then
10454 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10455 ol_link_threads=mach
10459 if test $ol_link_threads != no ; then
10460 : check for cthread specific functionality here
10461 cat >> confdefs.h <<\EOF
10462 #define HAVE_MACH_CTHREADS 1
10466 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10470 if test $ol_with_threads = mach ; then
10471 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10475 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10476 -o $ol_with_threads = pth ; then
10478 for ac_hdr in pth.h
10480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10482 echo "configure:10483: checking for $ac_hdr" >&5
10483 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10492 { (eval echo configure:10493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10494 if test -z "$ac_err"; then
10496 eval "ac_cv_header_$ac_safe=yes"
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 eval "ac_cv_header_$ac_safe=no"
10506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10507 echo "$ac_t""yes" 1>&6
10508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10509 cat >> confdefs.h <<EOF
10510 #define $ac_tr_hdr 1
10514 echo "$ac_t""no" 1>&6
10519 if test $ac_cv_header_pth_h = yes ; then
10520 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10521 echo "configure:10522: checking for pth_version in -lpth" >&5
10522 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10526 ac_save_LIBS="$LIBS"
10528 cat > conftest.$ac_ext <<EOF
10529 #line 10530 "configure"
10530 #include "confdefs.h"
10531 /* Override any gcc2 internal prototype to avoid an error. */
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534 char pth_version();
10540 if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10542 eval "ac_cv_lib_$ac_lib_var=yes"
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10547 eval "ac_cv_lib_$ac_lib_var=no"
10550 LIBS="$ac_save_LIBS"
10553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10554 echo "$ac_t""yes" 1>&6
10557 echo "$ac_t""no" 1>&6
10562 if test $have_pth = yes ; then
10563 cat >> confdefs.h <<\EOF
10564 #define HAVE_GNU_PTH 1
10567 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10568 ol_link_threads=pth
10570 if test $ol_with_yielding_select = auto ; then
10571 ol_with_yielding_select=yes
10577 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10578 -o $ol_with_threads = lwp ; then
10580 for ac_hdr in thread.h synch.h
10582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10584 echo "configure:10585: checking for $ac_hdr" >&5
10585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10594 { (eval echo configure:10595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10596 if test -z "$ac_err"; then
10598 eval "ac_cv_header_$ac_safe=yes"
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10604 eval "ac_cv_header_$ac_safe=no"
10608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10611 cat >> confdefs.h <<EOF
10612 #define $ac_tr_hdr 1
10616 echo "$ac_t""no" 1>&6
10620 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10621 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10622 echo "configure:10623: checking for thr_create in -lthread" >&5
10623 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
10627 ac_save_LIBS="$LIBS"
10628 LIBS="-lthread $LIBS"
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632 /* Override any gcc2 internal prototype to avoid an error. */
10633 /* We use char because int might match the return type of a gcc2
10634 builtin and then its argument prototype would still apply. */
10641 if { (eval echo configure:10642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10643 eval "ac_cv_lib_$ac_lib_var=yes"
10645 echo "configure: failed program was:" >&5
10646 cat conftest.$ac_ext >&5
10648 eval "ac_cv_lib_$ac_lib_var=no"
10651 LIBS="$ac_save_LIBS"
10654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10655 echo "$ac_t""yes" 1>&6
10658 echo "$ac_t""no" 1>&6
10663 if test $have_thr = yes ; then
10664 cat >> confdefs.h <<\EOF
10668 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10669 ol_link_threads=thr
10671 if test $ol_with_yielding_select = auto ; then
10672 ol_with_yielding_select=yes
10676 thr_setconcurrency \
10677 thr_getconcurrency \
10680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10681 echo "configure:10682: checking for $ac_func" >&5
10682 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 /* System header to define __stub macros and hopefully few prototypes,
10689 which can conflict with char $ac_func(); below. */
10690 #include <assert.h>
10691 /* Override any gcc2 internal prototype to avoid an error. */
10692 /* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
10699 /* The GNU C library defines this for functions which it implements
10700 to always fail with ENOSYS. Some functions are actually named
10701 something starting with __ and the normal name is an alias. */
10702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710 if { (eval echo configure:10711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10712 eval "ac_cv_func_$ac_func=yes"
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10717 eval "ac_cv_func_$ac_func=no"
10722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10723 echo "$ac_t""yes" 1>&6
10724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10725 cat >> confdefs.h <<EOF
10726 #define $ac_tr_func 1
10730 echo "$ac_t""no" 1>&6
10737 for ac_hdr in lwp/lwp.h
10739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10741 echo "configure:10742: checking for $ac_hdr" >&5
10742 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10751 { (eval echo configure:10752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10753 if test -z "$ac_err"; then
10755 eval "ac_cv_header_$ac_safe=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_header_$ac_safe=no"
10765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10768 cat >> confdefs.h <<EOF
10769 #define $ac_tr_hdr 1
10773 echo "$ac_t""no" 1>&6
10777 if test $ac_cv_header_lwp_lwp_h = yes ; then
10778 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10779 echo "configure:10780: checking for lwp_create in -llwp" >&5
10780 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10781 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10782 echo $ac_n "(cached) $ac_c" 1>&6
10784 ac_save_LIBS="$LIBS"
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 /* Override any gcc2 internal prototype to avoid an error. */
10790 /* We use char because int might match the return type of a gcc2
10791 builtin and then its argument prototype would still apply. */
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10800 eval "ac_cv_lib_$ac_lib_var=yes"
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 eval "ac_cv_lib_$ac_lib_var=no"
10808 LIBS="$ac_save_LIBS"
10811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10815 echo "$ac_t""no" 1>&6
10820 if test $have_lwp = yes ; then
10821 cat >> confdefs.h <<\EOF
10825 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10826 ol_link_threads=lwp
10828 if test $ol_with_yielding_select = auto ; then
10829 ol_with_yielding_select=no
10835 if test $ol_with_yielding_select = yes ; then
10836 cat >> confdefs.h <<\EOF
10837 #define HAVE_YIELDING_SELECT 1
10842 if test $ol_with_threads = manual ; then
10843 ol_link_threads=yes
10845 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10847 for ac_hdr in pthread.h sched.h
10849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10851 echo "configure:10852: checking for $ac_hdr" >&5
10852 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10861 { (eval echo configure:10862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10863 if test -z "$ac_err"; then
10865 eval "ac_cv_header_$ac_safe=yes"
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10871 eval "ac_cv_header_$ac_safe=no"
10875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10876 echo "$ac_t""yes" 1>&6
10877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10878 cat >> confdefs.h <<EOF
10879 #define $ac_tr_hdr 1
10883 echo "$ac_t""no" 1>&6
10887 for ac_func in sched_yield pthread_yield
10889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10890 echo "configure:10891: checking for $ac_func" >&5
10891 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10894 cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10897 /* System header to define __stub macros and hopefully few prototypes,
10898 which can conflict with char $ac_func(); below. */
10899 #include <assert.h>
10900 /* Override any gcc2 internal prototype to avoid an error. */
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 eval "ac_cv_func_$ac_func=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_func_$ac_func=no"
10931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10932 echo "$ac_t""yes" 1>&6
10933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10934 cat >> confdefs.h <<EOF
10935 #define $ac_tr_func 1
10939 echo "$ac_t""no" 1>&6
10944 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10945 echo "configure:10946: checking for LinuxThreads pthread.h" >&5
10946 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10947 echo $ac_n "(cached) $ac_c" 1>&6
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10952 #include <pthread.h>
10954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10955 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10957 ol_cv_header_linux_threads=yes
10960 ol_cv_header_linux_threads=no
10967 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10968 if test $ol_cv_header_linux_threads = yes; then
10969 cat >> confdefs.h <<\EOF
10970 #define HAVE_LINUX_THREADS 1
10976 for ac_hdr in mach/cthreads.h
10978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10980 echo "configure:10981: checking for $ac_hdr" >&5
10981 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10982 echo $ac_n "(cached) $ac_c" 1>&6
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10990 { (eval echo configure:10991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10992 if test -z "$ac_err"; then
10994 eval "ac_cv_header_$ac_safe=yes"
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
11000 eval "ac_cv_header_$ac_safe=no"
11004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11005 echo "$ac_t""yes" 1>&6
11006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11007 cat >> confdefs.h <<EOF
11008 #define $ac_tr_hdr 1
11012 echo "$ac_t""no" 1>&6
11016 for ac_hdr in lwp/lwp.h
11018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11020 echo "configure:11021: checking for $ac_hdr" >&5
11021 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11022 echo $ac_n "(cached) $ac_c" 1>&6
11024 cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11030 { (eval echo configure:11031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11032 if test -z "$ac_err"; then
11034 eval "ac_cv_header_$ac_safe=yes"
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11040 eval "ac_cv_header_$ac_safe=no"
11044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11045 echo "$ac_t""yes" 1>&6
11046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11047 cat >> confdefs.h <<EOF
11048 #define $ac_tr_hdr 1
11052 echo "$ac_t""no" 1>&6
11056 for ac_hdr in thread.h synch.h
11058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11060 echo "configure:11061: checking for $ac_hdr" >&5
11061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11062 echo $ac_n "(cached) $ac_c" 1>&6
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11070 { (eval echo configure:11071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11072 if test -z "$ac_err"; then
11074 eval "ac_cv_header_$ac_safe=yes"
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11080 eval "ac_cv_header_$ac_safe=no"
11084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11085 echo "$ac_t""yes" 1>&6
11086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11087 cat >> confdefs.h <<EOF
11088 #define $ac_tr_hdr 1
11092 echo "$ac_t""no" 1>&6
11098 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11099 cat >> confdefs.h <<\EOF
11100 #define REENTRANT 1
11103 cat >> confdefs.h <<\EOF
11104 #define _REENTRANT 1
11107 cat >> confdefs.h <<\EOF
11108 #define THREAD_SAFE 1
11111 cat >> confdefs.h <<\EOF
11112 #define _THREAD_SAFE 1
11115 cat >> confdefs.h <<\EOF
11116 #define THREADSAFE 1
11119 cat >> confdefs.h <<\EOF
11120 #define _THREADSAFE 1
11123 cat >> confdefs.h <<\EOF
11124 #define _SGI_MP_SOURCE 1
11128 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11129 echo "configure:11130: checking for thread specific errno" >&5
11130 if eval "test \"\${ol_cv_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_errno_thread_specific=yes
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 ol_cv_errno_thread_specific=no
11155 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11157 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11158 echo "configure:11159: checking for thread specific h_errno" >&5
11159 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 ol_cv_h_errno_thread_specific=yes
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11178 ol_cv_h_errno_thread_specific=no
11184 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11186 if test $ol_cv_errno_thread_specific != yes \
11187 -o $ol_cv_h_errno_thread_specific != yes ; then
11188 LIBS="$LTHREAD_LIBS $LIBS"
11194 if test $ol_link_threads = no ; then
11195 if test $ol_with_threads = yes ; then
11196 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11199 if test $ol_with_threads = auto ; then
11200 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11204 cat >> confdefs.h <<\EOF
11205 #define NO_THREADS 1
11211 if test $ol_link_threads != no ; then
11212 cat >> confdefs.h <<\EOF
11213 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11220 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11221 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11222 echo "configure:11223: checking for DB2 library" >&5
11223 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11227 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11228 echo "configure:11229: checking for db_appexit in -ldb" >&5
11229 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11230 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11233 ac_save_LIBS="$LIBS"
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11238 /* Override any gcc2 internal prototype to avoid an error. */
11239 /* We use char because int might match the return type of a gcc2
11240 builtin and then its argument prototype would still apply. */
11247 if { (eval echo configure:11248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11249 eval "ac_cv_lib_$ac_lib_var=yes"
11251 echo "configure: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11254 eval "ac_cv_lib_$ac_lib_var=no"
11257 LIBS="$ac_save_LIBS"
11260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11261 echo "$ac_t""yes" 1>&6
11264 echo "$ac_t""no" 1>&6
11272 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11278 echo "configure:11279: checking for $ac_hdr" >&5
11279 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11282 cat > conftest.$ac_ext <<EOF
11283 #line 11284 "configure"
11284 #include "confdefs.h"
11287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11288 { (eval echo configure:11289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11290 if test -z "$ac_err"; then
11292 eval "ac_cv_header_$ac_safe=yes"
11295 echo "configure: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11298 eval "ac_cv_header_$ac_safe=no"
11302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11303 echo "$ac_t""yes" 1>&6
11304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11305 cat >> confdefs.h <<EOF
11306 #define $ac_tr_hdr 1
11310 echo "$ac_t""no" 1>&6
11314 if test $ac_cv_header_db_h = yes ; then
11315 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11316 echo "configure:11317: checking if db.h is DB2" >&5
11317 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11321 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11326 /* this check could be improved */
11327 # ifdef DB_VERSION_MAJOR
11328 # if DB_VERSION_MAJOR == 2
11334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11335 egrep "__db_version_2" >/dev/null 2>&1; then
11337 ol_cv_header_db2=yes
11340 ol_cv_header_db2=no
11346 echo "$ac_t""$ol_cv_header_db2" 1>&6
11348 ol_cv_header_db2=no
11353 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11354 echo "configure:11355: checking for Berkeley DB2" >&5
11355 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11356 echo $ac_n "(cached) $ac_c" 1>&6
11359 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11360 ol_cv_berkeley_db2=no
11362 ol_cv_berkeley_db2=yes
11367 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11368 if test $ol_cv_berkeley_db2 = yes ; then
11369 cat >> confdefs.h <<\EOF
11370 #define HAVE_BERKELEY_DB2 1
11376 if test $ol_cv_berkeley_db2 = yes ; then
11378 ol_with_ldbm_api=db2
11380 if test $ol_with_ldbm_type = hash ; then
11381 cat >> confdefs.h <<\EOF
11382 #define LDBM_USE_DBHASH 1
11386 cat >> confdefs.h <<\EOF
11387 #define LDBM_USE_DBBTREE 1
11392 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11393 echo "configure:11394: checking for DB_THREAD support" >&5
11394 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11399 if test $ol_cv_lib_db2 != yes ; then
11400 LIBS="$ol_cv_lib_db2"
11403 if test "$cross_compiling" = yes; then
11404 ol_cv_berkeley_db2_db_thread=cross
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11412 #define NULL ((void *)0)
11418 u_int32_t flags = DB_CREATE | DB_THREAD;
11420 memset( &env, '\0', sizeof(env) );
11422 rc = db_appinit( NULL, NULL, &env, flags );
11425 db_appexit( &env );
11431 if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11433 ol_cv_berkeley_db2_db_thread=yes
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11438 ol_cv_berkeley_db2_db_thread=no
11446 if test $ol_cv_berkeley_db2_db_thread != no ; then
11447 cat >> confdefs.h <<\EOF
11448 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11455 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11457 if test $ol_cv_lib_db2 != yes ; then
11458 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11464 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11465 if test $ol_cv_berkeley_db2_db_thread != no ; then
11468 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11472 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11473 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11474 echo "configure:11475: checking for Berkeley DB library" >&5
11475 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11479 for ac_hdr in db1/db.h
11481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $ac_hdr" >&5
11484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11493 { (eval echo configure:11494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11495 if test -z "$ac_err"; then
11497 eval "ac_cv_header_$ac_safe=yes"
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 eval "ac_cv_header_$ac_safe=no"
11507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11508 echo "$ac_t""yes" 1>&6
11509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11510 cat >> confdefs.h <<EOF
11511 #define $ac_tr_hdr 1
11515 echo "$ac_t""no" 1>&6
11520 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11521 echo "configure:11522: checking for dbopen" >&5
11522 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char dbopen(); below. */
11530 #include <assert.h>
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11539 /* The GNU C library defines this for functions which it implements
11540 to always fail with ENOSYS. Some functions are actually named
11541 something starting with __ and the normal name is an alias. */
11542 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11550 if { (eval echo configure:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11552 eval "ac_cv_func_dbopen=yes"
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11557 eval "ac_cv_func_dbopen=no"
11562 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11563 echo "$ac_t""yes" 1>&6
11566 echo "$ac_t""no" 1>&6
11568 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11569 echo "configure:11570: checking for dbopen in -ldb1" >&5
11570 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11571 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11572 echo $ac_n "(cached) $ac_c" 1>&6
11574 ac_save_LIBS="$LIBS"
11576 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11579 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11588 if { (eval echo configure:11589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11590 eval "ac_cv_lib_$ac_lib_var=yes"
11592 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11595 eval "ac_cv_lib_$ac_lib_var=no"
11598 LIBS="$ac_save_LIBS"
11601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11602 echo "$ac_t""yes" 1>&6
11605 echo "$ac_t""no" 1>&6
11607 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11608 echo "configure:11609: checking for dbopen in -ldb" >&5
11609 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11611 echo $ac_n "(cached) $ac_c" 1>&6
11613 ac_save_LIBS="$LIBS"
11615 cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure"
11617 #include "confdefs.h"
11618 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11627 if { (eval echo configure:11628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11629 eval "ac_cv_lib_$ac_lib_var=yes"
11631 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11634 eval "ac_cv_lib_$ac_lib_var=no"
11637 LIBS="$ac_save_LIBS"
11640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11641 echo "$ac_t""yes" 1>&6
11644 echo "$ac_t""no" 1>&6
11658 echo "$ac_t""$ol_cv_lib_db" 1>&6
11661 for ac_hdr in db_185.h
11663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11665 echo "configure:11666: checking for $ac_hdr" >&5
11666 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11675 { (eval echo configure:11676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11677 if test -z "$ac_err"; then
11679 eval "ac_cv_header_$ac_safe=yes"
11682 echo "configure: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11685 eval "ac_cv_header_$ac_safe=no"
11689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11690 echo "$ac_t""yes" 1>&6
11691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11692 cat >> confdefs.h <<EOF
11693 #define $ac_tr_hdr 1
11697 echo "$ac_t""no" 1>&6
11701 if test "$ol_cv_header_db2" = yes ; then
11703 ol_cv_header_db=$ac_cv_header_db_185_h
11705 ol_cv_header_db=$ac_cv_header_db_h
11710 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11711 echo "configure:11712: checking for Berkeley DB" >&5
11712 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11716 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11717 ol_cv_berkeley_db=no
11719 ol_cv_berkeley_db=yes
11724 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11725 if test $ol_cv_berkeley_db = yes ; then
11726 cat >> confdefs.h <<\EOF
11727 #define HAVE_BERKELEY_DB 1
11733 if test $ol_cv_berkeley_db = yes ; then
11735 ol_with_ldbm_api=db
11737 if test $ol_with_ldbm_type = hash ; then
11738 cat >> confdefs.h <<\EOF
11739 #define LDBM_USE_DBHASH 1
11743 cat >> confdefs.h <<\EOF
11744 #define LDBM_USE_DBBTREE 1
11749 if test $ol_cv_lib_db != yes ; then
11750 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11755 if test $ol_with_ldbm_api = manual ; then
11758 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11760 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11764 echo "configure:11765: checking for $ac_hdr" >&5
11765 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11766 echo $ac_n "(cached) $ac_c" 1>&6
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11774 { (eval echo configure:11775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11776 if test -z "$ac_err"; then
11778 eval "ac_cv_header_$ac_safe=yes"
11781 echo "configure: failed program was:" >&5
11782 cat conftest.$ac_ext >&5
11784 eval "ac_cv_header_$ac_safe=no"
11788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11789 echo "$ac_t""yes" 1>&6
11790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11791 cat >> confdefs.h <<EOF
11792 #define $ac_tr_hdr 1
11796 echo "$ac_t""no" 1>&6
11802 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11803 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11804 ol_with_ldbm_api=none
11807 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11808 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11809 echo "configure:11810: checking for MDBM library" >&5
11810 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11811 echo $ac_n "(cached) $ac_c" 1>&6
11814 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11815 echo "configure:11816: checking for mdbm_set_chain" >&5
11816 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11817 echo $ac_n "(cached) $ac_c" 1>&6
11819 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure"
11821 #include "confdefs.h"
11822 /* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char mdbm_set_chain(); below. */
11824 #include <assert.h>
11825 /* Override any gcc2 internal prototype to avoid an error. */
11826 /* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11828 char mdbm_set_chain();
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11839 f = mdbm_set_chain;
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 eval "ac_cv_func_mdbm_set_chain=yes"
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11851 eval "ac_cv_func_mdbm_set_chain=no"
11856 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11860 echo "$ac_t""no" 1>&6
11862 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11863 echo "configure:11864: checking for mdbm_set_chain in -lmdbm" >&5
11864 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11868 ac_save_LIBS="$LIBS"
11869 LIBS="-lmdbm $LIBS"
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 /* We use char because int might match the return type of a gcc2
11875 builtin and then its argument prototype would still apply. */
11876 char mdbm_set_chain();
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 eval "ac_cv_lib_$ac_lib_var=yes"
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11889 eval "ac_cv_lib_$ac_lib_var=no"
11892 LIBS="$ac_save_LIBS"
11895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11896 echo "$ac_t""yes" 1>&6
11897 ol_cv_lib_mdbm=-lmdbm
11899 echo "$ac_t""no" 1>&6
11910 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11913 for ac_hdr in mdbm.h
11915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11917 echo "configure:11918: checking for $ac_hdr" >&5
11918 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11927 { (eval echo configure:11928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11929 if test -z "$ac_err"; then
11931 eval "ac_cv_header_$ac_safe=yes"
11934 echo "configure: failed program was:" >&5
11935 cat conftest.$ac_ext >&5
11937 eval "ac_cv_header_$ac_safe=no"
11941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11942 echo "$ac_t""yes" 1>&6
11943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11944 cat >> confdefs.h <<EOF
11945 #define $ac_tr_hdr 1
11949 echo "$ac_t""no" 1>&6
11953 echo $ac_n "checking for db""... $ac_c" 1>&6
11954 echo "configure:11955: checking for db" >&5
11955 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11959 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11967 echo "$ac_t""$ol_cv_mdbm" 1>&6
11968 if test $ol_cv_mdbm = yes ; then
11969 cat >> confdefs.h <<\EOF
11970 #define HAVE_MDBM 1
11976 if test $ol_cv_mdbm = yes ; then
11978 ol_with_ldbm_api=mdbm
11979 if test $ol_cv_lib_mdbm != yes ; then
11980 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11985 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11986 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11987 echo "configure:11988: checking for GDBM library" >&5
11988 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11989 echo $ac_n "(cached) $ac_c" 1>&6
11992 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11993 echo "configure:11994: checking for gdbm_open" >&5
11994 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* System header to define __stub macros and hopefully few prototypes,
12001 which can conflict with char gdbm_open(); below. */
12002 #include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12022 if { (eval echo configure:12023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12024 eval "ac_cv_func_gdbm_open=yes"
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12029 eval "ac_cv_func_gdbm_open=no"
12034 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12035 echo "$ac_t""yes" 1>&6
12038 echo "$ac_t""no" 1>&6
12040 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12041 echo "configure:12042: checking for gdbm_open in -lgdbm" >&5
12042 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12044 echo $ac_n "(cached) $ac_c" 1>&6
12046 ac_save_LIBS="$LIBS"
12047 LIBS="-lgdbm $LIBS"
12048 cat > conftest.$ac_ext <<EOF
12049 #line 12050 "configure"
12050 #include "confdefs.h"
12051 /* Override any gcc2 internal prototype to avoid an error. */
12052 /* We use char because int might match the return type of a gcc2
12053 builtin and then its argument prototype would still apply. */
12060 if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12062 eval "ac_cv_lib_$ac_lib_var=yes"
12064 echo "configure: failed program was:" >&5
12065 cat conftest.$ac_ext >&5
12067 eval "ac_cv_lib_$ac_lib_var=no"
12070 LIBS="$ac_save_LIBS"
12073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12074 echo "$ac_t""yes" 1>&6
12075 ol_cv_lib_gdbm=-lgdbm
12077 echo "$ac_t""no" 1>&6
12088 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12091 for ac_hdr in gdbm.h
12093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12095 echo "configure:12096: checking for $ac_hdr" >&5
12096 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12099 cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12105 { (eval echo configure:12106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12107 if test -z "$ac_err"; then
12109 eval "ac_cv_header_$ac_safe=yes"
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12115 eval "ac_cv_header_$ac_safe=no"
12119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12120 echo "$ac_t""yes" 1>&6
12121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12122 cat >> confdefs.h <<EOF
12123 #define $ac_tr_hdr 1
12127 echo "$ac_t""no" 1>&6
12131 echo $ac_n "checking for db""... $ac_c" 1>&6
12132 echo "configure:12133: checking for db" >&5
12133 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12134 echo $ac_n "(cached) $ac_c" 1>&6
12137 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12145 echo "$ac_t""$ol_cv_gdbm" 1>&6
12146 if test $ol_cv_gdbm = yes ; then
12147 cat >> confdefs.h <<\EOF
12148 #define HAVE_GDBM 1
12154 if test $ol_cv_gdbm = yes ; then
12156 ol_with_ldbm_api=gdbm
12158 if test $ol_cv_lib_gdbm != yes ; then
12159 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12164 if test $ol_with_ldbm_api = ndbm ; then
12165 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12166 echo "configure:12167: checking for NDBM library" >&5
12167 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12171 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12172 echo "configure:12173: checking for dbm_open" >&5
12173 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12176 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12179 /* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char dbm_open(); below. */
12181 #include <assert.h>
12182 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12190 /* The GNU C library defines this for functions which it implements
12191 to always fail with ENOSYS. Some functions are actually named
12192 something starting with __ and the normal name is an alias. */
12193 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12201 if { (eval echo configure:12202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12203 eval "ac_cv_func_dbm_open=yes"
12205 echo "configure: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12208 eval "ac_cv_func_dbm_open=no"
12213 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12214 echo "$ac_t""yes" 1>&6
12217 echo "$ac_t""no" 1>&6
12219 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12220 echo "configure:12221: checking for dbm_open in -lndbm" >&5
12221 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12223 echo $ac_n "(cached) $ac_c" 1>&6
12225 ac_save_LIBS="$LIBS"
12226 LIBS="-lndbm $LIBS"
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12241 eval "ac_cv_lib_$ac_lib_var=yes"
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12246 eval "ac_cv_lib_$ac_lib_var=no"
12249 LIBS="$ac_save_LIBS"
12252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12253 echo "$ac_t""yes" 1>&6
12254 ol_cv_lib_ndbm=-lndbm
12256 echo "$ac_t""no" 1>&6
12258 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12259 echo "configure:12260: checking for dbm_open in -ldbm" >&5
12260 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12261 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12262 echo $ac_n "(cached) $ac_c" 1>&6
12264 ac_save_LIBS="$LIBS"
12266 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 /* Override any gcc2 internal prototype to avoid an error. */
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12280 eval "ac_cv_lib_$ac_lib_var=yes"
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 eval "ac_cv_lib_$ac_lib_var=no"
12288 LIBS="$ac_save_LIBS"
12291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 ol_cv_lib_ndbm=-ldbm
12295 echo "$ac_t""no" 1>&6
12308 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12311 for ac_hdr in ndbm.h
12313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12315 echo "configure:12316: checking for $ac_hdr" >&5
12316 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12317 echo $ac_n "(cached) $ac_c" 1>&6
12319 cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12325 { (eval echo configure:12326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12327 if test -z "$ac_err"; then
12329 eval "ac_cv_header_$ac_safe=yes"
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12335 eval "ac_cv_header_$ac_safe=no"
12339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12340 echo "$ac_t""yes" 1>&6
12341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12342 cat >> confdefs.h <<EOF
12343 #define $ac_tr_hdr 1
12347 echo "$ac_t""no" 1>&6
12351 echo $ac_n "checking for db""... $ac_c" 1>&6
12352 echo "configure:12353: checking for db" >&5
12353 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12354 echo $ac_n "(cached) $ac_c" 1>&6
12357 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12365 echo "$ac_t""$ol_cv_ndbm" 1>&6
12366 if test $ol_cv_ndbm = yes ; then
12367 cat >> confdefs.h <<\EOF
12368 #define HAVE_NDBM 1
12374 if test $ol_cv_ndbm = yes ; then
12376 ol_with_ldbm_api=ndbm
12378 if test $ol_cv_lib_ndbm != yes ; then
12379 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12384 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12385 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12386 if test $ol_enable_ldbm = yes ; then
12387 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12390 echo "configure: warning: disabling LDBM" 1>&2
12394 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12395 LINK_BINS_DYNAMIC="yes"
12397 LINK_BINS_DYNAMIC="no"
12400 if test $ol_enable_wrappers != no ; then
12401 for ac_hdr in tcpd.h
12403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12405 echo "configure:12406: checking for $ac_hdr" >&5
12406 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12407 echo $ac_n "(cached) $ac_c" 1>&6
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12415 { (eval echo configure:12416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12417 if test -z "$ac_err"; then
12419 eval "ac_cv_header_$ac_safe=yes"
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12425 eval "ac_cv_header_$ac_safe=no"
12429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12430 echo "$ac_t""yes" 1>&6
12431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12432 cat >> confdefs.h <<EOF
12433 #define $ac_tr_hdr 1
12437 echo "$ac_t""no" 1>&6
12442 if test $ac_cv_header_tcpd_h != yes ; then
12445 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12449 int allow_severity = 0;
12450 int deny_severity = 0;
12456 if { (eval echo configure:12457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12468 if test $have_wrappers = yes ; then
12469 cat >> confdefs.h <<\EOF
12470 #define HAVE_TCPD 1
12475 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12476 echo "configure:12477: checking for main in -lnsl" >&5
12477 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12478 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12481 ac_save_LIBS="$LIBS"
12483 cat > conftest.$ac_ext <<EOF
12484 #line 12485 "configure"
12485 #include "confdefs.h"
12491 if { (eval echo configure:12492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12493 eval "ac_cv_lib_$ac_lib_var=yes"
12495 echo "configure: failed program was:" >&5
12496 cat conftest.$ac_ext >&5
12498 eval "ac_cv_lib_$ac_lib_var=no"
12501 LIBS="$ac_save_LIBS"
12504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12505 echo "$ac_t""yes" 1>&6
12506 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12508 cat >> confdefs.h <<EOF
12509 #define $ac_tr_lib 1
12515 echo "$ac_t""no" 1>&6
12519 echo "configure: warning: could not find -lwrap" 1>&2
12520 if test $ol_enable_wrappers = yes ; then
12521 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12524 echo "configure: warning: disabling wrappers support" 1>&2
12525 ol_enable_wrappers=no
12530 if test $ol_enable_syslog != no ; then
12531 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12532 echo "configure:12533: checking for openlog" >&5
12533 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12534 echo $ac_n "(cached) $ac_c" 1>&6
12536 cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 /* System header to define __stub macros and hopefully few prototypes,
12540 which can conflict with char openlog(); below. */
12541 #include <assert.h>
12542 /* Override any gcc2 internal prototype to avoid an error. */
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12550 /* The GNU C library defines this for functions which it implements
12551 to always fail with ENOSYS. Some functions are actually named
12552 something starting with __ and the normal name is an alias. */
12553 #if defined (__stub_openlog) || defined (__stub___openlog)
12561 if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12563 eval "ac_cv_func_openlog=yes"
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12568 eval "ac_cv_func_openlog=no"
12573 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12577 echo "$ac_t""no" 1>&6
12580 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12581 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12583 ol_enable_syslog=$ac_cv_func_openlog
12586 if test $ol_enable_dmalloc != no ; then
12587 for ac_hdr in dmalloc.h
12589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12591 echo "configure:12592: checking for $ac_hdr" >&5
12592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12601 { (eval echo configure:12602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12603 if test -z "$ac_err"; then
12605 eval "ac_cv_header_$ac_safe=yes"
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 eval "ac_cv_header_$ac_safe=no"
12615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12616 echo "$ac_t""yes" 1>&6
12617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12618 cat >> confdefs.h <<EOF
12619 #define $ac_tr_hdr 1
12623 echo "$ac_t""no" 1>&6
12627 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12628 echo "configure:12629: checking for dmalloc_shutdown in -ldmalloc" >&5
12629 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12630 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12633 ac_save_LIBS="$LIBS"
12634 LIBS="-ldmalloc $LIBS"
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12637 "configure"
12637 #include "confdefs.h"
12638 /* Override any gcc2 internal prototype to avoid an error. */
12639 /* We use char because int might match the return type of a gcc2
12640 builtin and then its argument prototype would still apply. */
12641 char dmalloc_shutdown();
12647 if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12649 eval "ac_cv_lib_$ac_lib_var=yes"
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12654 eval "ac_cv_lib_$ac_lib_var=no"
12657 LIBS="$ac_save_LIBS"
12660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12661 echo "$ac_t""yes" 1>&6
12662 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12664 cat >> confdefs.h <<EOF
12665 #define $ac_tr_lib 1
12668 LIBS="-ldmalloc $LIBS"
12671 echo "$ac_t""no" 1>&6
12676 if test $ol_enable_tcl != no ; then
12677 for ac_hdr in tcl.h
12679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12681 echo "configure:12682: checking for $ac_hdr" >&5
12682 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12683 echo $ac_n "(cached) $ac_c" 1>&6
12685 cat > conftest.$ac_ext <<EOF
12686 #line 12687 "configure"
12687 #include "confdefs.h"
12690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12691 { (eval echo configure:12692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12693 if test -z "$ac_err"; then
12695 eval "ac_cv_header_$ac_safe=yes"
12698 echo "configure: failed program was:" >&5
12699 cat conftest.$ac_ext >&5
12701 eval "ac_cv_header_$ac_safe=no"
12705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12706 echo "$ac_t""yes" 1>&6
12707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12708 cat >> confdefs.h <<EOF
12709 #define $ac_tr_hdr 1
12713 echo "$ac_t""no" 1>&6
12718 if test $ac_cv_header_tcl_h != yes ; then
12721 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12722 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12723 echo "configure:12724: checking for main in -l$lib" >&5
12724 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12725 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12726 echo $ac_n "(cached) $ac_c" 1>&6
12728 ac_save_LIBS="$LIBS"
12729 LIBS="-l$lib $LIBS"
12730 cat > conftest.$ac_ext <<EOF
12731 #line 12732 "configure"
12732 #include "confdefs.h"
12738 if { (eval echo configure:12739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12740 eval "ac_cv_lib_$ac_lib_var=yes"
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12745 eval "ac_cv_lib_$ac_lib_var=no"
12748 LIBS="$ac_save_LIBS"
12751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12752 echo "$ac_t""yes" 1>&6
12754 if test x"$ol_with_tcl_module" = "xstatic" ; then
12755 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12757 MOD_TCL_LIB="-l${lib}"
12760 echo "$ac_t""no" 1>&6
12767 if test $have_tcl != yes ; then
12768 echo "configure: warning: could not find -ltcl" 1>&2
12769 if test $ol_enable_tcl = yes ; then
12770 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12778 for ac_hdr in termcap.h ncurses.h
12780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12782 echo "configure:12783: checking for $ac_hdr" >&5
12783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12786 cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12792 { (eval echo configure:12793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12794 if test -z "$ac_err"; then
12796 eval "ac_cv_header_$ac_safe=yes"
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12802 eval "ac_cv_header_$ac_safe=no"
12806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12807 echo "$ac_t""yes" 1>&6
12808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12809 cat >> confdefs.h <<EOF
12810 #define $ac_tr_hdr 1
12814 echo "$ac_t""no" 1>&6
12819 if test $ol_link_termcap = no ; then
12820 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12821 echo "configure:12822: checking for tputs in -ltermcap" >&5
12822 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12823 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12826 ac_save_LIBS="$LIBS"
12827 LIBS="-ltermcap $LIBS"
12828 cat > conftest.$ac_ext <<EOF
12829 #line 12830 "configure"
12830 #include "confdefs.h"
12831 /* Override any gcc2 internal prototype to avoid an error. */
12832 /* We use char because int might match the return type of a gcc2
12833 builtin and then its argument prototype would still apply. */
12840 if { (eval echo configure:12841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12842 eval "ac_cv_lib_$ac_lib_var=yes"
12844 echo "configure: failed program was:" >&5
12845 cat conftest.$ac_ext >&5
12847 eval "ac_cv_lib_$ac_lib_var=no"
12850 LIBS="$ac_save_LIBS"
12853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12854 echo "$ac_t""yes" 1>&6
12857 echo "$ac_t""no" 1>&6
12861 if test $have_termcap = yes ; then
12862 cat >> confdefs.h <<\EOF
12863 #define HAVE_TERMCAP 1
12866 ol_link_termcap=yes
12867 TERMCAP_LIBS=-ltermcap
12871 if test $ol_link_termcap = no ; then
12872 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12873 echo "configure:12874: checking for initscr in -lncurses" >&5
12874 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12875 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12876 echo $ac_n "(cached) $ac_c" 1>&6
12878 ac_save_LIBS="$LIBS"
12879 LIBS="-lncurses $LIBS"
12880 cat > conftest.$ac_ext <<EOF
12881 #line 12882 "configure"
12882 #include "confdefs.h"
12883 /* Override any gcc2 internal prototype to avoid an error. */
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12892 if { (eval echo configure:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12894 eval "ac_cv_lib_$ac_lib_var=yes"
12896 echo "configure: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12899 eval "ac_cv_lib_$ac_lib_var=no"
12902 LIBS="$ac_save_LIBS"
12905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12906 echo "$ac_t""yes" 1>&6
12909 echo "$ac_t""no" 1>&6
12913 if test $have_ncurses = yes ; then
12914 cat >> confdefs.h <<\EOF
12915 #define HAVE_NCURSES 1
12918 ol_link_termcap=yes
12919 TERMCAP_LIBS=-lncurses
12923 if test $ol_link_termcap = no ; then
12924 cat >> confdefs.h <<\EOF
12925 #define NO_TERMCAP 1
12932 if test $ol_with_cyrus_sasl != no ; then
12933 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12934 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12935 echo "configure:12936: checking for sasl.h" >&5
12936 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12945 { (eval echo configure:12946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12947 if test -z "$ac_err"; then
12949 eval "ac_cv_header_$ac_safe=yes"
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12955 eval "ac_cv_header_$ac_safe=no"
12959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12960 echo "$ac_t""yes" 1>&6
12963 echo "$ac_t""no" 1>&6
12967 if test $ac_cv_header_sasl_h = yes ; then
12968 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12969 echo "configure:12970: checking for sasl_client_init in -lsasl" >&5
12970 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12971 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12974 ac_save_LIBS="$LIBS"
12975 LIBS="-lsasl $LIBS"
12976 cat > conftest.$ac_ext <<EOF
12977 #line 12978 "configure"
12978 #include "confdefs.h"
12979 /* Override any gcc2 internal prototype to avoid an error. */
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char sasl_client_init();
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12990 eval "ac_cv_lib_$ac_lib_var=yes"
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12995 eval "ac_cv_lib_$ac_lib_var=no"
12998 LIBS="$ac_save_LIBS"
13001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13002 echo "$ac_t""yes" 1>&6
13003 have_cyrus_sasl=yes
13005 echo "$ac_t""no" 1>&6
13010 if test $have_cyrus_sasl != no ; then
13012 cat >> confdefs.h <<\EOF
13013 #define HAVE_CYRUS_SASL 1
13020 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13021 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13025 if test $cross_compiling != yes ; then
13027 if test -r /dev/urandom ; then
13028 dev="/dev/urandom";
13029 elif test -r /idev/urandom ; then
13030 dev="/idev/urandom";
13031 elif test -r /dev/srandom ; then
13032 dev="/dev/srandom";
13033 elif test -r /dev/random ; then
13035 elif test -r /idev/random ; then
13036 dev="/idev/random";
13039 if test $dev != no ; then
13040 cat >> confdefs.h <<EOF
13041 #define URANDOM_DEVICE "$dev"
13048 if test $ol_with_fetch != no ; then
13050 LIBS="-lfetch -lcom_err $LIBS"
13051 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13052 echo "configure:13053: checking fetch(3) library" >&5
13053 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13057 cat > conftest.$ac_ext <<EOF
13058 #line 13059 "configure"
13059 #include "confdefs.h"
13061 #include <sys/param.h>
13065 struct url *u = fetchParseURL("file:///");
13068 if { (eval echo configure:13069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13070 ol_cv_lib_fetch=yes
13072 echo "configure: failed program was:" >&5
13073 cat conftest.$ac_ext >&5
13080 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13082 if test $ol_cv_lib_fetch != no ; then
13083 ol_link_fetch="-lfetch -lcom_err"
13084 cat >> confdefs.h <<\EOF
13085 #define HAVE_FETCH 1
13091 if test $ol_cv_lib_fetch != no ; then
13092 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13093 ol_link_fetch=freebsd
13095 elif test $ol_with_fetch != auto ; then
13096 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13100 ol_link_readline=no
13101 if test $ol_with_readline != no ; then
13102 for ac_hdr in readline/readline.h readline/history.h
13104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13106 echo "configure:13107: checking for $ac_hdr" >&5
13107 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13108 echo $ac_n "(cached) $ac_c" 1>&6
13110 cat > conftest.$ac_ext <<EOF
13111 #line 13112 "configure"
13112 #include "confdefs.h"
13115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13116 { (eval echo configure:13117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13118 if test -z "$ac_err"; then
13120 eval "ac_cv_header_$ac_safe=yes"
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13126 eval "ac_cv_header_$ac_safe=no"
13130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13131 echo "$ac_t""yes" 1>&6
13132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13133 cat >> confdefs.h <<EOF
13134 #define $ac_tr_hdr 1
13138 echo "$ac_t""no" 1>&6
13143 if test $ac_cv_header_readline_readline_h = yes ; then
13145 LIBS="$TERMCAP_LIBS $LIBS"
13146 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13147 echo "configure:13148: checking for readline in -lreadline" >&5
13148 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13149 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13152 ac_save_LIBS="$LIBS"
13153 LIBS="-lreadline $LIBS"
13154 cat > conftest.$ac_ext <<EOF
13155 #line 13156 "configure"
13156 #include "confdefs.h"
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13166 if { (eval echo configure:13167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13168 eval "ac_cv_lib_$ac_lib_var=yes"
13170 echo "configure: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13173 eval "ac_cv_lib_$ac_lib_var=no"
13176 LIBS="$ac_save_LIBS"
13179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13180 echo "$ac_t""yes" 1>&6
13183 echo "$ac_t""no" 1>&6
13189 if test $have_readline = yes ; then
13190 ol_with_readline=found
13191 ol_link_readline=yes
13193 READLINE_LIBS="-lreadline"
13198 if test $ol_link_readline = yes ; then
13199 cat >> confdefs.h <<\EOF
13200 #define HAVE_READLINE 1
13206 if test $ol_enable_crypt != no ; then
13207 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13208 echo "configure:13209: checking for crypt" >&5
13209 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13210 echo $ac_n "(cached) $ac_c" 1>&6
13212 cat > conftest.$ac_ext <<EOF
13213 #line 13214 "configure"
13214 #include "confdefs.h"
13215 /* System header to define __stub macros and hopefully few prototypes,
13216 which can conflict with char crypt(); below. */
13217 #include <assert.h>
13218 /* Override any gcc2 internal prototype to avoid an error. */
13219 /* We use char because int might match the return type of a gcc2
13220 builtin and then its argument prototype would still apply. */
13226 /* The GNU C library defines this for functions which it implements
13227 to always fail with ENOSYS. Some functions are actually named
13228 something starting with __ and the normal name is an alias. */
13229 #if defined (__stub_crypt) || defined (__stub___crypt)
13237 if { (eval echo configure:13238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13239 eval "ac_cv_func_crypt=yes"
13241 echo "configure: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13244 eval "ac_cv_func_crypt=no"
13249 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13250 echo "$ac_t""yes" 1>&6
13253 echo "$ac_t""no" 1>&6
13255 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13256 echo "configure:13257: checking for crypt in -lcrypt" >&5
13257 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13259 echo $ac_n "(cached) $ac_c" 1>&6
13261 ac_save_LIBS="$LIBS"
13262 LIBS="-lcrypt $LIBS"
13263 cat > conftest.$ac_ext <<EOF
13264 #line 13265 "configure"
13265 #include "confdefs.h"
13266 /* Override any gcc2 internal prototype to avoid an error. */
13267 /* We use char because int might match the return type of a gcc2
13268 builtin and then its argument prototype would still apply. */
13275 if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13277 eval "ac_cv_lib_$ac_lib_var=yes"
13279 echo "configure: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13282 eval "ac_cv_lib_$ac_lib_var=no"
13285 LIBS="$ac_save_LIBS"
13288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13289 echo "$ac_t""yes" 1>&6
13290 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13293 echo "$ac_t""no" 1>&6
13300 if test $have_crypt = yes ; then
13301 cat >> confdefs.h <<\EOF
13302 #define HAVE_CRYPT 1
13306 echo "configure: warning: could not find crypt" 1>&2
13307 if test $ol_enable_crypt = yes ; then
13308 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13311 echo "configure: warning: disabling crypt support" 1>&2
13316 if test $ol_enable_proctitle != no ; then
13317 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13318 echo "configure:13319: checking for setproctitle" >&5
13319 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13320 echo $ac_n "(cached) $ac_c" 1>&6
13322 cat > conftest.$ac_ext <<EOF
13323 #line 13324 "configure"
13324 #include "confdefs.h"
13325 /* System header to define __stub macros and hopefully few prototypes,
13326 which can conflict with char setproctitle(); below. */
13327 #include <assert.h>
13328 /* Override any gcc2 internal prototype to avoid an error. */
13329 /* We use char because int might match the return type of a gcc2
13330 builtin and then its argument prototype would still apply. */
13331 char setproctitle();
13336 /* The GNU C library defines this for functions which it implements
13337 to always fail with ENOSYS. Some functions are actually named
13338 something starting with __ and the normal name is an alias. */
13339 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13347 if { (eval echo configure:13348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13349 eval "ac_cv_func_setproctitle=yes"
13351 echo "configure: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13354 eval "ac_cv_func_setproctitle=no"
13359 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13360 echo "$ac_t""yes" 1>&6
13361 have_setproctitle=yes
13363 echo "$ac_t""no" 1>&6
13365 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13366 echo "configure:13367: checking for setproctitle in -lutil" >&5
13367 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13369 echo $ac_n "(cached) $ac_c" 1>&6
13371 ac_save_LIBS="$LIBS"
13372 LIBS="-lutil $LIBS"
13373 cat > conftest.$ac_ext <<EOF
13374 #line 13375 "configure"
13375 #include "confdefs.h"
13376 /* Override any gcc2 internal prototype to avoid an error. */
13377 /* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13379 char setproctitle();
13385 if { (eval echo configure:13386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13387 eval "ac_cv_lib_$ac_lib_var=yes"
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13392 eval "ac_cv_lib_$ac_lib_var=no"
13395 LIBS="$ac_save_LIBS"
13398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13399 echo "$ac_t""yes" 1>&6
13400 have_setproctitle=yes
13401 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13403 echo "$ac_t""no" 1>&6
13404 have_setproctitle=no
13405 LIBOBJS="$LIBOBJS setproctitle.o"
13406 LIBSRCS="$LIBSRCS setproctitle.c"
13412 if test $have_setproctitle = yes ; then
13413 cat >> confdefs.h <<\EOF
13414 #define HAVE_SETPROCTITLE 1
13420 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13421 echo "configure:13422: checking for ANSI C header files" >&5
13422 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13423 echo $ac_n "(cached) $ac_c" 1>&6
13425 cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 #include <stdlib.h>
13429 #include <stdarg.h>
13430 #include <string.h>
13433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13434 { (eval echo configure:13435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13436 if test -z "$ac_err"; then
13438 ac_cv_header_stdc=yes
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 ac_cv_header_stdc=no
13448 if test $ac_cv_header_stdc = yes; then
13449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13450 cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 #include <string.h>
13455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456 egrep "memchr" >/dev/null 2>&1; then
13460 ac_cv_header_stdc=no
13466 if test $ac_cv_header_stdc = yes; then
13467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13468 cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure"
13470 #include "confdefs.h"
13471 #include <stdlib.h>
13473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13474 egrep "free" >/dev/null 2>&1; then
13478 ac_cv_header_stdc=no
13484 if test $ac_cv_header_stdc = yes; then
13485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13486 if test "$cross_compiling" = yes; then
13489 cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13493 #if ((' ' & 0x0FF) == 0x020)
13494 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13495 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13497 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13498 || ('j' <= (c) && (c) <= 'r') \
13499 || ('s' <= (c) && (c) <= 'z'))
13500 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13503 int main () { int i; for (i = 0; i < 256; i++)
13504 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13512 echo "configure: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13515 ac_cv_header_stdc=no
13523 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13524 if test $ac_cv_header_stdc = yes; then
13525 cat >> confdefs.h <<\EOF
13526 #define STDC_HEADERS 1
13531 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13532 echo "configure:13533: checking for mode_t" >&5
13533 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13536 cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13539 #include <sys/types.h>
13541 #include <stdlib.h>
13542 #include <stddef.h>
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13549 eval "ac_cv_type_mode_t=yes"
13552 eval "ac_cv_type_mode_t=no"
13557 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6
13560 echo "$ac_t""no" 1>&6
13561 cat >> confdefs.h <<EOF
13567 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13568 echo "configure:13569: checking for off_t" >&5
13569 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 #include <sys/types.h>
13577 #include <stdlib.h>
13578 #include <stddef.h>
13582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13583 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13585 eval "ac_cv_type_off_t=yes"
13588 eval "ac_cv_type_off_t=no"
13593 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13594 echo "$ac_t""yes" 1>&6
13596 echo "$ac_t""no" 1>&6
13597 cat >> confdefs.h <<EOF
13603 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13604 echo "configure:13605: checking for pid_t" >&5
13605 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13606 echo $ac_n "(cached) $ac_c" 1>&6
13608 cat > conftest.$ac_ext <<EOF
13609 #line 13610 "configure"
13610 #include "confdefs.h"
13611 #include <sys/types.h>
13613 #include <stdlib.h>
13614 #include <stddef.h>
13618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13619 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13621 eval "ac_cv_type_pid_t=yes"
13624 eval "ac_cv_type_pid_t=no"
13629 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13630 echo "$ac_t""yes" 1>&6
13632 echo "$ac_t""no" 1>&6
13633 cat >> confdefs.h <<EOF
13639 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13640 echo "configure:13641: checking for ptrdiff_t" >&5
13641 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13642 echo $ac_n "(cached) $ac_c" 1>&6
13644 cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13647 #include <stddef.h>
13652 if { (eval echo configure:13653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13654 am_cv_type_ptrdiff_t=yes
13656 echo "configure: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13659 am_cv_type_ptrdiff_t=no
13664 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13665 if test $am_cv_type_ptrdiff_t = yes; then
13666 cat >> confdefs.h <<\EOF
13667 #define HAVE_PTRDIFF_T 1
13672 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13673 echo "configure:13674: checking return type of signal handlers" >&5
13674 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13675 echo $ac_n "(cached) $ac_c" 1>&6
13677 cat > conftest.$ac_ext <<EOF
13678 #line 13679 "configure"
13679 #include "confdefs.h"
13680 #include <sys/types.h>
13681 #include <signal.h>
13686 extern "C" void (*signal (int, void (*)(int)))(int);
13688 void (*signal ()) ();
13695 if { (eval echo configure:13696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13697 ac_cv_type_signal=void
13699 echo "configure: failed program was:" >&5
13700 cat conftest.$ac_ext >&5
13702 ac_cv_type_signal=int
13707 echo "$ac_t""$ac_cv_type_signal" 1>&6
13708 cat >> confdefs.h <<EOF
13709 #define RETSIGTYPE $ac_cv_type_signal
13713 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13714 echo "configure:13715: checking for size_t" >&5
13715 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13716 echo $ac_n "(cached) $ac_c" 1>&6
13718 cat > conftest.$ac_ext <<EOF
13719 #line 13720 "configure"
13720 #include "confdefs.h"
13721 #include <sys/types.h>
13723 #include <stdlib.h>
13724 #include <stddef.h>
13728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13729 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13731 eval "ac_cv_type_size_t=yes"
13734 eval "ac_cv_type_size_t=no"
13739 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13740 echo "$ac_t""yes" 1>&6
13742 echo "$ac_t""no" 1>&6
13743 cat >> confdefs.h <<EOF
13744 #define size_t unsigned
13750 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13751 echo "configure:13752: checking for ssize_t" >&5
13752 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13753 echo $ac_n "(cached) $ac_c" 1>&6
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 #include <sys/types.h>
13760 #include <stdlib.h>
13761 #include <stddef.h>
13765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13766 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13768 eval "ac_cv_type_ssize_t=yes"
13771 eval "ac_cv_type_ssize_t=no"
13776 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13777 echo "$ac_t""yes" 1>&6
13779 echo "$ac_t""no" 1>&6
13780 cat >> confdefs.h <<EOF
13781 #define ssize_t signed int
13786 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13787 echo "configure:13788: checking for caddr_t" >&5
13788 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13789 echo $ac_n "(cached) $ac_c" 1>&6
13791 cat > conftest.$ac_ext <<EOF
13792 #line 13793 "configure"
13793 #include "confdefs.h"
13794 #include <sys/types.h>
13796 #include <stdlib.h>
13797 #include <stddef.h>
13801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13802 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13804 eval "ac_cv_type_caddr_t=yes"
13807 eval "ac_cv_type_caddr_t=no"
13812 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13813 echo "$ac_t""yes" 1>&6
13815 echo "$ac_t""no" 1>&6
13816 cat >> confdefs.h <<EOF
13817 #define caddr_t char *
13823 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13824 echo "configure:13825: checking for socklen_t" >&5
13825 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13826 echo $ac_n "(cached) $ac_c" 1>&6
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13832 #ifdef HAVE_SYS_TYPES_H
13833 #include <sys/types.h>
13835 #ifdef HAVE_SYS_SOCKET_H
13836 #include <sys/socket.h>
13843 if { (eval echo configure:13844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13845 ol_cv_type_socklen_t=yes
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13850 ol_cv_type_socklen_t=no
13855 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13856 if test $ol_cv_type_socklen_t = no; then
13857 cat >> confdefs.h <<\EOF
13858 #define socklen_t int
13863 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13864 echo "configure:13865: checking for member st_blksize in aggregate type struct stat" >&5
13865 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13866 echo $ac_n "(cached) $ac_c" 1>&6
13868 cat > conftest.$ac_ext <<EOF
13869 #line 13870 "configure"
13870 #include "confdefs.h"
13871 #include <sys/types.h>
13872 #include <sys/stat.h>
13874 struct stat foo; foo.st_blksize;
13877 if { (eval echo configure:13878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13879 ac_cv_c_struct_member_st_blksize=yes
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13884 ac_cv_c_struct_member_st_blksize=no
13889 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13890 st_blksize="$ac_cv_c_struct_member_st_blksize"
13891 if test $ac_cv_c_struct_member_st_blksize = yes; then
13892 cat >> confdefs.h <<\EOF
13893 #define HAVE_ST_BLKSIZE 1
13898 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13899 echo "configure:13900: checking whether time.h and sys/time.h may both be included" >&5
13900 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13903 cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906 #include <sys/types.h>
13907 #include <sys/time.h>
13913 if { (eval echo configure:13914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13915 ac_cv_header_time=yes
13917 echo "configure: failed program was:" >&5
13918 cat conftest.$ac_ext >&5
13920 ac_cv_header_time=no
13925 echo "$ac_t""$ac_cv_header_time" 1>&6
13926 if test $ac_cv_header_time = yes; then
13927 cat >> confdefs.h <<\EOF
13928 #define TIME_WITH_SYS_TIME 1
13933 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13934 echo "configure:13935: checking whether struct tm is in sys/time.h or time.h" >&5
13935 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13936 echo $ac_n "(cached) $ac_c" 1>&6
13938 cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 #include <sys/types.h>
13944 struct tm *tp; tp->tm_sec;
13947 if { (eval echo configure:13948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13949 ac_cv_struct_tm=time.h
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13954 ac_cv_struct_tm=sys/time.h
13959 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13960 if test $ac_cv_struct_tm = sys/time.h; then
13961 cat >> confdefs.h <<\EOF
13962 #define TM_IN_SYS_TIME 1
13967 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13968 echo "configure:13969: checking for uid_t in sys/types.h" >&5
13969 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13972 cat > conftest.$ac_ext <<EOF
13973 #line 13974 "configure"
13974 #include "confdefs.h"
13975 #include <sys/types.h>
13977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13978 egrep "uid_t" >/dev/null 2>&1; then
13980 ac_cv_type_uid_t=yes
13983 ac_cv_type_uid_t=no
13989 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13990 if test $ac_cv_type_uid_t = no; then
13991 cat >> confdefs.h <<\EOF
13995 cat >> confdefs.h <<\EOF
14001 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14002 echo "configure:14003: checking for sig_atomic_t" >&5
14003 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14004 echo $ac_n "(cached) $ac_c" 1>&6
14006 cat > conftest.$ac_ext <<EOF
14007 #line 14008 "configure"
14008 #include "confdefs.h"
14009 #include <signal.h>
14011 sig_atomic_t atomic;
14014 if { (eval echo configure:14015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14016 ol_cv_type_sig_atomic_t=yes
14018 echo "configure: failed program was:" >&5
14019 cat conftest.$ac_ext >&5
14021 ol_cv_type_sig_atomic_t=no
14026 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14027 if test $ol_cv_type_sig_atomic_t = no; then
14028 cat >> confdefs.h <<\EOF
14029 #define sig_atomic_t int
14036 # test for pw_gecos in struct passwd
14037 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14038 echo "configure:14039: checking struct passwd for pw_gecos" >&5
14039 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14040 echo $ac_n "(cached) $ac_c" 1>&6
14043 cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14050 pwd.pw_gecos = pwd.pw_name;
14054 if { (eval echo configure:14055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14056 ol_cv_struct_passwd_pw_gecos=yes
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14061 ol_cv_struct_passwd_pw_gecos=no
14066 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14067 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14068 cat >> confdefs.h <<\EOF
14069 #define HAVE_PW_GECOS 1
14074 # test for pw_passwd in struct passwd
14075 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14076 echo "configure:14077: checking struct passwd for pw_passwd" >&5
14077 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14081 cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14088 pwd.pw_passwd = pwd.pw_name;
14092 if { (eval echo configure:14093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14094 ol_cv_struct_passwd_pw_passwd=yes
14096 echo "configure: failed program was:" >&5
14097 cat conftest.$ac_ext >&5
14099 ol_cv_struct_passwd_pw_passwd=no
14104 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14105 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14106 cat >> confdefs.h <<\EOF
14107 #define HAVE_PW_PASSWD 1
14113 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14114 echo "configure:14115: checking if toupper() requires islower()" >&5
14115 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14116 echo $ac_n "(cached) $ac_c" 1>&6
14119 if test "$cross_compiling" = yes; then
14120 ol_cv_c_upper_lower=safe
14122 cat > conftest.$ac_ext <<EOF
14123 #line 14124 "configure"
14124 #include "confdefs.h"
14129 if ('C' == toupper('C'))
14135 if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14137 ol_cv_c_upper_lower=no
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14142 ol_cv_c_upper_lower=yes
14149 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14150 if test $ol_cv_c_upper_lower != no ; then
14151 cat >> confdefs.h <<\EOF
14152 #define C_UPPER_LOWER 1
14157 echo $ac_n "checking for working const""... $ac_c" 1>&6
14158 echo "configure:14159: checking for working const" >&5
14159 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14160 echo $ac_n "(cached) $ac_c" 1>&6
14162 cat > conftest.$ac_ext <<EOF
14163 #line 14164 "configure"
14164 #include "confdefs.h"
14168 /* Ultrix mips cc rejects this. */
14169 typedef int charset[2]; const charset x;
14170 /* SunOS 4.1.1 cc rejects this. */
14171 char const *const *ccp;
14173 /* NEC SVR4.0.2 mips cc rejects this. */
14174 struct point {int x, y;};
14175 static struct point const zero = {0,0};
14176 /* AIX XL C 1.02.0.0 rejects this.
14177 It does not let you subtract one const X* pointer from another in an arm
14178 of an if-expression whose if-part is not a constant expression */
14179 const char *g = "string";
14180 ccp = &g + (g ? g-g : 0);
14181 /* HPUX 7.0 cc rejects these. */
14184 ccp = (char const *const *) p;
14185 { /* SCO 3.2v4 cc rejects this. */
14187 char const *s = 0 ? (char *) 0 : (char const *) 0;
14191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14192 int x[] = {25, 17};
14193 const int *foo = &x[0];
14196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14197 typedef const int *iptr;
14201 { /* AIX XL C 1.02.0.0 rejects this saying
14202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14203 struct s { int j; const int *ap[3]; };
14204 struct s *b; b->j = 5;
14206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14207 const int foo = 10;
14212 if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14224 echo "$ac_t""$ac_cv_c_const" 1>&6
14225 if test $ac_cv_c_const = no; then
14226 cat >> confdefs.h <<\EOF
14232 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14233 echo "configure:14234: checking if compiler understands volatile" >&5
14234 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14242 volatile int a; int * volatile b = x ? &y : &z;
14243 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14247 if { (eval echo configure:14248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14249 ol_cv_c_volatile=yes
14251 echo "configure: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14254 ol_cv_c_volatile=no
14259 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14260 if test $ol_cv_c_volatile = yes; then
14263 cat >> confdefs.h <<\EOF
14270 if test $cross_compiling = yes ; then
14271 cat >> confdefs.h <<\EOF
14272 #define CROSS_COMPILING 1
14276 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14277 echo "configure:14278: checking whether byte ordering is bigendian" >&5
14278 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14279 echo $ac_n "(cached) $ac_c" 1>&6
14281 ac_cv_c_bigendian=unknown
14282 # See if sys/param.h defines the BYTE_ORDER macro.
14283 cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 #include <sys/types.h>
14287 #include <sys/param.h>
14290 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14291 bogus endian macros
14295 if { (eval echo configure:14296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14297 # It does; now see whether it defined to BIG_ENDIAN or not.
14298 cat > conftest.$ac_ext <<EOF
14299 #line 14300 "configure"
14300 #include "confdefs.h"
14301 #include <sys/types.h>
14302 #include <sys/param.h>
14305 #if BYTE_ORDER != BIG_ENDIAN
14310 if { (eval echo configure:14311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14312 ac_cv_c_bigendian=yes
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14317 ac_cv_c_bigendian=no
14321 echo "configure: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14325 if test $ac_cv_c_bigendian = unknown; then
14326 if test "$cross_compiling" = yes; then
14327 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14333 /* Are we little or big endian? From Harbison&Steele. */
14337 char c[sizeof (long)];
14340 exit (u.c[sizeof (long) - 1] == 1);
14343 if { (eval echo configure:14344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14345 ac_cv_c_bigendian=no
14347 echo "configure: failed program was:" >&5
14348 cat conftest.$ac_ext >&5
14350 ac_cv_c_bigendian=yes
14358 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14359 if test $ac_cv_c_bigendian = yes; then
14360 cat >> confdefs.h <<\EOF
14361 #define WORDS_BIGENDIAN 1
14368 echo $ac_n "checking size of short""... $ac_c" 1>&6
14369 echo "configure:14370: checking size of short" >&5
14370 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14373 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14374 cat > conftest.$ac_ext <<EOF
14375 #line 14376 "configure"
14376 #include "confdefs.h"
14377 #include "confdefs.h"
14378 #include <sys/types.h>
14382 switch (0) case 0: case (sizeof (short) == $ac_size):;
14385 if { (eval echo configure:14386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14387 ac_cv_sizeof_short=$ac_size
14389 echo "configure: failed program was:" >&5
14390 cat conftest.$ac_ext >&5
14393 if test x$ac_cv_sizeof_short != x ; then break; fi
14398 if test x$ac_cv_sizeof_short = x ; then
14399 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14401 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14402 cat >> confdefs.h <<EOF
14403 #define SIZEOF_SHORT $ac_cv_sizeof_short
14407 echo $ac_n "checking size of int""... $ac_c" 1>&6
14408 echo "configure:14409: checking size of int" >&5
14409 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14410 echo $ac_n "(cached) $ac_c" 1>&6
14412 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14413 cat > conftest.$ac_ext <<EOF
14414 #line 14415 "configure"
14415 #include "confdefs.h"
14416 #include "confdefs.h"
14417 #include <sys/types.h>
14421 switch (0) case 0: case (sizeof (int) == $ac_size):;
14424 if { (eval echo configure:14425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14426 ac_cv_sizeof_int=$ac_size
14428 echo "configure: failed program was:" >&5
14429 cat conftest.$ac_ext >&5
14432 if test x$ac_cv_sizeof_int != x ; then break; fi
14437 if test x$ac_cv_sizeof_int = x ; then
14438 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14440 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14441 cat >> confdefs.h <<EOF
14442 #define SIZEOF_INT $ac_cv_sizeof_int
14446 echo $ac_n "checking size of long""... $ac_c" 1>&6
14447 echo "configure:14448: checking size of long" >&5
14448 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14449 echo $ac_n "(cached) $ac_c" 1>&6
14451 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14452 cat > conftest.$ac_ext <<EOF
14453 #line 14454 "configure"
14454 #include "confdefs.h"
14455 #include "confdefs.h"
14456 #include <sys/types.h>
14460 switch (0) case 0: case (sizeof (long) == $ac_size):;
14463 if { (eval echo configure:14464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14465 ac_cv_sizeof_long=$ac_size
14467 echo "configure: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14471 if test x$ac_cv_sizeof_long != x ; then break; fi
14476 if test x$ac_cv_sizeof_long = x ; then
14477 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14479 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14480 cat >> confdefs.h <<EOF
14481 #define SIZEOF_LONG $ac_cv_sizeof_long
14486 if test "$ac_cv_sizeof_int" -lt 4 ; then
14487 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14489 cat >> confdefs.h <<\EOF
14490 #define LBER_INT_T long
14494 cat >> confdefs.h <<\EOF
14495 #define LBER_INT_T int
14500 cat >> confdefs.h <<\EOF
14501 #define LBER_LEN_T long
14504 cat >> confdefs.h <<\EOF
14505 #define LBER_SOCKET_T int
14508 cat >> confdefs.h <<\EOF
14509 #define LBER_TAG_T long
14513 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14514 echo "configure:14515: checking for 8-bit clean memcmp" >&5
14515 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14518 if test "$cross_compiling" = yes; then
14519 ac_cv_func_memcmp_clean=no
14521 cat > conftest.$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14527 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14528 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14532 if { (eval echo configure:14533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14534 ac_cv_func_memcmp_clean=yes
14536 echo "configure: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14539 ac_cv_func_memcmp_clean=no
14546 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14547 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14549 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14550 echo "configure:14551: checking for strftime" >&5
14551 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14554 cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14557 /* System header to define __stub macros and hopefully few prototypes,
14558 which can conflict with char strftime(); below. */
14559 #include <assert.h>
14560 /* Override any gcc2 internal prototype to avoid an error. */
14561 /* We use char because int might match the return type of a gcc2
14562 builtin and then its argument prototype would still apply. */
14568 /* The GNU C library defines this for functions which it implements
14569 to always fail with ENOSYS. Some functions are actually named
14570 something starting with __ and the normal name is an alias. */
14571 #if defined (__stub_strftime) || defined (__stub___strftime)
14579 if { (eval echo configure:14580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14581 eval "ac_cv_func_strftime=yes"
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14586 eval "ac_cv_func_strftime=no"
14591 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14592 echo "$ac_t""yes" 1>&6
14593 cat >> confdefs.h <<\EOF
14594 #define HAVE_STRFTIME 1
14598 echo "$ac_t""no" 1>&6
14599 # strftime is in -lintl on SCO UNIX.
14600 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14601 echo "configure:14602: checking for strftime in -lintl" >&5
14602 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14603 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14604 echo $ac_n "(cached) $ac_c" 1>&6
14606 ac_save_LIBS="$LIBS"
14607 LIBS="-lintl $LIBS"
14608 cat > conftest.$ac_ext <<EOF
14609 #line 14610 "configure"
14610 #include "confdefs.h"
14611 /* Override any gcc2 internal prototype to avoid an error. */
14612 /* We use char because int might match the return type of a gcc2
14613 builtin and then its argument prototype would still apply. */
14620 if { (eval echo configure:14621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14622 eval "ac_cv_lib_$ac_lib_var=yes"
14624 echo "configure: failed program was:" >&5
14625 cat conftest.$ac_ext >&5
14627 eval "ac_cv_lib_$ac_lib_var=no"
14630 LIBS="$ac_save_LIBS"
14633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14634 echo "$ac_t""yes" 1>&6
14635 cat >> confdefs.h <<\EOF
14636 #define HAVE_STRFTIME 1
14639 LIBS="-lintl $LIBS"
14641 echo "$ac_t""no" 1>&6
14647 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14648 echo "configure:14649: checking for inet_aton()" >&5
14649 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14650 echo $ac_n "(cached) $ac_c" 1>&6
14652 cat > conftest.$ac_ext <<EOF
14653 #line 14654 "configure"
14654 #include "confdefs.h"
14656 #ifdef HAVE_SYS_TYPES_H
14657 # include <sys/types.h>
14659 #ifdef HAVE_SYS_SOCKET_H
14660 # include <sys/socket.h>
14661 # ifdef HAVE_SYS_SELECT_H
14662 # include <sys/select.h>
14664 # include <netinet/in.h>
14665 # ifdef HAVE_ARPA_INET_H
14666 # include <arpa/inet.h>
14672 int rc = inet_aton( "255.255.255.255", &in );
14675 if { (eval echo configure:14676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14677 ol_cv_func_inet_aton=yes
14679 echo "configure: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14682 ol_cv_func_inet_aton=no
14687 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14688 if test $ol_cv_func_inet_aton != no; then
14689 cat >> confdefs.h <<\EOF
14690 #define HAVE_INET_ATON 1
14696 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14697 echo "configure:14698: checking for _spawnlp" >&5
14698 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14699 echo $ac_n "(cached) $ac_c" 1>&6
14701 cat > conftest.$ac_ext <<EOF
14702 #line 14703 "configure"
14703 #include "confdefs.h"
14704 /* System header to define __stub macros and hopefully few prototypes,
14705 which can conflict with char _spawnlp(); below. */
14706 #include <assert.h>
14707 /* Override any gcc2 internal prototype to avoid an error. */
14708 /* We use char because int might match the return type of a gcc2
14709 builtin and then its argument prototype would still apply. */
14715 /* The GNU C library defines this for functions which it implements
14716 to always fail with ENOSYS. Some functions are actually named
14717 something starting with __ and the normal name is an alias. */
14718 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14726 if { (eval echo configure:14727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14728 eval "ac_cv_func__spawnlp=yes"
14730 echo "configure: failed program was:" >&5
14731 cat conftest.$ac_ext >&5
14733 eval "ac_cv_func__spawnlp=no"
14738 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14739 echo "$ac_t""yes" 1>&6
14740 cat >> confdefs.h <<\EOF
14741 #define HAVE_SPAWNLP 1
14745 echo "$ac_t""no" 1>&6
14749 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14750 echo "configure:14751: checking for _snprintf" >&5
14751 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 /* System header to define __stub macros and hopefully few prototypes,
14758 which can conflict with char _snprintf(); below. */
14759 #include <assert.h>
14760 /* Override any gcc2 internal prototype to avoid an error. */
14761 /* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14768 /* The GNU C library defines this for functions which it implements
14769 to always fail with ENOSYS. Some functions are actually named
14770 something starting with __ and the normal name is an alias. */
14771 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14779 if { (eval echo configure:14780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14781 eval "ac_cv_func__snprintf=yes"
14783 echo "configure: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14786 eval "ac_cv_func__snprintf=no"
14791 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14792 echo "$ac_t""yes" 1>&6
14793 ac_cv_func_snprintf=yes
14794 cat >> confdefs.h <<\EOF
14795 #define snprintf _snprintf
14800 echo "$ac_t""no" 1>&6
14804 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14805 echo "configure:14806: checking for _vsnprintf" >&5
14806 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14807 echo $ac_n "(cached) $ac_c" 1>&6
14809 cat > conftest.$ac_ext <<EOF
14810 #line 14811 "configure"
14811 #include "confdefs.h"
14812 /* System header to define __stub macros and hopefully few prototypes,
14813 which can conflict with char _vsnprintf(); below. */
14814 #include <assert.h>
14815 /* Override any gcc2 internal prototype to avoid an error. */
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14823 /* The GNU C library defines this for functions which it implements
14824 to always fail with ENOSYS. Some functions are actually named
14825 something starting with __ and the normal name is an alias. */
14826 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14834 if { (eval echo configure:14835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14836 eval "ac_cv_func__vsnprintf=yes"
14838 echo "configure: failed program was:" >&5
14839 cat conftest.$ac_ext >&5
14841 eval "ac_cv_func__vsnprintf=no"
14846 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14847 echo "$ac_t""yes" 1>&6
14848 ac_cv_func_vsnprintf=yes
14849 cat >> confdefs.h <<\EOF
14850 #define vsnprintf _vsnprintf
14855 echo "$ac_t""no" 1>&6
14859 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14860 echo "configure:14861: checking for vprintf" >&5
14861 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14862 echo $ac_n "(cached) $ac_c" 1>&6
14864 cat > conftest.$ac_ext <<EOF
14865 #line 14866 "configure"
14866 #include "confdefs.h"
14867 /* System header to define __stub macros and hopefully few prototypes,
14868 which can conflict with char vprintf(); below. */
14869 #include <assert.h>
14870 /* Override any gcc2 internal prototype to avoid an error. */
14871 /* We use char because int might match the return type of a gcc2
14872 builtin and then its argument prototype would still apply. */
14878 /* The GNU C library defines this for functions which it implements
14879 to always fail with ENOSYS. Some functions are actually named
14880 something starting with __ and the normal name is an alias. */
14881 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14889 if { (eval echo configure:14890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14891 eval "ac_cv_func_vprintf=yes"
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14896 eval "ac_cv_func_vprintf=no"
14901 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14902 echo "$ac_t""yes" 1>&6
14903 cat >> confdefs.h <<\EOF
14904 #define HAVE_VPRINTF 1
14908 echo "$ac_t""no" 1>&6
14911 if test "$ac_cv_func_vprintf" != yes; then
14912 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14913 echo "configure:14914: checking for _doprnt" >&5
14914 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14915 echo $ac_n "(cached) $ac_c" 1>&6
14917 cat > conftest.$ac_ext <<EOF
14918 #line 14919 "configure"
14919 #include "confdefs.h"
14920 /* System header to define __stub macros and hopefully few prototypes,
14921 which can conflict with char _doprnt(); below. */
14922 #include <assert.h>
14923 /* Override any gcc2 internal prototype to avoid an error. */
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14931 /* The GNU C library defines this for functions which it implements
14932 to always fail with ENOSYS. Some functions are actually named
14933 something starting with __ and the normal name is an alias. */
14934 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14942 if { (eval echo configure:14943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14944 eval "ac_cv_func__doprnt=yes"
14946 echo "configure: failed program was:" >&5
14947 cat conftest.$ac_ext >&5
14949 eval "ac_cv_func__doprnt=no"
14954 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14955 echo "$ac_t""yes" 1>&6
14956 cat >> confdefs.h <<\EOF
14957 #define HAVE_DOPRNT 1
14961 echo "$ac_t""no" 1>&6
14967 if test $ac_cv_func_vprintf = yes ; then
14968 for ac_func in vsnprintf vsprintf
14970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14971 echo "configure:14972: checking for $ac_func" >&5
14972 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14973 echo $ac_n "(cached) $ac_c" 1>&6
14975 cat > conftest.$ac_ext <<EOF
14976 #line 14977 "configure"
14977 #include "confdefs.h"
14978 /* System header to define __stub macros and hopefully few prototypes,
14979 which can conflict with char $ac_func(); below. */
14980 #include <assert.h>
14981 /* Override any gcc2 internal prototype to avoid an error. */
14982 /* We use char because int might match the return type of a gcc2
14983 builtin and then its argument prototype would still apply. */
14989 /* The GNU C library defines this for functions which it implements
14990 to always fail with ENOSYS. Some functions are actually named
14991 something starting with __ and the normal name is an alias. */
14992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15002 eval "ac_cv_func_$ac_func=yes"
15004 echo "configure: failed program was:" >&5
15005 cat conftest.$ac_ext >&5
15007 eval "ac_cv_func_$ac_func=no"
15012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15013 echo "$ac_t""yes" 1>&6
15014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15015 cat >> confdefs.h <<EOF
15016 #define $ac_tr_func 1
15020 echo "$ac_t""no" 1>&6
15076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15077 echo "configure:15078: checking for $ac_func" >&5
15078 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15081 cat > conftest.$ac_ext <<EOF
15082 #line 15083 "configure"
15083 #include "confdefs.h"
15084 /* System header to define __stub macros and hopefully few prototypes,
15085 which can conflict with char $ac_func(); below. */
15086 #include <assert.h>
15087 /* Override any gcc2 internal prototype to avoid an error. */
15088 /* We use char because int might match the return type of a gcc2
15089 builtin and then its argument prototype would still apply. */
15095 /* The GNU C library defines this for functions which it implements
15096 to always fail with ENOSYS. Some functions are actually named
15097 something starting with __ and the normal name is an alias. */
15098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15106 if { (eval echo configure:15107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15108 eval "ac_cv_func_$ac_func=yes"
15110 echo "configure: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15113 eval "ac_cv_func_$ac_func=no"
15118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15119 echo "$ac_t""yes" 1>&6
15120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15121 cat >> confdefs.h <<EOF
15122 #define $ac_tr_func 1
15126 echo "$ac_t""no" 1>&6
15131 for ac_func in getopt tempnam
15133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15134 echo "configure:15135: checking for $ac_func" >&5
15135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15136 echo $ac_n "(cached) $ac_c" 1>&6
15138 cat > conftest.$ac_ext <<EOF
15139 #line 15140 "configure"
15140 #include "confdefs.h"
15141 /* System header to define __stub macros and hopefully few prototypes,
15142 which can conflict with char $ac_func(); below. */
15143 #include <assert.h>
15144 /* Override any gcc2 internal prototype to avoid an error. */
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15152 /* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15163 if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15165 eval "ac_cv_func_$ac_func=yes"
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15170 eval "ac_cv_func_$ac_func=no"
15175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15176 echo "$ac_t""yes" 1>&6
15177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15178 cat >> confdefs.h <<EOF
15179 #define $ac_tr_func 1
15183 echo "$ac_t""no" 1>&6
15184 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15190 if test "$ac_cv_func_getopt" != yes; then
15191 LIBSRCS="$LIBSRCS getopt.c"
15194 if test "$ac_cv_func_tempnam" != yes; then
15195 LIBSRCS="$LIBSRCS tempnam.c"
15198 # Check Configuration
15199 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15200 echo "configure:15201: checking declaration of sys_errlist" >&5
15201 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15202 echo $ac_n "(cached) $ac_c" 1>&6
15205 cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure"
15207 #include "confdefs.h"
15210 #include <sys/types.h>
15213 #include <stdlib.h>
15216 char *c = (char *) *sys_errlist
15219 if { (eval echo configure:15220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15221 ol_cv_dcl_sys_errlist=yes
15222 ol_cv_have_sys_errlist=yes
15224 echo "configure: failed program was:" >&5
15225 cat conftest.$ac_ext >&5
15227 ol_cv_dcl_sys_errlist=no
15232 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15234 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15235 if test $ol_cv_dcl_sys_errlist = no ; then
15236 cat >> confdefs.h <<\EOF
15237 #define DECL_SYS_ERRLIST 1
15241 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15242 echo "configure:15243: checking existence of sys_errlist" >&5
15243 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15244 echo $ac_n "(cached) $ac_c" 1>&6
15247 cat > conftest.$ac_ext <<EOF
15248 #line 15249 "configure"
15249 #include "confdefs.h"
15252 char *c = (char *) *sys_errlist
15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15257 ol_cv_have_sys_errlist=yes
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15262 ol_cv_have_sys_errlist=no
15267 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15269 if test $ol_cv_have_sys_errlist = yes ; then
15270 cat >> confdefs.h <<\EOF
15271 #define HAVE_SYS_ERRLIST 1
15278 if test "$ol_enable_debug" != no ; then
15279 cat >> confdefs.h <<\EOF
15280 #define LDAP_DEBUG 1
15284 if test "$ol_enable_syslog" = yes ; then
15285 cat >> confdefs.h <<\EOF
15286 #define LDAP_SYSLOG 1
15290 if test "$ol_enable_libui" = yes ; then
15291 cat >> confdefs.h <<\EOF
15292 #define LDAP_LIBUI 1
15296 if test "$ol_enable_cache" = no ; then
15297 cat >> confdefs.h <<\EOF
15298 #define LDAP_NOCACHE 1
15302 if test "$ol_link_kbind" != no ; then
15303 cat >> confdefs.h <<\EOF
15304 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15308 if test "$ol_enable_dns" != no ; then
15309 cat >> confdefs.h <<\EOF
15310 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15314 if test "$ol_enable_proctitle" != no ; then
15315 cat >> confdefs.h <<\EOF
15316 #define LDAP_PROCTITLE 1
15320 if test "$ol_enable_referrals" != no ; then
15321 cat >> confdefs.h <<\EOF
15322 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15326 if test "$ol_enable_cldap" != no ; then
15327 cat >> confdefs.h <<\EOF
15328 #define LDAP_CONNECTIONLESS 1
15332 if test "$ol_enable_ldapi" != no; then
15333 cat >> confdefs.h <<\EOF
15334 #define USE_PF_LOCAL 1
15339 if test "$ol_enable_cleartext" != no ; then
15340 cat >> confdefs.h <<\EOF
15341 #define SLAPD_CLEARTEXT 1
15345 if test "$ol_enable_crypt" != no ; then
15346 cat >> confdefs.h <<\EOF
15347 #define SLAPD_CRYPT 1
15351 if test "$ol_link_kpasswd" != no ; then
15352 cat >> confdefs.h <<\EOF
15353 #define SLAPD_KPASSWD 1
15357 if test "$ol_link_spasswd" != no ; then
15358 cat >> confdefs.h <<\EOF
15359 #define SLAPD_SPASSWD 1
15363 if test "$ol_enable_multimaster" != no ; then
15364 cat >> confdefs.h <<\EOF
15365 #define SLAPD_MULTIMASTER 1
15369 if test "$ol_enable_phonetic" != no ; then
15370 cat >> confdefs.h <<\EOF
15371 #define SLAPD_PHONETIC 1
15375 if test "$ol_enable_rlookups" != no ; then
15376 cat >> confdefs.h <<\EOF
15377 #define SLAPD_RLOOKUPS 1
15381 if test "$ol_enable_aci" != no ; then
15382 cat >> confdefs.h <<\EOF
15383 #define SLAPD_ACI_ENABLED 1
15388 if test "$ol_link_modules" != no ; then
15389 cat >> confdefs.h <<\EOF
15390 #define SLAPD_MODULES 1
15394 SLAPD_MODULES_LDFLAGS="-dlopen self"
15397 if test "$ol_link_bdb2" != no ; then
15398 cat >> confdefs.h <<\EOF
15399 #define SLAPD_BDB2 1
15404 if test "$ol_with_bdb2_module" != static ; then
15405 cat >> confdefs.h <<\EOF
15406 #define SLAPD_BDB2_DYNAMIC 1
15410 BUILD_BDB2_DYNAMIC=shared
15411 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15415 if test "$ol_enable_ldap" != no ; then
15416 cat >> confdefs.h <<\EOF
15417 #define SLAPD_LDAP 1
15422 if test "$ol_with_ldap_module" != static ; then
15423 cat >> confdefs.h <<\EOF
15424 #define SLAPD_LDAP_DYNAMIC 1
15428 BUILD_LDAP_DYNAMIC=shared
15429 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15433 if test "$ol_link_ldbm" != no ; then
15434 cat >> confdefs.h <<\EOF
15435 #define SLAPD_LDBM 1
15440 if test "$ol_with_ldbm_module" != static ; then
15441 cat >> confdefs.h <<\EOF
15442 #define SLAPD_LDBM_DYNAMIC 1
15446 BUILD_LDBM_DYNAMIC=shared
15447 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15451 if test "$ol_enable_passwd" != no ; then
15452 cat >> confdefs.h <<\EOF
15453 #define SLAPD_PASSWD 1
15458 if test "$ol_with_passwd_module" != static ; then
15459 cat >> confdefs.h <<\EOF
15460 #define SLAPD_PASSWD_DYNAMIC 1
15464 BUILD_PASSWD_DYNAMIC=shared
15465 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15469 if test "$ol_link_perl" != no ; then
15470 cat >> confdefs.h <<\EOF
15471 #define SLAPD_PERL 1
15476 if test "$ol_with_perl_module" != static ; then
15477 cat >> confdefs.h <<\EOF
15478 #define SLAPD_PERL_DYNAMIC 1
15482 BUILD_PERL_DYNAMIC=shared
15483 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15487 if test "$ol_enable_shell" != no ; then
15488 cat >> confdefs.h <<\EOF
15489 #define SLAPD_SHELL 1
15494 if test "$ol_with_shell_module" != static ; then
15495 cat >> confdefs.h <<\EOF
15496 #define SLAPD_SHELL_DYNAMIC 1
15500 BUILD_SHELL_DYNAMIC=shared
15501 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15505 if test "$ol_enable_tcl" != no ; then
15506 cat >> confdefs.h <<\EOF
15507 #define SLAPD_TCL 1
15512 if test "$ol_with_tcl_module" != static; then
15513 cat >> confdefs.h <<\EOF
15514 #define SLAPD_TCL_DYNAMIC 1
15518 BUILD_TCL_DYNAMIC=shared
15519 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15523 if test "$ol_enable_sql" != no ; then
15524 cat >> confdefs.h <<\EOF
15525 #define SLAPD_SQL 1
15530 SLAPD_SQL_LIBS=-liodbc
15531 if test "$ol_with_sql_module" != static; then
15532 cat >> confdefs.h <<\EOF
15533 #define SLAPD_SQL_DYNAMIC 1
15537 BUILD_SQL_DYNAMIC=shared
15538 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15542 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15543 $BUILD_SLAPD = yes ; then
15547 if test "$ol_link_isode" != no ; then
15552 if test "$LINK_BINS_DYNAMIC" = yes; then
15554 LT_LIB_LINKAGE=shared
15557 LT_LIB_LINKAGE=static
15560 if test "$ac_cv_mingw32" = yes ; then
15631 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15634 # Let make expand exec_prefix.
15635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15637 # Any assignment to VPATH causes Sun make to only execute
15638 # the first set of double-colon rules, so remove it if not needed.
15639 # If there is a colon in the path, we need to keep it.
15640 if test "x$srcdir" = x.; then
15641 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15644 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15646 DEFS=-DHAVE_CONFIG_H
15648 # Without the "./", some shells look in PATH for config.status.
15649 : ${CONFIG_STATUS=./config.status}
15651 echo creating $CONFIG_STATUS
15652 rm -f $CONFIG_STATUS
15653 cat > $CONFIG_STATUS <<EOF
15655 # Generated automatically by configure.
15656 # Run this file to recreate the current configuration.
15657 # This directory was configured as follows,
15658 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15660 # $0 $ac_configure_args
15662 # Compiler output produced by configure, useful for debugging
15663 # configure, is in ./config.log if it exists.
15665 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15668 case "\$ac_option" in
15669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15670 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15671 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15672 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15673 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15675 -help | --help | --hel | --he | --h)
15676 echo "\$ac_cs_usage"; exit 0 ;;
15677 *) echo "\$ac_cs_usage"; exit 1 ;;
15681 ac_given_srcdir=$srcdir
15682 ac_given_INSTALL="$INSTALL"
15684 trap 'rm -fr `echo "\
15685 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15686 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15687 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15688 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15689 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15690 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15691 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15692 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15693 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15694 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15695 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15696 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15697 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15698 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15699 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15700 include/Makefile:build/top.mk:include/Makefile.in \
15701 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15702 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15703 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15704 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15705 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15706 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15707 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15708 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15709 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15710 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15711 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15712 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15713 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15714 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15715 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15716 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15717 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15718 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15719 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15720 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15721 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15722 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15723 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15724 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15725 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15726 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15727 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15728 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15729 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15731 cat >> $CONFIG_STATUS <<EOF
15733 # Protect against being on the right side of a sed subst in config.status.
15734 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15735 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15739 s%@CFLAGS@%$CFLAGS%g
15740 s%@CPPFLAGS@%$CPPFLAGS%g
15741 s%@CXXFLAGS@%$CXXFLAGS%g
15742 s%@FFLAGS@%$FFLAGS%g
15744 s%@LDFLAGS@%$LDFLAGS%g
15746 s%@exec_prefix@%$exec_prefix%g
15747 s%@prefix@%$prefix%g
15748 s%@program_transform_name@%$program_transform_name%g
15749 s%@bindir@%$bindir%g
15750 s%@sbindir@%$sbindir%g
15751 s%@libexecdir@%$libexecdir%g
15752 s%@datadir@%$datadir%g
15753 s%@sysconfdir@%$sysconfdir%g
15754 s%@sharedstatedir@%$sharedstatedir%g
15755 s%@localstatedir@%$localstatedir%g
15756 s%@libdir@%$libdir%g
15757 s%@includedir@%$includedir%g
15758 s%@oldincludedir@%$oldincludedir%g
15759 s%@infodir@%$infodir%g
15760 s%@mandir@%$mandir%g
15762 s%@host_alias@%$host_alias%g
15763 s%@host_cpu@%$host_cpu%g
15764 s%@host_vendor@%$host_vendor%g
15765 s%@host_os@%$host_os%g
15766 s%@target@%$target%g
15767 s%@target_alias@%$target_alias%g
15768 s%@target_cpu@%$target_cpu%g
15769 s%@target_vendor@%$target_vendor%g
15770 s%@target_os@%$target_os%g
15772 s%@build_alias@%$build_alias%g
15773 s%@build_cpu@%$build_cpu%g
15774 s%@build_vendor@%$build_vendor%g
15775 s%@build_os@%$build_os%g
15776 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15777 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15778 s%@INSTALL_DATA@%$INSTALL_DATA%g
15779 s%@PACKAGE@%$PACKAGE%g
15780 s%@VERSION@%$VERSION%g
15781 s%@ACLOCAL@%$ACLOCAL%g
15782 s%@AUTOCONF@%$AUTOCONF%g
15783 s%@AUTOMAKE@%$AUTOMAKE%g
15784 s%@AUTOHEADER@%$AUTOHEADER%g
15785 s%@MAKEINFO@%$MAKEINFO%g
15786 s%@install_sh@%$install_sh%g
15789 s%@AMTARFLAGS@%$AMTARFLAGS%g
15790 s%@SET_MAKE@%$SET_MAKE%g
15791 s%@top_builddir@%$top_builddir%g
15792 s%@ldap_subdir@%$ldap_subdir%g
15794 s%@RANLIB@%$RANLIB%g
15798 s%@DLLTOOL@%$DLLTOOL%g
15800 s%@OBJDUMP@%$OBJDUMP%g
15801 s%@LIBTOOL@%$LIBTOOL%g
15803 s%@SENDMAIL@%$SENDMAIL%g
15804 s%@EDITOR@%$EDITOR%g
15805 s%@FINGER@%$FINGER%g
15806 s%@PERLBIN@%$PERLBIN%g
15808 s%@EXEEXT@%$EXEEXT%g
15809 s%@OBJEXT@%$OBJEXT%g
15810 s%@OL_MKDEP@%$OL_MKDEP%g
15811 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15813 s%@LIBOBJS@%$LIBOBJS%g
15814 s%@LIBSRCS@%$LIBSRCS%g
15816 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15817 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15818 s%@DYN_EXT@%$DYN_EXT%g
15819 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15820 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15821 s%@BUILD_BDB2@%$BUILD_BDB2%g
15822 s%@BUILD_LDAP@%$BUILD_LDAP%g
15823 s%@BUILD_LDBM@%$BUILD_LDBM%g
15824 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15825 s%@BUILD_PERL@%$BUILD_PERL%g
15826 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15827 s%@BUILD_SHELL@%$BUILD_SHELL%g
15828 s%@BUILD_TCL@%$BUILD_TCL%g
15829 s%@BUILD_SQL@%$BUILD_SQL%g
15830 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15831 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15832 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15833 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15834 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15835 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15836 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15837 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
15838 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15839 s%@LDAP_LIBS@%$LDAP_LIBS%g
15840 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15841 s%@LDIF_LIBS@%$LDIF_LIBS%g
15842 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15843 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15844 s%@LDBM_LIBS@%$LDBM_LIBS%g
15845 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15846 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15847 s%@WRAP_LIBS@%$WRAP_LIBS%g
15848 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15849 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15850 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15851 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15852 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15853 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15854 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15855 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15856 s%@KRB4_LIBS@%$KRB4_LIBS%g
15857 s%@KRB5_LIBS@%$KRB5_LIBS%g
15858 s%@READLINE_LIBS@%$READLINE_LIBS%g
15859 s%@SASL_LIBS@%$SASL_LIBS%g
15860 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15861 s%@TLS_LIBS@%$TLS_LIBS%g
15862 s%@MODULES_LIBS@%$MODULES_LIBS%g
15863 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
15864 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
15865 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
15870 cat >> $CONFIG_STATUS <<\EOF
15872 # Split the substitutions into bite-sized pieces for seds with
15873 # small command number limits, like on Digital OSF/1 and HP-UX.
15874 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15875 ac_file=1 # Number of current file.
15876 ac_beg=1 # First line for current file.
15877 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15880 while $ac_more_lines; do
15881 if test $ac_beg -gt 1; then
15882 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15884 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15886 if test ! -s conftest.s$ac_file; then
15887 ac_more_lines=false
15888 rm -f conftest.s$ac_file
15890 if test -z "$ac_sed_cmds"; then
15891 ac_sed_cmds="sed -f conftest.s$ac_file"
15893 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15895 ac_file=`expr $ac_file + 1`
15897 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15900 if test -z "$ac_sed_cmds"; then
15905 cat >> $CONFIG_STATUS <<EOF
15907 CONFIG_FILES=\${CONFIG_FILES-"\
15908 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15909 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15910 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15911 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15912 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15913 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15914 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15915 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15916 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15917 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15918 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15919 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15920 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15921 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15922 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15923 include/Makefile:build/top.mk:include/Makefile.in \
15924 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15925 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15926 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15927 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15928 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15929 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15930 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15931 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15932 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15933 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15934 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15935 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15936 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15937 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15938 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15939 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15940 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15941 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15942 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15943 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15944 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15945 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15946 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15947 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15948 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15949 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15950 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15951 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15954 cat >> $CONFIG_STATUS <<\EOF
15955 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15958 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15959 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15960 *) ac_file_in="${ac_file}.in" ;;
15963 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15965 # Remove last slash and all that follows it. Not all systems have dirname.
15966 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15967 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15968 # The file is in a subdirectory.
15969 test ! -d "$ac_dir" && mkdir "$ac_dir"
15970 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15971 # A "../" for each directory in $ac_dir_suffix.
15972 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15974 ac_dir_suffix= ac_dots=
15977 case "$ac_given_srcdir" in
15979 if test -z "$ac_dots"; then top_srcdir=.
15980 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15981 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15982 *) # Relative path.
15983 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15984 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15987 case "$ac_given_INSTALL" in
15988 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15989 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15992 echo creating "$ac_file"
15994 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15996 *[Mm]akefile*) ac_comsub="1i\\
15997 # $configure_input" ;;
16001 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16003 s%@configure_input@%$configure_input%g
16004 s%@srcdir@%$srcdir%g
16005 s%@top_srcdir@%$top_srcdir%g
16006 s%@INSTALL@%$INSTALL%g
16007 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16014 # ac_d sets the value in "#define NAME VALUE" lines.
16015 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16016 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16019 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16020 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16021 ac_uB='\([ ]\)%\1#\2define\3'
16024 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16025 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16026 ac_eB='$%\1#\2define\3'
16030 if test "${CONFIG_HEADERS+set}" != set; then
16032 cat >> $CONFIG_STATUS <<EOF
16033 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16035 cat >> $CONFIG_STATUS <<\EOF
16037 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16040 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16041 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16042 *) ac_file_in="${ac_file}.in" ;;
16045 echo creating $ac_file
16047 rm -f conftest.frag conftest.in conftest.out
16048 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16049 cat $ac_file_inputs > conftest.in
16053 # Transform confdefs.h into a sed script conftest.vals that substitutes
16054 # the proper values into config.h.in to produce config.h. And first:
16055 # Protect against being on the right side of a sed subst in config.status.
16056 # Protect against being in an unquoted here document in config.status.
16057 rm -f conftest.vals
16058 cat > conftest.hdr <<\EOF
16061 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16065 sed -n -f conftest.hdr confdefs.h > conftest.vals
16068 # This sed command replaces #undef with comments. This is necessary, for
16069 # example, in the case of _POSIX_SOURCE, which is predefined and required
16070 # on some systems where configure will not decide to define it.
16071 cat >> conftest.vals <<\EOF
16072 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16075 # Break up conftest.vals because some shells have a limit on
16076 # the size of here documents, and old seds have small limits too.
16078 rm -f conftest.tail
16081 ac_lines=`grep -c . conftest.vals`
16082 # grep -c gives empty output for an empty file on some AIX systems.
16083 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16084 # Write a limited-size here document to conftest.frag.
16085 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16086 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16088 sed -f conftest.frag conftest.in > conftest.out
16090 mv conftest.out conftest.in
16091 ' >> $CONFIG_STATUS
16092 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16093 rm -f conftest.vals
16094 mv conftest.tail conftest.vals
16096 rm -f conftest.vals
16098 cat >> $CONFIG_STATUS <<\EOF
16099 rm -f conftest.frag conftest.h
16100 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16101 cat conftest.in >> conftest.h
16103 if cmp -s $ac_file conftest.h 2>/dev/null; then
16104 echo "$ac_file is unchanged"
16107 # Remove last slash and all that follows it. Not all systems have dirname.
16108 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16109 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16110 # The file is in a subdirectory.
16111 test ! -d "$ac_dir" && mkdir "$ac_dir"
16114 mv conftest.h $ac_file
16119 cat >> $CONFIG_STATUS <<EOF
16122 cat >> $CONFIG_STATUS <<\EOF
16125 echo Please \"make depend\" to build dependencies
16129 chmod +x $CONFIG_STATUS
16130 rm -fr confdefs* $ac_clean_files
16131 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1